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