builtin-has-attribute-4.c: Skip on 32-bit hppa*-*-hpux*.
[official-gcc.git] / gcc / ChangeLog
blob67dc0bfdbb6999d7948ab22ecb9812a31415a2ba
1 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
3         PR rtl-optimization/89721
4         * lra-constraints (invariant_p): Return false if side_effects_p holds.
6 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8         PR target/87532
9         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10         When handling vec_extract, use modular arithmetic to allow
11         constant selectors greater than vector length.
12         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
13         V1TImode vectors to have constant selector values greater than 0.
14         Use modular arithmetic to compute vector index.
15         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
16         index for in-memory vectors.  Correct code generation for
17         in-register vectors.
18         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
19         compute index.
21 2019-03-15  Alexandre Oliva <aoliva@redhat.com>
23         PR c++/88534
24         PR c++/88537
25         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
26         VAR_DECL args.
28 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
30         PR c++/89709
31         * tree.c (inchash::add_expr): Strip any location wrappers.
32         * fold-const.c (operand_equal_p): Move stripping of location wrapper
33         after hash verification.
35         PR debug/89704
36         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
37         SIGN_EXTEND and ZERO_EXTEND.
39 2019-03-14  Jason Merrill  <jason@redhat.com>
40             Jakub Jelinek  <jakub@redhat.com>
42         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
43         than if is_empty (*slot).
44         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
45         existing elt and for elt removal.
46         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
47         of already removed elt.
49 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
51         PR target/89650
52         * config/i386/i386.c (remove_partial_avx_dependency): Handle
53         REG_EH_REGION note.
55 2019-03-14  Martin Liska  <mliska@suse.cz>
57         PR other/89712
58         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
60 2019-03-14  Richard Biener  <rguenther@suse.de>
62         PR target/89711
63         * config/i386/i386.c (make_resolver_func): Properly set
64         DECL_CONTEXT on the RESULT_DECL.
65         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
67 2019-03-14  Richard Biener  <rguenther@suse.de>
69         * gimple-pretty-print.c: Include cfgloop.h.
70         (dump_gimple_phi): Adjust.
71         (dump_gimple_bb_header): Dump loop header for GIMPLE.
72         (pp_cfg_jump): Adjust.
73         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
74         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
75         (lower_phi_internal_fn): Remove.
76         (verify_gimple_call): Remove IFN_PHI special-casing.
77         (dump_function_to_file): Dump IL state.
78         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
79         done to deal with PHI nodes being present in non-SSA state.
81 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
83         PR ipa/89684
84         * multiple_target.c (create_dispatcher_calls): Change
85         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
86         In the node->iterate_referring loop, push *ref rather than ref, call
87         ref->remove_reference () and always pass 0 to iterate_referring.
89         PR rtl-optimization/89679
90         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
91         would contain a paradoxical SUBREG.
93 2019-03-14  Richard Biener  <rguenther@suse.de>
95         PR tree-optimization/89710
96         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
97         safe_dyn_cast.
99 2019-03-14  Martin Liska  <mliska@suse.cz>
101         * coverage.c (coverage_begin_function): Stream also
102         end_column.
103         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
104         documentation about function declaration location.
105         * gcov-dump.c (tag_function): Print whole range
106         of function declaration.
107         * gcov.c (struct function_info): Add end_column field.
108         (function_info::function_info): Initialize it.
109         (output_json_intermediate_file): Output {start,end}_column
110         fields.
111         (read_graph_file): Read end_column.
113 2019-03-14  Richard Biener  <rguenther@suse.de>
115         PR middle-end/89698
116         * fold-const.c (operand_equal_p): For INDIRECT_REF check
117         that the access types are similar.
119 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
121         PR tree-optimization/89703
122         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
123         aren't compatible also with builtin_decl_explicit.  Check pure
124         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
125         and BUILT_IN_STPNCPY{,_CHK}.
127 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
129         PR target/89523
130         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
131         addr32 prefix to VSIB address for X32.
132         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
133         "%M2" to opcode.
134         (*avx512pf_gatherpf<mode>df_mask): Likewise.
135         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
136         (*avx512pf_scatterpf<mode>df_mask): Likewise.
137         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
138         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
139         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
140         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
141         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
142         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
143         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
144         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
145         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
146         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
147         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
148         (*avx512f_scatterdi<mode>): Likewise.
150 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
152         PR target/85860
153         * lra-constraints.c (inherit_in_ebb): Update
154         potential_reload_hard_regs along with live_hard_regs.
156 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
158         PR debug/89498
159         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
160         DWARF_OFFSET_SIZE.
161         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
163 2019-03-13  Martin Sebor  <msebor@redhat.com>
165         PR tree-optimization/89662
166         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
167         has a size.
169 2019-03-13  Richard Biener  <rguenther@suse.de>
171         PR middle-end/89677
172         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
173         throw FP expressions at tree-affine.
175 2019-03-14  Richard Biener  <rguenther@suse.de>
177         * tree-pretty-print.c (dump_generic_node): For -gimple properly
178         dump negative integer constants using _Literal (type) -num.
180 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
182         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
183         nonlocal_value member.
185         PR middle-end/88588
186         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
187         (ipa_simd_modify_function_body): Handle PHIs.
189 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
191         * config/s390/s390.c (s390_option_override_internal): Use more
192         aggressive inlining parameters.
194 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
196         * config/s390/3906.md: New file.
197         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
198         (LONGRUNNING_THRESHOLD): Remove.
199         (MAX_SCHED_MIX_SCORE): Decrease.
200         (MAX_SCHED_MIX_DISTANCE): Decrease.
201         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
202         (struct s390_sched_state): New struct to hold scheduling state.
203         (S390_SCHED_STATE_NORMAL): Remove.
204         (S390_SCHED_STATE_CRACKED): Remove.
205         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
206         (s390_get_sched_attrmask): Use new attribute.
207         (s390_get_unit_mask): Use new units.
208         (s390_is_fpd): New function.
209         (s390_is_fxd): New function.
210         (s390_is_longrunning): New function.
211         (s390_sched_score): Use new functions.
212         (s390_sched_reorder): Likewise.
213         (s390_sched_variable_issue): Rework and use new functions.
214         (s390_sched_init): Use new functions.
215         * config/s390/s390.h (s390_tune_attr):  Add z14.
216         * config/s390/s390.md: Add z14.
218 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
220         * config/s390/2964.md: Update pipeline description.
221         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
222         (LONGRUNNING_THRESHOLD): Remove.
223         (LATENCY_FACTOR): Remove.
224         (s390_get_unit_mask): Add unit.
225         (s390_sched_score): Use fxd/fpd.
226         (s390_sched_variable_issue): Use fxd/fpd.
228 2019-03-12  Martin Liska  <mliska@suse.cz>
230         * config/i386/i386.c: Reword an error message.
232 2019-03-12  Martin Jambor  <mjambor@suse.cz>
234         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
235         terminate with newline.
237 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
239         PR target/52726
240         * config/s390/s390.md (tabort): Use %wd instead of
241         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
242         letters and periods.
243         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
244         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
245         's with %< and %>.
247         PR middle-end/89663
248         * builtins.c (expand_builtin_int_roundingfn,
249         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
250         gcc_unreachable if validate_arglist fails.
252 2019-03-12  Richard Biener  <rguenther@suse.de>
254         PR tree-optimization/89664
255         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
256         free the occurance tree after the early out.
258 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
260         PR middle-end/89655
261         PR bootstrap/89656
262         * vr-values.c (vr_values::update_value_range): If
263         old_vr->varying_p (), don't update it, make new_vr also VARYING
264         and return false.
266 2019-03-11  Martin Liska  <mliska@suse.cz>
268         * config/aarch64/aarch64.c (aarch64_override_options_internal):
269         Fix double string quoting.
271 2019-03-11  Martin Liska  <mliska@suse.cz>
273         * collect-utils.c (collect_wait): Wrap apostrophes
274         in gcc internal format with %'.
275         * collect2.c (main): Likewise.
276         (scan_prog_file): Likewise.
277         (scan_libraries): Likewise.
278         * config/i386/i386.c (ix86_expand_call): Likewise.
279         (ix86_handle_interrupt_attribute): Likewise.
280         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
281         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
282         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
283         * lto-wrapper.c (find_crtoffloadtable): Likewise.
284         * symtab.c (symtab_node::verify_base): Likewise.
285         * tree-cfg.c (verify_gimple_label): Likewise.
286         * tree.c (verify_type_variant): Likewise.
288 2019-03-11  Martin Liska  <mliska@suse.cz>
290         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
291         in a string format message and fix GNU coding style.
292         (expand_builtin_set_thread_pointer): Likewise.
293         * common/config/aarch64/aarch64-common.c (aarch64_rewrite_selected_cpu): Likewise.
294         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
295         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
296         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
297         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
298         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
299         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
300         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
301         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
302         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
303         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option): Likewise.
304         * common/config/riscv/riscv-common.c (riscv_subset_list::parsing_subset_version): Likewise.
305         (riscv_subset_list::parse_std_ext): Likewise.
306         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
307         (riscv_subset_list::parse): Likewise.
308         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
309         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
310         (aarch64_override_options_internal): Likewise.
311         (aarch64_validate_mcpu): Likewise.
312         (aarch64_validate_march): Likewise.
313         (aarch64_validate_mtune): Likewise.
314         (aarch64_override_options): Likewise.
315         * config/alpha/alpha.c (alpha_option_override): Likewise.
316         * config/arc/arc.c (arc_init): Likewise.
317         (parse_mrgf_banked_regs_option): Likewise.
318         (arc_override_options): Likewise.
319         (arc_expand_builtin_aligned): Likewise.
320         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
321         (arm_expand_builtin): Likewise.
322         * config/arm/arm.c (arm_option_check_internal): Likewise.
323         (arm_configure_build_target): Likewise.
324         (arm_option_override): Likewise.
325         (arm_options_perform_arch_sanity_checks): Likewise.
326         (arm_handle_cmse_nonsecure_entry): Likewise.
327         (arm_handle_cmse_nonsecure_call): Likewise.
328         (arm_tls_referenced_p): Likewise.
329         (thumb1_expand_prologue): Likewise.
330         * config/avr/avr.c (avr_option_override): Likewise.
331         * config/bfin/bfin.c (bfin_option_override): Likewise.
332         * config/c6x/c6x.c (c6x_option_override): Likewise.
333         * config/cr16/cr16.c (cr16_override_options): Likewise.
334         * config/cris/cris.c (cris_option_override): Likewise.
335         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
336         * config/darwin-c.c (macosx_version_as_macro): Likewise.
337         * config/darwin.c (darwin_override_options): Likewise.
338         * config/frv/frv.c (frv_expand_builtin): Likewise.
339         * config/h8300/h8300.c (h8300_option_override): Likewise.
340         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
341         (ix86_option_override_internal): Likewise.
342         (warn_once_call_ms2sysv_xlogues): Likewise.
343         (ix86_expand_prologue): Likewise.
344         (split_stack_prologue_scratch_regno): Likewise.
345         (ix86_warn_parameter_passing_abi): Likewise.
346         * config/ia64/ia64.c (fix_range): Likewise.
347         * config/m68k/m68k.c (m68k_option_override): Likewise.
348         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
349         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
350         (mips_set_compression_mode): Likewise.
351         * config/mmix/mmix.c (mmix_option_override): Likewise.
352         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
353         * config/msp430/msp430.c (msp430_option_override): Likewise.
354         * config/nds32/nds32.c (nds32_option_override): Likewise.
355         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
356         (nios2_option_override): Likewise.
357         (nios2_expand_custom_builtin): Likewise.
358         * config/nvptx/mkoffload.c (main): Likewise.
359         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
360         * config/pa/pa.c (fix_range): Likewise.
361         (pa_option_override): Likewise.
362         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
363         (riscv_option_override): Likewise.
364         * config/rl78/rl78.c (rl78_option_override): Likewise.
365         * config/rs6000/aix61.h: Likewise.
366         * config/rs6000/aix71.h: Likewise.
367         * config/rs6000/aix72.h: Likewise.
368         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
369         * config/rs6000/freebsd64.h: Likewise.
370         * config/rs6000/linux64.h: Likewise.
371         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
372         (rs6000_expand_zeroop_builtin): Likewise.
373         (rs6000_expand_mtfsb_builtin): Likewise.
374         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
375         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
376         (rs6000_invalid_builtin): Likewise.
377         (rs6000_expand_split_stack_prologue): Likewise.
378         * config/rs6000/rtems.h: Likewise.
379         * config/rx/rx.c (valid_psw_flag): Likewise.
380         (rx_expand_builtin): Likewise.
381         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
382         * config/s390/s390.c (s390_expand_builtin): Likewise.
383         (s390_function_profiler): Likewise.
384         (s390_option_override_internal): Likewise.
385         (s390_option_override): Likewise.
386         * config/sh/sh.c (sh_option_override): Likewise.
387         (sh_builtin_saveregs): Likewise.
388         (sh_fix_range): Likewise.
389         * config/sh/vxworks.h: Likewise.
390         * config/sparc/sparc.c (sparc_option_override): Likewise.
391         * config/spu/spu.c (spu_option_override): Likewise.
392         (fix_range): Likewise.
393         * config/visium/visium.c (visium_option_override): Likewise.
394         (visium_handle_interrupt_attr): Likewise.
395         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
396         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
397         (dbg_cnt_process_opt): Likewise.
398         * dwarf2out.c (output_dwarf_version): Likewise.
399         * except.c (expand_eh_return): Likewise.
400         * gcc.c (defined): Likewise.
401         (driver_handle_option): Likewise.
402         (process_command): Likewise.
403         (compare_files): Likewise.
404         (driver::prepare_infiles): Likewise.
405         (driver::do_spec_on_infiles): Likewise.
406         (driver::maybe_run_linker): Likewise.
407         * omp-offload.c (oacc_parse_default_dims): Likewise.
408         * opts-global.c (handle_common_deferred_options): Likewise.
409         * opts.c (parse_sanitizer_options): Likewise.
410         (common_handle_option): Likewise.
411         (enable_warning_as_error): Likewise.
412         * passes.c (enable_disable_pass): Likewise.
413         * plugin.c (parse_plugin_arg_opt): Likewise.
414         (default_plugin_dir_name): Likewise.
415         * targhooks.c (default_expand_builtin_saveregs): Likewise.
416         (default_pch_valid_p): Likewise.
417         * toplev.c (init_asm_output): Likewise.
418         (process_options): Likewise.
419         (toplev::run_self_tests): Likewise.
420         * tree-cfg.c (verify_gimple_call): Likewise.
421         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
422         (tree_inlinable_function_p): Likewise.
423         * var-tracking.c (vt_find_locations): Likewise.
425 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
427         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
428         only on the else branch.
430 2019-03-11  Martin Liska  <mliska@suse.cz>
432         * gcov.c (output_intermediate_json_line): Print function
433         name of each line.
434         (output_json_intermediate_file): Add new argument.
435         * doc/gcov.texi: Document the change.
437 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
439         PR rtl-optimization/89588
440         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
441         explicit unrolling factor more robust.
443 2019-03-11  Richard Biener  <rguenther@suse.de>
445         PR tree-optimization/89649
446         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
447         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
448         on the prolog and epilog loops.
449         (vect_loop_versioning): Return copy of loop.
450         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
451         on the non-vectorized version of the loop.
453 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
455         PR target/68924
456         * config/i386/sse.md (*vec_extractv2di_0_sse):
457         Add (=r,x) alternative and corresponding splitter.
459 2019-03-10  Martin Jambor  <mjambor@suse.cz>
461         PR tree-optimization/85762
462         PR tree-optimization/87008
463         PR tree-optimization/85459
464         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
465         it points to if there is a type changing MEM_REF.  Adjust all callers.
466         (build_accesses_from_assign): Disable total scalarization if
467         contains_vce_or_bfcref_p returns true through the new parameter, for
468         both rhs and lhs.
470 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
472         PR c/88568
473         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
474         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
476         PR target/79645
477         * common.opt (fdiagnostics-show-labels,
478         fdiagnostics-show-line-numbers, fdiagnostics-format=,
479         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
480         gas-locview-support, ginline-points, ginternal-reset-location-views):
481         Terminate description text with a dot.
482         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
483         * config/mcore/mcore.opt (m210, m340): Likewise.
484         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
485         mnops=): Start description text with a capital letter.
486         * config/arc/arc.opt (msize-level=): Likewise.
487         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
488         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
489         mnewlib): Likewise.
490         * config/ft32/ft32.opt (msim): Likewise.
491         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
492         (mnodiv, mnopm): Terminate description text with a dot.
493         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
494         a colon.
495         * config/i386/i386.opt (prefer_vector_width, instrument_return):
496         Likewise.
497         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
498         text.
500         PR rtl-optimization/89634
501         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
502         are modified in BB_END (e->src) instruction.
504 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
506         PR target/79926
507         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
508         messages more amenable to translation, and improve wording.
510 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
512         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
513         ud- and du-chains between phases.
515 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
517         PR debug/89631
518         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
519         instead of POLY_INT_CST.
521 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
523         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
524         requirement.
526 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
528         PR target/68924
529         PR target/78782
530         PR target/87558
531         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
532         (_mm_storeu_si64): Ditto.
534 2019-03-08  Martin Liska  <mliska@suse.cz>
536         PR target/86952
537         * config/i386/i386.c (ix86_option_override_internal): Disable
538         jump tables when retpolines are used.
540 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
542         PR go/63560
543         * ipa-split.c (execute_split_functions): Do not split
544         'noinline' or 'section' function.
546 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
548         PR target/79846
549         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
550         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
551         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
553         PR ipa/80000
554         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
555         from diagnostics.  Formatting fixes.
557         PR target/85665
558         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
559         warn_odr diagnostics.
561         PR other/80058
562         * lra-constraints.c (process_alt_operands): Avoid one space before
563         " at the end of line and another after " on another line in a string
564         literal.
565         * attribs.c (handle_dll_attribute): Likewise.
566         * config/avr/avr-devices.c (avr_texinfo): Likewise.
568         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
569         warning_at or inform messages in G_() if there is no ?:.
571         PR tree-optimization/89550
572         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
573         returned true.  Formatting fixes.
574         (expand_builtin_strnlen): Formatting fixes.
575         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
576         if warning_at returned true.
577         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
579 2019-03-08  Richard Biener  <rguenther@suse.de>
581         PR middle-end/89578
582         * cfgloop.h (struct loop): Add owned_clique field.
583         * cfgloopmanip.c (copy_loop_info): Copy it.
584         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
585         cliques.
586         * tree-inline.c (copy_loops): Remap owned_clique.
587         * lto-streamer-in.c (input_cfg): Stream owned_clique.
588         * lto-streamer-out.c (output_cfg): Likewise.
590 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
592         PR target/80190
593         * config/darwin.c: Include intl.h.
594         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
595         composing the message out of two separate parts.
597 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
599         PR target/80003
600         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
601         doesn't start with a capital letter and doesn't end with a dot.
602         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
603         with a capital letter.
604         (ix86_mangle_function_version_assembler_name): Likewise.
605         (ix86_generate_version_dispatcher_body): Likewise.
606         (fold_builtin_cpu): Likewise.
607         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
608         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
609         translators, wrap full type name in %qs.
611         PR translation/79999
612         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
613         depend clause with source (or sink) modifier.
614         * omp-expand.c (expand_omp_ordered_sink): Likewise.
616         PR target/89602
617         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
618         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
619         (avx512f_load<mode>_mask): New define_expand.
620         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
621         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
622         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
623         __builtin_ia32_movess_mask): New builtins.
624         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
625         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
626         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
627         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
629 2019-03-07  Martin Jambor  <mjambor@suse.cz>
631         PR lto/87525
632         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
633         for extern inline functions.
635 2019-03-07  Martin Jambor  <mjambor@suse.cz>
637         PR ipa/88235
638         * cgraph.h (cgraph_node): New inline method former_thunk_p.
639         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
640         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
641         have multiple callees.  At the end check if declarations match as
642         opposed to cgraph_nodes.
644 2019-03-07  Martin Liska  <mliska@suse.cz>
646         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
647         which is equivalent to searching for this in clones chain.
648         * symtab.c (symtab_node::verify_base): Similarly compare ASM
649         names with a neighbour and special case first node in a chain.
651 2019-01-25  Jason Merrill  <jason@redhat.com>
653         PR c++/80916 - spurious "static but not defined" warning.
654         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
655         for an internal symbol with DECL_EXTERNAL.
657 2019-04-07  Richard Biener  <rguenther@suse.de>
659         PR middle-end/89618
660         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
661         * tree-inline.c (copy_loops): Simplify.
663 2019-03-07  Martin Liska  <mliska@suse.cz>
665         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
667 2019-03-07  Richard Biener  <rguenther@suse.de>
669         PR tree-optimization/89595
670         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
671         stmt iterator as reference, take boolean output parameter to
672         indicate whether the stmt was removed and thus the iterator
673         already advanced.
674         (dom_opt_dom_walker::before_dom_children): Re-iterate over
675         stmts created by folding.
677 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
679         PR c++/89585
680         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
681         at toplevel.
683 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
685         PR rtl-optimization/88845
686         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
687         LRA.
688         * lra.c (remove_scratches_1): New function.
689         (remove_scratches): Use it.
690         (lra_emit_move): Likewise.
692 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
694         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
695         unaligned_access variable.
696         * config/arc/arc.c (arc_override_options): Set unaligned access
697         default on for HS CPUs.
698         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
700 2019-03-06  Martin Liska  <mliska@suse.cz>
702         PR gcov-profile/89577
703         * doc/gcov.texi: Prefer to use --coverage.
704         * doc/sourcebuild.texi: Likewise.
706 2019-03-02  Jason Merrill  <jason@redhat.com>
708         PR c++/86485 - -Wmaybe-unused with empty class ?:
709         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
711 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
713         PR target/89587
714         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
715         if_multiarch.
717         PR middle-end/89590
718         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
719         exactly one argument.
721 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
722             Richard Sandiford  <richard.sandiford@arm.com>
724         PR tree-optimization/89570
725         * match.pd (vec_cond into cond_op simplification): Don't use
726         get_conditional_internal_fn, use as_internal_fn (cond_op).
728 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
730         PR target/89222
731         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
732         to decide when to split off a non-zero offset from a symbol.
733         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
734         in function symbols.
736 2019-03-05  Richard Biener  <rguenther@suse.de>
738         PR tree-optimization/89594
739         * tree-if-conv.c (pass_if_conversion::execute): Handle
740         case where .LOOP_VECTORIZED_FUNCTION was removed.
742 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
744         PR bootstrap/89560
745         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
746         instead alloca it only when needed with the needed size.
748         PR tree-optimization/89570
749         * match.pd (vec_cond into cond_op simplification): Guard with
750         vectorized_internal_fn_supported_p test and #if GIMPLE.
752         PR tree-optimization/89566
753         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
754         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
755         Punt if get_user_idx_format succeeds, but idx_format argument is
756         not provided or doesn't have pointer type, or if idx_args is above
757         number of provided arguments.
759 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
761         PR tree-optimization/89437
762         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
764 2019-03-04  Richard Biener  <rguenther@suse.de>
766         PR middle-end/89572
767         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
768         safe_dyn_cast.
770 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
772         PR tree-optimization/89487
773         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
774         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
775         (distribute_loop): Don't do runtime alias check if there is non-
776         addressable data reference.
777         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
778         is a register variable.
780 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
782         PR target/89506
783         * config/arm/arm.md (cmpsi2_addneg): Use
784         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
785         If operands[2] is 0 or INT_MIN, force use of subs.
786         (*compare_scc splitter): Use gen_int_mode.
787         (*negscc): Likewise.
788         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
790 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
791             Monk Chiang  <sh.chiang04@gmail.com>
793         * common/config/riscv/riscv-common.c: Include sstream.
794         (riscv_subset_list::to_string): New.
795         (riscv_arch_str): Likewise.
796         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
797         * config.in: Regen.
798         * config/riscv/riscv-protos.h (riscv_arch_str): New.
799         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
800         (riscv_emit_attribute): New.
801         (riscv_file_start): Emit attribute if needed.
802         (riscv_option_override): Init riscv_emit_attribute_p.
803         * config/riscv/riscv.opt (mriscv-attribute): New option.
804         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
805         * configure: Regen.
806         * doc/install.texi: Document --with-riscv-attribute.
807         * doc/invoke.texi: Document -mriscv-attribute.
809         * common/config/riscv/riscv-common.c:
810         Include config/riscv/riscv-protos.h.
811         (INCLUDE_STRING): Defined.
812         (RISCV_DONT_CARE_VERSION): Defined.
813         (riscv_subset_t): Declare.
814         (riscv_subset_t::riscv_subset_t): New.
815         (riscv_subset_list): Declare.
816         (riscv_subset_list::riscv_subset_list): New.
817         (riscv_subset_list::~riscv_subset_list): Likewise.
818         (riscv_subset_list::parsing_subset_version): Likewise.
819         (riscv_subset_list::parse_std_ext): Likewise.
820         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
821         (riscv_subset_list::add): Likewise.
822         (riscv_subset_list::lookup): Likewise.
823         (riscv_subset_list::xlen): Likewise.
824         (riscv_subset_list::parse): Likewise.
825         (riscv_supported_std_ext): Likewise.
826         (current_subset_list): Likewise.
827         (riscv_parse_arch_string): Using riscv_subset_list::parse to
828         parse.
830 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
832         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
833         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
834         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
836 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
838         PR rtl-optimization/85899
839         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
840         fallthru edges leading to the exit block.
842 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
844         PR target/89517
845         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
846         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
848 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
850         PR tree-optimization/89535
851         * tree-vect-stmts.c (vectorizable_call): Record the vector types
852         for each operand.  Calculate the fallback choice for mask operands
853         and pass it to vect_get_vec_def_for_operand.
855 2019-03-01  Richard Biener  <rguenther@suse.de>
857         PR middle-end/89541
858         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
859         get virtual operands.
860         (get_expr_operands): Handle CONST_DECL like other decls.
862 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
864         PR middle-end/89503
865         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
866         on DECL_P and EXPR_P.
868 2019-03-01  Richard Biener  <rguenther@suse.de>
870         PR middle-end/89497
871         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
872         argument, defaulted to zero.
873         * passes.c (execute_function_todo): Pass down SSA update flags
874         to cleanup_tree_cfg.
875         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
876         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
877         form if requested.
878         (cleanup_tree_cfg): Get and pass down SSA update flags.
880 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
882         PR bootstrap/89539
883         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
884         early_lto_debug argument.
886 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
888         PR tree-optimization/89536
889         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
890         only whether bit #0 of the value is 0 instead of the entire value.
892 2019-02-28  Marek Polacek  <polacek@redhat.com>
894         PR c++/87068 - missing diagnostic with fallthrough statement.
895         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
896         at the end of a seq, save its location to walk_stmt_info.
897         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
898         a switch.
900 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
902         PR lto/88585
903         * tree.c (find_atomic_core_type): Move ahead in file.
904         (check_base_type): Correctly compare alignments of atomic types.
906 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
908         PR target/89455
909         * config/i386/i386.c (get_builtin_code_for_version): Identify
910         Westmere from PCLMUL, instead of AES.
912 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
914         PR target/89434
915         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
916         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
917         -UINTVAL (...).
919 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
921         PR target/88530
922         * config/aarch64/aarch64-option-extensions.def: Document it.
923         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
924         if empty hwcaps.
926 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
928         PR c/89520
929         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
930         builtins if they don't have a single scalar floating point argument.
931         Formatting fixes.
933 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
935         PR rtl-optimization/89490
936         * varasm.c (get_block_for_section): Bail out for mergeable sections.
937         (default_use_anchors_for_symbol_p, output_object_block): Assert the
938         block section is not mergeable.
940 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
942         PR target/70341
943         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
944         old define_insn to ...
945         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
946         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
947         Rename old define_insn to ...
948         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
949         (thumb2_casesi_internal_pic): New define_expand.  Rename old
950         define_insn to ...
951         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
952         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
953         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
955 2019-02-27  Richard Biener  <rguenther@suse.de>
957         PR debug/88878
958         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
960 2019-02-27  Richard Biener  <rguenther@suse.de>
962         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
963         building.
965 2019-02-27  Richard Biener  <rguenther@suse.de>
967         PR debug/88878
968         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
969         parameter, prefix section name with .gnu.debuglto_ if true.
970         (dwarf2out_finish): Pass false to output_comdat_type_unit.
971         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
973 2019-02-27  Richard Biener  <rguenther@suse.de>
975         PR debug/89514
976         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
977         rather than on use_debug_types, doing what output_die does.
978         (value_format): Likewise.
980 2019-02-27  Martin Jambor  <mjambor@suse.cz>
981             Martin Sebor  <msebor@redhat.com>
983         * doc/invoke.texi (Warning Options): Reword description of
984         -Wno-absolute-value.
986 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
988         PR tree-optimization/89280
989         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
990         builtin_setjmp_setup_bb): New functions.
991         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
992         When visiting __builtin_setjmp_setup block, queue in special
993         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
994         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
995         from visited after the loop if they don't have any visited successor
996         blocks.
998 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
1000         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
1001         New function.
1002         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
1004 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
1006         PR c++/89507
1007         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
1008         with types other than sizetype/ssizetype.
1010 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
1012         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
1013         (enum sparc_processor_type): ...this.
1014         (enum sparc_code_model_type): New enumeration type.
1015         (enum sparc_memory_model_type): Tweak comments.
1016         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
1017         (mtune): Likewise.
1018         (mcmodel): Use sparc_code_model enumeration and variable.
1019         (sparc_code_model): New enumeration.
1020         (mdebug): Add Undocumented marker.
1021         * config/sparc/sparc.h (enum cmodel): Delete.
1022         (sparc_cmodel): Likewise.
1023         (TARGET_CM_MEDLOW): Adjust to above renaming.
1024         (TARGET_CM_MEDMID): Likewise.
1025         (TARGET_CM_MEDANY): Likewise.
1026         (TARGET_CM_EMBMEDANY): Likewise.
1027         * config/sparc/sparc.c (sparc_cmodel): Delete.
1028         (sparc_option_override): Remove string/value mapping support for the
1029         code model.  Move code and memory model support to after the handling
1030         of target flags.  Do private machine setup last.
1031         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
1032         (sparc_legitimize_reload_address): Likewise.
1033         (sparc_output_mi_thunk): Likewise.
1034         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
1036 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
1038         PR tree-optimization/89500
1039         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
1040         (handle_builtin_strlen): Remove noncst_bound variable.  Always
1041         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
1042         cst if the first cst bytes starting at x are known to be non-zero,
1043         even if the string is not zero terminated.  Don't try to modify
1044         *si for strnlen.  Update strlen_to_stridx only for strlen or if
1045         we can prove strnlen returns the same value as strlen would.
1047 2019-02-26  Martin Liska  <mliska@suse.cz>
1049         * alloc-pool.h (struct pool_usage): Remove extra
1050         print_dash_line.
1051         * bitmap.h (struct bitmap_usage): Likewise.
1052         * ggc-common.c (struct ggc_usage): Likewise.
1053         * mem-stats.h (struct mem_usage): Likewise.
1054         (mem_alloc_description::dump): Print dash lines
1055         here and repeat header at the end of a table report.
1056         It's then more readable.
1057         * tree-phinodes.c (phinodes_print_statistics): Make
1058         horizontal alignment.
1059         * tree-ssanames.c (ssanames_print_statistics): Likewise.
1060         * vec.c (struct vec_usage): Remove extra print_dash_line.
1061         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
1063 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1065         * doc/extend.texi (__builtin_object_size):
1066         Use @pxref instead of @xref inside parenthesis.
1067         (__builtin_has_attribute): Add missing comma after @xref.
1068         (__builtin_object_size): Ditto.
1069         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
1070         * fortran/invoke.texi (-ffpe-trap): Use @var for every item
1071         in the list.
1073 2019-02-26  Jeff Law  <law@redhat.com>
1075         PR rtl-optimization/87761
1076         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
1077         detect obviously dead insns and delete them.
1079 2019-02-26  Richard Biener  <rguenther@suse.de>
1081         PR tree-optimization/89505
1082         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
1083         to handle restrict pointed-to vars with multiple subvars
1084         correctly.
1086 2019-02-26  Richard Biener  <rguenther@suse.de>
1088         PR tree-optimization/89489
1089         * tree-parloops.c (create_loop_fn): Copy over last_clique.
1091 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
1093         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
1094         and move around comment.
1095         <BIT_AND_EXPR>: Likewise.
1096         <BIT_NOT_EXPR>: Add specific handling for boolean types.
1098 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
1100         PR target/89474
1101         * config/i386/i386.c (remove_partial_avx_dependency): Call
1102         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
1103         after changing possibly many instructions to use that pseudo.  Fix up
1104         insertion of v4sf_const0 setter at the start of bb.
1106 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
1108         PR c/80409
1109         * doc/extend.texi (Variadic Pointer Args): New section.
1111 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
1112             Martin Sebor  <msebor@gmail.com>
1114         * common.opt (Wattribute-alias): Likewise.
1115         * doc/invoke.texi (Option Summary): List general form of
1116         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
1117         (-Wmissing-attributes): Invert entry, rewrite and correct default.
1118         Add cross-references.
1119         (-Wattribute-alias): Rewrite and correct default.  Mention
1120         considered attributes (same as for -Wmissing-attributes).
1122 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
1124         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
1125         (_mm_cvtpd_ps): Likewise.
1126         (_mm_cvttpd_epi32): Likewise.
1128         PR target/89338
1129         * config/rs6000/xmmintrin.h (_mm_cvtss_f32):  Fix type mismatch.
1130         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
1132         PR target/89339
1133         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
1135 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
1137         PR target/88530
1138         * common/config/aarch64/aarch64-common.c
1139         (struct aarch64_option_extension): Add is_synthetic.
1140         (all_extensions): Use it.
1141         (TARGET_OPTION_INIT_STRUCT): Define hook.
1142         (struct gcc_targetm_common): Moved to end.
1143         (all_extensions_by_on): New.
1144         (opt_ext_cmp, typedef opt_ext): New.
1145         (aarch64_option_init_struct): New.
1146         (aarch64_contains_opt): New.
1147         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
1148         * config/aarch64/aarch64-option-extensions.def
1149         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
1150         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
1151         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
1152         Set is_synthetic to false.
1153         (crypto): Set is_synthetic to true.
1154         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
1155         SYNTHETIC.
1157 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
1159         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1160         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
1161         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1162         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
1163         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
1164         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
1165         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
1166         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
1167         Rename ...
1168         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
1169         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1170         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
1171         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
1172         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
1173         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
1174         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
1175         vfmlsl_laneq_high_f16): ... To this.
1176         * config/arm/neon.md: Update comments.
1178 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
1180         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
1181         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
1182         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
1183         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
1184         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
1185         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
1186         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
1187         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
1188         Rename ...
1189         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
1190         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
1191         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
1192         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
1193         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
1194         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
1195         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
1196         vfmlslq_laneq_high_f16): ... To this.
1198 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
1200         PR rtl-optimization/86096
1201         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
1202         comparing mw_order values.
1204 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
1206         PR target/89434
1207         * config/arm/arm.md (*subsi3_carryin_const): Use
1208         arm_neg_immediate_operand predicate instead of
1209         arm_not_immediate_operand, "L" constraint instead of "K" and
1210         print it using %n2 instead of %B2.
1211         (*subsi3_carryin_const0): New define_insn.
1212         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
1213         instead of arm_not_operand and "I" constraint instead of "K" and
1214         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
1215         another match_operand and in the condition check that it is negation
1216         of operands[2].
1217         (*subsi3_carryin_compare_const0): New define_ins.
1218         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
1219         *subsi3_carryin_const.
1220         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
1221         split into *subsi3_carryin_compare_const0 if the highpart is zero.
1223         PR target/89438
1224         * config/arm.vfp.md (*negdf2_vfp): Use
1225         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
1226         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
1228 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
1230         PR rtl-optimization/89445
1231         * simplify-rtx.c (simplify_ternary_operation): Don't use
1232         simplify_merge_mask on operands that may trap.
1233         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
1234         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
1235         second operand is CONST_VECTOR, check if any element could be zero.
1236         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
1237         their operands can trap.
1239 2019-02-23  Martin Sebor  <msebor@redhat.com>
1241         * gimple-ssa-sprintf.c (target_strtol): Rename...
1242         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
1243         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
1244         check for range error.
1246 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
1248         PR driver/69471
1249         * opts-common.c (prune_options): Also prune joined switches
1250         with Negative and RejectNegative.
1251         * config/i386/i386.opt (march=): Add Negative(march=).
1252         (mtune=): Add Negative(mtune=).
1253         * doc/options.texi: Document Negative used together with Joined
1254         and RejectNegative.
1256 2019-02-22  Martin Sebor  <msebor@redhat.com>
1258         * doc/extend.texi (Other Builtins): Add
1259         __builtin_is_constant_evaluated.
1261 2019-02-22  Richard Biener  <rguenther@suse.de>
1263         PR tree-optimization/87609
1264         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
1266 2019-02-22  Jeff Law  <law@redhat.com>
1268         PR rtl-optimization/87761
1269         * config/mips/mips.md: Add new combiner pattern to recognize
1270         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
1272 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
1274         PR target/89324
1275         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
1276         destination register in peepholes generating patterns for ADDS/SUBS.
1277         (add<mode>3_compare0,
1278         *addsi3_compare0_uxtw, add<mode>3_compareC,
1279         add<mode>3_compareV_imm, add<mode>3_compareV,
1280         *adds_<optab><ALLX:mode>_<GPI:mode>,
1281         *subs_<optab><ALLX:mode>_<GPI:mode>,
1282         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
1283         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
1284         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
1285         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
1286         sub<mode>3_compare1): Allow stack pointer for source register.
1287         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
1289 2019-02-22  Martin Sebor  <msebor@redhat.com>
1291         PR tree-optimization/88993
1292         PR tree-optimization/88853
1293         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
1294         New helper.
1295         (sprintf_dom_walker::call_info::is_string_func): New helper.
1296         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
1297         for formatted string functions.
1298         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
1300 2019-02-22  Martin Sebor  <msebor@redhat.com>
1302         PR c/89425
1303         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
1304         unreachable subexpressions.
1306 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
1307             Hongtao Liu  <hongtao.liu@intel.com>
1308             Sunil K Pandey  <sunil.k.pandey@intel.com>
1310         PR target/87007
1311         * config/i386/i386-passes.def: Add
1312         pass_remove_partial_avx_dependency.
1313         * config/i386/i386-protos.h
1314         (make_pass_remove_partial_avx_dependency): New.
1315         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
1316         New function.
1317         (pass_data_remove_partial_avx_dependency): New.
1318         (pass_remove_partial_avx_dependency): Likewise.
1319         (make_pass_remove_partial_avx_dependency): Likewise.
1320         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
1321         (*extendsfdf2): Add avx_partial_xmm_update.
1322         (truncdfsf2): Likewise.
1323         (*float<SWI48:mode><MODEF:mode>2): Likewise.
1324         (SF/DF conversion splitters): Disabled for TARGET_AVX.
1326 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
1328         PR middle-end/85598
1329         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
1330         analysis for pass.
1332 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
1334         PR target/89444
1335         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
1336         (PTA_SKYLAKE): Add PTA_AES.
1337         (PTA_GOLDMONT): Likewise.
1339 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
1341         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
1342         instruction if enabled.
1343         (aarch64_override_options): Remove reference to return address key.
1345 2019-02-22  Richard Biener  <rguenther@suse.de>
1347         PR tree-optimization/89440
1348         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
1349         not necessary assert.
1351 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
1353         PR fortran/72741
1354         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
1355         (oacc_replace_fn_attrib_attr): ... this new function.
1356         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
1357         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
1359 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1361         * config/arm/arm-cpus.in (ares): Rename to...
1362         (neoverse-n1): ... This.  Add ares as alias.
1363         * config/arm/arm-tables.opt: Regenerate.
1364         * config/arm/arm-tune.md: Likewise.
1365         * doc/invoke.txt (ARM Options): Document neoverse-n1.
1367 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1369         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
1370         * config/aarch64/aarch64-tune.md: Regenerate.
1371         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
1373 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1375         * config/aarch64/aarch64.c (ares_tunings): Rename to...
1376         (neoversen1_tunings): ... This.
1377         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
1378         (neoverse-n1): New CPU.
1379         * config/aarch64/aarch64-tune.md: Regenerate.
1380         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
1382 2019-02-22  Richard Biener  <rguenther@suse.de>
1384         PR middle-end/87609
1385         * cfghooks.h (dependence_hash): New typedef.
1386         (struct copy_bb_data): New type.
1387         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
1388         (duplicate_block): Likewise.
1389         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
1390         (copy_bbs): Create and pass down copy_bb_data.
1391         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
1392         (rtl_duplicate_bb): Likewise.
1393         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
1394         remap dependence info.
1396 2019-02-22  Richard Biener  <rguenther@suse.de>
1398         PR tree-optimization/87609
1399         * tree-core.h (tree_base): Document special clique values.
1400         * tree-inline.c (remap_dependence_clique): Do not use the
1401         special clique value of one.
1402         (maybe_set_dependence_info): Use clique one.
1403         (clear_dependence_clique): New callback.
1404         (compute_dependence_clique): Clear clique one from all refs
1405         before assigning it (again).
1407 2019-02-21  Martin Sebor  <msebor@redhat.com>
1409         * doc/extend.texi (__clear_cache): Correct signature.
1411 2019-02-21  Ian Lance Taylor  <iant@golang.org>
1413         PR go/89170
1414         * varasm.c (decode_addr_const): Call lookup_constant_def rather
1415         than output_constant_def.
1416         (add_constant_to_table): New static function.
1417         (output_constant_def): Call add_constant_to_table.
1418         (tree_output_constant_def): Likewise.
1420 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
1422         PR c++/89285
1423         * builtins.c (fold_builtin_arith_overflow): If first two args are
1424         INTEGER_CSTs, set intres and ovfres to constants rather than calls
1425         to ifn.
1427 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
1429         PR target/87412
1430         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
1431         error for -mindirect-branch/-mfunction-return with incompatible
1432         -fcf-protection.
1434 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
1436         PR bootstrap/88714
1437         * constraints.md (q): Remove.
1438         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
1439         instead of q.
1441 2019-02-21  Martin Jambor  <mjambor@suse.cz>
1443         PR hsa/89302
1444         * omp-general.c (omp_extract_for_data): Removed a duplicate call
1445         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
1446         (omp_adjust_for_condition): ...here.  Added necessary parameters.
1447         * omp-general.h (omp_adjust_for_condition): Updated declaration.
1448         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
1449         proper values to new parameters of omp_adjust_for_condition.
1451 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
1453         PR middle-end/89412
1454         * expr.c (expand_assignment): If result is a MEM, use change_address
1455         instead of simplify_gen_subreg.
1457 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
1458             David Malcolm  <dmalcolm@redhat.com>
1460         PR middle-end/89091
1461         * fold-const.c (decode_field_reference): Return NULL_TREE if
1462         lang_hooks.types.type_for_size returns NULL.  Check it before
1463         overwriting *exp_.  Use return NULL_TREE instead of return 0.
1465 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
1467         PR middle-end/88074
1468         PR middle-end/89415
1469         * toplev.c (do_compile): Double the emin/emax exponents to workaround
1470         buggy mpc_norm.
1472 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1474         PR target/89397
1475         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
1476         TARGET_SSE in addition to TARGET_SSE_MATH.
1478         (ix86_excess_precision): Ditto.
1479         (ix86_float_exceptions_rounding_supported_p): Ditto.
1480         (use_rsqrt_p): Ditto.
1481         * config/i386/sse.md (rsqrt<mode>2): Ditto.
1483 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
1485         PR c/89410
1486         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
1487         linenum_arith_t when determining if two adjacent line spans are
1488         close enough to merge.
1489         (diagnostic_show_locus): Use linenum_arith_t when iterating over
1490         lines within each line_span.
1492 2019-02-20 Andre Vieira  <andre.simoesdiasvieira@arm.com>
1494         PR target/86487
1495         * lra-constraints.c(uses_hard_regs_p): Fix handling of
1496         paradoxical SUBREGS.
1498 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
1500         PR target/88100
1501         * gcc/config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
1502         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
1503         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
1504         range checking it.
1506 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
1508         * config/gcn/gcn.c (print_operand): Fix typo.
1510 2019-02-19  Richard Biener  <rguenther@suse.de>
1512         PR middle-end/88074
1513         * toplev.c (do_compile): Initialize mpfr's exponent range
1514         based on available float modes.
1516 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
1518         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
1519         as long as the epilogue isn't completed.
1521 2019-02-18  Martin Sebor  <msebor@redhat.com>
1523         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
1524         __has_cpp_attribute, and __has_include.
1526 2019-02-18  Martin Sebor  <msebor@redhat.com>
1528         * doc/invoke.texi (-Wreturn-type): Correct and expand.
1530 2019-02-18  Martin Sebor  <msebor@redhat.com>
1532         PR middle-end/89294
1533         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
1534         expression.
1535         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
1537 2019-02-18  Richard Biener  <rguenther@suse.de>
1539         PR tree-optimization/89296
1540         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
1541         of no-warning flag to cases that might emit the bogus warning.
1543 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
1545         PR bootstrap/88714
1546         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
1547         "q" constraint.
1548         * config/arm/vfp.md (*movdi_vfp): Likewise.
1549         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
1550         "q" constraint for operands[0].
1552         PR target/89369
1553         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
1554         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
1555         pattern in a temporary buffer.
1556         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
1557         than 64-operands[2].
1559         PR target/89361
1560         * config/s390/s390.c (s390_indirect_branch_attrvalue,
1561         s390_indirect_branch_settings): Define unconditionally.
1562         (s390_set_current_function): Likewise, but guard the whole body except
1563         the s390_indirect_branch_settings call with
1564         #if S390_USE_TARGET_ATTRIBUTE.
1565         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
1567         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
1568         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
1569         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
1570         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
1571         HOST_WIDE_INT_1U instead of 1ULL.
1572         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
1573         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
1574         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
1575         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
1576         instead of 1UL.
1577         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
1578         instead of 1ul.
1580 2019-02-18  Martin Jambor  <mjambor@suse.cz>
1582         PR tree-optimization/89209
1583         * tree-sra.c (create_access_replacement): New optional parameter
1584         reg_tree.  Use it as a type if non-NULL and access type is not of
1585         a register type.
1586         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
1587         to create_access_replacement.
1588         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
1589         Check lacc is non-NULL before attempting to re-create it on the RHS.
1591 2019-02-18  Martin Liska  <mliska@suse.cz>
1593         PR ipa/89306
1594         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
1595         by default.
1596         (symbol_table::free_edge): Recycle m_summary_id.
1597         * cgraph.h (get_summary_id): New.
1598         (symbol_table::release_symbol): Set m_summary_id to -1
1599         by default.
1600         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
1601         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
1602         function_summary to fast_function_summary.
1603         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
1604         * ipa-pure-const.c (class funct_state_summary_t):
1605         Switch from function_summary to fast_function_summary.
1606         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
1607         (class ipa_ref_opt_summary_t): Switch from function_summary
1608         to fast_function_summary.
1609         * symbol-summary.h (class function_summary_base): New class
1610         that is created from base of former function_summary.
1611         (function_summary_base::unregister_hooks): New.
1612         (class function_summary): Inherit from function_summary_base.
1613         (class call_summary_base): New class
1614         that is created from base of former call_summary.
1615         (class call_summary): Inherit from call_summary_base.
1616         (struct is_same): New.
1617         (class fast_function_summary): New summary class.
1618         (class fast_call_summary): New summary class.
1619         * vec.h (vec_safe_grow_cleared): New function.
1621 2019-02-18  Martin Liska  <mliska@suse.cz>
1623         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
1624         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
1625         * doc/tm.texi: Document new target hook.
1626         * doc/tm.texi.in: Likewise.
1627         * target.def: Add new target macro.
1628         * gcc.c (find_fortran_preinclude_file): Do not search multilib
1629         suffixes.
1631 2019-02-17  Alan Modra  <amodra@gmail.com>
1633         PR target/89271
1634         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
1635         output reg on add insn.
1636         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
1638 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
1640         PR target/89372
1641         * config/i386/sse.md (ssedoublemode): Remove V4HI.
1642         (PMULHRSW): Likewise.
1643         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
1644         TARGET_AVX2.
1645         (ssse3_pmulhrswv4hi3): New expander.
1647 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
1649         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
1650         MMX.  Add isa attribute.
1652 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
1654         PR rtl-optimization/66152
1655         * builtins.h (c_readstr): Declare.
1656         * builtins.c (c_readstr): Remove forward declaration.  Add
1657         null_terminated_p argument, if false, read all bytes from the
1658         string instead of stopping after '\0'.
1659         * expr.c (string_cst_read_str): New function.
1660         (store_expr): Use string_cst_read_str instead of
1661         builtin_strncpy_read_str.  Try to store by pieces the whole
1662         exp_len first, and only if that fails, split it up into
1663         store by pieces followed by clear_storage.  Formatting fix.
1665         * config/i386/i386.md (*movqi_internal): Remove static from
1666         buf variable.  Use output_asm_insn (buf, operands); return "";
1667         instead of return buf;.
1668         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
1669         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
1670         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
1672 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
1674         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
1675         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
1676         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
1677         (CC1_SPEC): Likewise.
1678         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
1680 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
1682         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
1683         the base address on 64-bit strict-alignment platforms.
1685 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
1687         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
1689 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1691         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
1693 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
1695         PR rtl-optimization/88308
1696         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
1697         on copied instruction.
1699 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
1701         * final.c (insn_current_reference_address): Replace test on JUMP_P
1702         with test on jump_to_label_p.
1703         * config/visium/visium-passes.def: New file.
1704         * config/visium/t-visium (PASSES_EXTRA): Define.
1705         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
1706         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
1707         (TRAMPOLINE_ALIGNMENT): Define.
1708         * config/visium/visium.c (visium_option_override): Do not register
1709         the machine-specific reorg pass here.
1710         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
1711         for the GR6.
1712         (output_branch): Adjust threshold for long branch instruction.
1713         * config/visium/visium.md (cpu): Move around.
1714         (length): Adjust for the GR6.
1716 2019-02-15  Richard Biener  <rguenther@suse.de>
1717             Jakub Jelinek  <jakub@redhat.com>
1719         PR tree-optimization/89278
1720         * tree-loop-distribution.c: Include tree-eh.h.
1721         (generate_memset_builtin, generate_memcpy_builtin): Call
1722         rewrite_to_non_trapping_overflow on builtin->size before passing it
1723         to force_gimple_operand_gsi.
1725 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
1727         PR other/89342
1728         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
1729         optimize_debug.
1730         * opth-gen.awk: Likewise.
1732 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1734         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
1735         Enable MMX, SSE and SSE2 by default.
1736         * config/i386/i386.c (ix86_option_override_internal): Do not
1737         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
1739 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
1741         PR rtl-optimization/89354
1742         * combine.c (make_extraction): Punt if extraction_mode is narrower
1743         than len bits.
1745 2019-02-14  Maya Rashish  <coypu@sdf.org>
1747         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
1748         * config/netbsd-d.c: New file.
1749         * config/t-netbsd: Add netbsd-d.o
1751 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
1753         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
1754         affects_type_identity to true for aarch64_vector_pcs.
1755         (aarch64_comp_type_attributes): New function.
1756         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
1758 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
1760         PR target/88850
1761         * config/arm/iterators.md (ANY64): Add V4HF.
1763 2019-02-14  Martin Liska  <mliska@suse.cz>
1765         PR rtl-optimization/89242
1766         * dce.c (delete_unmarked_insns): Call free_dominance_info we
1767         process a transformation.
1769 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
1771         PR tree-optimization/89314
1772         * fold-const.c (fold_binary_loc): Cast strlen argument to
1773         const char * before dereferencing it.  Formatting fixes.
1775         PR middle-end/89284
1776         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
1778 2019-02-13  Ian Lance Taylor  <iant@golang.org>
1780         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
1781         and set current index for other optimizations.
1783 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
1785         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
1786         nonimmediate_operand as operand 2 predicate.
1787         (vec_set<VF2_512_256:mode>_0): Ditto.
1788         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
1789         (*vec_concatv2si): Remove alternative 2.
1790         (*vec_concatv4si_0): Use vm constraint for alternative 0.
1791         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
1792         (vec_concatv2di): Split alternatives 4,5,6 to ...
1793         (*vec_concatv2di_0) ... new pattern.
1795 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
1797         PR target/89190
1798         * config/arm/arm.c (ldm_stm_operation_p) Set
1799         addr_reg_in_reglist correctly for first register.
1800         (load_multiple_sequence): Remove dead base check.
1801         (gen_ldm_seq): Correctly set write_back for Thumb-1.
1803 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
1805         PR target/88847
1806         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
1807         Expose as @aarch64_pred_mov.
1808         * config/aarch64/aarch64.c (aarch64_classify_address):
1809         Use expand_insn which legitimizes operands.
1811 2019-02-13  Martin Liska  <mliska@suse.cz>
1813         * builtins.h (expand_builtin_with_bounds): Remove declaration.
1814         * calls.c (struct arg_data): Remove special_slot, pointer_arg
1815         and pointer_offset fields.
1816         (initialize_argument_information): Remove usage of dead
1817         fields.
1818         * cgraph.h (struct cgraph_thunk_info): Remove
1819         add_pointer_bounds_args.
1820         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
1821         fields.
1822         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
1823         fields.
1824         * config/i386/i386.c (ix86_function_arg_advance): Remove
1825         unrelated comment.
1826         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
1827         (def_builtin):  Remove usage of dead
1828         fields.
1829         (ix86_add_new_builtins): Likewise.
1830         * ipa-fnsummary.c (compute_fn_summary): Likewise.
1831         * ipa-icf.c (sem_function::equals_wpa): Likewise.
1832         (sem_function::init): Likewise.
1833         (sem_variable::merge): Likewise.
1834         * ipa-visibility.c (function_and_variable_visibility): Likewise.
1835         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
1836         * lto-cgraph.c (lto_output_node): Likewise.
1837         (lto_output_varpool_node): Likewise.
1838         (input_node): Likewise.
1839         (input_varpool_node): Likewise.
1840         * lto-streamer-out.c (lto_output): Likewise.
1841         * tree-inline.c (expand_call_inline): Remove usage of
1842         assign_stmts.
1843         * tree-inline.h (struct copy_body_data): Likewise.
1844         * varpool.c (varpool_node::dump): Likewise.
1846 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
1848         PR middle-end/89303
1849         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
1850         into pt->vars_contains_escaped_heap instead of setting
1851         pt->vars_contains_escaped_heap to it.
1853         PR middle-end/89281
1854         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
1855         INTVAL (size), compare it to GET_MODE_MASK instead of
1856         1 << GET_MODE_BITSIZE.
1858         PR target/89290
1859         * config/i386/predicates.md (x86_64_immediate_operand): Allow
1860         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
1861         -mcmodel=large.
1863 2019-02-13  Martin Liska  <mliska@suse.cz>
1865         PR lto/88858
1866         * cfgrtl.c (remove_barriers_from_footer): New function.
1867         (try_redirect_by_replacing_jump): Use it.
1868         (cfg_layout_redirect_edge_and_branch): Likewise.
1870 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
1872         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
1873         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
1874         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
1875         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
1876         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
1877         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
1878         New BU_CRYPTO_2.
1879         * config/rs6000/rs6000.c (builtin_function_type)
1880         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
1881         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
1882         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
1883         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
1884         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
1886 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
1888         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
1889         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
1891 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
1893         PR target/89229
1894         * config/i386/i386.md (*movoi_internal_avx): Revert revision
1895         268678 and revision 268657.
1896         (*movti_internal): Likewise.
1898 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
1900         PR target/89233
1901         * config/s390/s390.c (s390_decompose_address): Update comment.
1902         (s390_check_qrst_address): Reject invalid address forms after
1903         LRA.
1905 2019-02-12  Martin Liska  <mliska@suse.cz>
1907         PR lto/88876
1908         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
1909         we need default values of funct_state for a function that
1910         is not optimized.
1912 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
1914         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
1915         the object to pick the size of stores on strict-alignment platforms.
1917         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
1918         (*movdi_insn_sp32): Likewise.
1919         (*movdi_insn_sp64): Likewise.
1921 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
1923         PR lto/88677
1924         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
1925         types that needs constructiong.
1926         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
1928 2019-02-12  Richard Biener  <rguenther@suse.de>
1930         PR tree-optimization/89253
1931         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
1932         duplicate the loop.
1934 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
1936         PR lto/88147
1937         * input.c (selftest::test_line_offset_overflow): New selftest.
1938         (selftest::input_c_tests): Call it.
1940 2019-02-11  Martin Sebor  <msebor@redhat.com>
1942         PR tree-optimization/88771
1943         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
1944         when -Wstringop-overflow is set.
1945         (builtin_memref::builtin_memref): Adjust excessive upper bound
1946         only when lower bound is not excessive.
1947         (maybe_diag_overlap): Detect and diagnose excessive bounds via
1948         -Wstringop-ovefflow.
1949         (maybe_diag_offset_bounds): Rename...
1950         (maybe_diag_access_bounds): ...to this.
1951         (check_bounds_or_overlap): Adjust for name change above.
1953 2019-02-11  Martin Sebor  <msebor@redhat.com>
1955         PR c++/87996
1956         * builtins.c (max_object_size): Move from here...
1957         * builtins.h (max_object_size): ...and here...
1958         * tree.c (max_object_size): ...to here...
1959         * tree.h (max_object_size): ...and here.
1961 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
1963         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
1964         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
1965         for correct semantics.
1967 2019-02-11  Alan Modra  <amodra@gmail.com>
1969         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
1970         -mlongcall and -mpltseq.
1971         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
1972         (RS/6000 and PowerPC Options <-mpltseq>): Document.
1973         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
1974         * config/rs6000/sysv4.opt (mpltseq): New option.
1975         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
1976         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
1977         support is lacking.  Don't allow -mpltseq with -mbss-plt.
1978         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
1979         -mpltseq given for ELFv1.
1980         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
1981         Only use UNSPEC_PLTSEQ for inline PLT calls.
1982         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
1983         use UNSPEC_PLTSEQ for inline PLT calls.
1984         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
1985         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
1986         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
1987         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
1988         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
1989         (pltseq_mtctr_<mode>): Likewise.
1991 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1993         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
1994         Solaris ld.
1995         * configure: Regenerate.
1997 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
1999         PR bootstrap/88714
2000         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
2001         instead of r.
2003 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
2005         * function.c (assign_parm_setup_block): Use the stored
2006         size, not the passed size, when allocating stack-space,
2007         also for a parameter with alignment larger than
2008         MAX_SUPPORTED_STACK_ALIGNMENT.
2010 2019-02-11  Martin Liska  <mliska@suse.cz>
2012         PR ipa/89009
2013         * ipa-cp.c (build_toporder_info): Remove usage of a param.
2014         * ipa-inline.c (inline_small_functions): Likewise.
2015         * ipa-pure-const.c (propagate_pure_const): Likewise.
2016         (propagate_nothrow): Likewise.
2017         * ipa-reference.c (propagate): Likewise.
2018         * ipa-utils.c (struct searchc_env): Remove unused field.
2019         (searchc): Always search across AVAIL_INTERPOSABLE.
2020         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
2021         the only called IPA pure const can properly not propagate
2022         across interposable boundary.
2023         * ipa-utils.h (ipa_reduced_postorder): Remove param.
2025 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
2027         * config/nds32/nds32.md (call_internal, call_value_internal,
2028         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
2030 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
2032         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
2033         typo.
2035 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
2037         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
2038         in comments
2040 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
2042         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
2044 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
2046         PR tree-optimization/89268
2047         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
2048         if preds is non-NULL.
2050 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2052         PR lto/89272
2053         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
2054         polymorphic types.
2056 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
2058         * config/nds32/nds32.md (trap): New pattern.
2060 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
2062         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
2063         dwarf span.
2065 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
2067         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
2068         to split POST_INC.
2070 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2072         * ipa-visibility.c (localize_node): Also do not localize
2073         LDPR_PREVAILING_DEF_IRONLY_EXP.
2075 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2077         PR lto/87957
2078         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
2079         instead of type_with_linkage.
2081 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
2083         PR ipa/88755
2084         * params.def (uninlined-function-insns, uninlined-function-time,
2085         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
2086         bound so we don't get overflows.
2088 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
2090         * config/rs6000/rs6000-string.c (expand_compare_loop,
2091         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
2092         memcmp/strncmp.
2094 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
2096         PR middle-end/89246
2097         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2098         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
2099         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
2101 2019-02-09  Alan Modra  <amodra@gmail.com>
2103         PR target/88343
2104         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
2105         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
2106         setup.
2108 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
2110         PR middle-end/88560
2111         * lra-constraints.c (process_alt_operands): Don't increase reject
2112         for memory when offset memory is required.
2114 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
2116         * config/s390/vector.md: Implement vector copysign.
2118 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
2120         * expr.c (expand_constructor): Correct indentations.
2122 2019-02-08  Richard Biener  <rguenther@suse.de>
2124         PR tree-optimization/89247
2125         * tree-if-conv.c: Include tree-cfgcleanup.h.
2126         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
2127         (tree_if_conversion): Pass through predicate vector.
2128         (pass_if_conversion::execute): Do CFG cleanup and SSA update
2129         inline, see if any if-converted loops we refrece in
2130         LOOP_VECTORIZED calls vanished and fixup.
2131         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
2133 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
2135         * config/s390/constraints.md (jdd): New constraint.
2137 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
2139         PR target/89229
2140         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
2141         upper 16 vector registers without TARGET_AVX512VL.
2142         (*movti_internal): Likewise.
2144 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
2146         PR rtl-optimization/89234
2147         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
2148         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
2149         (copy_reg_eh_region_note_backward): Likewise.
2151 2019-02-08  Richard Biener  <rguenther@suse.de>
2153         PR middle-end/89223
2154         * tree-data-ref.c (initialize_matrix_A): Fail if constant
2155         doesn't fit in HWI.
2156         (analyze_subscript_affine_affine): Handle failure from
2157         initialize_matrix_A.
2159 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
2161         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
2162         cfun everywhere.
2164 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
2166         PR tree-optimization/86637
2167         PR tree-optimization/89235
2168         * tree-vect-loop.c (optimize_mask_stores): Add an
2169         auto_purge_vect_location sentinel to ensure that vect_location is
2170         purged on exit.
2171         * tree-vectorizer.c
2172         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
2173         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
2174         to ensure that vect_location is purged on exit.
2175         (pass_slp_vectorize::execute): Likewise, replacing the manual
2176         reset.
2177         * tree-vectorizer.h (class auto_purge_vect_location): New class.
2179 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2181         * config/aarch64/iterators.md (max_opp): New code_attr.
2182         (USMAX): New code iterator.
2183         * config/aarch64/predicates.md (aarch64_smin): New predicate.
2184         (aarch64_smax): Likewise.
2185         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
2186         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
2187         MINUS (MAX MIN).
2189 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
2191         PR target/89229
2192         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
2193         for TARGET_AVX512VL.
2194         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
2196 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
2198         * config/s390/s390-builtin-types.def: Add new types.
2199         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
2200         (s390_vec_xlw4): Make the memory operand into a const pointer.
2201         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
2202         float.
2203         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
2204         a new vector type with the alignment of the scalar memory operand.
2206 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
2207             Jakub Jelinek  <jakub@redhat.com>
2209         PR bootstrap/88714
2210         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
2211         arm_count_ldrdstrd_insns): New declarations.
2212         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
2213         MINUS.
2214         (valid_operands_ldrd_strd): New function.
2215         (arm_count_ldrdstrd_insns): New function.
2216         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
2217         sets instead of single DImode set and define new insns to match this.
2219 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
2221         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
2222         Make it a C initializer.
2224 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
2226         PR/target 88850
2227         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
2229 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2231         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
2232         Use neon_dot<q> for type.
2233         (neon_<sup>dot_lane<vsi2qi>): Likewise.
2235 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2237         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
2238         Use neon_dot<q> for type.
2239         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
2240         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
2242 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
2244         PR rtl-optimization/89225
2245         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
2246         sizes check.
2248 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
2250         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
2251         after restoring registers saved to allocate the frame on Windows.
2253 2019-02-06  Richard Biener  <rguenther@suse.de>
2255         PR tree-optimization/89182
2256         * graphite.h (cached_scalar_evolution_in_region): Declare.
2257         * graphite.c (struct seir_cache_key): New.
2258         (struct sese_scev_hash): Likewise.
2259         (seir_cache): New global.
2260         (cached_scalar_evolution_in_region): New function.
2261         (graphite_transform_loops): Allocate and release seir_cache.
2262         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
2263         cached_scalar_evolution_in_region.
2264         * graphite-scop-detection.c (scop_detection::can_represent_loop):
2265         Simplify.
2266         (scop_detection::graphite_can_represent_expr: Use
2267         cached_scalar_evolution_in_region.
2268         (scop_detection::stmt_simple_for_scop_p): Likewise.
2269         (find_params_in_bb): Likewise.
2270         (gather_bbs::before_dom_children): Likewise.
2271         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
2272         (add_loop_constraints): Likewise.
2274 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
2276         PR middle-end/89210
2277         * fold-const-call.c (fold_const_vec_convert): Pass true as last
2278         operand to new_unary_operation only if both element types are integral
2279         and it isn't a widening conversion.  Return NULL_TREE if
2280         new_unary_operation failed.
2282 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
2284         PR target/88856
2285         * config/s390/s390.md: Remove load and test FP splitter.
2287 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
2289         PR target/89112
2290         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
2291         expand_compare_loop, expand_block_compare_gpr,
2292         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
2293         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
2294         #include "profile-count.h" and "predict.h" for types and functions
2295         needed to work with REG_BR_PROB notes.
2297 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
2299         PR target/89112
2300         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
2301         for the long branch case.
2303 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
2305         PR target/89188
2306         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
2307         can throw, non-call exceptions are enabled and we can't delete
2308         dead exceptions or alter cfg.  Set must_clean if
2309         delete_insn_and_edges returns true, don't set it blindly for calls.
2310         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
2312         PR rtl-optimization/89195
2313         * combine.c (make_extraction): For MEMs, don't extract bytes outside
2314         of the original MEM.
2316 2019-02-05  Martin Liska  <mliska@suse.cz>
2318         PR gcov-profile/89000
2319         * gcov.c (function_summary): Remove argument.
2320         (file_summary): New function.
2321         (print_usage): Replace tabs with spaces.
2322         (generate_results): Use new function file_summary.
2324 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
2326         PR target/89186
2327         * optabs.c (prepare_cmp_insn): Pass x and y to
2328         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
2330 2019-02-05  Richard Biener  <rguenther@suse.de>
2332         PR middle-end/89150
2333         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
2334         (struct bitmap_element): Drop chain_prev so we properly recurse on
2335         the prev member, supporting tree views.
2336         (struct bitmap_head): GTY skip the obstack member.
2338 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
2340         PR c/88698
2341         * doc/extend.texi (Vector Extensions): Add an example of using vector
2342         types together with x86 intrinsics.
2344 2019-02-04  Alan Modra  <amodra@gmail.com>
2346         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
2347         str[] size to 160, and comment.
2349 2019-02-04  Alan Modra  <amodra@gmail.com>
2351         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
2352         (rs6000_pltseq_template): Guard output of TLS markers with
2353         TARGET_TLS_MARKERS.
2354         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
2355         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
2356         to use inline PLT sequences.
2357         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
2358         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
2359         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
2361 2019-02-04  Martin Liska  <mliska@suse.cz>
2363         PR ipa/88985
2364         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
2365         out when ipa_fn_summaries does not contain entry for callee.
2367 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
2369         * config/sparc/sparc.h: Remove superfluous blank lines.
2370         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
2371         (got_register_rtx): ...this.
2372         (sparc_got): Adjust to above renaming.
2373         (sparc_tls_got): Likewise.
2374         (sparc_delegitimize_address): Likewise.
2375         (sparc_output_mi_thunk): Likewise.
2376         (sparc_init_pic_reg): Likewise.
2377         (save_local_or_in_reg_p): Fix test on the GOT register.
2378         (USE_HIDDEN_LINKONCE): Move around.
2379         (get_pc_thunk_name): Likewise.
2380         (gen_load_pcrel_sym): Likewise.
2381         (load_got_register): Likewise.
2383 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
2385         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
2386         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
2388 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2390         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
2391         into consideration.
2393 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
2395         * config.gcc (with_nds32_lib, glibc):
2396         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
2397         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
2398         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
2400 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2402         PR target/89071
2403         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
2404         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
2405         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
2406         (*rcpsf2_sse): Ditto.
2407         (*rsqrtsf2_sse): Ditto.
2408         (sse4_1_round<mode<2): Ditto.
2410 2019-02-03  Richard Biener  <rguenther@suse.de>
2412         PR debug/87295
2413         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
2414         orig.
2416 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
2418         PR middle-end/87887
2419         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2420         Punt with warning on aggregate return or argument types.  Ignore
2421         type/mode checking for uniform arguments.
2423 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
2425         * combine.c (try_combine): Do not print "Can't combine" messages unless
2426         printing failed combination attempts.
2428 2019-02-01  Martin Jambor  <mjambor@suse.cz>
2430         PR hsa/87863
2431         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
2432         segment and global segment variables before making them static.
2434 2019-02-01  Martin Jambor  <mjambor@suse.cz>
2436         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
2437         missed optimization dump with dump_enabled_p.
2439 2019-02-01  Richard Biener  <rguenther@suse.de>
2441         PR middle-end/88597
2442         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
2443         the instantiate cache.
2444         (instantiate_scev_binary): Elide second operand procesing
2445         if equal to the first.
2446         * tree-chrec.c (chrec_contains_symbols): Add visited set.
2447         (chrec_contains_undetermined): Likewise.
2448         (tree_contains_chrecs): Likewise.
2450 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
2452         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
2454 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
2456         PR tree-optimization/89143
2457         * wide-int-range.h (wide_int_range_absu): Declare.
2458         * wide-int-range.cc (wide_int_range_absu): New function.
2459         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
2461         PR tree-optimization/88107
2462         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
2463         instead of assertion that eh_region_outermost is non-NULL, if it
2464         is NULL, set *ALL to true and return NULL.
2465         (move_sese_region_to_fn): Adjust caller, if all is set, call
2466         duplicate_eh_regions with NULL region.
2468 2019-02-01  Richard Biener  <rguenth@suse.de>
2470         PR rtl-optimization/88593
2471         * mode-switching.c (optimize_mode_switching): Free dominators before
2472         calling cleanup_cfg.
2474 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
2476         PR tree-optimization/88932
2477         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
2479 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
2481         PR middle-end/89137
2482         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
2483         bogus clang warning.
2485 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2487         PR target/89071
2488         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
2489         alternative to avoid partial SSE register stall for TARGET_AVX.
2490         (truncdfsf2): Ditto.
2491         (sse4_1_round<mode>2): Ditto.
2493 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
2495         PR tree-optimization/89008
2496         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
2497         process anything of the form X * 0.
2499 2019-01-31  Richard Biener  <rguenther@suse.de>
2501         PR tree-optimization/89135
2502         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
2503         with abnormal preds.
2505 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
2507         PR sanitizer/89124
2508         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
2509         always_inline callees into no_sanitize_address callers.
2511 2019-01-31  Richard Biener  <rguenther@suse.de>
2513         PR rtl-optimization/89115
2514         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
2516 2019-01-30  Martin Sebor  <msebor@redhat.com>
2518         PR other/89106
2519         * doc/extend.texi (cast to a union): Correct and expand.
2521 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
2523         PR rtl-optimization/87246
2524         * lra-constraints.c (simplify_operand_subreg): Reload memory
2525         in subreg if the address became invalid.
2527 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
2529         PR target/87064
2530         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
2531         Disable for little-endian.
2533 2019-01-30  Richard Biener  <rguenther@suse.de>
2535         PR rtl-optimization/89115
2536         * opts.c (default_options_optimization): Reduce
2537         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
2538         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
2539         to the default.
2541 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
2543         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
2544         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
2545         type of vector element when vec_extract is implemented by direct
2546         move.
2548 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
2550         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
2552 2019-01-30  Richard Biener  <rguenther@suse.de>
2554         PR tree-optimization/89111
2555         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
2556         canonicalization to appropriately sized access types.
2558 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
2560         PR c++/89105
2561         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
2562         for arguments to functions that are TU-local and shouldn't be
2563         referenced by assembly.
2565 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
2567         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
2568         after '='.
2570 2019-01-29  Martin Sebor  <msebor@redhat.com>
2572         PR c/88956
2573         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
2575 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
2577         PR c++/66676
2578         PR ipa/89104
2579         * omp-simd-clone.c (simd_clone_clauses_extract)
2580         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
2581         OMP_CLAUSE_ALIGNED_ALIGNMENT.
2583 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
2585         * config.gcc: Force .init_array for ARC.
2587 2019-01-29  Richard Biener  <rguenther@suse.de>
2589         PR debug/87295
2590         * dwarf2out.c (collect_skeleton_dies): New helper.
2591         (copy_decls_for_unworthy_types): Call it.
2592         (build_abbrev_table): Assert we do not try to replace
2593         DW_AT_signature refs with local refs.
2595 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
2597         PR middle-end/89002
2598         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
2599         for lastprivate/linear IV, push gimplify context around gimplify_assign
2600         and, if it needed any temporaries, pop it into a gimple bind around the
2601         sequence.
2603 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2605         * common.opt (-Wattribute-alias): Remove "no-" from name.
2606         Make -Wattribute-alias command line option and
2607         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
2609 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
2611         PR target/89073
2612         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
2613         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
2614         x86 ISA options.
2615         (bmi2): Add missing @opindex.
2616         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
2617         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
2618         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
2619         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
2620         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
2621         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
2622         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
2623         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
2624         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
2625         xsavec, xsaveopt and xsaves options.
2627 2019-01-28  Richard Biener  <rguenther@suse.de>
2629         PR debug/89076
2630         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
2631         support removal.
2633 2019-01-28  Richard Biener  <rguenther@suse.de>
2635         PR tree-optimization/88739
2636         * tree-cfg.c (verify_types_in_gimple_reference): Verify
2637         BIT_FIELD_REFs only are applied to mode-precision operands
2638         when they are integral.
2639         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
2640         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
2641         BIT_FIELD_REFs of non-mode-precision integral operands.
2643 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
2645         PR target/87214
2646         * config/i386/sse.md
2647         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
2648         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
2649         first constants in pairs are multiples of 2.  Formatting fixes.
2650         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
2651         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
2652         first constants in each quadruple are multiples of 4.  Formatting fixes.
2654 2019-01-26  Martin Jambor  <mjambor@suse.cz>
2656         PR ipa/88933
2657         * tree-inline.c: Include tree-cfgcleanup.h.
2658         (delete_unreachable_blocks_update_callgraph): Move...
2659         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
2660         ...here, make externally visible, make second argument bool, adjust
2661         all callers.
2662         * tree-cfgcleanup.c: Include cgraph.h.
2663         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
2664         Declare.
2665         * ipa-prop.c: Include tree-cfgcleanup.h.
2666         (ipcp_transform_function): Call
2667         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
2669 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
2671         PR rtl-optimization/88846
2672         * ira.c (process_set_for_memref_referenced_p): New.
2673         (memref_referenced_p): Add new param.  Use
2674         process_set_for_memref_referenced_p.  Add new switch cases.
2675         (memref_used_between_p): Pass new arg to memref_referenced_p.
2677 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
2679         PR target/88469
2680         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
2681         argument ABI_BREAK.  Set to true if the calculated alignment has
2682         changed in gcc-9.  Check bit-fields for their base type alignment.
2683         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
2684         (aarch64_function_arg_boundary): Likewise.
2685         (aarch64_gimplify_va_arg_expr): Likewise.
2687 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
2689         PR middle-end/89037
2690         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
2691         instead of accessing TREE_INT_CST_ELT directly.
2693 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
2695         * doc/sourcebuild.texi (Environment attributes): Add fenv and
2696         fenv_exceptions description.
2698 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
2700         PR rtl-optimization/87763
2701         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
2702         Allow SUBREG when matching CC_NZmode compare.
2704 2019-01-25  Richard Biener  <rguenther@suse.de>
2706         PR tree-optimization/89049
2707         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
2708         Look at the pattern stmt to determine if the stmt is vectorized.
2710 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
2712         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
2713         (pred_mov<mode>): Handle all-register forms using both a new
2714         alternative and a split.
2716 2019-01-25  Richard Biener  <rguenther@suse.de>
2718         PR tree-optimization/86865
2719         * graphite-scop-detection.c (scop_detection::can_represent_loop):
2720         Reject non-do-while loops.
2722 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
2724         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
2725         * config/rs6000/constraints.md (Q constraint): Use REG_P.
2726         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
2727         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
2728         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
2729         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2730         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
2731         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
2732         vlogical_operand, gpc_reg_operand, int_reg_operand,
2733         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
2734         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
2735         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
2736         (save_world_operation, restore_world_operation, lmw_operation,
2737         stmw_operation): Use MEM_P and REG_P.
2738         (tie_operand): Use MEM_P.
2739         (vrsave_operation, crsave_operation): Use REG_P.
2740         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
2741         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
2742         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
2743         (call_operand): Use HARD_REGISTER_P.
2744         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
2745         Use CONST_INT_P.
2746         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
2747         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
2748         quad_aligned_load_p, replace_swapped_aligned_store,
2749         recombine_lvx_pattern, replace_swapped_aligned_load,
2750         recombine_stvx_pattern): Use MEM_P.
2751         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
2752         Use MEM_P and SYMBOL_REF_P.
2753         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
2754         (insn_is_swappable_p): Use REG_P and MEM_P.
2755         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
2756         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
2757         Use CONST_INT_P.
2758         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
2759         Use CONST_DOUBLE_P.
2760         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
2761         CONST_WIDE_INT_P.
2762         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
2763         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
2764         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
2765         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
2766         reg_or_subregno:
2767         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
2768         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
2769         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
2770         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
2771         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
2772         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
2773         rs6000_split_logical_di): Use CONST_INT_P.
2774         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
2775         REG_P and SYMBOL_REF_P.
2776         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
2777         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
2778         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
2779         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
2780         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
2781         (small_data_operand, print_operand_address): Use CONST_INT_P and
2782         SYMBOL_REF_P.
2783         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
2784         (rs6000_init_hard_regno_mode_ok, direct_move_p):
2785         Use HARD_REGISTER_NUM_P.
2786         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
2787         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
2788         SUBREG_P and SYMBOL_REF_P.
2789         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
2790         and HARD_REGISTER_NUM_P.
2791         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
2792         reg_or_subregno.
2793         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
2794         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
2795         MEM_P and REG_P.
2796         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
2797         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
2798         find_addr_reg): Use REG_P.
2799         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
2800         (rs6000_emit_le_vsx_move): Use SUBREG_P.
2801         (offsettable_ok_by_alignment, constant_pool_expr_p,
2802         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
2803         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
2804         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
2805         rs6000_assemble_integer, create_TOC_reference,
2806         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
2807         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
2808         (rs6000_split_vec_extract_var): Use reg_or_subregno.
2809         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
2810         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
2811         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2812         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
2813         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
2814         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
2815         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
2816         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
2817         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
2818         and cbranch<mode>4): Use CONST_INT_P.
2819         (multiple define_splits): Use REG_P and SUBREG_P.
2820         (define_expands call, call_value): Use MEM_P.
2821         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
2822         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
2823         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
2824         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
2825         and HARD_REGISTER_NUM_P.
2826         (multiple define_splits): Use HARD_REGISTER_NUM_P.
2828 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2830         PR rtl-optimization/88948
2831         * rtl.h (prepare_copy_insn): New prototype.
2832         * gcse.c (prepare_copy_insn): New function, split out from
2833         process_insert_insn.
2834         (process_insert_insn): Use prepare_copy_insn.
2835         * store-motion.c (replace_store_insn): Use prepare_copy_insn
2836         instead of gen_move_insn.
2838 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
2840         PR debug/89006
2841         * config/i386/i386.c (ix86_pic_register_p): Return true for
2842         UNSPEC_SET_GOT too.
2844         PR tree-optimization/88964
2845         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
2846         punt if HONOR_SNANS (chrec).
2848         PR middle-end/89015
2849         * tree-nested.c (convert_nonlocal_reference_stmt,
2850         convert_local_reference_stmt, convert_tramp_reference_stmt,
2851         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
2852         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
2853         or GIMPLE_OMP_TASK.
2855         PR tree-optimization/89027
2856         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
2857         for "omp simd array" variables.
2859 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
2861         PR target/88469
2862         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
2863         force the alignment of m_val.
2865 2019-01-24  Richard Biener  <rguenther@suse.de>
2867         PR lto/87187
2868         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
2869         When in "legacy" debug mode make sure to reset self-origins.
2871 2019-01-24  Martin Liska  <mliska@suse.cz>
2873         PR gcov-profile/88994
2874         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
2875         result will be always smaller or equal to the original.
2876         * gcov.c (mangle_name): Fix else branch where we should
2877         also copy to PTR and shift the pointer.
2879 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
2881         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
2882         * vr-values.c (find_case_label_ranges): Fix a comment typo.
2884 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
2885             Steve Ellcey <sellcey@marvell.com>
2887         PR target/85711
2888         * recog.c (address_operand): Return false on wrong mode for address.
2889         (constrain_operands): Check for mode with 'p' constraint.
2891 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2893         PR target/88998
2894         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
2895         Disparage MMX alternative.
2896         (sse2_cvtpd2pi): Ditto.
2897         (sse2_cvttpd2pi): Ditto.
2899 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
2901         PR driver/89014
2902         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
2903         use-after-free of the result of
2904         aarch64_get_extension_string_for_isa_flags.
2906 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
2908         PR c/44715
2909         * doc/extend.texi: Document break and continue behavior in
2910         statement expressions.
2912 2019-01-23  Richard Biener  <rguenther@suse.de>
2914         PR tree-optimization/89008
2915         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
2916         not leave another stray operand.
2918 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
2920         * BASE-VER: Bump to 9.0.1.
2922 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
2924         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
2925         thunk that returns by reference, use the type of the return object
2926         of the thunk instead of that of the alias to build the dereference.
2928 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
2930         * config/arc/atomic.md: Add operand to DMB instruction.
2932 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
2934         PR tree-optimization/88964
2935         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
2936         build_zero_cst instead of build_int_cst.  Return false for loop
2937         invariants which honor signed zeros.
2939 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
2941         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
2943 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
2945         PR target/88965
2946         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
2947         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
2948         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
2950         PR middle-end/88968
2951         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
2952         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
2954         PR target/87064
2955         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
2956         Disable for little endian.
2958 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
2960         PR target/88469
2961         * config/arm/arm.c (arm_needs_double_word_align): Check
2962         DECL_BIT_FIELD_TYPE.
2964 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
2965             H.J. Lu  <hongjiu.lu@intel.com>
2967         PR target/88909
2968         * config/i386/i386-builtin.def: Add mask2 to all builtin
2969         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
2970         SPECIAL_ARGS.
2971         * config/i386/i386.c (BDESC): Add mask2 to the definition.
2972         (BDESC_FIRST): Likewise.
2973         (define_builtin): Add an argument for mask2.  Updated to handle
2974         both ix86_isa_flags and ix86_isa_flags2.
2975         (define_builtin_const): Likewise.
2976         (define_builtin_pure): Likewise.
2977         (define_builtin2): Deleted.
2978         (define_builtin_const2): Likewise.
2979         (builtin_description): Add a member, mask2.
2980         (bdesc_*): Add mask2 to builtin initializations.
2981         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
2982         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
2983         support.
2984         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
2986 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
2988         PR target/88954
2989         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
2990         noplt attribute.
2992 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
2994         PR target/88469
2995         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
2996         alignment is dominated by a bitfield with 64-bit aligned base type.
2997         (arm_function_arg): Emit a warning if the alignment has changed since
2998         earlier GCC releases.
2999         (arm_function_arg_boundary): Likewise.
3000         (arm_setup_incoming_varargs): Likewise.
3002 2019-01-22  Richard Biener  <rguenther@suse.de>
3004         PR tree-optimization/88862
3005         * graphite-scop-detection.c
3006         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
3008 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
3010         * doc/extend.tex (AMD GCN Function Attributes): New section.
3011         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
3012         * doc/invoke.texi (AMD GCN Options): New section.
3013         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
3015 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
3017         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
3018         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
3020 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
3022         PR tree-optimization/88044
3023         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
3024         is false in the first iteration, but !every_iteration, return false
3025         instead of true with niter->niter zero.
3027         PR rtl-optimization/88904
3028         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
3029         any nonequal registers before processing BB_END (b).
3031         PR target/88905
3032         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
3033         GET_MODE (op0).
3034         (expand_binop_directly, expand_doubleword_clz,
3035         expand_doubleword_popcount, expand_ctz, expand_ffs,
3036         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
3038         PR rtl-optimization/49429
3039         PR target/49454
3040         PR rtl-optimization/86334
3041         PR target/88906
3042         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
3043         addressable from here...
3044         (emit_block_op_via_libcall): ... to here.
3046 2019-01-22  Richard Biener  <rguenther@suse.de>
3048         * tree-vect-loop.c (vect_analyze_loop_operations): Use
3049         auto_vec for cost vector to fix memleak.
3050         (vectorize_fold_left_reduction): Properly gather SLP defs.
3051         (vectorizable_comparison): Do not swap operands to properly
3052         gather SLP defs.
3054 2019-01-22  Alan Modra  <amodra@gmail.com>
3056         PR target/88614
3057         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
3058         stays a reg.  Allow a const_int.
3059         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
3060         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
3061         (IS_NOMARK_TLSGETADDR): Define.
3062         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
3063         (rs6000_output_tlsargs): New function.
3064         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
3065         __tls_get_addr call takes an arg.
3066         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
3067         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
3068         delete split..
3069         (call_value_nonlocal_sysv): ..or here, delete split.
3070         (tls_gdld_nomark): Delete.
3071         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
3072         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
3073         (call_value_nonlocal_sysv): Likewise.
3074         (call_value_nonlocal_sysv_secure): Likewise.
3075         (call_value_nonlocal_aix): Likewise.
3076         (call_value_indirect_aix): Likewise.
3077         (call_value_indirect_elfv2): Likewise.
3078         (call_value_local32, call_value_local64): Disable for no-mark tls.
3079         (call_value_local_aix): Likewise.
3081 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3083         PR target/88938
3084         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
3085         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
3087 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
3089         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
3090         string contents as hash_map keys.
3092 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3094         PR c/88928
3095         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
3096         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
3097         instead of TYPE_ALIGN.
3098         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
3099         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
3100         pointer from TYPE_STUB_DECL.
3102 2019-01-21  Richard Biener  <rguenther@suse.de>
3104         PR tree-optimization/88934
3105         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
3106         at the possibly non-constant operand.
3107         (vect_get_constant_vectors): Adjust.
3109 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
3111         PR target/71659
3112         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
3113         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
3114         instead of _X86INTRIN_H_INCLUDED.
3115         * onfig/i386/clwbintrin.h: Likewise.
3116         * config/i386/pkuintrin.h: Likewise.
3117         * config/i386/prfchwintrin.h: Likewise.
3118         * config/i386/rdseedintrin.h: Likewise.
3119         * config/i386/wbnoinvdintrin.h: Likewise.
3120         * config/i386/xsavecintrin.h: Likewise.
3121         * config/i386/xsavesintrin.h: Likewise.
3122         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
3123         * config/i386/xsaveintrin.h: Likewise.
3124         * config/i386/xsaveoptintrin.h: Likewise.
3125         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
3126         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
3127         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
3128         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
3129         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
3130         * config/i386/immintrin.h: Here.
3132 2019-01-20  Martin Jambor  <mjambor@suse.cz>
3134         PR ipa/87615
3135         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
3136         with aa_walk_budget.
3137         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
3138         aa_walk_budget_p parameter.
3139         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
3140         walk.  Updated all callers.
3141         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
3142         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
3143         unmodified_parm.
3144         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
3145         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
3146         and to unmodified_parm.
3147         (phi_result_unknown_predicate): New parameter fbi, removed parameter
3148         info, updated call to will_be_nonconstant_expr_predicate.
3149         (param_change_prob): New parameter fbi, limit AA walking.
3150         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
3151         calls to various above functions.
3152         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
3153         parameter.  Use it to limit AA walking.
3154         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
3155         fbi, limit AA walk.
3156         (detect_type_change): New parameter fbi, pass it on to
3157         detect_type_change_from_memory_writes.
3158         (detect_type_change_ssa): Likewise.
3159         (aa_overwalked): Removed.
3160         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
3161         accordingly, adjust to the neew AA limiting scheme.
3162         (parm_ref_data_preserved_p): Likewise.
3163         (ipa_compute_jump_functions_for_edge): Adjust call to
3164         get_dynamic_type.
3165         (ipa_analyze_call_uses): Likewise.
3166         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
3167         (ipa_analyze_node): Initialize aa_walk_budget.
3168         (ipcp_transform_function): Likewise.
3169         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
3170         to get_dynamic_type.
3172 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
3174         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
3175         outside of #if CHECKING_P code.
3177 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
3179         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
3180         New function, split out from...
3181         (loop_versioning::analyze_stride): ...here.
3182         (loop_versioning::find_per_loop_multiplication): Use gassign.
3183         (loop_versioning::analyze_term_using_scevs): Return a success code.
3184         (loop_versioning::analyze_arbitrary_term): New function.
3185         (loop_versioning::analyze_address_fragment): Use
3186         analyze_arbitrary_term if all else fails.
3188 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
3190         PR target/88892
3191         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
3192         operands.
3194 2019-01-18  Richard Biener  <rguenther@suse.de>
3196         PR tree-optimization/88903
3197         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
3198         scalar stmts a SLP shift amount is composed of when detecting
3199         shifts by scalars.
3201 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
3203         PR target/88799
3204         * config/arm/arm-cpus.in (mp): New feature.
3205         (sec): New feature.
3206         (fgroup ARMv7ve): Add mp and sec features.
3207         (arch armv7-a): Add options to allow mp and sec extensions.
3208         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
3209         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
3210         extenstions to the base architecture.
3211         (cpu cortex-a8): Add sec extension to the base architecture.
3212         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
3213         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
3214         variants down to the base v7-a varaint.
3215         * config/arm/t-multilib (v7_a_arch_variants): New variable.
3216         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
3217         of permitted extensions for -march=armv7-a and for
3218         -mcpu=generic-armv7-a.
3220 2019-01-18  Martin Liska  <mliska@suse.cz>
3222         * params.def: Fix comment.
3223         * tree-profile.c (gimple_init_gcov_profiler): Bump function
3224         name.
3225         (gimple_gen_ic_func_profiler): Likewise.
3227 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3229         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
3230         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
3231         and put in error checks for stack protector guard options.
3232         (aarch64_stack_protect_guard): New.
3233         (TARGET_STACK_PROTECT_GUARD): Define.
3234         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
3235         (reg_stack_protect_address<mode>): New.
3236         (stack_protect_set): Adjust for SSP_GLOBAL.
3237         (stack_protect_test): Likewise.
3238         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
3239         (-mstack-protector-guard): Likewise.
3240         (-mstack-protector-guard-offset): Likewise.
3242 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
3244         PR tree-optimization/86214
3245         * tree-inline.h (struct copy_body_data): Add
3246         add_clobbers_to_eh_landing_pads member.
3247         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
3248         (copy_edges_for_bb): Call it if EH edge destination is <
3249         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
3250         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
3251         if flag_stack_reuse != SR_NONE and clear it afterwards.
3253 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
3255         PR target/85596
3256         * doc/install.texi (with-multilib-list): Document for aarch64.
3258 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
3260         PR target/88734
3261         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
3262         (("..."))) with ("...").
3264 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
3266         * doc/extend.texi (Built-in Functions for Memory Model Aware
3267         Atomic Operations): Document atomic fetch and nand.
3269 2019-01-18  Martin Liska  <mliska@suse.cz>
3270             Richard Biener  <rguenther@suse.de>
3272         PR middle-end/88587
3273         * cgraph.h (create_version_clone_with_body): Add new argument
3274         with attributes.
3275         * cgraphclones.c (cgraph_node::create_version_clone): Add
3276         DECL_ATTRIBUTES to a newly created decl.  And call
3277         valid_attribute_p so that proper cl_target_optimization_node
3278         is set for the newly created declaration.
3279         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
3280         for declaration.
3281         (expand_target_clones): Do not call valid_attribute_p, it must
3282         be already done.
3283         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
3284         vector types.
3286 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
3288         PR target/88734
3289         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
3290         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
3291         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
3293 2019-01-17  Martin Sebor  <msebor@redhat.com>
3295         PR middle-end/88273
3296         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
3297         Handle anti-ranges the same as no range at all.
3299 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
3301         * config/aarch64/aarch64.c (cgraph.h): New include.
3302         (intl.h): New include.
3303         (supported_simd_type): New function.
3304         (currently_supported_simd_type): Ditto.
3305         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
3306         (aarch64_simd_clone_adjust): Ditto.
3307         (aarch64_simd_clone_usable): Ditto.
3308         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
3309         (TARGET_SIMD_CLONE_ADJUST): Ditto.
3310         (TARGET_SIMD_CLONE_USABLE): Ditto.
3311         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
3312         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
3313         call.
3315 2019-01-17  Martin Sebor  <msebor@redhat.com>
3317         PR tree-optimization/88800
3318         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
3319         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
3320         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
3321         redundant argument.  Add new argument and issue diagnostics under
3322         its control.  Detect out-of-bounds access even with warnings
3323         disabled.
3324         (check_bounds_or_overlap): Change return type.  Add argument.
3325         (wrestrict_dom_walker::check_call): Adjust.
3326         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
3327         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
3328         check_bounds_or_overlap's return value.
3329         (handle_builtin_stxncpy): Same.
3330         (handle_builtin_strcat): Same.
3332 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3333             Kwok Cheung Yeung  <kcy@codesourcery.com>
3334             Julian Brown  <julian@codesourcery.com>
3335             Tom de Vries  <tom@codesourcery.com>
3337         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
3339 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3341         * doc/sourcebuild.texi: Document dg-require-effective-target
3342         llvm_binutils and offload_gcn.
3344 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3345             Kwok Cheung Yeung  <kcy@codesourcery.com>
3346             Julian Brown  <julian@codesourcery.com>
3347             Tom de Vries  <tom@codesourcery.com>
3349         * doc/sourcebuild.texi: Document dg-required-effective-target
3350         exceptions.
3352 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3353             Kwok Cheung Yeung  <kcy@codesourcery.com>
3354             Julian Brown  <julian@codesourcery.com>
3355             Tom de Vries  <tom@codesourcery.com>
3356             Jan Hubicka  <hubicka@ucw.cz>
3357             Martin Jambor  <mjambor@suse.cz>
3359         * config.gcc: Add amdgcn*-*-amdhsa configuration.
3360         * configure.ac: Check for dlopen.
3361         * configure: Regenerate.
3363 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3364             Kwok Cheung Yeung  <kcy@codesourcery.com>
3365             Julian Brown  <julian@codesourcery.com>
3366             Tom de Vries  <tom@codesourcery.com>
3367             Jan Hubicka  <hubicka@ucw.cz>
3368             Martin Jambor  <mjambor@suse.cz>
3370         * common/config/gcn/gcn-common.c: New file.
3371         * config/gcn/driver-gcn.c: New file.
3372         * config/gcn/gcn-builtins.def: New file.
3373         * config/gcn/gcn-hsa.h: New file.
3374         * config/gcn/gcn-modes.def: New file.
3375         * config/gcn/gcn-opts.h: New file.
3376         * config/gcn/gcn-passes.def: New file.
3377         * config/gcn/gcn-protos.h: New file.
3378         * config/gcn/gcn-run.c: New file.
3379         * config/gcn/gcn-tree.c: New file.
3380         * config/gcn/gcn.c: New file.
3381         * config/gcn/gcn.h: New file.
3382         * config/gcn/gcn.opt: New file.
3383         * config/gcn/t-gcn-hsa: New file.
3385 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
3386             Kwok Cheung Yeung  <kcy@codesourcery.com>
3387             Julian Brown  <julian@codesourcery.com>
3388             Tom de Vries  <tom@codesourcery.com>
3389             Jan Hubicka  <hubicka@ucw.cz>
3390             Martin Jambor  <mjambor@suse.cz>
3392         * config/gcn/constraints.md: New file.
3393         * config/gcn/gcn-valu.md: New file.
3394         * config/gcn/gcn.md: New file.
3395         * config/gcn/predicates.md: New file.
3397 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
3399         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
3400         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
3401         (stmt_uses_0_or_null_in_undefined_way): Likewise.
3402         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
3404 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
3406         PR target/88851
3407         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
3408         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
3409         it and document registers.
3411 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3413         * config/aarch64/aarch64.c (ares_tunings): Define.
3414         * config/aarch64/aarch64-cores.def (ares): Use the above.
3416 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
3418         PR target/88794
3419         Revert:
3420         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
3422         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
3423         (_mm512_fixupimm_round_pd): Update parameters and builtin.
3424         (_mm512_maskz_fixupimm_round_pd): Ditto.
3425         (_mm512_fixupimm_round_ps): Ditto.
3426         (_mm512_maskz_fixupimm_round_ps): Ditto.
3427         (_mm_fixupimm_round_sd): Ditto.
3428         (_mm_maskz_fixupimm_round_sd): Ditto.
3429         (_mm_fixupimm_round_ss): Ditto.
3430         (_mm_maskz_fixupimm_round_ss): Ditto.
3431         (_mm512_fixupimm_pd): Ditto.
3432         (_mm512_maskz_fixupimm_pd): Ditto.
3433         (_mm512_fixupimm_ps): Ditto.
3434         (_mm512_maskz_fixupimm_ps): Ditto.
3435         (_mm_fixupimm_sd): Ditto.
3436         (_mm_maskz_fixupimm_sd): Ditto.
3437         (_mm_fixupimm_ss): Ditto.
3438         (_mm_maskz_fixupimm_ss): Ditto.
3439         (_mm512_mask_fixupimm_round_pd): Update builtin.
3440         (_mm512_mask_fixupimm_round_ps): Ditto.
3441         (_mm_mask_fixupimm_round_sd): Ditto.
3442         (_mm_mask_fixupimm_round_ss): Ditto.
3443         (_mm512_mask_fixupimm_pd): Ditto.
3444         (_mm512_mask_fixupimm_ps): Ditto.
3445         (_mm_mask_fixupimm_sd): Ditto.
3446         (_mm_mask_fixupimm_ss): Ditto.
3447         * config/i386/avx512vlintrin.h:
3448         (_mm256_fixupimm_pd): Update parameters and builtin.
3449         (_mm256_maskz_fixupimm_pd): Ditto.
3450         (_mm256_fixupimm_ps): Ditto.
3451         (_mm256_maskz_fixupimm_ps): Ditto.
3452         (_mm_fixupimm_pd): Ditto.
3453         (_mm_maskz_fixupimm_pd): Ditto.
3454         (_mm_fixupimm_ps): Ditto.
3455         (_mm_maskz_fixupimm_ps): Ditto.
3456         (_mm256_mask_fixupimm_pd): Update builtin.
3457         (_mm256_mask_fixupimm_ps): Ditto.
3458         (_mm_mask_fixupimm_pd): Ditto.
3459         (_mm_mask_fixupimm_ps): Ditto.
3460         * config/i386/i386-builtin-types.def: Add new types and remove useless ones.
3461         * config/i386/i386-builtin.def: Update builtin definitions.
3462         * config/i386/i386.c: Handle new builtin types and remove useless ones.
3463         * config/i386/sse.md: Update VFIXUPIMM* patterns.
3464         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3465         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3466         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
3467         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3468         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3469         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
3470         * config/i386/subst.md:
3471         (round_saeonly_sd_mask_operand4): Add new subst_attr.
3472         (round_saeonly_sd_mask_op4): Ditto.
3473         (round_saeonly_expand_operand5): Ditto.
3474         (round_saeonly_expand): Update.
3476 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
3478         PR target/88794
3479         Revert:
3480         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
3482         * config/i386/sse.md: Combine VFIXUPIMM* patterns
3483         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3484         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3485         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
3486         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
3487         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
3488         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
3490 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
3492         PR target/88794
3493         Revert:
3494         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
3496         PR target/88489
3497         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
3498         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
3499         instead of UNSPEC_FIXUPIMM.
3501 2019-01-17  Richard Biener  <rguenther@suse.de>
3503         PR lto/86736
3504         * dwarf2out.c (want_pubnames): Never generate pubnames sections
3505         and friends for the LTO part of debug info.
3507 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
3509         PR tree-optimization/86214
3510         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
3511         if x == y.
3513         PR rtl-optimization/88870
3514         * dce.c (deletable_insn_p): Never delete const/pure calls that can
3515         throw if we can't alter the cfg or delete dead exceptions.
3516         (mark_insn): Don't call find_call_stack_args for such calls.
3518 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
3520         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
3521         prototypes for vec_st.
3522         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
3523         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
3524         mainly on signed/unsigned long long and double.
3526 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
3528         PR target/88861
3529         * combine.c (delete_noop_moves): Convert to "bool" return,
3530         returning true if any edges are eliminated.
3531         (combine_instructions): Also return true if delete_noop_moves
3532         returns true.
3534 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
3536         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
3537         correct max nunits for endian swap.
3538         (aarch64_expand_fcmla_builtin): Correct subreg code.
3539         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
3540         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
3541         lane endianness.
3543 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3545         * config/alpha/alpha.c (alpha_gimplify_va_arg):
3546         Handle split indirect COMPLEX_TYPE arguments.
3548 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
3550         PR target/86891
3551         * config/aarch64/aarch64-modes.def: Add comment about how the carry
3552         bit is set by add and compare.
3553         (CC_ADC): New CC_MODE.
3554         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
3555         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
3556         comparison.  Add detection for CC_ADCmode.
3557         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
3558         CC_ADCmode.
3559         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
3560         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
3561         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
3562         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
3563         to eliminate the need for zero-extending the operands.
3564         (add<mode>3_compareC_imm): Delete.  Merge into ...
3565         (add<mode>3_compareC): ... this.  Restructure the comparison to
3566         eliminate the need for zero-extending the operands.
3567         (add<mode>3_carryin): Use LTU for the overflow detection.
3568         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
3569         Reexpress comparison for overflow.
3570         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
3571         (add<mode>3_carryinC): Likewise.
3572         (add<mode>3_carryinV): Use LTU for carry between partials.
3573         * config/aarch64/predicates.md (aarch64_carry_operation): Update
3574         handling of CC_Cmode and add CC_ADCmode.
3575         (aarch64_borrow_operation): Likewise.
3577 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
3579         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): Remove patternmode.
3580         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
3581         * config/arm/neon.md (neon_vcmla_lane<rot><mode>, neon_vcmla_laneq<rot><mode>,
3582         neon_vcmlaq_lane<rot><mode>): Remove endianness conversion.
3584 2019-01-16  Martin Liska  <mliska@suse.cz>
3586         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
3587         for GCC driver.
3588         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
3589         a new argument.
3590         * gcc.c (add_sysrooted_hdrs_prefix): New function.
3591         (path_prefix_reset): Move up in the source file.
3592         (find_fortran_preinclude_file): Make complex search for the
3593         fortran header files.
3595 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
3597         * godump.c (go_output_typedef): When outputting a typedef, refer
3598         to the underlying type by its name and not its structure.
3600 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
3602         PR c++/88795
3603         * tree.c (build_function_type): Assert that arg_types is not
3604         error_mark_node.
3606 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
3608         PR inline-asm/52813
3609         * doc/extend.texi: Document that listing the stack pointer in the
3610         clobber list of an asm is a deprecated feature.
3611         * common.opt (Wdeprecated): Moved from c-family/c.opt.
3612         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
3613         warning instead of an error for clobbers of the stack pointer.
3614         Add a note explaining why.
3616 2019-01-15  Richard Biener  <rguenther@suse.de>
3618         PR debug/88046
3619         * dwarf2out.c (gen_member_die): Do not generate inheritance
3620         DIEs late.
3622 2019-01-15  Richard Biener  <rguenther@suse.de>
3624         PR tree-optimization/88855
3625         * tree-if-conv.c (combine_blocks): Collect
3626         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
3628 2019-01-15  Tom de Vries  <tdevries@suse.de>
3630         PR target/80547
3631         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
3632         lhs == NULL_TREE for gang-level reduction.
3634 2019-01-15  Richard Biener  <rguenther@suse.de>
3635             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3637         PR ipa/88788
3638         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
3639         return true if SSA_NAME is already marked in visited bitmap.
3640         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
3642 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
3644         PR tree-optimization/88775
3645         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
3646         equal == 0 equality pointer comparisons some more if compared in
3647         integral types and either one points to an automatic var and the
3648         other to a global, or we can prove at least one points to the middle
3649         or both point to start or both point to end.
3651 2019-01-14  Andi Kleen  <ak@linux.intel.com>
3653         * Makefile.in: Lower autofdo sampling rate by 10x.
3654         * Makefile.tpl: Dito.
3656 2019-01-14  Tom Honermann  <tom@honermann.net>
3658         * defaults.h: Define CHAR8_TYPE.
3660 2019-01-14  Martin Sebor  <msebor@redhat.com>
3662         PR target/88638
3663         * doc/extend.texi (Darwin Format Checks): Clarify.
3665 2019-01-14  Richard Biener  <rguenther@suse.de>
3667         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
3668         whether we are in (simplify ...) or (match ...) context.
3670 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
3672         PR rtl-optimization/88796
3673         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
3674         * cfgexpand.c (stack_protect_prologue): Initialize
3675         crtl->stack_protect_guard_decl.
3676         * function.c (stack_protect_epilogue): Use it instead of calling
3677         targetm.stack_protect_guard again.
3678         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
3679         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
3680         crtl->stack_protect_guard_decl.
3681         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
3682         on the returned MEM_EXPR.
3684 2019-01-12  Tom de Vries  <tdevries@suse.de>
3686         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
3687         vector length using -fopenacc-dim.
3689 2019-01-12  Tom de Vries  <tdevries@suse.de>
3691         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
3692         lengths into account.
3694 2019-01-12  Svante Signell  <svante.signell@gmail.com>
3696         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
3697         (TARGET_CAN_SPLIT_STACK): Define.
3698         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
3700 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
3702         * params.def (inline-unit-growth): Set to 40.
3704 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
3706         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
3708 2019-01-12  Tom de Vries  <tdevries@suse.de>
3710         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
3711         region calling vector-partitionable routine, set default_vector_length
3712         to WARP_SIZE.
3714 2019-01-12  Tom de Vries  <tdevries@suse.de>
3716         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
3717         variable default_vector_length.
3719 2019-01-12  Tom de Vries  <tdevries@suse.de>
3721         PR middle-end/88703
3722         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
3723         from oacc_default_dims, as oacc_validate_dims would do it, and apply
3724         dimensions limits.
3726 2019-01-12  Tom de Vries  <tdevries@suse.de>
3728         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
3729         (nvptx_goacc_validate_dims): Add used parameter.
3730         * doc/tm.texi: Regenerate.
3731         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
3732         argument to call to targetm.goacc.validate_dims.
3733         (default_goacc_validate_dims): Add used
3734         parameter.
3735         * target.def (validate_dims): Add used parameter in DEFHOOK.
3736         * targhooks.h (default_goacc_validate_dims): Add used parameter.
3738 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
3740         PR middle-end/85956
3741         PR lto/88733
3742         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
3743         field.
3744         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
3745         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
3746         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
3747         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
3749 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
3751         PR rtl-optimization/87305
3752         * lra-assigns.c
3753         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
3754         for little endian pseudos used as paradoxical subreg.
3756 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
3758         PR tree-optimization/88693
3759         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
3760         for STRING_CSTs that don't contain any NUL characters in the first
3761         TREE_STRING_LENGTH bytes.
3763 2019-01-11  Alan Modra  <amodra@gmail.com>
3765         PR 88777
3766         PR 88614
3767         * genattrtab.c (min_fn): Don't translate values.
3768         (min_attr_value): Return INT_MAX when the value can't be calculated.
3769         Return minimum among any values that can be calculated.
3770         (max_attr_value): Adjust.
3772 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
3774         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
3776 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
3778         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
3779         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
3780         (aarch64_return_call_with_max_clobbers): New function.
3781         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
3782         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
3783         argument.
3784         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
3785         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
3786         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
3787         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
3788         * cselib.c (cselib_process_insn): Add argument to
3789         targetm.hard_regno_call_part_clobbered call.
3790         * ira-conflicts.c (ira_build_conflicts): Ditto.
3791         * ira-costs.c (ira_tune_allocno_costs): Ditto.
3792         * lra-constraints.c (inherit_reload_reg): Ditto.
3793         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
3794         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
3795         argument.  Call targetm.return_call_with_max_clobbers.
3796         Add argument to targetm.hard_regno_call_part_clobbered call.
3797         (calls_have_same_clobbers_p): New function.
3798         (process_bb_lives): Add call_insn and last_call_insn variables.
3799         Pass call_insn to check_pseudos_live_through_calls.
3800         Modify if stmt to check targetm.return_call_with_max_clobbers.
3801         Update setting of flush variable.
3802         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
3803         to false.
3804         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
3805         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
3806         targetm.hard_regno_call_part_clobbered call.
3807         * reginfo.c (choose_hard_reg_mode): Ditto.
3808         * regrename.c (check_new_reg_p): Ditto.
3809         * reload.c (find_equiv_reg): Ditto.
3810         * reload1.c (emit_reload_insns): Ditto.
3811         * sched-deps.c (deps_analyze_insn): Ditto.
3812         * sel-sched.c (init_regs_for_mode): Ditto.
3813         (mark_unavailable_hard_regs): Ditto.
3814         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
3815         * target.def (hard_regno_call_part_clobbered): Add insn argument.
3816         (return_call_with_max_clobbers): New target function.
3817         * doc/tm.texi: Regenerate.
3818         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
3819         * hooks.c (hook_bool_uint_mode_false): Change to
3820         hook_bool_insn_uint_mode_false.
3821         * hooks.h (hook_bool_uint_mode_false): Ditto.
3823 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
3825         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
3826         (aarch64_remove_extra_call_preserved_regs): New function.
3827         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
3828         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
3829         * doc/tm.texi: Regenerate.
3830         * final.c (get_call_reg_set_usage): Call new hook.
3831         * target.def (remove_extra_call_preserved_regs): New hook.
3832         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
3833         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
3835 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
3837         PR bootstrap/88714
3838         * passes.c (finish_optimization_passes): Call print_combine_total_stats
3839         inside of pass_combine_1 dump rather than pass_profile_1.
3841 2019-01-11  Tom de Vries  <tdevries@suse.de>
3843         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
3844         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
3845         (PTX_NUM_PER_WORKER_BARRIERS): Define.
3846         (nvptx_apply_dim_limits): Prevent vector_length 64 and
3847         num_workers 16.
3849 2019-01-11  Tom de Vries  <tdevries@suse.de>
3851         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
3853 2019-01-11  Jan Beulich  <jbeulich@suse.com>
3855         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
3856         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
3857         sse2_cvtsi2sd): Add {l}.
3858         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
3859         syntax.
3861 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
3863         PR target/88785
3864         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
3865         define_expand.
3866         (*float<floatunssuffix>v2div2sf2): New define_insn.
3867         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
3868         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
3869         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
3870         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
3871         match_operands with "const0_operand" "C".
3873 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
3875         * config/aarch64/aarch64-builtins.c
3876         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
3877         (aarch64_init_simd_builtins): ...Here
3879 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
3881         PR rtl-optimization/87305
3882         * lra-assigns.c
3883         (setup_live_pseudos_and_spill_after_risky_transforms): Check
3884         allocation for big endian pseudos used as paradoxical subregs and
3885         spill them if it is wrong.
3886         * lra-constraints.c (lra_constraints): Add a comment.
3888 2019-01-10  Richard Biener  <rguenther@suse.de>
3890         PR tree-optimization/88792
3891         * tree-ssa-pre.c (get_representative_for): Do not return a
3892         value-number here.
3894 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
3896         PR middle-end/84877
3897         PR bootstrap/88450
3898         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
3899         (assign_parm_setup_block): Do the argument slot realignment here
3900         instead.
3902 2019-01-10  Stefan Agner  <stefan@agner.ch>
3904         PR target/88648
3905         * config/arm/arm.c (arm_option_override_internal): Force
3906         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
3908 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
3910         PR c/88568
3911         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
3912         DECL_EXTERNAL.
3914 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
3916         * config/arm/arm-builtins.c
3917         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
3918         (MAC_LANE_PAIR_QUALIFIERS): New.
3919         (arm_expand_builtin_args): Use it.
3920         (arm_expand_builtin_1): Likewise.
3921         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
3922         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
3923         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
3924         * config/arm/arm_neon.h:
3925         (vcadd_rot90_f16): New.
3926         (vcaddq_rot90_f16): New.
3927         (vcadd_rot270_f16): New.
3928         (vcaddq_rot270_f16): New.
3929         (vcmla_f16): New.
3930         (vcmlaq_f16): New.
3931         (vcmla_lane_f16): New.
3932         (vcmla_laneq_f16): New.
3933         (vcmlaq_lane_f16): New.
3934         (vcmlaq_laneq_f16): New.
3935         (vcmla_rot90_f16): New.
3936         (vcmlaq_rot90_f16): New.
3937         (vcmla_rot90_lane_f16): New.
3938         (vcmla_rot90_laneq_f16): New.
3939         (vcmlaq_rot90_lane_f16): New.
3940         (vcmlaq_rot90_laneq_f16): New.
3941         (vcmla_rot180_f16): New.
3942         (vcmlaq_rot180_f16): New.
3943         (vcmla_rot180_lane_f16): New.
3944         (vcmla_rot180_laneq_f16): New.
3945         (vcmlaq_rot180_lane_f16): New.
3946         (vcmlaq_rot180_laneq_f16): New.
3947         (vcmla_rot270_f16): New.
3948         (vcmlaq_rot270_f16): New.
3949         (vcmla_rot270_lane_f16): New.
3950         (vcmla_rot270_laneq_f16): New.
3951         (vcmlaq_rot270_lane_f16): New.
3952         (vcmlaq_rot270_laneq_f16): New.
3953         (vcadd_rot90_f32): New.
3954         (vcaddq_rot90_f32): New.
3955         (vcadd_rot270_f32): New.
3956         (vcaddq_rot270_f32): New.
3957         (vcmla_f32): New.
3958         (vcmlaq_f32): New.
3959         (vcmla_lane_f32): New.
3960         (vcmla_laneq_f32): New.
3961         (vcmlaq_lane_f32): New.
3962         (vcmlaq_laneq_f32): New.
3963         (vcmla_rot90_f32): New.
3964         (vcmlaq_rot90_f32): New.
3965         (vcmla_rot90_lane_f32): New.
3966         (vcmla_rot90_laneq_f32): New.
3967         (vcmlaq_rot90_lane_f32): New.
3968         (vcmlaq_rot90_laneq_f32): New.
3969         (vcmla_rot180_f32): New.
3970         (vcmlaq_rot180_f32): New.
3971         (vcmla_rot180_lane_f32): New.
3972         (vcmla_rot180_laneq_f32): New.
3973         (vcmlaq_rot180_lane_f32): New.
3974         (vcmlaq_rot180_laneq_f32): New.
3975         (vcmla_rot270_f32): New.
3976         (vcmlaq_rot270_f32): New.
3977         (vcmla_rot270_lane_f32): New.
3978         (vcmla_rot270_laneq_f32): New.
3979         (vcmlaq_rot270_lane_f32): New.
3980         (vcmlaq_rot270_laneq_f32): New.
3981         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
3982         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180, vcmla_lane270,
3983         vcmla_laneq0, vcmla_laneq90, vcmla_laneq180, vcmla_laneq270,
3984         vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180, vcmlaq_lane270): New.
3985         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
3986         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
3987         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
3988         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
3989         (arm_option_reconfigure_globals): Use them.
3990         * config/arm/iterators.md (VDF, VQ_HSF): New.
3991         (VCADD, VCMLA): New.
3992         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
3993         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>): New.
3994         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
3995         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
3997 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
3999         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers): Add qualifier_lane_pair_index.
4000         (emit-rtl.h): Include.
4001         (TYPES_QUADOP_LANE_PAIR): New.
4002         (aarch64_simd_expand_args): Use it.
4003         (aarch64_simd_expand_builtin): Likewise.
4004         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum): New.
4005         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
4006         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
4007         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
4008         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
4009         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
4010         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
4011         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
4012         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF, AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
4013         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
4014         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
4015         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add __ARM_FEATURE_COMPLEX.
4016         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0, fcmla90,
4017         fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180, fcmla_lane270,
4018         fcmla_laneq0, fcmla_laneq90, fcmla_laneq180, fcmla_laneq270,
4019         fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180, fcmlaq_lane270): New.
4020         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
4021         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,aarch64_fcadd<rot><mode>,
4022         aarch64_fcmla<rot><mode>): New.
4023         * config/aarch64/arm_neon.h:
4024         (vcadd_rot90_f16): New.
4025         (vcaddq_rot90_f16): New.
4026         (vcadd_rot270_f16): New.
4027         (vcaddq_rot270_f16): New.
4028         (vcmla_f16): New.
4029         (vcmlaq_f16): New.
4030         (vcmla_lane_f16): New.
4031         (vcmla_laneq_f16): New.
4032         (vcmlaq_lane_f16): New.
4033         (vcmlaq_rot90_lane_f16): New.
4034         (vcmla_rot90_laneq_f16): New.
4035         (vcmla_rot90_lane_f16): New.
4036         (vcmlaq_rot90_f16): New.
4037         (vcmla_rot90_f16): New.
4038         (vcmlaq_laneq_f16): New.
4039         (vcmla_rot180_laneq_f16): New.
4040         (vcmla_rot180_lane_f16): New.
4041         (vcmlaq_rot180_f16): New.
4042         (vcmla_rot180_f16): New.
4043         (vcmlaq_rot90_laneq_f16): New.
4044         (vcmlaq_rot270_laneq_f16): New.
4045         (vcmlaq_rot270_lane_f16): New.
4046         (vcmla_rot270_laneq_f16): New.
4047         (vcmlaq_rot270_f16): New.
4048         (vcmla_rot270_f16): New.
4049         (vcmlaq_rot180_laneq_f16): New.
4050         (vcmlaq_rot180_lane_f16): New.
4051         (vcmla_rot270_lane_f16): New.
4052         (vcadd_rot90_f32): New.
4053         (vcaddq_rot90_f32): New.
4054         (vcaddq_rot90_f64): New.
4055         (vcadd_rot270_f32): New.
4056         (vcaddq_rot270_f32): New.
4057         (vcaddq_rot270_f64): New.
4058         (vcmla_f32): New.
4059         (vcmlaq_f32): New.
4060         (vcmlaq_f64): New.
4061         (vcmla_lane_f32): New.
4062         (vcmla_laneq_f32): New.
4063         (vcmlaq_lane_f32): New.
4064         (vcmlaq_laneq_f32): New.
4065         (vcmla_rot90_f32): New.
4066         (vcmlaq_rot90_f32): New.
4067         (vcmlaq_rot90_f64): New.
4068         (vcmla_rot90_lane_f32): New.
4069         (vcmla_rot90_laneq_f32): New.
4070         (vcmlaq_rot90_lane_f32): New.
4071         (vcmlaq_rot90_laneq_f32): New.
4072         (vcmla_rot180_f32): New.
4073         (vcmlaq_rot180_f32): New.
4074         (vcmlaq_rot180_f64): New.
4075         (vcmla_rot180_lane_f32): New.
4076         (vcmla_rot180_laneq_f32): New.
4077         (vcmlaq_rot180_lane_f32): New.
4078         (vcmlaq_rot180_laneq_f32): New.
4079         (vcmla_rot270_f32): New.
4080         (vcmlaq_rot270_f32): New.
4081         (vcmlaq_rot270_f64): New.
4082         (vcmla_rot270_lane_f32): New.
4083         (vcmla_rot270_laneq_f32): New.
4084         (vcmlaq_rot270_lane_f32): New.
4085         (vcmlaq_rot270_laneq_f32): New.
4086         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
4087         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
4088         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
4089         (FCADD, FCMLA): New.
4090         (rot): New.
4091         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
4093 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4095         PR other/16615
4097         * config/pa/pa.c: Change "can not" to "cannot".
4098         * gimple-ssa-evrp-analyze.c: Likewise.
4099         * ipa-icf.c: Likewise.
4100         * ipa-polymorphic-call.c: Likewise.
4101         * ipa-pure-const.c: Likewise.
4102         * lra-constraints.c: Likewise.
4103         * lra-remat.c: Likewise.
4104         * reload1.c: Likewise.
4105         * reorg.c: Likewise.
4106         * tree-ssa-uninit.c: Likewise.
4108 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
4110         PR other/16615
4112         * Makefile.in: Mechanically replace "can not" with "cannot".
4113         * alias.c: Likewise.
4114         * builtins.c: Likewise.
4115         * calls.c: Likewise.
4116         * cgraph.c: Likewise.
4117         * cgraph.h: Likewise.
4118         * cgraphclones.c: Likewise.
4119         * cgraphunit.c: Likewise.
4120         * combine-stack-adj.c: Likewise.
4121         * combine.c: Likewise.
4122         * common/config/i386/i386-common.c: Likewise.
4123         * config/aarch64/aarch64.c: Likewise.
4124         * config/alpha/sync.md: Likewise.
4125         * config/arc/arc.c: Likewise.
4126         * config/arc/predicates.md: Likewise.
4127         * config/arm/arm-c.c: Likewise.
4128         * config/arm/arm.c: Likewise.
4129         * config/arm/arm.h: Likewise.
4130         * config/arm/arm.md: Likewise.
4131         * config/arm/cortex-r4f.md: Likewise.
4132         * config/csky/csky.c: Likewise.
4133         * config/csky/csky.h: Likewise.
4134         * config/darwin-f.c: Likewise.
4135         * config/epiphany/epiphany.md: Likewise.
4136         * config/i386/i386.c: Likewise.
4137         * config/i386/sol2.h: Likewise.
4138         * config/m68k/m68k.c: Likewise.
4139         * config/mcore/mcore.h: Likewise.
4140         * config/microblaze/microblaze.md: Likewise.
4141         * config/mips/20kc.md: Likewise.
4142         * config/mips/sb1.md: Likewise.
4143         * config/nds32/nds32.c: Likewise.
4144         * config/nds32/predicates.md: Likewise.
4145         * config/pa/pa.c: Likewise.
4146         * config/rs6000/e300c2c3.md: Likewise.
4147         * config/rs6000/rs6000.c: Likewise.
4148         * config/s390/s390.h: Likewise.
4149         * config/sh/sh.c: Likewise.
4150         * config/sh/sh.md: Likewise.
4151         * config/spu/vmx2spu.h: Likewise.
4152         * cprop.c: Likewise.
4153         * dbxout.c: Likewise.
4154         * df-scan.c: Likewise.
4155         * doc/cfg.texi: Likewise.
4156         * doc/extend.texi: Likewise.
4157         * doc/fragments.texi: Likewise.
4158         * doc/gty.texi: Likewise.
4159         * doc/invoke.texi: Likewise.
4160         * doc/lto.texi: Likewise.
4161         * doc/md.texi: Likewise.
4162         * doc/objc.texi: Likewise.
4163         * doc/rtl.texi: Likewise.
4164         * doc/tm.texi: Likewise.
4165         * dse.c: Likewise.
4166         * emit-rtl.c: Likewise.
4167         * emit-rtl.h: Likewise.
4168         * except.c: Likewise.
4169         * expmed.c: Likewise.
4170         * expr.c: Likewise.
4171         * fold-const.c: Likewise.
4172         * genautomata.c: Likewise.
4173         * gimple-fold.c: Likewise.
4174         * hard-reg-set.h: Likewise.
4175         * ifcvt.c: Likewise.
4176         * ipa-comdats.c: Likewise.
4177         * ipa-cp.c: Likewise.
4178         * ipa-devirt.c: Likewise.
4179         * ipa-fnsummary.c: Likewise.
4180         * ipa-icf.c: Likewise.
4181         * ipa-inline-transform.c: Likewise.
4182         * ipa-inline.c: Likewise.
4183         * ipa-polymorphic-call.c: Likewise.
4184         * ipa-profile.c: Likewise.
4185         * ipa-prop.c: Likewise.
4186         * ipa-pure-const.c: Likewise.
4187         * ipa-reference.c: Likewise.
4188         * ipa-split.c: Likewise.
4189         * ipa-visibility.c: Likewise.
4190         * ipa.c: Likewise.
4191         * ira-build.c: Likewise.
4192         * ira-color.c: Likewise.
4193         * ira-conflicts.c: Likewise.
4194         * ira-costs.c: Likewise.
4195         * ira-int.h: Likewise.
4196         * ira-lives.c: Likewise.
4197         * ira.c: Likewise.
4198         * ira.h: Likewise.
4199         * loop-invariant.c: Likewise.
4200         * loop-unroll.c: Likewise.
4201         * lower-subreg.c: Likewise.
4202         * lra-assigns.c: Likewise.
4203         * lra-constraints.c: Likewise.
4204         * lra-eliminations.c: Likewise.
4205         * lra-lives.c: Likewise.
4206         * lra-remat.c: Likewise.
4207         * lra-spills.c: Likewise.
4208         * lra.c: Likewise.
4209         * lto-cgraph.c: Likewise.
4210         * lto-streamer-out.c: Likewise.
4211         * postreload-gcse.c: Likewise.
4212         * predict.c: Likewise.
4213         * profile-count.h: Likewise.
4214         * profile.c: Likewise.
4215         * recog.c: Likewise.
4216         * ree.c: Likewise.
4217         * reload.c: Likewise.
4218         * reload1.c: Likewise.
4219         * reorg.c: Likewise.
4220         * resource.c: Likewise.
4221         * rtl.def: Likewise.
4222         * rtl.h: Likewise.
4223         * rtlanal.c: Likewise.
4224         * sched-deps.c: Likewise.
4225         * sched-ebb.c: Likewise.
4226         * sched-rgn.c: Likewise.
4227         * sel-sched-ir.c: Likewise.
4228         * sel-sched.c: Likewise.
4229         * shrink-wrap.c: Likewise.
4230         * simplify-rtx.c: Likewise.
4231         * symtab.c: Likewise.
4232         * target.def: Likewise.
4233         * toplev.c: Likewise.
4234         * tree-call-cdce.c: Likewise.
4235         * tree-cfg.c: Likewise.
4236         * tree-complex.c: Likewise.
4237         * tree-core.h: Likewise.
4238         * tree-eh.c: Likewise.
4239         * tree-inline.c: Likewise.
4240         * tree-loop-distribution.c: Likewise.
4241         * tree-nrv.c: Likewise.
4242         * tree-profile.c: Likewise.
4243         * tree-sra.c: Likewise.
4244         * tree-ssa-alias.c: Likewise.
4245         * tree-ssa-dce.c: Likewise.
4246         * tree-ssa-dom.c: Likewise.
4247         * tree-ssa-forwprop.c: Likewise.
4248         * tree-ssa-loop-im.c: Likewise.
4249         * tree-ssa-loop-ivcanon.c: Likewise.
4250         * tree-ssa-loop-ivopts.c: Likewise.
4251         * tree-ssa-loop-niter.c: Likewise.
4252         * tree-ssa-phionlycprop.c: Likewise.
4253         * tree-ssa-phiopt.c: Likewise.
4254         * tree-ssa-propagate.c: Likewise.
4255         * tree-ssa-threadedge.c: Likewise.
4256         * tree-ssa-threadupdate.c: Likewise.
4257         * tree-ssa-uninit.c: Likewise.
4258         * tree-ssanames.c: Likewise.
4259         * tree-streamer-out.c: Likewise.
4260         * tree.c: Likewise.
4261         * tree.h: Likewise.
4262         * vr-values.c: Likewise.
4264 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4266         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
4267         (ix86_split_xorsign): Ditto.
4268         * config/i386/i386.c (ix86_expand_xorsign): New function.
4269         (ix86_split_xorsign): Ditto.
4270         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
4271         (xorsign<mode>3): New expander.
4272         (xorsign<mode>3_1): New insn_and_split pattern.
4273         * config/i386/sse.md (xorsign<mode>3): New expander.
4275 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4277         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
4278         (*tablejump_sp64): Likewise.
4279         (*tablejump<P:mode>): ...this.
4280         (*call_address_sp32): Merge into...
4281         (*call_address_sp64): Likewise.
4282         (*call_address<P:mode>): ...this.
4283         (*call_symbolic_sp32): Merge into...
4284         (*call_symbolic_sp64): Likewise.
4285         (*call_symbolic<P:mode>): ...this.
4286         (call_value): Remove constraint and add predicate.
4287         (*call_value_address_sp32): Merge into...
4288         (*call_value_address_sp64): Likewise.
4289         (*call_value_address<P:mode>): ...this.
4290         (*call_value_symbolic_sp32): Merge into...
4291         (*call_value_symbolic_sp64): Likewise.
4292         (*call_value_symbolic<P:mode>): ...this.
4293         (*sibcall_symbolic_sp32): Merge into...
4294         (*sibcall_symbolic_sp64): Likewise.
4295         (*sibcall_symbolic<P:mode>): ...this.
4296         (sibcall_value): Remove constraint and add predicate.
4297         (*sibcall_value_symbolic_sp32): Merge into...
4298         (*sibcall_value_symbolic_sp64): Likewise.
4299         (*sibcall_value_symbolic<P:mode>): ...this.
4300         (window_save): Minor tweak.
4301         (*branch_sp32): Merge into...
4302         (*branch_sp64): Likewise.
4303         (*branch<P:mode>): ...this.
4305 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4306             James Clarke  <jrtc27@jrtc27.com>
4308         PR target/84010
4309         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
4310         consistently in TLS address generation and adjust code to the renaming
4311         of patterns.  Mark calls to __tls_get_addr as const.
4312         * config/sparc/sparc.md (tgd_hi22): Turn into...
4313         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
4314         (tgd_lo10): Turn into...
4315         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
4316         (tgd_add32): Merge into...
4317         (tgd_add64): Likewise.
4318         (tgd_add<P:mode>): ...this and use Pmode throughout.
4319         (tldm_hi22): Turn into...
4320         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
4321         (tldm_lo10): Turn into...
4322         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
4323         (tldm_add32): Merge into...
4324         (tldm_add64): Likewise.
4325         (tldm_add<P:mode>): ...this and use Pmode throughout.
4326         (tldm_call32): Merge into...
4327         (tldm_call64): Likewise.
4328         (tldm_call<P:mode>): ...this and use Pmode throughout.
4329         (tldo_hix22): Turn into...
4330         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
4331         (tldo_lox10): Turn into...
4332         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
4333         (tldo_add32): Merge into...
4334         (tldo_add64): Likewise.
4335         (tldo_add<P:mode>): ...this and use Pmode throughout.
4336         (tie_hi22): Turn into...
4337         (tie_hi22<P:mode>): ...this and use Pmode throughout.
4338         (tie_lo10): Turn into...
4339         (tie_lo10<P:mode>): ...this and use Pmode throughout.
4340         (tie_ld64): Use DImode throughout.
4341         (tie_add32): Merge into...
4342         (tie_add64): Likewise.
4343         (tie_add<P:mode>): ...this and use Pmode throughout.
4344         (tle_hix22_sp32): Merge into...
4345         (tle_hix22_sp64): Likewise.
4346         (tle_hix22<P:mode>): ...this and use Pmode throughout.
4347         (tle_lox22_sp32): Merge into...
4348         (tle_lox22_sp64): Likewise.
4349         (tle_lox22<P:mode>): ...this and use Pmode throughout.
4350         (*tldo_ldub_sp32): Merge into...
4351         (*tldo_ldub_sp64): Likewise.
4352         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
4353         (*tldo_ldub1_sp32): Merge into...
4354         (*tldo_ldub1_sp64): Likewise.
4355         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
4356         (*tldo_ldub2_sp32): Merge into...
4357         (*tldo_ldub2_sp64): Likewise.
4358         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
4359         (*tldo_ldsb1_sp32): Merge into...
4360         (*tldo_ldsb1_sp64): Likewise.
4361         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
4362         (*tldo_ldsb2_sp32): Merge into...
4363         (*tldo_ldsb2_sp64): Likewise.
4364         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
4365         (*tldo_ldub3_sp64): Use DImode throughout.
4366         (*tldo_ldsb3_sp64): Likewise.
4367         (*tldo_lduh_sp32): Merge into...
4368         (*tldo_lduh_sp64): Likewise.
4369         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
4370         (*tldo_lduh1_sp32): Merge into...
4371         (*tldo_lduh1_sp64): Likewise.
4372         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
4373         (*tldo_ldsh1_sp32): Merge into...
4374         (*tldo_ldsh1_sp64): Likewise.
4375         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
4376         (*tldo_lduh2_sp64): Use DImode throughout.
4377         (*tldo_ldsh2_sp64): Likewise.
4378         (*tldo_lduw_sp32): Merge into...
4379         (*tldo_lduw_sp64): Likewise.
4380         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
4381         (*tldo_lduw1_sp64): Use DImode throughout.
4382         (*tldo_ldsw1_sp64): Likewise.
4383         (*tldo_ldx_sp64): Likewise.
4384         (*tldo_stb_sp32): Merge into...
4385         (*tldo_stb_sp64): Likewise.
4386         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
4387         (*tldo_sth_sp32): Merge into...
4388         (*tldo_sth_sp64): Likewise.
4389         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
4390         (*tldo_stw_sp32): Merge into...
4391         (*tldo_stw_sp64): Likewise.
4392         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
4393         (*tldo_stx_sp64): Use DImode throughout.
4395 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4397         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
4398         check configure option to set BTI and Return Address Signing.
4399         * configure.ac: Add --enable-standard-branch-protection and
4400         --disable-standard-branch-protection.
4401         * configure: Regenerated.
4402         * doc/install.texi: Document the same.
4404 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4405             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4407         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
4408         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
4409         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
4410         if bti is enabled.
4411         * config/aarch64/aarch64-bti-insert.c: New file.
4412         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
4413         pass.
4414         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
4415         new bti pass.
4416         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
4417         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
4418         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
4419         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
4421 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4423         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
4424         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
4425         Disable bti for -mbranch-protection=none.
4426         (aarch64_handle_standard_branch_protection): Enable bti for
4427         -mbranch-protection=standard.
4428         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
4429         -mbranch-protection.
4430         (aarch64_bti_enabled): Check if bti is enabled.
4431         * config/aarch64/aarch64.opt: Declare target variable.
4432         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
4434 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4436         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
4437         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
4438         (aarch64_expand_epilogue): Likewise.
4439         (aarch64_output_mi_thunk): Likewise
4440         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
4441         TAILCALL_ADDR_REGS to x16 and x17.
4442         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
4444 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4446         * config/aarch64/aarch64-option-extensions.def: Define
4447         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
4448         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
4449         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
4450         (AARCH64_FL_PREDRES): New.
4451         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
4452         AARCH64_FL_PREDRES by default.
4453         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
4455 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
4457         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
4458         ARMv8.5-A.
4459         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
4460         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
4461         * doc/invoke.texi: Document ARMv8.5-A.
4463 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
4465         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
4466         (xorsign<mode>3): Likewise.
4468 2019-01-09  Jelinek  <jakub@redhat.com>
4470         PR middle-end/88758
4471         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
4472         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
4474         PR rtl-optimization/88331
4475         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
4476         not currently_expanding_to_rtl.
4478 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
4480         * doc/invoke.texi (-Os): Remove trailing spaces.
4481         (-finline-functions): Remove reference to -O2.
4483 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
4485         PR rtl-optimization/79593
4486         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
4488         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
4489         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
4491 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
4493         PR bootstrap/88721
4494         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
4495         to -1 on entry.
4497         PR debug/88723
4498         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
4499         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
4501 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
4503         PR target/88717
4504         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
4505         ix86_avx_u128_mode_entry.
4507 2019-01-08  Martin Liska  <mliska@suse.cz>
4509         PR tree-optimization/88753
4510         * tree-switch-conversion.c (switch_conversion::build_one_array):
4511         Come up with local variable constructor.  Convert first to
4512         type of constructor values.
4514 2019-01-08  Richard Biener  <rguenther@suse.de>
4516         PR tree-optimization/86554
4517         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
4518         rpo_avail): Move earlier.
4519         (visit_nary_op): When value-numbering to expressions
4520         with different overflow behavior make sure there's an
4521         available expression on the path.
4523 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
4525         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
4526         aarch64_parse_branch_protection,
4527         struct aarch64_branch_protect_type,
4528         aarch64_handle_no_branch_protection,
4529         aarch64_handle_standard_branch_protection,
4530         aarch64_validate_mbranch_protection,
4531         aarch64_handle_pac_ret_protection,
4532         aarch64_handle_attr_branch_protection,
4533         accepted_branch_protection_string,
4534         aarch64_pac_ret_subtypes,
4535         aarch64_branch_protect_types,
4536         aarch64_handle_pac_ret_leaf): Define.
4537         (aarch64_override_options_after_change_1, aarch64_override_options):
4538         Add check for accepted_branch_protection_string.
4539         (aarch64_option_save): Save accepted_branch_protection_string.
4540         (aarch64_option_restore): Save accepted_branch_protection_string.
4541         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
4542         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
4543         msign-return-address.
4544         * doc/invoke.texi: Add mbranch-protection.
4546 2019-01-08  Alan Modra  <amodra@gmail.com>
4548         PR target/88614
4549         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
4550         Delete "unknownp" parameter.  Adjust callers.  Handle
4551         CONST_INT, PLUS, MINUS, and MULT.
4552         (attr_value_aligned): Renamed from or_attr_value.
4553         (min_attr_value): Return INT_MIN for unhandled rtl case..
4554         (min_fn): ..and translate to INT_MAX here.
4555         (write_length_unit_log): Modify to cope without "unknown".
4556         (write_attr_value): Handle IF_THEN_ELSE.
4558 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
4560         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
4561         optimization for masked stores.
4563 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
4565         PR middle-end/88567
4566         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
4567         output vector directly to duplicate_and_interleave instead of
4568         going through a temporary.  Postpone insertion of ctor_seq to
4569         the end of the loop.
4571 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
4573         PR target/86891
4574         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
4575         unsigned_p.  Handle signed and unsigned overflow correction as
4576         required.
4577         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
4578         prototype.
4579         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
4580         for operand 2.
4581         (add<mode>3_compareV_imm): Make this callable for expanding.
4582         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
4583         aarch64_plus_operand for operand 2.
4584         (subv<GPI:mode>_insn): New insn pattern.
4585         (subv<GPI:mode>_imm): Likewise.
4586         (negv<GPI:mode>3): New expand pattern.
4587         (negv<GPI:mode>_insn): New insn pattern.
4588         (negv<GPI:mode>_cmp_only): Likewise.
4589         (cmpv<GPI:mode>_insn): Likewise.
4590         (subvti4): Use register_operand for operand 1.  Update call to
4591         aarch64_expand_subvti.
4592         (usubvti4): Likewise.
4593         (negvti3): New expand pattern.
4594         (negdi_carryout): New insn pattern.
4595         (negvdi_carryinV): New insn pattern.
4596         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
4597         version the named version.
4598         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
4599         operands.
4600         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
4601         patterns.
4602         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
4603         patterns.
4604         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
4605         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
4606         (sub<mode>3_carryinCV): Delete.
4607         (sub<GPI:mode>3_carryinV): New expand pattern.
4608         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
4610 2019-01-07  Richard Biener  <rguenther@suse.de>
4612         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
4613         of tree_operand_hash.
4615 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
4617         PR tree-optimization/88598
4618         * tree.h (single_nonzero_element): Declare.
4619         * tree.c (single_nonzero_element): New function.
4620         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
4621         if I is the only nonzero element of CST.
4623 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
4625         PR tree-optimization/88598
4626         * tree.h (initializer_each_zero_or_onep): Declare.
4627         * tree.c (initializer_each_zero_or_onep): New function.
4628         (signed_or_unsigned_type_for): Handle float types too.
4629         (unsigned_type_for, signed_type_for): Update comments accordingly.
4630         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
4631         x & { 0 or -1, 0 or -1, ... }.
4633 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
4635         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
4636         with x86_64-pc-linux-gnu.
4638 2019-01-07  Tom de Vries  <tdevries@suse.de>
4640         PR target/85486
4641         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
4642         function.
4643         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
4644         routines.
4646 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
4648         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
4649         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
4650         TARGET_AVX512F as condition.
4652         PR debug/88723
4653         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
4654         const_not_ok_for_debug_p target hook.
4655         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
4656         on UNSPEC and subexpressions thereof if all subexpressions of the
4657         UNSPEC are CONSTANT_P.
4659         PR tree-optimization/88676
4660         * tree-ssa-phiopt.c (two_value_replacement): New function.
4661         (tree_ssa_phiopt_worker): Call it.
4663         PR sanitizer/88619
4664         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
4665         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
4667         PR c++/85052
4668         * tree-vect-generic.c: Include insn-config.h and recog.h.
4669         (expand_vector_piecewise): Add defaulted ret_type argument,
4670         if non-NULL, use that in preference to type for the result type.
4671         (expand_vector_parallel): Formatting fix.
4672         (do_vec_conversion, do_vec_narrowing_conversion,
4673         expand_vector_conversion): New functions.
4674         (expand_vector_operations_1): Call expand_vector_conversion
4675         for VEC_CONVERT ifn calls.
4676         * internal-fn.def (VEC_CONVERT): New internal function.
4677         * internal-fn.c (expand_VEC_CONVERT): New function.
4678         * fold-const-call.c (fold_const_vec_convert): New function.
4679         (fold_const_call): Use it for CFN_VEC_CONVERT.
4680         * doc/extend.texi (__builtin_convertvector): Document.
4682 2019-01-07  Tom de Vries  <tdevries@suse.de>
4684         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
4685         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
4686         vector_red_partition, vector_red_sym): New global variables.
4687         (nvptx_option_override): Initialize vector_red_sym.
4688         (nvptx_declare_function_name): Restore red_partition register.
4689         (nvptx_file_end): Emit code to declare the vector reduction variables.
4690         (nvptx_output_red_partition): New function.
4691         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
4692         large vector reductions.
4693         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
4694         (nvptx_init_builtins): Add VECTOR_ADDR.
4695         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
4696         Handle nvptx_expand_shared_addr.
4697         (nvptx_get_shared_red_addr): Add vector argument and handle large
4698         vectors.
4699         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
4700         large vectors.
4701         (nvptx_goacc_reduction_init): Likewise.
4702         (nvptx_goacc_reduction_fini): Likewise.
4703         (nvptx_goacc_reduction_teardown): Likewise.
4704         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
4705         init,fini,teardown}.
4706         (nvptx_init_axis_predicate): Initialize vector_red_partition.
4707         (nvptx_set_current_function): Init vector_red_partition.
4708         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
4709         (nvptx_red_partition): New insn.
4710         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
4712 2019-01-07  Tom de Vries  <tdevries@suse.de>
4714         PR target/85381
4715         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
4716         empty loops.
4718 2019-01-07  Tom de Vries  <tdevries@suse.de>
4720         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
4721         (nvptx_option_override): Init oacc_bcast_partition.
4722         (nvptx_init_oacc_workers): New function.
4723         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
4724         (nvptx_needs_shared_bcast): New function.
4725         (nvptx_find_par): Generalize to enable vectors to use shared-memory
4726         to propagate state.
4727         (nvptx_shared_propagate): Initialize vector bcast partition and
4728         synchronization state.
4729         (nvptx_single):  Generalize to enable vectors to use shared-memory
4730         to propagate state.
4731         (nvptx_process_pars): Likewise.
4732         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
4733         * config/nvptx/nvptx.h (struct machine_function): Add
4734         bcast_partition and sync_bar members.
4736 2019-01-07  Tom de Vries  <tdevries@suse.de>
4738         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
4739         (nvptx_apply_dim_limits): New function.
4740         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
4741         PTX_WARP_SIZE.
4743 2019-01-07  Tom de Vries  <tdevries@suse.de>
4745         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
4746         as late as possible.
4748 2019-01-07  Tom de Vries  <tdevries@suse.de>
4750         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
4751         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
4752         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
4753         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
4754         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
4756 2019-01-07  Tom de Vries  <tdevries@suse.de>
4758         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
4760 2019-01-07  Tom de Vries  <tdevries@suse.de>
4762         * omp-offload.c (oacc_get_min_dim): New function.
4763         * omp-offload.h (oacc_get_min_dim): Declare.
4765 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
4767         PR target/88521
4768         * config/i386/i386.c (function_value_ms_64): Return small sturct in
4769         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
4771 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
4773         PR tree-opt/86020
4774         Revert:
4775         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
4776         
4777         * ipa-inline.c (edge_badness): Use inlined_time instead of
4778         inline_summaries->get.
4780 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
4782         * opts.c (enable_fdo_optimizations): Enable
4783         version-loops-for-strides, loop-interchange, unrol-and-jam
4784         and tree-loop-distribution.
4785         * invoke.texi: Document newly enabled options.
4787 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
4789         * doc/invoke.texi (max-inline-insns-small): New parameters.
4790         * ipa-inline.c (want_early_inline_function_p): simplify.
4791         (want_inline_small_function_p): Fix pasto from previous patch;
4792         use max-inline-insns-small bound.
4793         * params.def (max-inline-insns-small): New param.
4794         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
4795         variables correctly.
4797 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
4799         * doc/invoke.texi: Document max-inline-insns-size,
4800         uninlined-function-insns, uninlined-function-time,
4801         uninlined-thunk-insns and uninlined-thunk-time.
4802         * params.def: Add max-inline-insns-size,
4803         uninlined-function-insns, uninlined-function-time,
4804         uninlined-thunk-insns and uninlined-thunk-time.
4805         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
4806         new parameters.
4807         * ipa-inline.c (can_inline_edge_by_limits_p,
4808         want_inline_small_function_p): Use new parameters.
4810 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
4812         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
4814 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
4816         PR middle-end/82564
4817         PR target/88620
4818         * expr.c (expand_assignment): For calls returning VLA structures
4819         if to_rtx is not a MEM, force it into a stack temporary.
4821         PR debug/88635
4822         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
4823         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
4824         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
4825         subexpressions of both operands.
4826         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
4827         subrtxes are CONSTANT_P.
4828         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
4829         2018-11-09 changes.
4831 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
4833         * params.def (hot-bb-count-ws-permille): Set to 990.
4835 2019-01-04  Martin Sebor  <msebor@redhat.com>
4837         PR c/88546
4838         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
4839         leaf.
4841 2019-01-04  Martin Sebor  <msebor@redhat.com>
4843         PR c/88363
4844         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
4846 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
4848         * gdbinit.in: Turn off pagination for the skip commands, restore
4849         it to previous state afterwards.
4851 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
4853         PR target/88594
4854         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
4855         of GET_MODE (opN) as modes of the libcall arguments.
4857 2019-01-04  Jan Beulich  <jbeulich@suse.com>
4859         * config/i386/sse.md
4860         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
4861         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
4862         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
4863         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
4864         avx512f_vmcmp<mode>3<round_saeonly_name>,
4865         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
4866         avx512f_maskcmp<mode>3,
4867         <avx512>_cvt<ssemodesuffix>2mask<mode>,
4868         <avx512>_cvt<ssemodesuffix>2mask<mode>,
4869         *<avx512>_cvtmask2<ssemodesuffix><mode>,
4870         *<avx512>_cvtmask2<ssemodesuffix><mode>,
4871         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
4872         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
4873         <avx512>_gt<mode>3<mask_scalar_merge_name>,
4874         <avx512>_gt<mode>3<mask_scalar_merge_name>,
4875         <avx512>_testm<mode>3<mask_scalar_merge_name>,
4876         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
4877         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
4878         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
4879         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
4880         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
4881         avx512cd_maskb_vec_dup<mode>,
4882         avx512cd_maskw_vec_dup<mode>,
4883         avx512dq_fpclass<mode><mask_scalar_merge_name>,
4884         avx512dq_vmfpclass<mode>,
4885         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
4886         instead of =Yk.
4888 2019-01-03  Martin Sebor  <msebor@redhat.com>
4890         PR tree-optimization/88659
4891         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
4893 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
4895         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
4896         unaligned vsx and avoid lxvd2x/stxvd2x.
4897         (gen_lvx_v4si_move): New function.
4899 2019-01-03  Tom de Vries  <tdevries@suse.de>
4901         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
4902         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
4903         function.
4904         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
4906 2019-01-03  Tom de Vries  <tdevries@suse.de>
4908         * config/nvptx/nvptx.c (struct offload_attrs): New.
4909         (populate_offload_attrs): New function.  Factor mask extraction out of
4910         nvptx_reorg.  Add extraction of dimensions.
4911         (nvptx_reorg): Use populate_offload_attrs.
4913 2019-01-03  Tom de Vries  <tdevries@suse.de>
4915         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
4916         cases for oacc_min_dims_p and routine_p.  Add asserts for
4917         oacc_default_dims_p and offload_region_p.
4919 2019-01-03  Tom de Vries  <tdevries@suse.de>
4921         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
4922         factored out of ...
4923         (nvptx_goacc_validate_dims): ... here.
4925 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
4927         PR tree-optimization/85574
4928         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
4929         structure.
4930         (struct ssa_equip_hash_traits): Declare.
4931         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
4933 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
4935         PR debug/88644
4936         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
4937         change it to qualified_type.
4939 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
4941         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
4942         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
4944 2019-01-02  Martin Sebor  <msebor@redhat.com>
4945             Jeff Law  <law@redhat.com>
4947         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
4948         (get_range_strlen_tree): Update appropriately.
4949         (get_range_strlen)
4950         * gimple-fold.h (get_range_strlen): Drop unused last argument.
4952         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
4953         rather than set_range_info.
4954         * tree-ssa-strlen.c (set_strlen_range): Extracted from
4955         maybe_set_strlen_range.  Handle potentially boundary crossing
4956         cases more conservatively.
4957         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
4958         Call set_strlen_range.
4959         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
4961         PR middle-end/88663
4962         * gimple-fold.c (get_range_strlen): Update prototype to no longer
4963         need the flexp argument.
4964         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
4965         from calls to get_range_strlen.  Update comments.  Just update
4966         VAL for an unterminated const char array and let the reset of the
4967         code handle it normally.  No longer try to set *flexp.  Adjust
4968         return value.
4969         (get_range_strlen): Update for the new get_range_strlen API.
4970         (get_maxval_strlen): Similarly.
4971         (gimple_fold_builtin_strlen): Handle update meaning of return value
4972         from get_range_strlen.
4973         * gimple-ssa-sprintf.c (get_string_length): Update for the new
4974         get_range_strlen API.
4976 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
4978         PR lto/88130
4979         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
4980         false at WPA time when body was removed.
4982 2019-01-02  Martin Liska  <mliska@suse.cz>
4984         PR tree-optimization/88650
4985         * predict.c (set_even_probabilities): Calculate probability
4986         remainer only when really used.
4988 2019-01-02  Richard Biener  <rguenther@suse.de>
4990         PR middle-end/88651
4991         * tree-data-ref.c (analyze_subscript_affine_affine): Use
4992         widest_ints when mangling max_stmt_execution results.
4994 2019-01-02  Richard Biener  <rguenther@suse.de>
4996         PR tree-optimization/88621
4997         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
4998         bitfields when canoncalizing.
5000 2019-01-02  Richard Biener  <rguenther@suse.de>
5002         PR target/87545
5003         * config/i386/x86-tune-costs.h (intel_cost): Adjust
5004         cost of cheap SSE instruction.
5006 2019-01-02  Richard Biener  <rguenther@suse.de>
5008         PR ipa/85574
5009         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
5010         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
5011         function.
5012         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
5013         set after UIDs before splitting them.
5015 2019-01-01  Martin Sebor  <msebor@redhat.com>
5016             Jeff Law  <law@redhat.com>
5018         * gimple-fold.c (get_range_strlen_tree): Record if the computed
5019         length is optimistic.  If it is, then arrange to compute the
5020         conservative length as well.
5022         * gimple-fold.h (get_range_strlen): Update prototype.
5023         * builtins.c (check_access): Update call to get_range_strlen to use
5024         c_strlen_data pointer.   Change various variable accesses to instead
5025         pull data from the c_strlen_data structure.
5026         (check_strncat_sizes, expand_builtin_strncat): Likewise.
5027         * calls.c (maybe_warn_nonstring_arg): Likewise.
5028         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
5029         minimum length if maximum lengh is unknown.
5030         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
5031         that used c_strlen, it's no longer needed.  Restructure slightly.
5032         (format_string): Set unlikely range appropriately.
5033         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
5034         formatting issues.
5035         (get_range_strlen):  Accept c_strlen_data pointer for external
5036         call sites as well.  Pass through to call to internal get_range_strlen.
5037         Adjust minlen, maxlen and maxbound as needed.
5038         (get_maxval_strlen): Update comments.
5039         (gimple_fold_builtin_strlen):  Update call to get_range_strlen
5040         to use c_strlen_data pointer.  Change variable accesses to instead
5041         use c_strlen_data data members.
5043         * gimple-fold.c (get_range_strlen): Update prototype.
5044         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
5045         local variables.  Use pdata to return information to caller.
5046         Update calls to get_range_strlen.  Update pdata->maxbound.
5047         (get_range_strlen -- static version): Similarly.
5048         (get_range_strlen -- extern version): Update for internal
5049         get_range_strlen API change.  Convert to external data format.
5050         (get_maxval_strlen): Similarly.
5052 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
5054         * coverage.c (get_coverage_counts): Use current_function_decl.
5055         * profile.c (read_thunk_profile): New function.
5056         (branch_prob): Add THUNK parameter.
5057         * tree-profile.c (tree_profiling): Handle thunks.
5058         * value-prof.c (init_node_map): Handle thunks.
5059         * value-prof.h (branch_prob): Upate prototype.
5060         (read_thunk_profile): Declare.
5062 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
5064         Update copyright years.
5066         * gcc.c (process_command): Update copyright notice dates.
5067         * gcov-dump.c (print_version): Ditto.
5068         * gcov.c (print_version): Ditto.
5069         * gcov-tool.c (print_version): Ditto.
5070         * gengtype.c (create_file): Ditto.
5071         * doc/cpp.texi: Bump @copying's copyright year.
5072         * doc/cppinternals.texi: Ditto.
5073         * doc/gcc.texi: Ditto.
5074         * doc/gccint.texi: Ditto.
5075         * doc/gcov.texi: Ditto.
5076         * doc/install.texi: Ditto.
5077         * doc/invoke.texi: Ditto.
5079 Copyright (C) 2019 Free Software Foundation, Inc.
5081 Copying and distribution of this file, with or without modification,
5082 are permitted in any medium without royalty provided the copyright
5083 notice and this notice are preserved.