Add -std=c17, -std=gnu17.
[official-gcc.git] / gcc / ChangeLog
blob0274d9b2f5031cac6151fe6b7d8708050417befb
1 2017-10-30  Joseph Myers  <joseph@codesourcery.com>
3         * doc/invoke.texi (C Dialect Options): Document -std=c17,
4         -std=iso9899:2017 and -std=gnu17.
5         * doc/standards.texi (C Language): Document C17 support.
6         * doc/cpp.texi (Overview): Mention -std=c17.
7         (Standard Predefined Macros): Document C11 and C17 values of
8         __STDC_VERSION__.  Do not refer to C99 support as incomplete.
9         * doc/extend.texi (Inline): Do not list individual options for
10         standards newer than C99.
11         * dwarf2out.c (highest_c_language, gen_compile_unit_die): Handle
12         "GNU C17".
13         * config/rl78/rl78.c (rl78_option_override): Handle "GNU C17"
14         language name.
16 2017-10-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
18         * asan.c (asan_finish_file): Align asan globals array by shadow
19         granularity.
21 2017-10-30  Jakub Jelinek  <jakub@redhat.com>
23         PR middle-end/22141
24         * gimple-ssa-store-merging.c: Include rtl.h and expr.h.
25         (struct store_immediate_info): Add bitregion_start and bitregion_end
26         fields.
27         (store_immediate_info::store_immediate_info): Add brs and bre
28         arguments and initialize bitregion_{start,end} from those.
29         (struct merged_store_group): Add bitregion_start, bitregion_end,
30         align_base and mask fields.  Drop unnecessary struct keyword from
31         struct store_immediate_info.  Add do_merge method.
32         (clear_bit_region_be): Use memset instead of loop storing zeros.
33         (merged_store_group::do_merge): New method.
34         (merged_store_group::merge_into): Use do_merge.  Allow gaps in between
35         stores as long as the surrounding bitregions have no gaps.
36         (merged_store_group::merge_overlapping): Use do_merge.
37         (merged_store_group::apply_stores): Test that bitregion_{start,end}
38         is byte aligned, rather than requiring that start and width are
39         byte aligned.  Drop unnecessary struct keyword from
40         struct store_immediate_info.  Allocate and populate also mask array.
41         Make start of the arrays relative to bitregion_start rather than
42         start and size them according to bitregion_{end,start} difference.
43         (struct imm_store_chain_info): Drop unnecessary struct keyword from
44         struct store_immediate_info.
45         (pass_store_merging::gate): Punt if BITS_PER_UNIT or CHAR_BIT is not 8.
46         (pass_store_merging::terminate_all_aliasing_chains): Drop unnecessary
47         struct keyword from struct store_immediate_info.
48         (imm_store_chain_info::coalesce_immediate_stores): Allow gaps in
49         between stores as long as the surrounding bitregions have no gaps.
50         Formatting fixes.
51         (struct split_store): Add orig non-static data member.
52         (split_store::split_store): Initialize orig to false.
53         (find_constituent_stmts): Return store_immediate_info *, non-NULL
54         if there is exactly a single original stmt.  Change stmts argument
55         to pointer from reference, if NULL, don't push anything to it.  Add
56         first argument, use it to optimize skipping over orig stmts that
57         are known to be before bitpos already.  Simplify.
58         (split_group): Return unsigned int count how many stores are or
59         would be needed rather than a bool.  Add allow_unaligned argument.
60         Change split_stores argument from reference to pointer, if NULL,
61         only do a dry run computing how many stores would be produced.
62         Rewritten algorithm to use both alignment and misalign if
63         !allow_unaligned and handle bitfield stores with gaps.
64         (imm_store_chain_info::output_merged_store): Set start_byte_pos
65         from bitregion_start instead of start.  Compute allow_unaligned
66         here, if true, do 2 split_group dry runs to compute which one
67         produces fewer stores and prefer aligned if equal.  Punt if
68         new count is bigger or equal than original before emitting any
69         statements, rather than during that.  Remove no longer needed
70         new_ssa_names tracking.  Replace num_stmts with
71         split_stores.length ().  Use 32-bit stack allocated entries
72         in split_stores auto_vec.  Try to reuse original store lhs/rhs1
73         if possible.  Handle bitfields with gaps.
74         (pass_store_merging::execute): Ignore bitsize == 0 stores.
75         Compute bitregion_{start,end} for the stores and construct
76         store_immediate_info with that.  Formatting fixes.
78 2017-10-30  Uros Bizjak  <ubizjak@gmail.com>
80         PR target/82725
81         * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
82         UNSPEC_DTPOFF and UNSPEC_NTPOFF with SImode immediate offset.
84 2017-10-29  Jim Wilson  <wilson@tuliptree.org>
86         * gimplify.c: Include tm_p.h.
88         * common.opt (gcoff): Re-add as ignored option.
89         (gcoff1, gcoff2, gcoff3): Likewise.
91         * Makefile.in (OBJS): Delete sdbout.o.
92         (GTFILES): Delete $(srcdir)/sdbout.c.
93         * debug.h: Delete sdb_debug_hooks.
94         * final.c: Delete sdbout.h include.
95         (final_scan_insn): Delete SDB_DEBUG check.
96         (rest_of_clean_state): Likewise.
97         * output.h: Delete sdb_begin_function_line.
98         * sdbout.c: Delete.
99         * sdbout.h: Delete.
100         * toplev.c: Delete sdbout.h include.
101         (process_options): Delete SDB_DEBUG check.
102         * tree-core.h (tree_type_common): Delete pointer field of
103         tree_type_symtab.
104         * tree.c (copy_node): Clear TYPE_SYMTAB_DIE instead of
105         TYPE_SYMTAB_POINTER.
106         * tree.h (TYPE_SYMTAB_POINTER): Delete.
107         (TYPE_SYMTAB_IS_POINTER): Delete.
108         (TYPE_SYMTAB_IS_DIE): Renumber.
109         * xcoffout.c: Refer to former sdbout.c file.
110         (xcoffout_begin_prologue): Use past tense for sdbout.c reference.
112         * doc/install.texi (--with-stabs): Delete COFF and ECOFF info.
113         * doc/invoke.texi (SEEALSO): Delete adb and sdb references.
114         (Debugging Options): Delete -gcoff.
115         (-gstabs): Delete SDB reference.
116         (-gcoff): Delete.
117         (-gcoff@var{level}): Delete.
118         * doc/passes.texi (Debugging information output): Delete SDB and
119         sdbout.c references.
120         * doc/tm.texi: Regenerate.
121         * doc/tm.texi.in (DWARF_CIE_DATA_ALIGNMENT): Delete SDB from xref.
122         (SDB and DWARF): Change node name to DWARF and delete SDB and COFF
123         references.
124         (DEBUGGER_AUTO_OFFSET): Delete COFF and SDB references.
125         (PREFERRED_DEBUGGING_TYPE): Delete SDB_DEBUG and -gcoff references.
126         (SDB_DEBUGGING_INFO): Delete.
127         (PUT_SDB_@dots{}, SDB_DELIM, SDB_ALLOW_UNKNOWN_REFERENCES)
128         SDB_ALLOW_FORWARD_REFERENCES, SDB_OUTPUT_SOURCE_LINE): Delete.
129         * target.def (output_source_filename): Delete COFF reference.
131         * common.opt (gcoff): Delete.
132         (gxcoff+): Update Negative chain.
133         * defaults.h: Delete all references to SDB_DEBUGGING_INFO and
134         SDB_DEBUG.
135         * dwarf2out.c (gen_array_type_die): Change SDB to debuggers.
136         * flag-types.h (enum debug_info_type): Delete SDB_DEBUG.
137         * function.c (number_blocks): Delete SDB_DEBUGGING_INFO, SDB_DEBUG,
138         and SDB references.
139         (expand_function_start): Change sdb reference to past tense.
140         (expand_function_end): Change sdb reference to past tense.
141         * gcc.c (cpp_unique_options): Delete gcoff3 reference.
142         * opts.c (debug_type_names): Delete coff entry.
143         (common_handle_option): Delete OPT_gcoff case.
144         * system.h (SDB_DEBUG, SDB_DEBUGGING_INFO): Poison.
146         * config/dbxcoff.h (PREFERRED_DEBUGGING_TYPE): Set to DBX_DEBUG.
147         * config/cris/cris.h: Delete SDB reference in comment.
148         * config/i386/cygming.h: Don't define SDB_DEBUGGING_INFO.
149         (ASM_DECLARE_FUNCTION_NAME): Delete SDB reference from comment.
150         * config/i386/gas.h: Don't define SDB_DEBUGGING_INFO.
151         * config/i386/i386.c (svr4_dbx_register_map): Change SDB references
152         to past tense.
153         (ix86_expand_prologue): Likewise.
154         * config/i386/winnt.c (i386_pe_start_function): Don't check SDB_DEBUG.
155         * config/ia64/ia64.h: Likewise.
156         * config/m68k/m68kelf.h (DBX_REGISTER_NUMBER): Delete SDB reference.
157         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Delete gcoff*
158         support.
159         * config/mmix/mmix.h: Likewise.
160         * config/nds32/nds32.c: Likewise.
161         * config/stormy/storym16.h: Likewise.
162         * config/visium/visium.h: Likewise.
163         * config/vx-common.h (SDB_DEBUGGING_INFO): Delete undef.
165 2017-10-28  Sandra Loosemore  <sandra@codesourcery.com>
167         * config/nios2/nios2.h (FRAME_GROWS_DOWNWARD): Define to 1.
168         * config/nios2/nios2.c (nios2_initial_elimination_offset):  Make
169         FRAME_POINTER_REGNUM point at high end of local var area.
171 2017-10-27  Eric Botcazou  <ebotcazou@adacore.com>
173         * bb-reorder.c (find_traces_1_round): Fix off-by-one index.
174         Move comment around.  Do not reset best_edge for a copiable
175         destination if the copy would cause a partition change.
176         (better_edge_p): Remove redundant check.
178 2017-10-27  Uros Bizjak  <ubizjak@gmail.com>
180         * config/i386/i386-protos.h (ix86_fp_compare_mode): Remove prototype.
182 2017-10-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
184         * builtins.c (CASE_MATHFN_FLOATN): New helper macro to add cases
185         for math functions that have _Float<N> and _Float<N>X variants.
186         (mathfn_built_in_2): Add support for math functions that have
187         _Float<N> and _Float<N>X variants.
188         (DEF_INTERNAL_FLT_FLOATN_FN): New helper macro.
189         (expand_builtin_mathfn_ternary): Add support for fma with
190         _Float<N> and _Float<N>X variants.
191         (expand_builtin): Likewise.
192         (fold_builtin_3): Likewise.
193         * builtins.def (DEF_EXT_LIB_FLOATN_NX_BUILTINS): New macro to
194         create math function _Float<N> and _Float<N>X variants as external
195         library builtins.
196         (BUILT_IN_COPYSIGN _Float<N> and _Float<N>X variants) Use
197         DEF_EXT_LIB_FLOATN_NX_BUILTINS to make built-in functions using
198         the __builtin_ prefix and if not strict ansi, without the prefix.
199         (BUILT_IN_FABS _Float<N> and _Float<N>X variants): Likewise.
200         (BUILT_IN_FMA _Float<N> and _Float<N>X variants): Likewise.
201         (BUILT_IN_FMAX _Float<N> and _Float<N>X variants): Likewise.
202         (BUILT_IN_FMIN _Float<N> and _Float<N>X variants): Likewise.
203         (BUILT_IN_NAN _Float<N> and _Float<N>X variants): Likewise.
204         (BUILT_IN_SQRT _Float<N> and _Float<N>X variants): Likewise.
205         * builtin-types.def (BT_FN_FLOAT16_FLOAT16_FLOAT16_FLOAT16): New
206         function signatures for fma _Float<N> and _Float<N>X variants.
207         (BT_FN_FLOAT32_FLOAT32_FLOAT32_FLOAT32): Likewise.
208         (BT_FN_FLOAT64_FLOAT64_FLOAT64_FLOAT64): Likewise.
209         (BT_FN_FLOAT128_FLOAT128_FLOAT128_FLOAT128): Likewise.
210         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X_FLOAT32X): Likewise.
211         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X_FLOAT64X): Likewise.
212         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X_FLOAT128X): Likewise.
213         * gencfn-macros.c (print_case_cfn): Add support for math functions
214         that have _Float<N> and _Float<N>X variants.
215         (print_define_operator_list): Likewise.
216         (fltfn_suffixes): Likewise.
217         (main): Likewise.
218         * internal-fn.def (DEF_INTERNAL_FLT_FLOATN_FN): New helper macro
219         for math functions that have _Float<N> and _Float<N>X variants.
220         (SQRT): Add support for sqrt, copysign, fmin and fmax _Float<N>
221         and _Float<N>X variants.
222         (COPYSIGN): Likewise.
223         (FMIN): Likewise.
224         (FMAX): Likewise.
225         * fold-const.c (tree_call_nonnegative_warnv_p): Add support for
226         copysign, fma, fmax, fmin, and sqrt _Float<N> and _Float<N>X
227         variants.
228         (integer_valued_read_call_p): Likewise.
229         * fold-const-call.c (fold_const_call_ss): Likewise.
230         (fold_const_call_sss): Add support for copysign, fmin, and fmax
231         _Float<N> and _Float<N>X variants.
232         (fold_const_call_ssss): Add support for fma _Float<N> and
233         _Float<N>X variants.
234         * gimple-ssa-backprop.c (backprop::process_builtin_call_use): Add
235         support for copysign and fma _Float<N> and _Float<N>X variants.
236         (backprop::process_builtin_call_use): Likewise.
237         * tree-call-cdce.c (can_test_argument_range); Add support for
238         sqrt _Float<N> and _Float<N>X variants.
239         (edom_only_function): Likewise.
240         (get_no_error_domain): Likewise.
241         * tree-ssa-math-opts.c (internal_fn_reciprocal): Likewise.
242         * tree-ssa-reassoc.c (attempt_builtin_copysign): Add support for
243         copysign _Float<N> and _Float<N>X variants.
244         * config/rs6000/rs6000-builtin.def (SQRTF128): Delete, this is now
245         handled by machine independent code.
246         (FMAF128): Likewise.
247         * doc/cpp.texi (Common Predefined Macros): Document defining
248         __FP_FAST_FMAF<N> and __FP_FAST_FMAF<N>X if the backend supports
249         fma _Float<N> and _Float<N>X variants.
251 2017-10-27  Uros Bizjak  <ubizjak@gmail.com>
253         PR target/82692
254         * config/i386/i386-modes.def (CCFPU): Remove definition.
255         * config/i386/i386.c (put_condition_mode): Remove CCFPU mode handling.
256         (ix86_cc_modes_compatible): Ditto.
257         (ix86_expand_carry_flag_compare): Ditto.
258         (ix86_expand_int_movcc): Ditto.
259         (ix86_expand_int_addcc): Ditto.
260         (ix86_reverse_condition): Ditto.
261         (ix86_unordered_fp_compare): Rename from ix86_fp_compare_mode.
262         Return true/false for unordered/ordered fp comparisons.
263         (ix86_cc_mode): Always return CCFPmode for float mode comparisons.
264         (ix86_prepare_fp_compare_args): Update for rename.
265         (ix86_expand_fp_compare): Update for rename.  Generate unordered
266         compare RTXes wrapped with UNSPEC_NOTRAP unspec.
267         (ix86_expand_sse_compare_and_jump): Ditto.
268         * config/i386/predicates.md (fcmov_comparison_operator):
269         Remove CCFPU mode handling.
270         (ix86_comparison_operator): Ditto.
271         (ix86_carry_flag_operator): Ditto.
272         * config/i386/i386.md (UNSPEC_NOTRAP): New unspec.
273         (*cmpu<mode>_i387): Wrap compare RTX with UNSPEC_NOTRAP unspec.
274         (*cmpu<mode>_cc_i387): Ditto.
275         (FPCMP): Remove mode iterator.
276         (unord): Remove mode attribute.
277         (unord_subst): New define_subst transformation
278         (unord): New define_subst attribute.
279         (unordered): Ditto.
280         (*cmpi<unord><MODEF:mode>): Rewrite using unord_subst transformation.
281         (*cmpi<unord>xf_i387): Ditto.
282         * config/i386/sse.md (<sse>_<unord>comi<round_saeonly_name>): Merge
283         from <sse>_comi<round_saeonly_name> and <sse>_ucomi<round_saeonly_name>
284         using unord_subst transformation.
285         * config/i386/subst.md (SUBST_A): Remove CCFP and CCFPU modes.
286         (round_saeonly): Also handle CCFP mode.
287         * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_NOTRAP unspec.
288         Remove UNSPEC_SAHF unspec handling.
290 2017-10-27  Jan Hubicka  <hubicka@ucw.cz>
292         * x86-tune.def (X86_TUNE_INTER_UNIT_MOVES_TO_VEC): Disable for Zen.
294 2017-10-27  Jeff Law  <law@redhat.com>
296         * gimple-ssa-sprintf.c: Include domwalk.h.
297         (class sprintf_dom_walker): New class, derived from dom_walker.
298         (sprintf_dom_walker::before_dom_children): New function.
299         (struct call_info): Moved into sprintf_dom_walker class
300         (compute_formath_length, handle_gimple_call): Likewise.
301         (sprintf_length::execute): Call the dominator walker rather
302         than walking the statements.
304         * tree-vrp.c (check_all_array_refs): Do not use wi->info to smuggle
305         gimple statement locations.
306         (check_array_bounds): Corresponding changes.  Get the statement's
307         location directly from wi->stmt.
309 2017-10-27  Palmer Dabbelt  <palmer@dabbelt.com>
311         PR target/82717
312         * doc/invoke.texi (RISC-V) <-mabi>: Correct and improve.
314 2017-10-27  Jan Hubicka  <hubicka@ucw.cz>
316         * config/i386/x86-tune.def (X86_TUNE_PARTIAL_REG_DEPENDENCY,
317         X86_TUNE_MOVX): Disable for Haswell and newer CPUs.
319 2017-10-27  Jakub Jelinek  <jakub@redhat.com>
321         PR target/82703
322         * config/i386/i386-protos.h (maybe_get_pool_constant): Removed.
323         * config/i386/i386.c (maybe_get_pool_constant): Removed.
324         (ix86_split_to_parts): Use avoid_constant_pool_reference instead of
325         maybe_get_pool_constant.
326         * config/i386/predicates.md (zero_extended_scalar_load_operand):
327         Likewise.
329 2017-10-27  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
331         * doc/install.texi (Specific, i?86-*-solaris2.10): Simplify gas
332         2.26 caveat.  Update gas and gld versions.
333         (Specific, *-*-solaris2*): Update binutils version.  Remove caveat
334         reference.
336 2017-10-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
338         * cgraph.h (set_malloc_flag): Declare.
339         * cgraph.c (set_malloc_flag_1): New function.
340         (set_malloc_flag): Likewise.
341         * ipa-fnsummary.h (ipa_call_summary): Add new field is_return_callee.
342         * ipa-fnsummary.c (ipa_call_summary::reset): Set is_return_callee to
343         false.
344         (read_ipa_call_summary): Add support for reading is_return_callee.
345         (write_ipa_call_summary): Stream is_return_callee.
346         * ipa-inline.c (ipa_inline): Remove call to ipa_free_fn_summary.
347         * ipa-pure-const.c: Add headers ssa.h, alloc-pool.h, symbol-summary.h,
348         ipa-prop.h, ipa-fnsummary.h.
349         (pure_const_names): Change to static.
350         (malloc_state_e): Define.
351         (malloc_state_names): Define.
352         (funct_state_d): Add field malloc_state.
353         (varying_state): Set malloc_state to STATE_MALLOC_BOTTOM.
354         (check_retval_uses): New function.
355         (malloc_candidate_p): Likewise.
356         (analyze_function): Add support for malloc attribute.
357         (pure_const_write_summary): Stream malloc_state.
358         (pure_const_read_summary): Add support for reading malloc_state.
359         (dump_malloc_lattice): New function.
360         (propagate_malloc): New function.
361         (warn_function_malloc): New function.
362         (ipa_pure_const::execute): Call propagate_malloc and
363         ipa_free_fn_summary.
364         (pass_local_pure_const::execute): Add support for malloc attribute.
365         * ssa-iterators.h (RETURN_FROM_IMM_USE_STMT): New macro.
366         * doc/invoke.texi: Document Wsuggest-attribute=malloc.
368 2017-10-27  Martin Liska  <mliska@suse.cz>
370         PR gcov-profile/82457
371         * doc/invoke.texi: Document that one needs a non-strict ISO mode
372         for fork-like functions to be properly instrumented.
374 2017-10-27  Richard Biener  <rguenther@suse.de>
376         PR middle-end/81659
377         * tree-eh.c (pass_lower_eh_dispatch::execute): Free dominator
378         info when we redirected EH.
380 2017-10-26  Michael Collison  <michael.collison@arm.com>
382         * config/aarch64/aarch64.md(<optab>_trunc><vf><GPI:mode>2):
383         New pattern.
384         (<optab>_trunchf<GPI:mode>2: New pattern.
385         (<optab>_trunc<vgp><GPI:mode>2: New pattern.
386         * config/aarch64/iterators.md (wv): New mode attribute.
387         (vf, VF): New mode attributes.
388         (vgp, VGP): New mode attributes.
389         (s): Update attribute with SImode and DImode prefixes.
391 2017-10-26  Sandra Loosemore  <sandra@codesourcery.com>
393         * config/nios2/constraints.md ("S"): Match r0rel_constant_p too.
394         * config/nios2/nios2-protos.h (r0rel_constant_p): Declare.
395         * config/nios2/nios2.c: (nios2_r0rel_sec_regex): New.
396         (nios2_option_overide): Initialize it.  Don't allow R0-relative
397         addressing with PIC.
398         (nios2_rtx_costs): Handle r0rel_constant_p like gprel_constant_p.
399         (nios2_symbolic_constant_p): Likewise.
400         (nios2_legitimate_address_p): Likewise.
401         (nios2_r0rel_section_name_p): New.
402         (nios2_symbol_ref_in_r0rel_data_p): New.
403         (nios2_emit_move_sequence): Handle r0rel_constant_p.
404         (r0rel_constant_p): New.
405         (nios2_print_operand_address): Handle r0rel_constant_p.
406         (nios2_cdx_narrow_form_p): Likewise.
407         * config/nios2/nios2.opt (mr0rel-sec=): New option.
408         * doc/invoke.texi (Option Summary): Add -mr0rel-sec.
409         (Nios II Options): Document -mr0rel-sec.
411 2017-10-26  Sandra Loosemore  <sandra@codesourcery.com>
413         * config/nios2/nios2.c: Include xregex.h.
414         (nios2_gprel_sec_regex): New.
415         (nios2_option_overide): Initialize it.  Don't allow GP-relative
416         addressing with PIC.
417         (nios2_small_section_name_p): Check for regex match.
418         * config/nios2/nios2.opt (mgprel-sec=): New option.
419         * doc/invoke.texi (Option Summary): Add -mgprel-sec.
420         (Nios II Options): Document -mgprel-sec.
422 2017-10-26  Jim Wilson  <wilson@tuliptree.org>
424         * doc/invoke.texi (-fdebug-prefix-map): Expand documentation.
426 2017-10-26  Tom de Vries  <tom@codesourcery.com>
428         PR tree-optimization/82707
429         * gimple.c (gimple_copy): Fix unsharing of
430         GIMPLE_OMP_{SINGLE,TARGET,TEAMS}.
432 2017-10-26  Olga Makhotina  <olga.makhotina@intel.com>
434         * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
435         _mm512_cmple_pd_mask, _mm512_cmplt_pd_mask,
436         _mm512_cmpneq_pd_mask, _mm512_cmpnle_pd_mask,
437         _mm512_cmpnlt_pd_mask, _mm512_cmpord_pd_mask,
438         _mm512_cmpunord_pd_mask, _mm512_mask_cmpeq_pd_mask,
439         _mm512_mask_cmple_pd_mask, _mm512_mask_cmplt_pd_mask,
440         _mm512_mask_cmpneq_pd_mask, _mm512_mask_cmpnle_pd_mask,
441         _mm512_mask_cmpnlt_pd_mask, _mm512_mask_cmpord_pd_mask,
442         _mm512_mask_cmpunord_pd_mask, _mm512_cmpeq_ps_mask,
443         _mm512_cmple_ps_mask, _mm512_cmplt_ps_mask,
444         _mm512_cmpneq_ps_mask, _mm512_cmpnle_ps_mask,
445         _mm512_cmpnlt_ps_mask, _mm512_cmpord_ps_mask,
446         _mm512_cmpunord_ps_mask, _mm512_mask_cmpeq_ps_mask,
447         _mm512_mask_cmple_ps_mask, _mm512_mask_cmplt_ps_mask,
448         _mm512_mask_cmpneq_ps_mask, _mm512_mask_cmpnle_ps_mask,
449         _mm512_mask_cmpnlt_ps_mask, _mm512_mask_cmpord_ps_mask,
450         _mm512_mask_cmpunord_ps_mask): New intrinsics.
452 2017-10-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
454         * config/rs6000/aix.h (TARGET_IEEEQUAD_DEFAULT): Set long double
455         default to IBM.
456         * config/rs6000/darwin.h (TARGET_IEEEQUAD_DEFAULT): Likewise.
457         * config/rs6000/rs6000.opt (-mabi=ieeelongdouble): Move the
458         warning to rs6000.c.  Remove the Undocumented flag, since it has
459         been documented.
460         (-mabi=ibmlongdouble): Likewise.
461         * config/rs6000/rs6000.c (TARGET_IEEEQUAD_DEFAULT): If it is not
462         already set, set the default format for long double.
463         (rs6000_debug_reg_global): Print whether long double is IBM or
464         IEEE.
465         (rs6000_option_override_internal): Rework setting long double
466         format.  Only warn if the user is changing the long double default
467         and they did not use -Wno-psabi.
468         * doc/invoke.texi (PowerPC options): Update the documentation for
469         -mabi=ieeelongdouble and -mabi=ibmlongdouble.
471 2017-10-26  Richard Sandiford  <richard.sandiford@linaro.org>
472             Alan Hayward  <alan.hayward@arm.com>
473             David Sherwood  <david.sherwood@arm.com>
475         * rtl.h (wider_subreg_mode): New function.
476         * ira.h (ira_sort_regnos_for_alter_reg): Take a machine_mode *
477         rather than an unsigned int *.
478         * ira-color.c (regno_max_ref_width): Replace with...
479         (regno_max_ref_mode): ...this new variable.
480         (coalesced_pseudo_reg_slot_compare): Update accordingly.
481         Use wider_subreg_mode.
482         (ira_sort_regnos_for_alter_reg): Likewise.  Take a machine_mode *
483         rather than an unsigned int *.
484         * lra-constraints.c (uses_hard_regs_p): Use wider_subreg_mode.
485         (process_alt_operands): Likewise.
486         (invariant_p): Likewise.
487         * lra-spills.c (assign_mem_slot): Likewise.
488         (add_pseudo_to_slot): Likewise.
489         * lra.c (collect_non_operand_hard_regs): Likewise.
490         (add_regs_to_insn_regno_info): Likewise.
491         * reload1.c (regno_max_ref_width): Replace with...
492         (regno_max_ref_mode): ...this new variable.
493         (reload): Update accordingly.  Update call to
494         ira_sort_regnos_for_alter_reg.
495         (alter_reg): Update to use regno_max_ref_mode.  Call wider_subreg_mode.
496         (init_eliminable_invariants): Update to use regno_max_ref_mode.
497         (scan_paradoxical_subregs): Likewise.
499 2017-10-26  Wilco Dijkstra  <wdijkstr@arm.com>
501         * config/aarch64/aarch64.h (EXIT_IGNORE_STACK): Set if alloca is used.
502         (aarch64_frame): Add emit_frame_chain boolean.
503         * config/aarch64/aarch64.c (aarch64_frame_pointer_required)
504         Move eh_return case to aarch64_layout_frame.
505         (aarch64_layout_frame): Initialize emit_frame_chain.
506         (aarch64_expand_prologue): Use emit_frame_chain.
508 2017-10-26  Wilco Dijkstra  <wdijkstr@arm.com>
510         * config/aarch64/aarch64.c (aarch64_layout_frame):
511         Ensure LR is always stored at the bottom of the callee-saves.
512         Remove rarely used frame layout which saves callee-saves at top of
513         frame, so the store of LR can be used as a valid probe in all cases.
515 2017-10-26  Wilco Dijkstra  <wdijkstr@arm.com>
517         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
518         Improve unaligned TImode/TFmode base/offset split.
520 2017-10-26  Richard Sandiford  <richard.sandiford@linaro.org>
521             Alan Hayward  <alan.hayward@arm.com>
522             David Sherwood  <david.sherwood@arm.com>
524         * caller-save.c (mark_referenced_regs):  Use read_modify_subreg_p.
525         * combine.c (find_single_use_1): Likewise.
526         (expand_field_assignment): Likewise.
527         (move_deaths): Likewise.
528         * lra-constraints.c (simplify_operand_subreg): Likewise.
529         (curr_insn_transform): Likewise.
530         * lra.c (collect_non_operand_hard_regs): Likewise.
531         (add_regs_to_insn_regno_info): Likewise.
532         * rtlanal.c (reg_referenced_p): Likewise.
533         (covers_regno_no_parallel_p): Likewise.
535 2017-10-26  Richard Sandiford  <richard.sandiford@linaro.org>
537         * wide-int-print.cc (print_hex): Loop based on extract_uhwi.
538         Don't print any bits outside the precision of the value.
539         * wide-int.cc (test_printing): Add some new tests.
541 2017-10-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
543         * configure.ac (gcc_cv_as_ix86_xbrace_comment): Check if assembler
544         supports -xbrace_comment option.
545         * configure: Regenerate.
546         * config.in: Regenerate.
547         * config/i386/sol2.h (ASM_XBRACE_COMMENT_SPEC): Define.
548         (ASM_CPU_SPEC): Use it.
550 2017-10-26  Richard Sandiford  <richard.sandiford@linaro.org>
552         * target.def (static_rtx_alignment): New hook.
553         * targhooks.h (default_static_rtx_alignment): Declare.
554         * targhooks.c (default_static_rtx_alignment): New function.
555         * doc/tm.texi.in (TARGET_STATIC_RTX_ALIGNMENT): New hook.
556         * doc/tm.texi: Regenerate.
557         * varasm.c (force_const_mem): Use targetm.static_rtx_alignment
558         instead of targetm.constant_alignment.  Remove call to
559         set_mem_attributes.
560         * config/cris/cris.c (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
561         (cris_preferred_mininum_alignment): New function, split out from...
562         (cris_constant_alignment): ...here.
563         (cris_static_rtx_alignment): New function.
564         * config/i386/i386.c (ix86_static_rtx_alignment): New function,
565         split out from...
566         (ix86_constant_alignment): ...here.
567         (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
568         * config/mmix/mmix.c (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
569         (mmix_static_rtx_alignment): New function.
570         * config/spu/spu.c (spu_static_rtx_alignment): New function.
571         (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
573 2017-10-26  Tamar Christina  <tamar.christina@arm.com>
575         PR target/81800
576         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2):
577         Add flag_trapping_math and flag_fp_int_builtin_inexact.
579 2017-10-25  Palmer Dabbelt  <palmer@dabbelt.com>
581         * config/riscv/riscv.md (ZERO_EXTEND_LOAD): Define.
582         * config/riscv/pic.md (local_pic_load): Rename to local_pic_load_s,
583         mark as a sign-extending load.
584         (local_pic_load_u): Define.
586 2017-10-25  Eric Botcazou  <ebotcazou@adacore.com>
588         PR middle-end/82062
589         * fold-const.c (operand_equal_for_comparison_p): Also return true
590         if ARG0 is a simple variant of ARG1 with narrower precision.
591         (fold_ternary_loc): Always pass unstripped operands to the predicate.
593 2017-10-25  Jan Hubicka  <hubicka@ucw.cz>
595         * i386.c (ix86_builtin_vectorization_cost): Compute scatter/gather
596         cost correctly.
597         * i386.h (processor_costs): Add gather_static, gather_per_elt,
598         scatter_static, scatter_per_elt.
599         * x86-tune-costs.h: Add new cost entries.
601 2017-10-25  Richard Biener  <rguenther@suse.de>
603         * tree-ssa-sccvn.h (vn_eliminate): Declare.
604         * tree-ssa-pre.c (class eliminate_dom_walker, eliminate,
605         class pass_fre): Move to ...
606         * tree-ssa-sccvn.c (class eliminate_dom_walker, vn_eliminate,
607         class pass_fre): ... here and adjust for statistics.
609 2017-10-25  Jakub Jelinek  <jakub@redhat.com>
611         PR libstdc++/81706
612         * attribs.c (attribute_value_equal): Use omp_declare_simd_clauses_equal
613         for comparison of OMP_CLAUSEs regardless of flag_openmp{,_simd}.
614         (duplicate_one_attribute, copy_attributes_to_builtin): New functions.
615         * attribs.h (duplicate_one_attribute, copy_attributes_to_builtin): New
616         declarations.
618 2017-10-25  Richard Biener  <rguenther@suse.de>
620         * tree-ssa-pre.c (need_eh_cleanup, need_ab_cleanup, el_to_remove,
621         el_to_fixup, el_todo, el_avail, el_avail_stack, eliminate_avail,
622         eliminate_push_avail, eliminate_insert): Move inside...
623         (class eliminate_dom_walker): ... this class in preparation
624         of move.
625         (fini_eliminate): Remove by merging with ...
626         (eliminate): ... this function.  Adjust for class changes.
627         (pass_pre::execute): Remove fini_eliminate call.
628         (pass_fre::execute): Likewise.
630 2017-10-24  Jakub Jelinek  <jakub@redhat.com>
632         PR target/82460
633         * config/i386/sse.md (UNSPEC_VPERMI2, UNSPEC_VPERMI2_MASK): Remove.
634         (VPERMI2, VPERMI2I): New mode iterators.
635         (<avx512>_vpermi2var<mode>3_maskz): Remove 3 define_expand patterns.
636         (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Remove 3 define_insn
637         patterns.
638         (<avx512>_vpermi2var<mode>3_mask): New define_expand using VPERMI2
639         mode iterator.  Remove 3 old define_insn patterns.
640         (*<avx512>_vpermi2var<mode>3_mask): 2 new define_insn patterns.
641         (<avx512>_vpermt2var<mode>3_maskz): Adjust 1 define_expand to use
642         VPERMI2 mode iterator, remove the other two expanders.
643         (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Adjust 1 define_insn
644         to use VPERMI2 mode iterator, add another alternative for vpermi2*
645         instructions, remove the other two patterns.
646         (<avx512>_vpermt2var<mode>3_mask): Adjust 1 define_insn to use VPERMI2
647         mode iterator, remove the other two patterns.
648         * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Renamed to ...
649         (ix86_expand_vec_perm_vpermt2): ... this.  Swap mask and op0
650         arguments, use gen_*vpermt2* expanders instead of gen_*vpermi2*
651         and adjust argument order accordingly.
652         (ix86_expand_vec_perm): Adjust caller.
653         (expand_vec_perm_1): Likewise.
654         (expand_vec_perm_vpermi2_vpshub2): Rename to ...
655         (expand_vec_perm_vpermt2_vpshub2): ... this.
656         (ix86_expand_vec_perm_const_1): Adjust caller.
657         (ix86_vectorize_vec_perm_const_ok): Adjust comments.
659         PR target/82370
660         * config/i386/sse.md (VIMAX_AVX2): Remove V4TImode.
661         (VIMAX_AVX2_AVX512BW, VIMAX_AVX512VL): New mode iterators.
662         (vec_shl_<mode>): Remove unused expander.
663         (avx512bw_<shift_insn><mode>3): New define_insn.
664         (<sse2_avx2>_ashl<mode>3, <sse2_avx2>_lshr<mode>3): Replaced by ...
665         (<sse2_avx2>_<shift_insn><mode>3): ... this.  New define_insn.
667 2017-10-24  Paolo Carlini  <paolo.carlini@oracle.com>
669         PR c++/82466
670         * doc/invoke.texi ([Wbuiltin-declaration-mismatch]): Extend
671         description.
673 2017-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
675         PR rtl-optimization/82396
676         * gcc/haifa-sched.c (ready_sort_real): Remove qsort workaround.
677         (autopref_multipass_init): Simplify initialization.
678         (autopref_rank_data): Simplify sort order.
679         * gcc/sched-int.h (autopref_multipass_data_): Remove
680         multi_mem_insn_p, min_offset and max_offset.
682 2017-10-24  Wilco Dijkstra  <wdijkstr@arm.com>
684         PR middle-end/60580
685         * config/aarch64/aarch64.c (aarch64_frame_pointer_required)
686         Check special value of flag_omit_frame_pointer.
687         (aarch64_can_eliminate): Likewise.
688         (aarch64_override_options_after_change_1): Simplify handling of
689         -fomit-frame-pointer and -fomit-leaf-frame-pointer.
691 2017-10-24  Richard Biener  <rguenther@suse.de>
693         PR tree-optimization/82697
694         * tree-ssa-phiopt.c (cond_store_replacement): Use alias-set
695         zero for conditional load and unconditional store.
697 2017-10-24  H.J. Lu  <hongjiu.lu@intel.com>
699         * doc/install.texi: Document bootstrap-cet.
701 2017-10-24  H.J. Lu  <hongjiu.lu@intel.com>
703         PR target/82659
704         * config/i386/i386.c (rest_of_insert_endbranch): Don't insert
705         ENDBR instruction at function entrance if function is only
706         called directly.
708 2017-10-24  Jakub Jelinek  <jakub@redhat.com>
710         PR target/82628
711         * config/i386/i386.md (addcarry<mode>, subborrow<mode>): Change
712         patterns to better describe from which operation the CF is computed.
713         (addcarry<mode>_0, subborrow<mode>_0): New patterns.
714         * config/i386/i386.c (ix86_expand_builtin) <case handlecarry>: Pass
715         one LTU with [DT]Imode and another one with [SD]Imode.  If arg0
716         is 0, use _0 suffixed expanders instead of emitting a comparison
717         before it.
719 2017-10-06  Sergey Shalnov  <Sergey.Shalnov@intel.com>
721         * config/i386/i386.md(*movsf_internal, *movdf_internal):
722         Avoid 512-bit AVX modes for TARGET_PREFER_AVX256.
724 2017-10-24  Eric Botcazou  <ebotcazou@adacore.com>
726         PR middle-end/82569
727         * tree-outof-ssa.h (always_initialized_rtx_for_ssa_name_p): Delete.
728         * expr.c (expand_expr_real_1) <expand_decl_rtl>: Revert latest change.
729         * loop-iv.c (iv_get_reaching_def): Likewise.
730         * cfgexpand.c (expand_one_ssa_partition): Initialize the RTX if the
731         variable is promoted and the partition contains undefined values.
733 2017-10-23  Sandra Loosemore  <sandra@codesourcery.com>
735         * config/nios2/nios2.c (nios2_rtx_costs): Make costs better
736         reflect reality.
737         (nios2_address_cost): Define.
738         (nios2_legitimize_address): Recognize (exp + constant) directly.
739         (TARGET_ADDRESS_COST): Define.
741 2017-10-23  Sandra Loosemore  <sandra@codesourcery.com>
743         * config/nios2/nios2-protos.h (nios2_large_constant_p): Declare.
744         (nios2_symbolic_memory_operand_p): Declare.
745         (nios2_split_large_constant): Declare.
746         (nios2_split_symbolic_memory_operand): Declare.
747         * config/nios2/nios2.c: Adjust includes.
748         (nios2_symbolic_constant_allowed): New.
749         (nios2_symbolic_constant_p): New.
750         (nios2_plus_symbolic_constant_p): New.
751         (nios2_valid_addr_expr_p): Recognize addresses involving
752         symbolic constants.
753         (nios2_legitimate_address_p): Likewise, also LO_SUM.
754         (nios2_symbolic_memory_operand_p): New.
755         (nios2_large_constant_p): New.
756         (nios2_split_large_constant): New.
757         (nios2_split_plus_large_constant): New.
758         (nios2_split_symbolic_memory_operand): New.
759         (nios2_legitimize_address): Code refactoring.  Handle addresses
760         involving symbolic constants.
761         (nios2_emit_move_sequence): Likewise.
762         (nios2_print_operand): Improve error output.
763         (nios2_print_operand_address): Handle LO_SUM.
764         (nios2_cdx_narrow_form_p): Likewise.
765         * config/nios2/nios2.md (movqi_internal): Add splitter for memory
766         operands involving symbolic constants.
767         (movhi_internal, movsi_internal): Likewise.
768         (zero_extendhisi2, zero_extendqi<mode>2): Likewise.
769         (extendhisi2, extendqi<mode>2): Likewise.
771 2017-10-23  Sandra Loosemore  <sandra@codesourcery.com>
773         * tree-pass.h (PROP_rtl_split_insns): Define.
774         * recog.c (pass_data_split_all_insns): Provide PROP_rtl_split_insns.
776 2017-10-23  Sandra Loosemore  <sandra@codesourcery.com>
778         * config/nios2/nios2.c (TARGET_LRA_P): Don't override.
780 2017-10-23  Jakub Jelinek  <jakub@redhat.com>
782         PR debug/82630
783         * target.def (const_not_ok_for_debug_p): Default to
784         default_const_not_ok_for_debug_p instead of hook_bool_rtx_false.
785         * targhooks.h (default_const_not_ok_for_debug_p): New declaration.
786         * targhooks.c (default_const_not_ok_for_debug_p): New function.
787         * dwarf2out.c (const_ok_for_output_1): Only reject UNSPECs for
788         which targetm.const_not_ok_for_debug_p returned true.
789         * config/arm/arm.c (arm_const_not_ok_for_debug_p): Return true
790         for UNSPECs.
791         * config/powerpcspe/powerpcspe.c (rs6000_const_not_ok_for_debug_p):
792         Likewise.
793         * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): Likewise.
794         * config/i386/i386.c (ix86_delegitimize_address_1): Don't delegitimize
795         UNSPEC_GOTOFF with addend into addend - _GLOBAL_OFFSET_TABLE_ + symbol
796         if !base_term_p.
797         (ix86_const_not_ok_for_debug_p): New function.
798         (i386_asm_output_addr_const_extra): Handle UNSPEC_GOTOFF.
799         (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
801 2017-10-23  David Malcolm  <dmalcolm@redhat.com>
803         PR bootstrap/82610
804         * system.h: Conditionally include "unique-ptr.h" if
805         INCLUDE_UNIQUE_PTR is defined.
806         * unique-ptr-tests.cc: Remove include of "unique-ptr.h" in favor
807         of defining INCLUDE_UNIQUE_PTR before including "system.h".
809 2017-10-23  Sebastian Perta  <sebastian.perta@renesas.com>
811         * config/rl78/rl78.md: New define_expand "subdi3".
813 2017-10-23  H.J. Lu  <hongjiu.lu@intel.com>
815         PR target/82673
816         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Skip
817         DF_REF_INSN if DF_REF_INSN_INFO is false.
819 2017-10-23  Jan Hubicka  <hubicka@ucw.cz>
821         * i386.c (dimode_scalar_chain::compute_convert_gain): Use
822         xmm_move instead of sse_move.
823         (sse_store_index): New function.
824         (ix86_register_move_cost): Be more sensible about mismatch stall;
825         model AVX moves correctly; make difference between sse->integer and
826         integer->sse.
827         (ix86_builtin_vectorization_cost): Model correctly aligned and unaligned
828         moves; make difference between SSE and AVX.
829         * i386.h (processor_costs): Remove sse_move; add xmm_move, ymm_move
830         and zmm_move. Increase size of sse load and store tables;
831         add unaligned load and store tables; add ssemmx_to_integer.
832         * x86-tune-costs.h: Update all entries according to real
833         move latencies from Agner Fog's manual and chip documentation.
835 2017-10-23  Jakub Jelinek  <jakub@redhat.com>
837         PR target/82628
838         * config/i386/predicates.md (x86_64_dwzext_immediate_operand): New.
839         * config/i386/constraints.md (Wf): New constraint.
840         * config/i386/i386.md (UNSPEC_SBB): New unspec.
841         (cmp<dwi>_doubleword): Removed.
842         (sub<mode>3_carry_ccc, *sub<mode>3_carry_ccc_1): New patterns.
843         (sub<mode>3_carry_ccgz): Use unspec instead of compare.
844         * config/i386/i386.c (ix86_expand_branch) <case E_TImode>: Don't
845         expand with cmp<dwi>_doubleword.  For LTU and GEU use
846         sub<mode>3_carry_ccc instead of sub<mode>3_carry_ccgz and use CCCmode.
848         * common.opt (gcolumn-info): Enable by default.
849         * doc/invoke.texi (gcolumn-info): Document new default.
851 2017-10-23  Richard Biener  <rguenther@suse.de>
853         PR tree-optimization/82672
854         * graphite-isl-ast-to-gimple.c (graphite_copy_stmts_from_block):
855         Fold the stmt if we propagated into it.
857 2017-10-23  Richard Biener  <rguenther@suse.de>
859         * tree-ssa-pre.c (bitmap_remove_from_set): Rename to...
860         (bitmap_remove_expr_from_set): ... this.  All callers call this
861         for non-constant values.
862         (bitmap_set_subtract): Rename to...
863         (bitmap_set_subtract_expressions): ... this.  Adjust and
864         optimize.
865         (bitmap_set_contains_value): Remove superfluous check.
866         (bitmap_set_replace_value): Inline into single caller ...
867         (bitmap_value_replace_in_set): ... here and simplify.
868         (dependent_clean): Merge into ...
869         (clean): ... this using an overload.  Adjust.
870         (prune_clobbered_mems): Adjust.
871         (compute_antic_aux): Likewise.
872         (compute_partial_antic_aux): Likewise.
874 2017-10-23  Richard Biener  <rguenther@suse.de>
876         PR tree-optimization/82129
877         Revert
878         2017-08-01  Richard Biener  <rguenther@suse.de>
880         PR tree-optimization/81181
881         * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
882         (compute_antic): ... end of iteration here.
884 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
886         * target.def (starting_frame_offset): New hook.
887         * doc/tm.texi (STARTING_FRAME_OFFSET): Remove in favor of...
888         (TARGET_STARTING_FRAME_OFFSET): ...this new hook.
889         * doc/tm.texi.in: Regenerate.
890         * hooks.h (hook_hwi_void_0): Declare.
891         * hooks.c (hook_hwi_void_0): New function.
892         * doc/rtl.texi: Refer to TARGET_STARTING_FRAME_OFFSET instead of
893         STARTING_FRAME_OFFSET.
894         * builtins.c (expand_builtin_setjmp_receiver): Likewise.
895         * reload1.c (reload): Likewise.
896         * cfgexpand.c (expand_used_vars): Use targetm.starting_frame_offset
897         instead of STARTING_FRAME_OFFSET.
898         * function.c (try_fit_stack_local): Likewise.
899         (assign_stack_local_1): Likewise
900         (instantiate_virtual_regs): Likewise.
901         * rtlanal.c (rtx_addr_can_trap_p_1): Likewise.
902         * config/avr/avr.md (nonlocal_goto_receiver): Likewise.
903         * config/aarch64/aarch64.h (STARTING_FRAME_OFFSET): Delete.
904         * config/alpha/alpha.h (STARTING_FRAME_OFFSET): Likewise.
905         * config/arc/arc.h (STARTING_FRAME_OFFSET): Likewise.
906         * config/arm/arm.h (STARTING_FRAME_OFFSET): Likewise.
907         * config/bfin/bfin.h (STARTING_FRAME_OFFSET): Likewise.
908         * config/c6x/c6x.h (STARTING_FRAME_OFFSET): Likewise.
909         * config/cr16/cr16.h (STARTING_FRAME_OFFSET): Likewise.
910         * config/cris/cris.h (STARTING_FRAME_OFFSET): Likewise.
911         * config/fr30/fr30.h (STARTING_FRAME_OFFSET): Likewise.
912         * config/frv/frv.h (STARTING_FRAME_OFFSET): Likewise.
913         * config/ft32/ft32.h (STARTING_FRAME_OFFSET): Likewise.
914         * config/h8300/h8300.h (STARTING_FRAME_OFFSET): Likewise.
915         * config/i386/i386.h (STARTING_FRAME_OFFSET): Likewise.
916         * config/ia64/ia64.h (STARTING_FRAME_OFFSET): Likewise.
917         * config/m32c/m32c.h (STARTING_FRAME_OFFSET): Likewise.
918         * config/m68k/m68k.h (STARTING_FRAME_OFFSET): Likewise.
919         * config/mcore/mcore.h (STARTING_FRAME_OFFSET): Likewise.
920         * config/mn10300/mn10300.h (STARTING_FRAME_OFFSET): Likewise.
921         * config/moxie/moxie.h (STARTING_FRAME_OFFSET): Likewise.
922         * config/msp430/msp430.h (STARTING_FRAME_OFFSET): Likewise.
923         * config/nds32/nds32.h (STARTING_FRAME_OFFSET): Likewise.
924         * config/nios2/nios2.h (STARTING_FRAME_OFFSET): Likewise.
925         * config/nvptx/nvptx.h (STARTING_FRAME_OFFSET): Likewise.
926         * config/pdp11/pdp11.h (STARTING_FRAME_OFFSET): Likewise.
927         * config/riscv/riscv.h (STARTING_FRAME_OFFSET): Likewise.
928         * config/rl78/rl78.h (STARTING_FRAME_OFFSET): Likewise.
929         * config/rx/rx.h (STARTING_FRAME_OFFSET): Likewise.
930         * config/s390/s390.h (STARTING_FRAME_OFFSET): Likewise.
931         * config/sh/sh.h (STARTING_FRAME_OFFSET): Likewise.
932         * config/sparc/sparc.c (sparc_compute_frame_size): Likewise.
933         * config/sparc/sparc.h (STARTING_FRAME_OFFSET): Likewise.
934         * config/spu/spu.h (STARTING_FRAME_OFFSET): Likewise.
935         * config/stormy16/stormy16.h (STARTING_FRAME_OFFSET): Likewise.
936         * config/tilegx/tilegx.h (STARTING_FRAME_OFFSET): Likewise.
937         * config/tilepro/tilepro.h (STARTING_FRAME_OFFSET): Likewise.
938         * config/v850/v850.h (STARTING_FRAME_OFFSET): Likewise.
939         * config/visium/visium.h (STARTING_FRAME_OFFSET): Likewise.
940         * config/avr/avr.h (STARTING_FRAME_OFFSET): Likewise.
941         * config/avr/avr-protos.h (avr_starting_frame_offset): Likewise.
942         * config/avr/avr.c (avr_starting_frame_offset): Make static and
943         return a HOST_WIDE_INT.
944         (avr_builtin_setjmp_frame_value): Use it instead of
945         STARTING_FRAME_OFFSET.
946         (TARGET_STARTING_FRAME_OFFSET): Redefine.
947         * config/epiphany/epiphany.h (STARTING_FRAME_OFFSET): Delete.
948         * config/epiphany/epiphany.c (epiphany_starting_frame_offset):
949         New function.
950         (TARGET_STARTING_FRAME_OFFSET): Redefine.
951         * config/iq2000/iq2000.h (STARTING_FRAME_OFFSET): Delete.
952         * config/iq2000/iq2000.c (iq2000_starting_frame_offset): New function.
953         (TARGET_CONSTANT_ALIGNMENT): Redefine.
954         * config/lm32/lm32.h (STARTING_FRAME_OFFSET): Delete.
955         * config/lm32/lm32.c (lm32_starting_frame_offset): New function.
956         (TARGET_STARTING_FRAME_OFFSET): Redefine.
957         * config/m32r/m32r.h (STARTING_FRAME_OFFSET): Delete.
958         * config/m32r/m32r.c (m32r_starting_frame_offset): New function.
959         (TARGET_STARTING_FRAME_OFFSET): Redefine.
960         * config/microblaze/microblaze.h (STARTING_FRAME_OFFSET): Delete.
961         * config/microblaze/microblaze.c (microblaze_starting_frame_offset):
962         New function.
963         (TARGET_STARTING_FRAME_OFFSET): Redefine.
964         * config/mips/mips.h (STARTING_FRAME_OFFSET): Delete.
965         * config/mips/mips.c (mips_compute_frame_info): Refer to
966         TARGET_STARTING_FRAME_OFFSET instead of STARTING_FRAME_OFFSET.
967         (mips_starting_frame_offset): New function.
968         (TARGET_STARTING_FRAME_OFFSET): Redefine.
969         * config/mmix/mmix.h (STARTING_FRAME_OFFSET): Delete.
970         * config/mmix/mmix-protos.h (mmix_starting_frame_offset): Delete.
971         * config/mmix/mmix.c (mmix_starting_frame_offset): Make static
972         and return a HOST_WIDE_INT.
973         (TARGET_STARTING_FRAME_OFFSET): Redefine.
974         (mmix_initial_elimination_offset): Refer to
975         TARGET_STARTING_FRAME_OFFSET instead of STARTING_FRAME_OFFSET.
976         * config/pa/pa.h (STARTING_FRAME_OFFSET): Delete.
977         * config/pa/pa.c (pa_starting_frame_offset): New function.
978         (pa_compute_frame_size): Use it instead of STARTING_FRAME_OFFSET.
979         (pa_expand_prologue): Likewise.
980         (TARGET_STARTING_FRAME_OFFSET): Redefine.
981         * config/powerpcspe/aix.h (STARTING_FRAME_OFFSET): Split out
982         !FRAME_GROWS_DOWNWARD handling to...
983         (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
984         * config/powerpcspe/darwin.h (STARTING_FRAME_OFFSET): Split out
985         !FRAME_GROWS_DOWNWARD handling to...
986         (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
987         * config/powerpcspe/powerpcspe.h (STARTING_FRAME_OFFSET): Split out
988         !FRAME_GROWS_DOWNWARD handling to...
989         (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
990         * config/powerpcspe/powerpcspe.c (TARGET_STARTING_FRAME_OFFSET):
991         Redefine.
992         (rs6000_starting_frame_offset): New function.
993         * config/rs6000/aix.h (STARTING_FRAME_OFFSET): Split out
994         !FRAME_GROWS_DOWNWARD handling to...
995         (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
996         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Split out
997         !FRAME_GROWS_DOWNWARD handling to...
998         (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
999         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Split out
1000         !FRAME_GROWS_DOWNWARD handling to...
1001         (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
1002         * config/rs6000/rs6000.c (TARGET_STARTING_FRAME_OFFSET): Refine.
1003         (rs6000_starting_frame_offset): New function.
1004         * config/vax/elf.h (STARTING_FRAME_OFFSET): Delete.
1005         * config/vax/vax.h (STARTING_FRAME_OFFSET): Delete.
1006         * config/vax/vax.c (vax_starting_frame_offset): New function.
1007         (vax_expand_prologue): Use it instead of STARTING_FRAME_OFFSET.
1008         (TARGET_STARTING_FRAME_OFFSET): Redefine.
1009         * config/xtensa/xtensa.h (STARTING_FRAME_OFFSET): Delete.
1010         * config/xtensa/xtensa.c (xtensa_starting_frame_offset): New function.
1011         (TARGET_STARTING_FRAME_OFFSET): Redefine.
1012         * system.h (STARTING_FRAME_OFFSET): Poison.
1014 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
1016         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
1017         SCALAR_TYPE_MODE instead of TYPE_MODE.
1019 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
1020             Alan Hayward  <alan.hayward@arm.com>
1021             David Sherwood  <david.sherwood@arm.com>
1023         * dwarf2out.c (loc_list_from_tree_1): Use SCALAR_INT_TYPE_MODE
1025 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
1026             Alan Hayward  <alan.hayward@arm.com>
1027             David Sherwood  <david.sherwood@arm.com>
1029         * expmed.c (expand_shift_1): Use scalar_mode for scalar_mode.
1031 2017-10-23  Richard Biener  <rguenther@suse.de>
1033         PR tree-optimization/82129
1034         * tree-ssa-pre.c (bitmap_set_and): Remove.
1035         (compute_antic_aux): Compute ANTIC_OUT intersection in a way
1036         canonicalizing expressions in the set to those with lowest
1037         ID rather than taking that from the first edge.
1039 2017-10-23  Richard Sandiford  <richard.sandiford@linaro.org>
1041         * combine.c (rtx_equal_for_field_assignment_p): Use
1042         byte_lowpart_offset.
1044 2017-10-22  Richard Sandiford  <richard.sandiford@linaro.org>
1045             Alan Hayward  <alan.hayward@arm.com>
1046             David Sherwood  <david.sherwood@arm.com>
1048         * internal-fn.c (expand_direct_optab_fn): Don't assign directly
1049         to a SUBREG_PROMOTED_VAR.
1051 2017-10-22  Richard Sandiford  <richard.sandiford@linaro.org>
1052             Alan Hayward  <alan.hayward@arm.com>
1053             David Sherwood  <david.sherwood@arm.com>
1055         * cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_PRECISION.
1056         (expand_debug_source_expr): Likewise.
1057         * combine.c (combine_simplify_rtx): Likewise.
1058         * cse.c (fold_rtx): Likewise.
1059         * optabs.c (expand_float): Likewise.
1060         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1061         (simplify_binary_operation_1): Likewise.
1063 2017-10-22  Richard Sandiford  <richard.sandiford@linaro.org>
1064             Alan Hayward  <alan.hayward@arm.com>
1065             David Sherwood  <david.sherwood@arm.com>
1067         * combine.c (simplify_comparison): Use HWI_COMPUTABLE_MODE_P.
1068         (record_promoted_value): Likewise.
1069         * expr.c (expand_expr_real_2): Likewise.
1070         * ree.c (update_reg_equal_equiv_notes): Likewise.
1071         (combine_set_extension): Likewise.
1072         * rtlanal.c (low_bitmask_len): Likewise.
1073         * simplify-rtx.c (neg_const_int): Likewise.
1074         (simplify_binary_operation_1): Likewise.
1076 2017-10-22  Richard Sandiford  <richard.sandiford@linaro.org>
1077             Alan Hayward  <alan.hayward@arm.com>
1078             David Sherwood  <david.sherwood@arm.com>
1080         * lra-spills.c (assign_mem_slot): Use subreg_size_lowpart_offset.
1081         * regcprop.c (maybe_mode_change): Likewise.
1082         * reload1.c (alter_reg): Likewise.
1084 2017-10-22  Richard Sandiford  <richard.sandiford@linaro.org>
1086         * inchash.h (inchash::hash::add_wide_int): New function.
1087         * lto-streamer-out.c (hash_tree): Use it.
1089 2017-10-22  Richard Sandiford  <richard.sandiford@linaro.org>
1091         * inchash.h (inchash::hash::add_wide_int): Rename to...
1092         (inchash::hash::add_hwi): ...this.
1093         * ipa-devirt.c (hash_odr_vtable): Update accordingly.
1094         (polymorphic_call_target_hasher::hash): Likewise.
1095         * ipa-icf.c (sem_function::get_hash, sem_function::init): Likewise.
1096         (sem_item::add_expr, sem_item::add_type, sem_variable::get_hash)
1097         (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
1098         * lto-streamer-out.c (hash_tree): Likewise.
1099         * optc-save-gen.awk: Likewise.
1100         * tree.c (add_expr): Likewise.
1102 2017-10-22  Uros Bizjak  <ubizjak@gmail.com>
1104         PR target/52451
1105         * config/i386/i386.c (ix86_fp_compare_mode): Return CCFPmode
1106         for ordered inequality comparisons even with TARGET_IEEE_FP.
1108 2017-10-22  Uros Bizjak  <ubizjak@gmail.com>
1110         PR target/82628
1111         * config/i386/i386.md (cmp<dwi>_doubleword): New pattern.
1112         * config/i386/i386.c (ix86_expand_branch) <case E_TImode>:
1113         Expand with cmp<dwi>_doubleword.
1115 2017-10-21  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1117         * extend.texi: Add x86 specific to 'nocf_check' attribute.
1118         List CET intrinsics.
1119         * invoke.texi: Add -mcet, -mibt, -mshstk options.  Add x86
1120         specific to -fcf-protection option.
1122 2017-10-21  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1124         * common/config/i386/i386-common.c (OPTION_MASK_ISA_IBT_SET): New.
1125         (OPTION_MASK_ISA_SHSTK_SET): Likewise.
1126         (OPTION_MASK_ISA_IBT_UNSET): Likewise.
1127         (OPTION_MASK_ISA_SHSTK_UNSET): Likewise.
1128         (ix86_handle_option): Add -mibt, -mshstk, -mcet handling.
1129         * config.gcc (extra_headers): Add cetintrin.h for x86 targets.
1130         (extra_objs): Add cet.o for Linux/x86 targets.
1131         (tmake_file): Add i386/t-cet for Linux/x86 targets.
1132         * config/i386/cet.c: New file.
1133         * config/i386/cetintrin.h: Likewise.
1134         * config/i386/t-cet: Likewise.
1135         * config/i386/cpuid.h (bit_SHSTK): New.
1136         (bit_IBT): Likewise.
1137         * config/i386/driver-i386.c (host_detect_local_cpu): Detect and
1138         pass IBT and SHSTK bits.
1139         * config/i386/i386-builtin-types.def
1140         (VOID_FTYPE_UNSIGNED_PVOID): New.
1141         (VOID_FTYPE_UINT64_PVOID): Likewise.
1142         * config/i386/i386-builtin.def: Add CET intrinsics.
1143         * config/i386/i386-c.c (ix86_target_macros_internal): Add
1144         OPTION_MASK_ISA_IBT, OPTION_MASK_ISA_SHSTK handling.
1145         * config/i386/i386-passes.def: Add pass_insert_endbranch pass.
1146         * config/i386/i386-protos.h (make_pass_insert_endbranch): New
1147         prototype.
1148         * config/i386/i386.c (rest_of_insert_endbranch): New.
1149         (pass_data_insert_endbranch): Likewise.
1150         (pass_insert_endbranch): Likewise.
1151         (make_pass_insert_endbranch): Likewise.
1152         (ix86_notrack_prefixed_insn_p): Likewise.
1153         (ix86_target_string): Add -mibt, -mshstk flags.
1154         (ix86_option_override_internal): Add flag_cf_protection
1155         processing.
1156         (ix86_valid_target_attribute_inner_p): Set OPT_mibt, OPT_mshstk.
1157         (ix86_print_operand): Add 'notrack' prefix output.
1158         (ix86_init_mmx_sse_builtins): Add CET intrinsics.
1159         (ix86_expand_builtin): Expand CET intrinsics.
1160         (x86_output_mi_thunk): Add 'endbranch' instruction.
1161         * config/i386/i386.h (TARGET_IBT): New.
1162         (TARGET_IBT_P): Likewise.
1163         (TARGET_SHSTK): Likewise.
1164         (TARGET_SHSTK_P): Likewise.
1165         * config/i386/i386.md (unspecv): Add UNSPECV_NOP_RDSSP,
1166         UNSPECV_INCSSP, UNSPECV_SAVEPREVSSP, UNSPECV_RSTORSSP,
1167         UNSPECV_WRSS, UNSPECV_WRUSS, UNSPECV_SETSSBSY, UNSPECV_CLRSSBSY.
1168         (builtin_setjmp_setup): New pattern.
1169         (builtin_longjmp): Likewise.
1170         (rdssp<mode>): Likewise.
1171         (incssp<mode>): Likewise.
1172         (saveprevssp): Likewise.
1173         (rstorssp): Likewise.
1174         (wrss<mode>): Likewise.
1175         (wruss<mode>): Likewise.
1176         (setssbsy): Likewise.
1177         (clrssbsy): Likewise.
1178         (nop_endbr): Likewise.
1179         * config/i386/i386.opt: Add -mcet, -mibt, -mshstk and -mcet-switch
1180         options.
1181         * config/i386/immintrin.h: Include <cetintrin.h>.
1182         * config/i386/linux-common.h
1183         (file_end_indicate_exec_stack_and_cet): New prototype.
1184         (TARGET_ASM_FILE_END): New.
1186 2017-10-20  Jan Hubicka  <hubicka@ucw.cz>
1188         * i386.c (ix86_builtin_vectorization_cost): Use existing rtx_cost
1189         latencies instead of having separate table; make difference between
1190         integer and float costs.
1191         * i386.h (processor_costs): Remove scalar_stmt_cost,
1192         scalar_load_cost, scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
1193         scalar_to_vec_cost, vec_align_load_cost, vec_unalign_load_cost,
1194         vec_store_cost.
1195         * x86-tune-costs.h: Remove entries which has been removed in
1196         procesor_costs from all tables; make cond_taken_branch_cost
1197         and cond_not_taken_branch_cost COST_N_INSNS based.
1199 2017-10-20  Jan Hubicka  <hubicka@ucw.cz>
1201         * x86-tune-costs.h (intel_cost, generic_cost): Fix move costs.
1203 2017-10-20  Jakub Jelinek  <jakub@redhat.com>
1205         * config/i386/i386.md (isa): Remove fma_avx512f.
1206         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
1207         <avx512>_fmadd_<mode>_mask3<round_name>,
1208         <avx512>_fmsub_<mode>_mask<round_name>,
1209         <avx512>_fmsub_<mode>_mask3<round_name>,
1210         <avx512>_fnmadd_<mode>_mask<round_name>,
1211         <avx512>_fnmadd_<mode>_mask3<round_name>,
1212         <avx512>_fnmsub_<mode>_mask<round_name>,
1213         <avx512>_fnmsub_<mode>_mask3<round_name>,
1214         <avx512>_fmaddsub_<mode>_mask<round_name>,
1215         <avx512>_fmaddsub_<mode>_mask3<round_name>,
1216         <avx512>_fmsubadd_<mode>_mask<round_name>,
1217         <avx512>_fmsubadd_<mode>_mask3<round_name>): Remove isa attribute.
1218         (*vec_widen_umult_even_v16si<mask_name>,
1219         *vec_widen_smult_even_v16si<mask_name>): Likewise.
1220         (<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>): Likewise.
1222 2017-10-20  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1224         * extend.texi: Add 'nocf_check' documentation.
1225         * gimple.texi: Add second parameter to
1226         gimple_build_call_from_tree.
1227         * invoke.texi: Add -fcf-protection documentation.
1228         * rtl.texi: Add REG_CALL_NOTRACK documenation.
1230 2017-10-20  Richard Biener  <rguenther@suse.de>
1232         PR tree-optimization/82473
1233         * tree-vect-loop.c (vectorizable_reduction): Properly get at
1234         the largest input type.
1236 2017-10-20  Igor Tsimbalist  <igor.v.tsimbalist@intel.com>
1238         * c-attribs.c (handle_nocf_check_attribute): New function.
1239         (c_common_attribute_table): Add 'nocf_check' handling.
1240         * gimple-parser.c: Add second argument NULL to
1241         gimple_build_call_from_tree.
1242         * attrib.c (comp_type_attributes): Check nocf_check attribute.
1243         * cfgexpand.c (expand_call_stmt): Set REG_CALL_NOCF_CHECK for
1244         call insn.
1245         * combine.c (distribute_notes): Add REG_CALL_NOCF_CHECK handling.
1246         * common.opt: Add fcf-protection flag.
1247         * emit-rtl.c (try_split): Add REG_CALL_NOCF_CHECK handling.
1248         * flag-types.h: Add enum cf_protection_level.
1249         * gimple.c (gimple_build_call_from_tree): Add second parameter.
1250         Add 'nocf_check' attribute propagation to gimple call.
1251         * gimple.h (gf_mask): Add GF_CALL_NOCF_CHECK.
1252         (gimple_build_call_from_tree): Update prototype.
1253         (gimple_call_nocf_check_p): New function.
1254         (gimple_call_set_nocf_check): Likewise.
1255         * gimplify.c: Add second argument to gimple_build_call_from_tree.
1256         * ipa-icf.c: Add nocf_check attribute in statement hash.
1257         * recog.c (peep2_attempt): Add REG_CALL_NOCF_CHECK handling.
1258         * reg-notes.def: Add REG_NOTE (CALL_NOCF_CHECK).
1259         * toplev.c (process_options): Add flag_cf_protection handling.
1261 2017-10-19  Jan Hubicka  <hubicka@ucw.cz>
1263         * x86-tune-costs.h (core_cost): Fix div, move and sqrt latencies.
1265 2017-10-20  Richard Biener  <rguenther@suse.de>
1267         PR tree-optimization/82603
1268         * tree-if-conv.c (predicate_mem_writes): Make sure to only
1269         remove false predicated stores.
1271 2017-10-20  Richard Biener  <rguenther@suse.de>
1273         * graphite-isl-ast-to-gimple.c
1274         (translate_isl_ast_to_gimple::graphite_copy_stmts_from_block):
1275         Remove return value and simplify, dump copied stmt after lhs
1276         adjustment.
1277         (translate_isl_ast_to_gimple::translate_isl_ast_node_user):
1278         Reduce dump verbosity.
1279         (gsi_insert_earliest): Likewise.
1280         (translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences): Adjust.
1281         * graphite.c (print_global_statistics): Adjust dumping.
1282         (print_graphite_scop_statistics): Likewise.
1283         (print_graphite_statistics): Do not dump loops here.
1284         (graphite_transform_loops): But here.
1286 2017-10-20  Nicolas Roche  <roche@adacore.com>
1288         * configure.ac (ACX_PROG_GNAT): Append "libgnat" to include search dir.
1289         * configure: Regenerate.
1291 2017-10-20  Jakub Jelinek  <jakub@redhat.com>
1293         PR target/82158
1294         * tree-cfg.c (pass_warn_function_return::execute): In noreturn
1295         functions when optimizing replace GIMPLE_RETURN stmts with
1296         calls to __builtin_unreachable ().
1298         PR sanitizer/82595
1299         * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Add libtsan_preinit.o
1300         for -fsanitize=thread link of executables.
1301         (LIBLSAN_EARLY_SPEC): Add liblsan_preinit.o for -fsanitize=leak
1302         link of executables.
1304         PR target/82370
1305         * config/i386/sse.md (VI248_AVX2, VI248_AVX512BW, VI248_AVX512BW_2):
1306         New mode iterators.
1307         (<shift_insn><mode>3<mask_name>): Change the last of the 3
1308         define_insns for logical vector shifts to use VI248_AVX512BW
1309         iterator instead of VI48_AVX512, remove <mask_mode512bit_condition>
1310         condition, useless isa and prefix attributes.  Change the first
1311         2 of these define_insns to ...
1312         (<mask_codefor><shift_insn><mode>3<mask_name>): ... this, new
1313         define_insn for avx512vl.
1314         (<shift_insn><mode>3): ... and this, new define_insn without
1315         masking for non-avx512vl.
1317         PR target/82370
1318         * config/i386/sse.md (*andnot<mode>3,
1319         <mask_codefor><code><mode>3<mask_name>, *<code><mode>3): Split
1320         (=v,v,vm) alternative into (=x,x,xm) and (=v,v,vm), for 128-bit
1321         and 256-bit vectors, the (=x,x,xm) alternative and when mask is
1322         not applied use empty suffix even for TARGET_AVX512VL.
1323         * config/i386/subst.md (mask_prefix3, mask_prefix4): When mask
1324         is applied, supply evex,evex or evex,evex,evex instead of just
1325         evex.
1327 2017-10-20  Julia Koval  <julia.koval@intel.com>
1329         * common/config/i386/i386-common.c (OPTION_MASK_ISA_GFNI_SET,
1330         (OPTION_MASK_ISA_GFNI_UNSET): New.
1331         (ix86_handle_option): Handle OPT_mgfni.
1332         * config/i386/cpuid.h (bit_GFNI): New.
1333         * config/i386/driver-i386.c (host_detect_local_cpu): Detect gfni.
1334         * config/i386/i386-c.c (ix86_target_macros_internal): Define __GFNI__.
1335         * config/i386/i386.c (ix86_target_string): Add -mgfni.
1336         (ix86_valid_target_attribute_inner_p): Add OPT_mgfni.
1337         * config/i386/i386.h (TARGET_GFNI, TARGET_GFNI_P): New.
1338         * config/i386/i386.opt: Add mgfni.
1340 2017-10-20  Orlando Arias  <oarias@knights.ucf.edu>
1342         * config/msp430/msp430.c (msp430_option_override): Disable
1343         -fdelete-null-pointer-checks.
1344         * doc/invoke.text (-fdelete-null-pointer-checks): Document that.
1346 2017-10-19  Jan Hubicka  <hubicka@ucw.cz>
1348         * x86-tune-costs.h (generic_cost, core_cost): Correct costs
1349         of x87 and SSE instructions.
1351 2017-10-19  Jan Hubicka  <hubicka@ucw.cz>
1353         * asan.c (create_cond_insert_point): Do not update edge count.
1354         * auto-profile.c (afdo_propagate_edge): Update for edge count removal.
1355         (afdo_propagate_circuit): Likewise.
1356         (afdo_calculate_branch_prob): Likewise.
1357         (afdo_annotate_cfg): Likewise.
1358         * basic-block.h (struct edge_def): Remove count.
1359         (edge_def::count): New accessor.
1360         * bb-reorder.c (rotate_loop): Update.
1361         (find_traces_1_round): Update.
1362         (connect_traces): Update.
1363         (sanitize_hot_paths): Update.
1364         * cfg.c (unchecked_make_edge): Update.
1365         (make_single_succ_edge): Update.
1366         (check_bb_profile): Update.
1367         (dump_edge_info): Update.
1368         (update_bb_profile_for_threading): Update.
1369         (scale_bbs_frequencies_int): Update.
1370         (scale_bbs_frequencies_gcov_type): Update.
1371         (scale_bbs_frequencies_profile_count): Update.
1372         (scale_bbs_frequencies): Update.
1373         * cfganal.c (connect_infinite_loops_to_exit): Update.
1374         * cfgbuild.c (compute_outgoing_frequencies): Update.
1375         (find_many_sub_basic_blocks): Update.
1376         * cfgcleanup.c (try_forward_edges): Update.
1377         (try_crossjump_to_edge): Update
1378         * cfgexpand.c (expand_gimple_cond): Update
1379         (expand_gimple_tailcall): Update
1380         (construct_exit_block): Update
1381         * cfghooks.c (verify_flow_info): Update
1382         (redirect_edge_succ_nodup): Update
1383         (split_edge): Update
1384         (make_forwarder_block): Update
1385         (duplicate_block): Update
1386         (account_profile_record): Update
1387         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
1388         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
1389         * cfgloopmanip.c (scale_loop_profile): Update.
1390         (loopify): Update.
1391         (lv_adjust_loop_entry_edge): Update.
1392         * cfgrtl.c (try_redirect_by_replacing_jump): Update.
1393         (force_nonfallthru_and_redirect): Update.
1394         (purge_dead_edges): Update.
1395         (rtl_flow_call_edges_add): Update.
1396         * cgraphunit.c (init_lowered_empty_function): Update.
1397         (cgraph_node::expand_thunk): Update.
1398         * gimple-pretty-print.c (dump_probability): Update.
1399         (dump_edge_probability): Update.
1400         * gimple-ssa-isolate-paths.c (isolate_path): Update.
1401         * haifa-sched.c (sched_create_recovery_edges): Update.
1402         * hsa-gen.c (convert_switch_statements): Update.
1403         * ifcvt.c (dead_or_predicable): Update.
1404         * ipa-inline-transform.c (inline_transform): Update.
1405         * ipa-split.c (split_function): Update.
1406         * ipa-utils.c (ipa_merge_profiles): Update.
1407         * loop-doloop.c (add_test): Update.
1408         * loop-unroll.c (unroll_loop_runtime_iterations): Update.
1409         * lto-streamer-in.c (input_cfg): Update.
1410         (input_function): Update.
1411         * lto-streamer-out.c (output_cfg): Update.
1412         * modulo-sched.c (sms_schedule): Update.
1413         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
1414         * predict.c (maybe_hot_edge_p): Update.
1415         (unlikely_executed_edge_p): Update.
1416         (probably_never_executed_edge_p): Update.
1417         (dump_prediction): Update.
1418         (drop_profile): Update.
1419         (propagate_unlikely_bbs_forward): Update.
1420         (determine_unlikely_bbs): Update.
1421         (force_edge_cold): Update.
1422         * profile.c (compute_branch_probabilities): Update.
1423         * reg-stack.c (better_edge): Update.
1424         * shrink-wrap.c (handle_simple_exit): Update.
1425         * tracer.c (better_p): Update.
1426         * trans-mem.c (expand_transaction): Update.
1427         (split_bb_make_tm_edge): Update.
1428         * tree-call-cdce.c: Update.
1429         * tree-cfg.c (gimple_find_sub_bbs): Update.
1430         (gimple_split_edge): Update.
1431         (gimple_duplicate_sese_region): Update.
1432         (gimple_duplicate_sese_tail): Update.
1433         (gimple_flow_call_edges_add): Update.
1434         (insert_cond_bb): Update.
1435         (execute_fixup_cfg): Update.
1436         * tree-cfgcleanup.c (cleanup_control_expr_graph): Update.
1437         * tree-complex.c (expand_complex_div_wide): Update.
1438         * tree-eh.c (lower_resx): Update.
1439         (unsplit_eh): Update.
1440         (cleanup_empty_eh_move_lp): Update.
1441         * tree-inline.c (copy_edges_for_bb): Update.
1442         (freqs_to_counts): Update.
1443         (copy_cfg_body): Update.
1444         * tree-ssa-dce.c (remove_dead_stmt): Update.
1445         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
1446         * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
1447         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
1448         (unloop_loops): Update.
1449         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1450         * tree-ssa-loop-split.c (connect_loops): Update.
1451         (split_loop): Update.
1452         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
1453         * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
1454         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
1455         * tree-ssa-reassoc.c (branch_fixup): Update.
1456         * tree-ssa-tail-merge.c (replace_block_by): Update.
1457         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
1458         (compute_path_counts): Update.
1459         (update_profile): Update.
1460         (recompute_probabilities): Update.
1461         (update_joiner_offpath_counts): Update.
1462         (estimated_freqs_path): Update.
1463         (freqs_to_counts_path): Update.
1464         (clear_counts_path): Update.
1465         (ssa_fix_duplicate_block_edges): Update.
1466         (duplicate_thread_path): Update.
1467         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
1468         (case_bit_test_cmp): Update.
1469         (collect_switch_conv_info): Update.
1470         (gen_inbound_check): Update.
1471         (do_jump_if_equal): Update.
1472         (emit_cmp_and_jump_insns): Update.
1473         * tree-tailcall.c (decrease_profile): Update.
1474         (eliminate_tail_call): Update.
1475         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
1476         (vect_do_peeling): Update.
1477         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1478         * ubsan.c (ubsan_expand_null_ifn): Update.
1479         (ubsan_expand_ptr_ifn): Update.
1480         * value-prof.c (gimple_divmod_fixed_value): Update.
1481         (gimple_mod_pow2): Update.
1482         (gimple_mod_subtract): Update.
1483         (gimple_ic): Update.
1484         (gimple_stringop_fixed_value): Update.
1486 2017-10-19  Uros Bizjak  <ubizjak@gmail.com>
1488         PR target/82618
1489         * config/i386/i386.md (sub to cmp): New peephole2 pattern.
1491 2017-10-19  Alexander Monakov  <amonakov@ispras.ru>
1493         PR rtl-optimization/82395
1494         * ira-color.c (allocno_priority_compare_func): Fix comparison step
1495         based on non_spilled_static_chain_regno_p.
1497 2017-10-19  Uros Bizjak  <ubizjak@gmail.com>
1499         * config/i386/i386.c (output_387_binary_op): Rewrite SSE part.
1500         (ix86_emit_mode_set): Rewrite insn mnemonic construction.
1501         (ix86_prepare_fp_compare_args): Redefine is_sse as bool.
1503 2017-10-19  Martin Sebor  <msebor@redhat.com>
1505         PR tree-optimization/82596
1506         * tree.c (array_at_struct_end_p): Handle STRING_CST.
1508 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1510         * asan.c (handle_builtin_alloca): Deal with all alloca variants.
1511         (get_mem_refs_of_builtin_call): Likewise.
1512         * builtins.c (expand_builtin_apply): Adjust call to
1513         allocate_dynamic_stack_space.
1514         (expand_builtin_alloca): For __builtin_alloca_with_align_and_max, pass
1515         the third argument to allocate_dynamic_stack_space, otherwise -1.
1516         (expand_builtin): Deal with all alloca variants.
1517         (is_inexpensive_builtin): Likewise.
1518         * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN_AND_MAX): New.
1519         * calls.c (special_function_p): Deal with all alloca variants.
1520         (initialize_argument_information): Adjust call to
1521         allocate_dynamic_stack_space.
1522         (expand_call): Likewise.
1523         * cfgexpand.c (expand_call_stmt): Deal with all alloca variants.
1524         * doc/extend.texi (Built-ins): Add __builtin_alloca_with_align_and_max
1525         * explow.c (allocate_dynamic_stack_space): Add MAX_SIZE parameter and
1526         use it for the stack usage computation.
1527         * explow.h (allocate_dynamic_stack_space): Adjust prototype.
1528         * function.c (gimplify_parameters): Call build_alloca_call_expr.
1529         * gimple-ssa-warn-alloca.c (alloca_call_type): Simplify control flow.
1530         Take into account 3rd argument of __builtin_alloca_with_align_and_max.
1531         (in_loop_p): Remove first argument and useless check.
1532         (pass_walloca::execute): Remove useless test and adjust call to above.
1533         * gimple.c (gimple_build_call_from_tree): Deal with all alloc variants
1534         * gimplify.c (gimplify_vla_decl): Call build_alloca_call_expr.
1535         (gimplify_call_expr): Deal with all alloca variants.
1536         * hsa-gen.c (gen_hsa_alloca): Likewise.
1537         (gen_hsa_insns_for_call): Likewise.
1538         * ipa-pure-const.c (special_builtin_state): Likewise.
1539         * tree-chkp.c (chkp_build_returned_bound): Likewise.
1540         * tree-object-size.c (alloc_object_size): Likewise.
1541         * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1542         (call_may_clobber_ref_p_1): Likewise.
1543         * tree-ssa-ccp.c (evaluate_stmt): Likewise.
1544         (ccp_fold_stmt): Likewise.
1545         (optimize_stack_restore): Likewise.
1546         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1547         (mark_all_reaching_defs_necessary_1): Likewise.
1548         (propagate_necessity): Likewise.
1549         (eliminate_unnecessary_stmts): Likewise.
1550         * tree.c (build_common_builtin_nodes): Build
1551         BUILT_IN_ALLOCA_WITH_ALIGN_AND_MAX.
1552         (build_alloca_call_expr): New function.
1553         * tree.h (ALLOCA_FUNCTION_CODE_P): New macro.
1554         (CASE_BUILT_IN_ALLOCA): Likewise.
1555         (build_alloca_call_expr): Declare.
1556         * varasm.c (incorporeal_function_p): Deal with all alloca variants.
1558 2017-10-19  Eric Botcazou  <ebotcazou@adacore.com>
1560         PR debug/82509
1561         * dwarf2out.c (new_die_raw): New static inline function.
1562         (new_die): Use it to create the DIE.
1563         (add_AT_external_die_ref): Likewise.
1564         (clone_die): Likewise.
1565         (clone_as_declaration): Likewise.
1566         (dwarf2out_vms_debug_main_pointer): Likewise.
1567         (base_type_die): Likewise.  Remove early return for corner cases.
1568         Do not call add_pubtype on the DIE here.
1569         (is_base_type): Remove ERROR_MARK and return 0 for VOID_TYPE.
1570         (modified_type_die): Adjust the lookup for reverse order DIEs.  Skip
1571         typedefs for base types with DW_AT_endianity.  Make sure a DIE with
1572         native order exists for base types, attach the DIE manually and call
1573         add_pubtype on it.  Do not equate a reverse order DIE to the type.
1575 2017-10-19  Richard Earnshaw  <rearnsha@arm.com>
1577         * config/arm/arm.c (align_ok_ldrd_strd): New function.
1578         (mem_ok_for_ldrd_strd): New parameter align.  Extract the alignment of
1579         the mem into it.
1580         (gen_operands_ldrd_strd): Validate the alignment of the accesses.
1582 2017-10-19  Jakub Jelinek  <jakub@redhat.com>
1584         * flag-types.h (enum sanitize_code): Add SANITIZE_BUILTIN.  Or
1585         SANITIZE_BUILTIN into SANITIZE_UNDEFINED.
1586         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN,
1587         BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN_ABORT): New builtins.
1588         * opts.c (sanitizer_opts): Add builtin.
1589         * ubsan.c (instrument_builtin): New function.
1590         (pass_ubsan::execute): Call it.
1591         (pass_ubsan::gate): Enable even for SANITIZE_BUILTIN.
1592         * doc/invoke.texi: Document -fsanitize=builtin.
1594         * ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
1595         builtins, store max (log2 (align), 0) into uchar field instead of
1596         align into uptr field.
1597         (ubsan_expand_objsize_ifn): Use _v1 suffixed type mismatch builtins,
1598         store uchar 0 field instead of uptr 0 field.
1599         (instrument_nonnull_return): Use _v1 suffixed nonnull return builtin,
1600         instead of passing one address of struct with 2 locations pass
1601         two addresses of structs with 1 location each.
1602         * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH,
1603         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
1604         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
1605         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): Removed.
1606         (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1,
1607         BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1_ABORT,
1608         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1,
1609         BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1_ABORT): New builtins.
1611 2017-10-19  Martin Liska  <mliska@suse.cz>
1613         PR driver/81829
1614         * file-find.c (remove_prefix): Remove.
1615         * file-find.h (remove_prefix): Likewise.
1616         * gcc-ar.c: Remove smartness of lookup.
1618 2017-10-19  Segher Boessenkool  <segher@kernel.crashing.org>
1620         * config/rs6000/rs6000.md (*call_indirect_aix<mode>,
1621         *call_value_indirect_aix<mode>, *call_indirect_elfv2<mode>,
1622         *call_value_indirect_elfv2<mode>): Add correct mode to the unspec.
1624 2017-10-19  Jakub Jelinek  <jakub@redhat.com>
1626         PR target/82580
1627         * config/i386/i386.md (setcc + movzbl to xor + setcc): New peephole2.
1628         (setcc + and to xor + setcc): New peephole2.
1630 2017-10-19  Tom de Vries  <tom@codesourcery.com>
1632         * doc/sourcebuild.texi (Test Directives, Variants of
1633         dg-require-support): Add dg-require-stack-size.
1635 2017-10-19  Martin Liska  <mliska@suse.cz>
1637         PR sanitizer/82517
1638         * gimplify.c (gimplify_decl_expr): Do not instrument variables
1639         that have a large alignment.
1640         (gimplify_target_expr): Likewise.
1642 2017-10-18  Segher Boessenkool  <segher@kernel.crashing.org>
1644         PR rtl-optimization/82602
1645         * ira.c (rtx_moveable_p): Return false for volatile asm.
1647 2017-10-18  Uros Bizjak  <ubizjak@gmail.com>
1649         PR target/82580
1650         * config/i386/i386-modes.def (CCGZ): New CC mode.
1651         * config/i386/i386.md (sub<mode>3_carry_ccgz): New insn pattern.
1652         * config/i386/predicates.md (ix86_comparison_operator):
1653         Handle CCGZmode.
1654         * config/i386/i386.c (ix86_expand_branch) <case E_TImode>:
1655         Emulate LE, LEU, GT, GTU, LT, LTU, GE and GEU double-word comparisons
1656         with double-word subtraction.
1657         (put_condition_code): Handle CCGZmode.
1659 2017-10-18  Aldy Hernandez  <aldyh@redhat.com>
1661         * wide-int.cc (debug (const wide_int &)): New.
1662         (debug (const wide_int *)): New.
1663         (debug (const widest_int &)): New.
1664         (debug (const widest_int *)): New.
1666 2017-10-18  Vladimir Makarov  <vmakarov@redhat.com>
1668         PR middle-end/82556
1669         * lra-constraints.c (curr_insn_transform): Use non-input operand
1670         instead of output one for matched reload.
1672 2017-10-18  Bin Cheng  <bin.cheng@arm.com>
1674         * tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
1675         (tree-ssa-loop-ivopts.h): New header file.
1676         (struct builtin_info): New fields.
1677         (classify_builtin_1): Compute and record base and offset parts for
1678         memset builtin partition by calling strip_offset.
1679         (offset_cmp, fuse_memset_builtins): New functions.
1680         (finalize_partitions): Fuse adjacent memset partitions by calling
1681         above function.
1682         * tree-ssa-loop-ivopts.c (strip_offset): Delete static declaration.
1683         Expose the interface.
1684         * tree-ssa-loop-ivopts.h (strip_offset): New declaration.
1686 2017-10-18  Bin Cheng  <bin.cheng@arm.com>
1688         PR tree-optimization/82574
1689         * tree-loop-distribution.c (find_single_drs): New parameter.  Check
1690         that data reference must be executed exactly once per iteration
1691         against the outermost loop in nest.
1692         (classify_partition): Update call to above function.
1694 2017-10-18  Richard Biener  <rguenther@suse.de>
1696         PR tree-optimization/82591
1697         * graphite.c (graphite_transform_loops): Move code gen message
1698         printing ...
1699         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
1700         Here.  Handle scop_to_isl_ast failing.
1701         (scop_to_isl_ast): Limit the number of ISL operations.
1703 2017-10-18  Richard Biener  <rguenther@suse.de>
1705         * graphite-isl-ast-to-gimple.c
1706         (translate_isl_ast_to_gimple::set_rename): Simplify.
1707         (translate_isl_ast_to_gimple::set_rename_for_each_def): Inline...
1708         (graphite_copy_stmts_from_block): ... here.
1709         (copy_bb_and_scalar_dependences): Simplify.
1710         (add_parameters_to_ivs_params): Canonicalize.
1711         (generate_entry_out_of_ssa_copies): Simplify.
1712         * graphite-sese-to-poly.c (extract_affine_name): Simplify
1713         by passing in ISL dimension.
1714         (parameter_index_in_region_1): Rename to ...
1715         (parameter_index_in_region): ... this.
1716         (extract_affine): Adjust assert, pass down parameter index.
1717         (add_param_constraints): Use range-info when available.
1718         (build_scop_context): Adjust.
1719         * sese.c (new_sese_info): Adjust.
1720         (free_sese_info): Likewise.
1721         * sese.h (bb_map_t, rename_map_t, phi_rename, init_back_edge_pair_t):
1722         Remove unused typedefs.
1723         (struct sese_info_t): Simplify rename_map, remove incomplete_phis.
1725 2017-10-18  Martin Liska  <mliska@suse.cz>
1727         * combine.c (simplify_compare_const): Add gcc_fallthrough.
1729 2017-10-18  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1731         * config/s390/s390.c (s390_bb_fallthru_entry_likely): New function.
1732         (s390_sched_init): Do not reset s390_sched_state if we entered the
1733         current basic block via a fallthru edge and all others are unlikely.
1735 2017-10-18  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1737         * config/s390/s390.c (NUM_SIDES): New variable.
1738         (LONGRUNNING_THRESHOLD): New variable.
1739         (LATENCY_FACTOR): New variable.
1740         (s390_sched_score): Decrease score for long-running instructions on
1741         wrong side.
1742         (s390_sched_variable_issue): Perform bookkeeping for long-running
1743         instructions.
1745 2017-10-18  Richard Biener  <rguenther@suse.de>
1747         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1748         Simplify with removal of the parameter rename map.
1749         (set_rename): Likewise.
1750         (should_copy_to_new_region): Likewise.
1751         (graphite_copy_stmts_from_block): Likewise.
1752         (copy_bb_and_scalar_dependences): Remove initialization of
1753         unused copied_bb_map.
1754         (copy_def): Remove.
1755         (copy_internal_parameters): Likewise.
1756         (graphite_regenerate_ast_isl): Do not call copy_internal_parameters.
1757         * graphite-scop-detection.c (scop_detection::stmt_simple_for_scop_p):
1758         Use INTEGRAL_TYPE_P.
1759         (parameter_index_in_region_1): Rename to ...
1760         (assign_parameter_index_in_region): ... this.  Assert we have
1761         a parameter we handle.
1762         (scan_tree_for_params): Adjust.
1763         * sese.h (parameter_rename_map_t): Remove.
1764         (struct sese_info_t): Remove unused parameter_rename_map and
1765         copied_bb_map members.
1766         * sese.c (new_sese_info): Adjust.
1767         (free_sese_info): Likewise.
1769 2017-10-18  Martin Liska  <mliska@suse.cz>
1771         PR sanitizer/82545
1772         * asan.c (asan_expand_poison_ifn): Do not put gimple stmt
1773         on an abnormal edge.
1775 2017-10-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1777         * doc/invoke.texi (ffunction-sections and fdata-sections):
1778         Update.
1780 2017-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1782         * tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if
1783         the use statement can throw internally.
1785 2017-10-17  Eric Botcazou  <ebotcazou@adacore.com>
1787         * config/visium/visium.c (visium_select_cc_mode): Return CCmode for
1788         any RTX present on the RHS of a SET.
1789         * compare-elim.c (try_eliminate_compare): Restore comment.
1791 2017-10-17  Jakub Jelinek  <jakub@redhat.com>
1793         * langhooks.h (struct lang_hooks): Document that tree_size langhook
1794         may be also called on tcc_type nodes.
1795         * langhooks.c (lhd_tree_size): Likewise.
1797 2017-10-17  David Malcolm  <dmalcolm@redhat.com>
1799         * gimple-ssa-sprintf.c (fmtwarn): Update for changed signature of
1800         format_warning_at_substring.
1801         (maybe_warn): Convert source_range * param to a location_t.  Pass
1802         UNKNOWN_LOCATION rather than NULL to fmtwarn.
1803         (format_directive): Remove code to extract source_ranges and
1804         source_range * in favor of just a location_t.
1805         (parse_directive): Pass UNKNOWN_LOCATION rather than NULL to
1806         fmtwarn.
1807         * substring-locations.c (format_warning_va): Convert
1808         source_range * param to a location_t.
1809         (format_warning_at_substring): Likewise.
1810         * substring-locations.h (format_warning_va): Likewise.
1811         (format_warning_at_substring): Likewise.
1813 2017-10-17  Jan Hubicka  <hubicka@ucw.cz>
1815         * target.h (enum vect_cost_for_stmt): Add vec_gather_load and
1816         vec_scatter_store
1817         * tree-vect-stmts.c (record_stmt_cost): Make difference between normal
1818         and scatter/gather ops.
1820         * aarch64/aarch64.c (aarch64_builtin_vectorization_cost): Add
1821         vec_gather_load and vec_scatter_store.
1822         * arm/arm.c (arm_builtin_vectorization_cost): Likewise.
1823         * powerpcspe/powerpcspe.c (rs6000_builtin_vectorization_cost): Likewise.
1824         * rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Likewise.
1825         * s390/s390.c (s390_builtin_vectorization_cost): Likewise.
1826         * spu/spu.c (spu_builtin_vectorization_cost): Likewise.
1827         * i386/i386.c (x86_builtin_vectorization_cost): Likewise.
1829 2017-10-17  Uros Bizjak  <ubizjak@gmail.com>
1831         * reg-stack.c (compare_for_stack_reg): Add bool argument.
1832         Detect FTST instruction and handle its register pops.  Only pop
1833         second operand if can_pop_second_op is true.
1834         (subst_stack_regs_pat) <case COMPARE>: Detect FCOMI instruction to
1835         set can_pop_second_op to false in the compare_for_stack_reg call.
1837         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Only call
1838         output_fp_compare for stack register operands.
1839         * config/i386/i386.c (output_fp_compare): Do not output SSE compare
1840         instructions here.  Do not emit stack register pops here.  Assert
1841         that FCOMPP pops next to top stack register.  Rewrite function.
1843 2017-10-17  Nathan Sidwell  <nathan@acm.org>
1845         PR middle-end/82577
1846         * alias.c (compare_base_decls): Check HAS_DECL_ASSEMBLER_NAME_P,
1847         use DECL_ASSEMBLER_NAME_RAW.
1849         PR middle-end/82546
1850         * tree.c (tree_code_size): Reformat.  Punt to lang hook for unknown
1851         TYPE nodes.
1853 2017-10-17  Qing Zhao <qing.zhao@oracle.com>
1854             Wilco Dijkstra <wilco.dijkstra@arm.com>
1856         * builtins.c (expand_builtin_update_setjmp_buf): Add a
1857         converstion to Pmode from the buf_addr.
1859 2017-10-17  Richard Biener  <rguenther@suse.de>
1861         * graphite-dependences.c (scop_get_reads_and_writes): Change
1862         output parameters to references.
1864 2017-10-17  Jackson Woodruff  <jackson.woodruff@arm.com>
1866         PR 71026/tree-optimization
1867         * fold-const.c (distribute_real_division): Removed.
1868         (fold_binary_loc): Remove calls to distribute_real_divison.
1870 2017-10-17  Richard Biener  <rguenther@suse.de>
1872         * graphite-scop-detection.c
1873         (scop_detection::stmt_has_simple_data_refs_p): Always use
1874         the full nest as region.
1875         (try_generate_gimple_bb): Likewise.
1876         * sese.c (scalar_evolution_in_region): Simplify now that
1877         SCEV can handle instantiation in regions.
1878         * tree-scalar-evolution.c (instantiate_scev_name): Also instantiate
1879         in the non-loop part of a function if requested.
1881 2017-10-17  Richard Biener  <rguenther@suse.de>
1883         PR tree-optimization/82563
1884         * graphite-isl-ast-to-gimple.c (generate_entry_out_of_ssa_copies):
1885         New function.
1886         (graphite_regenerate_ast_isl): Call it.
1887         * graphite-scop-detection.c (build_scops): Remove entry edge split.
1889 2017-10-17  Jakub Jelinek  <jakub@redhat.com>
1891         PR tree-optimization/82549
1892         * fold-const.c (optimize_bit_field_compare, fold_truth_andor_1):
1893         Formatting fixes.  Instead of calling make_bit_field_ref with negative
1894         bitpos return 0.
1896 2017-10-17  Olga Makhotina  <olga.makhotina@intel.com>
1898         * config/i386/avx512dqintrin.h (_mm_mask_reduce_sd,
1899         _mm_maskz_reduce_sd, _mm_mask_reduce_ss,=20
1900         _mm_maskz_reduce_ss): New.
1901         * config/i386/i386-builtin.def (__builtin_ia32_reducesd_mask,
1902         __builtin_ia32_reducess_mask): Ditto..
1903         (__builtin_ia32_reducesd, __builtin_ia32_reducess): Remove.
1904         * config/i386/sse.md (reduces<mode>): Renamed to ...
1905         (reduces<mode><mask_scalar_name>): ... this.
1906         (vreduce<ssescalarmodesuffix>\t{%3, %2, %1, %0|%0, %1, %2, %3}):
1907         Changed to ...
1908         (vreduce<ssescalarmodesuffix>\t{%3, %2, %1, %0<mask_scalar_operand4>|
1909         %0<mask_scalar_operand4>, %1, %2, %3}): ... this.
1911 2017-10-16  David Malcolm  <dmalcolm@redhat.com>
1913         * Makefile.in (OBJS): Add unique-ptr-tests.o.
1914         * selftest-run-tests.c (selftest::run_tests): Call
1915         selftest::unique_ptr_tests_cc_tests.
1916         * selftest.h (selftest::unique_ptr_tests_cc_tests): New decl.
1917         * unique-ptr-tests.cc: New file.
1919 2017-10-16  Vladimir Makarov  <vmakarov@redhat.com>
1921         PR sanitizer/82353
1922         * lra.c (collect_non_operand_hard_regs): Don't ignore operator
1923         locations.
1924         * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
1925         (make_hard_regno_born, make_hard_regno_dead): Update
1926         bb_killed_pseudos and bb_gen_pseudos for fixed regs.
1928 2017-10-16  Jeff Law  <law@redhat.com>
1930         * tree-ssa-dse.c (live_bytes_read): Fix thinko.
1932 2017-10-16  Jan Hubicka  <hubicka@ucw.cz>
1934         * x86-tune-costs.h (znver1_cost): Fix move cost tables.
1936 2017-10-16  Olivier Hainque  <hainque@adacore.com>
1938         * gcc/config.gcc (powerpc*-*-*spe*): Pick 8548 as the default
1939         with_cpu if we were configured for an e500v2 target cpu name.
1941 2017-10-16  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1943         * config/arm/arm-cpus.in (cortex-m33): Add nodsp option.
1944         * doc/invoke.texi: Document +nodsp as a valid extension for
1945         -mcpu=cortex-m33.
1947 2017-10-16  Martin Liska  <mliska@suse.cz>
1949         * sbitmap.c (bitmap_bit_in_range_p_checking): New function.
1950         (test_set_range): Likewise.
1951         (test_range_functions): Rename to ...
1952         (test_bit_in_range): ... this.
1953         (sbitmap_c_tests): Add new test.
1955 2017-10-16  Tamar Christina  <tamar.christina@arm.com>
1957         * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32):
1958         New.
1959         (vdot_lane_u32, vdot_laneq_u32, vdotq_lane_u32, vdotq_laneq_u32): New.
1960         (vdot_lane_s32, vdot_laneq_s32, vdotq_lane_s32, vdotq_laneq_s32): New.
1962 2017-10-16  Tamar Christina  <tamar.christina@arm.com>
1964         * config/aarch64/aarch64-builtins.c
1965         (aarch64_types_quadopu_lane_qualifiers): New.
1966         (TYPES_QUADOPU_LANE): New.
1967         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): New.
1968         (<sur>dot_prod<vsi2qi>, aarch64_<sur>dot_lane<vsi2qi>): New.
1969         (aarch64_<sur>dot_laneq<vsi2qi>): New.
1970         * config/aarch64/aarch64-simd-builtins.def (sdot, udot): New.
1971         (sdot_lane, udot_lane, sdot_laneq, udot_laneq): New.
1972         * config/aarch64/iterators.md (sur): Add UNSPEC_SDOT, UNSPEC_UDOT.
1973         (Vdottype, DOTPROD): New.
1974         (sur): Add SDOT and UDOT.
1976 2017-10-16  Tamar Christina  <tamar.christina@arm.com>
1978         * config/aarch64/aarch64.h (AARCH64_FL_DOTPROD): New.
1979         (AARCH64_ISA_DOTPROD, TARGET_DOTPROD): New.
1980         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
1981         Add TARGET_DOTPROD.
1982         * config/aarch64/aarch64-option-extensions.def (dotprod): New.
1983         * config/aarch64/aarch64-cores.def (cortex-a55, cortex-a75):
1984         Enable TARGET_DOTPROD.
1985         (cortex-a75.cortex-a55): Likewise.
1986         * doc/invoke.texi (aarch64-feature-modifiers): Document dotprod.
1988 2017-10-16  Tamar Christina  <tamar.christina@arm.com>
1990         * config/arm/arm-builtins.c (arm_unsigned_uternop_qualifiers): New.
1991         (UTERNOP_QUALIFIERS, arm_umac_lane_qualifiers, UMAC_LANE_QUALIFIERS):
1992         New.
1993         * config/arm/arm_neon_builtins.def (sdot, udot, sdot_lane, udot_lane):
1994         New.
1995         * config/arm/iterators.md (DOTPROD, VSI2QI, vsi2qi): New.
1996         (UNSPEC_DOT_S, UNSPEC_DOT_U, opsuffix): New.
1997         * config/arm/neon.md (neon_<sup>dot<vsi2qi>): New.
1998         (neon_<sup>dot_lane<vsi2qi>, <sup>dot_prod<vsi2qi>): New.
1999         * config/arm/types.md (neon_dot, neon_dot_q): New.
2000         * config/arm/unspecs.md (sup): Add UNSPEC_DOT_S, UNSPEC_DOT_U.
2002 2017-10-16  Tamar Christina  <tamar.christina@arm.com>
2004         * config/arm/arm.h (TARGET_DOTPROD): New.
2005         * config/arm/arm.c (arm_arch_dotprod): New.
2006         (arm_option_reconfigure_globals): Add arm_arch_dotprod.
2007         * config/arm/arm-c.c (__ARM_FEATURE_DOTPROD): New.
2008         * config/arm/arm-cpus.in (armv8.2-a): Enabled +dotprod.
2009         (feature dotprod, group dotprod, ALL_SIMD_INTERNAL): New.
2010         (ALL_FPU_INTERNAL): Use ALL_SIMD_INTERNAL.
2011         * config/arm/t-multilib (v8_2_a_simd_variants): Add dotprod.
2012         * doc/invoke.texi (armv8.2-a): Document dotprod
2014 2017-10-14  Jan Hubicka  <hubicka@ucw.cz>
2016         * i386.c (ix86_vec_cost): New function.
2017         (ix86_rtx_costs): Handle vector operations better.
2018         * i386.h (struct processor_costs): Add sse_op, fmasd, fmass.
2019         * x86-tune-costs.h: Add new costs to all tables.
2021 2017-10-14  Jan Hubicka  <hubicka@ucw.cz>
2023         * i386.c (ix86_rtx_costs): Make difference between x87 and SSE
2024         operations.
2025         * i386.h (struct processor_costs): Add addss, mulss, mulsd, divss,
2026         divsd, sqrtss and sqrtsd
2027         * x86-tune-costs.h: Add new entries to all costs.
2028         (znver1_cost): Fix to match real instruction latencies.
2030 2017-10-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2031             Michael Collison <michael.collison@arm.com>
2033         * compare-elim.c: Include emit-rtl.h.
2034         (can_merge_compare_into_arith): New function.
2035         (try_validate_parallel): Likewise.
2036         (try_merge_compare): Likewise.
2037         (try_eliminate_compare): Call the above when no previous clobber
2038         is available.
2039         (execute_compare_elim_after_reload): Add DF_UD_CHAIN and DF_DU_CHAIN
2040         dataflow problems.
2042 2017-10-14  Jakub Jelinek  <jakub@redhat.com>
2044         PR middle-end/62263
2045         PR middle-end/82498
2046         * tree-ssa-phiopt.c (value_replacement): Comment fix.  Handle
2047         up to 2 preparation statements for ASSIGN in MIDDLE_BB.
2049         PR middle-end/62263
2050         PR middle-end/82498
2051         * tree-ssa-forwprop.c (simplify_rotate): Allow def_arg1[N]
2052         to be any operand_equal_p operands.  For & (B - 1) require
2053         B to be power of 2.  Recognize
2054         (X << (Y & (B - 1))) | (X >> ((-Y) & (B - 1))) and similar patterns.
2056 2017-10-14  Uros Bizjak  <ubizjak@gmail.com>
2058         PR bootstrap/82553
2059         * optabs.c (expand_memory_blockage): Fix call of
2060         targetm.have_memory_blockage.
2062 2017-10-14  Jakub Jelinek  <jakub@redhat.com>
2064         PR bootstrap/82548
2065         * config.gcc (*-*-solaris2*, i[34567]86-*-cygwin*,
2066         x86_64-*-cygwin*, i[34567]86-*-mingw* | x86_64-*-mingw*): Append
2067         objects to extra_objs instead of overwriting it.
2069 2017-10-14  Uros Bizjak  <ubizjak@gmail.com>
2071         * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
2072         Use any_fp_register_operand as operand[3] predicate.  Simplify
2073         equality test for operands[2] and operands[4] memory location.
2074         (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
2075         (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): New.
2076         (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
2077         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2): Use
2078         any_fp_register_operand as operand[1] predicate.  Simplify
2079         equality test for operands[0] and operands[3] memory location.
2080         (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
2081         (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): New.
2082         (LDX_ATOMIC/LDX_ATOMIC FP storepeephole2 with mem blockage): Ditto.
2084 2017-10-14  Uros Bizjak  <ubizjak@gmail.com>
2086         * target-insns.def: Add memory_blockage.
2087         * optabs.c (expand_memory_blockage): New function.
2088         (expand_asm_memory_barrier): Rename ...
2089         (expand_asm_memory_blockage): ... to this.
2090         (expand_mem_thread_fence): Call expand_memory_blockage
2091         instead of expand_asm_memory_barrier.
2092         (expand_mem_singnal_fence): Ditto.
2093         (expand_atomic_load): Ditto.
2094         (expand_atomic_store): Ditto.
2095         * doc/md.texi (Standard Pattern Names For Generation):
2096         Document memory_blockage instruction pattern.
2098 2017-10-13  Sebastian Perta  <sebastian.perta@renesas.com>
2100         * config/rl78/rl78.c (rl78_emit_libcall): New function.
2101         * config/rl78/rl78-protos.h (rl78_emit_libcall): New function.
2102         * config/rl78/rl78.md: New define_expand "adddi3".
2104 2017-10-13  Jan Hubicka  <hubicka@ucw.cz>
2106         * cfghooks.c (verify_flow_info): Disable check that all probabilities
2107         are set correctly.
2109 2017-10-13  Jeff Law  <law@redhat.com>
2111         * tree-ssa-reassoc.c (reassociate_bb): Clarify code slighly.
2113 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
2115         PR target/82274
2116         * internal-fn.c (expand_mul_overflow): If both operands have
2117         the same highpart of -1 or 0 and the topmost bit of lowpart
2118         is different, overflow is if res <= 0 rather than res < 0.
2120 2017-10-13  Pat Haugen  <pthaugen@us.ibm.com>
2122         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Remove
2123         TARGET_P9_VECTOR code for unaligned_load case.
2125 2017-10-13  Jan Hubicka  <hubicka@ucw.cz>
2127         * cfghooks.c (verify_flow_info): Check that edge probabilities are set.
2129 2017-10-13  Nathan Sidwell  <nathan@acm.org>
2131         * tree-core.h (tree_contains_struct): Make bool.
2132         * tree.c (tree_contains_struct): Likewise.
2133         * tree.h (MARK_TS_BASE): Remove do ... while (0) idiom.
2134         (MARK_TS_TYPED, MARK_TS_COMMON, MARK_TS_TYPE_COMMON,
2135         MARK_TS_TYPE_WITH_LANG_SPECIFIC, MARK_TS_DECL_MINIMAL,
2136         MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL, MARK_TS_DECL_WITH_VIS,
2137         MARK_TS_DECL_NON_COMMON): Likewise, use comma operator.
2139 2017-10-13  Richard Biener  <rguenther@suse.de>
2141         * graphite-isl-ast-to-gimple.c
2142         (translate_isl_ast_to_gimple::get_rename_from_scev): Remove unused
2143         parameters and dominance check.
2144         (translate_isl_ast_to_gimple::graphite_copy_stmts_from_block): Adjust.
2145         (translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences): Likewise.
2146         (translate_isl_ast_to_gimple::graphite_regenerate_ast_isl):
2147         Do not update SSA form here or do intermediate IL verification.
2148         * graphite.c: Include tree-ssa.h and tree-into-ssa.h.
2149         (graphite_initialize): Remove check on the number of loops in
2150         the function and inline into graphite_transform_loops.
2151         (graphite_finalize): Inline into graphite_transform_loops.
2152         (graphite_transform_loops): Perform SSA update and IL verification
2153         here.
2154         * params.def (PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION): Remove.
2156 2017-10-13  Richard Biener  <rguenther@suse.de>
2158         * graphite-isl-ast-to-gimple.c (max_mode_int_precision,
2159         graphite_expression_type_precision): Avoid global constructor
2160         by moving ...
2161         (translate_isl_ast_to_gimple::translate_isl_ast_to_gimple): Here.
2162         (translate_isl_ast_to_gimple::graphite_expr_type): Add type member.
2163         (translate_isl_ast_to_gimple::translate_isl_ast_node_for): Use it.
2164         (translate_isl_ast_to_gimple::build_iv_mapping): Likewise.
2165         (translate_isl_ast_to_gimple::graphite_create_new_guard): Likewise.
2166         * graphite-sese-to-poly.c (build_original_schedule): Return nothing.
2168 2017-10-13  H.J. Lu  <hongjiu.lu@intel.com>
2170         PR target/82499
2171         * config/i386/i386.h (ix86_red_zone_size): New.
2172         * config/i386/i386.md (push peephole2s): Replace
2173         "!ix86_using_red_zone ()" with "ix86_red_zone_size == 0".
2175 2017-10-13  Richard Sandiford  <richard.sandiford@linaro.org>
2176             Alan Hayward  <alan.hayward@arm.com>
2177             David Sherwood  <david.sherwood@arm.com>
2179         * combine.c (can_change_dest_mode): Reject changes in
2180         REGMODE_NATURAL_SIZE.
2182 2017-10-13  Richard Sandiford  <richard.sandiford@linaro.org>
2183             Alan Hayward  <alan.hayward@arm.com>
2184             David Sherwood  <david.sherwood@arm.com>
2186         * cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_BITSIZE.
2187         (expand_debug_source_expr): Likewise.
2188         * combine.c (combine_simplify_rtx): Likewise.
2189         * cse.c (fold_rtx): Likewise.
2190         * fwprop.c (canonicalize_address): Likewise.
2191         * targhooks.c (default_shift_truncation_mask): Likewise.
2193 2017-10-13  Richard Sandiford  <richard.sandiford@linaro.org>
2194             Alan Hayward  <alan.hayward@arm.com>
2195             David Sherwood  <david.sherwood@arm.com>
2197         * optabs.c (add_equal_note): Use GET_MODE_UNIT_SIZE.
2198         (widened_mode): Likewise.
2199         (expand_unop): Likewise.
2200         * ree.c (transform_ifelse): Likewise.
2201         (merge_def_and_ext): Likewise.
2202         (combine_reaching_defs): Likewise.
2203         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2205 2017-10-13  Richard Sandiford  <richard.sandiford@linaro.org>
2206             Alan Hayward  <alan.hayward@arm.com>
2207             David Sherwood  <david.sherwood@arm.com>
2209         * caller-save.c (replace_reg_with_saved_mem): Use byte_lowpart_offset.
2210         * combine.c (gen_lowpart_for_combine): Likewise.
2211         * dwarf2out.c (rtl_for_decl_location): Likewise.
2212         * final.c (alter_subreg): Likewise.
2213         * rtlhooks.c (gen_lowpart_general): Likewise.
2214         (gen_lowpart_if_possible): Likewise.
2216 2017-10-13  Richard Sandiford  <richard.sandiford@linaro.org>
2217             Alan Hayward  <alan.hayward@arm.com>
2218             David Sherwood  <david.sherwood@arm.com>
2220         * calls.c (expand_call): Use subreg_lowpart_offset.
2221         * cse.c (cse_insn): Likewise.
2222         * regcprop.c (copy_value): Likewise.
2223         (copyprop_hardreg_forward_1): Likewise.
2225 2017-10-13  Jakub Jelinek  <jakub@redhat.com>
2227         PR target/82524
2228         * config/i386/i386.md (addqi_ext_1, andqi_ext_1,
2229         *andqi_ext_1_cc, *<code>qi_ext_1, *xorqi_ext_1_cc): Change
2230         =Q constraints to +Q and into insn condition add check
2231         that operands[0] and operands[1] are equal.
2232         (*addqi_ext_2, *andqi_ext_2, *<code>qi_ext_2): Change
2233         =Q constraints to +Q and into insn condition add check
2234         that operands[0] is equal to either operands[1] or operands[2].
2236         PR target/82498
2237         * fold-const.c (fold_binary_loc) <bit_rotate>: Code cleanups,
2238         instead of handling MINUS_EXPR twice (once for each argument),
2239         canonicalize operand order and handle just once, use rtype where
2240         possible.  Handle (A << B) | (A >> (-B & (Z - 1))).
2242         PR target/82498
2243         * config/i386/ia32intrin.h (__rold, __rord, __rolq, __rorq): Allow
2244         any values of __C while still being pattern recognizable as a simple
2245         rotate instruction.
2247 2017-10-13  Richard Biener  <rguenther@suse.de>
2249         PR tree-optimization/82451
2250         Revert
2251         2017-10-02  Richard Biener  <rguenther@suse.de>
2253         PR tree-optimization/82355
2254         * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
2255         a mapping for the enclosing loop but avoid generating one for
2256         the loop tree root.
2257         (copy_bb_and_scalar_dependences): Remove premature codegen
2258         error on PHIs in blocks duplicated into multiple places.
2259         * graphite-scop-detection.c
2260         (scop_detection::stmt_has_simple_data_refs_p): For a loop not
2261         in the region use it as loop and nest to analyze the DR in.
2262         (try_generate_gimple_bb): Likewise.
2263         * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
2264         (add_loop_constraints): For blocks in a loop not in the region
2265         create a dimension with a single iteration.
2266         * sese.h (gbb_loop_at_index): Remove assert.
2268         * cfgloop.c (loop_preheader_edge): For the loop tree root
2269         return the single successor of the entry block.
2270         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2271         Reset the SCEV hashtable and niters.
2272         * graphite-scop-detection.c
2273         (scop_detection::graphite_can_represent_scev): Add SCOP parameter,
2274         assert that we only have POLYNOMIAL_CHREC that vary in loops
2275         contained in the region.
2276         (scop_detection::graphite_can_represent_expr): Adjust.
2277         (scop_detection::stmt_has_simple_data_refs_p): For loops
2278         not in the region set loop to NULL.  The nest is now the
2279         entry edge to the region.
2280         (try_generate_gimple_bb): Likewise.
2281         * sese.c (scalar_evolution_in_region): Adjust for
2282         instantiate_scev change.
2283         * tree-data-ref.h (graphite_find_data_references_in_stmt):
2284         Make nest parameter the edge into the region.
2285         (create_data_ref): Likewise.
2286         * tree-data-ref.c (dr_analyze_indices): Make nest parameter an
2287         entry edge into a region and adjust instantiate_scev calls.
2288         (create_data_ref): Likewise.
2289         (graphite_find_data_references_in_stmt): Likewise.
2290         (find_data_references_in_stmt): Pass the loop preheader edge
2291         from the nest argument.
2292         * tree-scalar-evolution.h (instantiate_scev): Make instantiate_below
2293         parameter the edge into the region.
2294         (instantiate_parameters): Use the loop preheader edge as entry.
2295         * tree-scalar-evolution.c (analyze_scalar_evolution): Handle
2296         NULL loop.
2297         (get_instantiated_value_entry): Make instantiate_below parameter
2298         the edge into the region.
2299         (instantiate_scev_name): Likewise.  Adjust dominance checks,
2300         when we cannot use loop-based instantiation instantiate by
2301         walking use-def chains.
2302         (instantiate_scev_poly): Adjust.
2303         (instantiate_scev_binary): Likewise.
2304         (instantiate_scev_convert): Likewise.
2305         (instantiate_scev_not): Likewise.
2306         (instantiate_array_ref): Remove.
2307         (instantiate_scev_3): Likewise.
2308         (instantiate_scev_2): Likewise.
2309         (instantiate_scev_1): Likewise.
2310         (instantiate_scev_r): Do not blindly handle N-operand trees.
2311         Do not instantiate array-refs.  Handle all constants and invariants.
2312         (instantiate_scev): Make instantiate_below parameter
2313         the edge into the region.
2314         (resolve_mixers): Use the loop preheader edge for the region
2315         parameter to instantiate_scev_r.
2316         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Adjust.
2318 2017-10-13  Richard Biener  <rguenther@suse.de>
2320         PR tree-optimization/82525
2321         * graphite-isl-ast-to-gimple.c
2322         (translate_isl_ast_to_gimple::widest_int_from_isl_expr_int): Split
2323         out from ...
2324         (translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int): Here.
2325         Fail code generation when we cannot represent the isl integer.
2326         (binary_op_to_tree): Elide modulo operations that are no-ops
2327         in the type we code generate.  Remove now superfluous code
2328         generation errors.
2330 2017-10-13  Richard Biener  <rguenther@suse.de>
2332         * graphite-scop-detection.c (loop_ivs_can_be_represented): Remove.
2333         (scop_detection::harmful_loop_in_region): Remove premature
2334         IV type restriction.
2335         (scop_detection::graphite_can_represent_scev): We can handle
2336         pointer IVs just fine.
2338 2017-10-13  Alan Modra  <amodra@gmail.com>
2340         * doc/extend.texi (Extended Asm <Clobbers>): Rename to
2341         "Clobbers and Scratch Registers".  Add paragraph on
2342         alternative to clobbers for scratch registers and OpenBLAS
2343         example.
2345 2017-10-13  Alan Modra  <amodra@gmail.com>
2347         * doc/extend.texi (Clobbers): Correct vax example.  Delete old
2348         example of a memory input for a string of known length.  Move
2349         commentary out of table.  Add a number of new examples
2350         covering array memory inputs.
2352 2017-10-12  Martin Liska  <mliska@suse.cz>
2354         PR tree-optimization/82493
2355         * sbitmap.c (bitmap_bit_in_range_p): Fix the implementation.
2356         (test_range_functions): New function.
2357         (sbitmap_c_tests): Likewise.
2358         * selftest-run-tests.c (selftest::run_tests): Run new tests.
2359         * selftest.h (sbitmap_c_tests): New function.
2361         * tree-ssa-dse.c (live_bytes_read): Fix thinko.
2363 2017-10-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2365         * config/rs6000/amo.h: Fix spacing issue.
2367 2017-10-12  Jakub Jelinek  <jakub@redhat.com>
2369         PR target/82498
2370         * config/i386/i386.md (*ashl<mode>3_mask_1,
2371         *<shift_insn><mode>3_mask_1, *<rotate_insn><mode>3_mask_1,
2372         *<btsc><mode>_mask_1, *btr<mode>_mask_1): New define_insn_and_split
2373         patterns.
2375 2017-10-12  Jan Hubicka  <hubicka@ucw.cz>
2377         * profile-count.h (safe_scale_64bit): Fix GCC4.x path.
2378         (profile_probability): Set max_probability
2379         to (uint32_t) 1 << (n_bits - 2) and update accessors to avoid overlfows
2380         in temporaries.
2381         * profile-count.c (profile_probability::differs_from_p): Do not
2382         rely on max_probaiblity == 10000
2384 2017-10-12  Jeff Law  <law@redhat.com>
2386         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with
2387         negative offsets.
2389 2017-10-12  Martin Sebor  <msebor@redhat.com>
2391         PR other/82301
2392         PR c/82435
2393         * cgraphunit.c (maybe_diag_incompatible_alias): New function.
2394         (handle_alias_pairs): Call it.
2395         * common.opt (-Wattribute-alias): New option.
2396         * doc/extend.texi (ifunc attribute): Discuss C++ specifics.
2397         * doc/invoke.texi (-Wattribute-alias): Document.
2399 2017-10-12  Vladimir Makarov  <vmakarov@redhat.com>
2401         Revert
2402         2017-10-11  Vladimir Makarov  <vmakarov@redhat.com>
2403         PR sanitizer/82353
2404         * lra.c (collect_non_operand_hard_regs): Don't ignore operator
2405         locations.
2406         * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
2407         (make_hard_regno_born, make_hard_regno_dead): Update
2408         bb_killed_pseudos and bb_gen_pseudos.
2410 2017-10-12  Jan Hubicka  <hubicka@ucw.cz>
2412         * config/i386/x86-tune-sched.c (ix86_adjust_cost): Fix Zen support.
2414 2017-10-12  Uros Bizjak  <ubizjak@gmail.com>
2416         * config/alpha/alpha.c (alpha_split_conditional_move):
2417         Use std::swap instead of manually swapping.
2418         (alpha_stdarg_optimize_hook): Ditto.
2419         (alpha_canonicalize_comparison): Ditto.
2421 2017-10-12  Bin Cheng  <bin.cheng@arm.com>
2423         * tree-loop-distribution.c (struct builtin_info): New struct.
2424         (struct partition): Refactor fields into struct builtin_info.
2425         (partition_free): Free struct builtin_info.
2426         (build_size_arg_loc, build_addr_arg_loc): Delete.
2427         (generate_memset_builtin, generate_memcpy_builtin): Get memory range
2428         information from struct builtin_info.
2429         (find_single_drs): New function refactored from classify_partition.
2430         Also moved builtin validity checks to this function.
2431         (compute_access_range, alloc_builtin): New functions.
2432         (classify_builtin_st, classify_builtin_ldst): New functions.
2433         (classify_partition): Refactor code into functions find_single_drs,
2434         classify_builtin_st and classify_builtin_ldst.
2435         (distribute_loop): Don't do runtime alias check when distributing
2436         loop nest.
2437         (find_seed_stmts_for_distribution): New function.
2438         (pass_loop_distribution::execute): Refactor code finding seed
2439         stmts into above function.  Support distribution for the innermost
2440         two-level loop nest.  Adjust dump information.
2442 2017-10-12  Bin Cheng  <bin.cheng@arm.com>
2444         * tree-loop-distribution.c: Adjust the general comment.
2445         (NUM_PARTITION_THRESHOLD): New macro.
2446         (ssa_name_has_uses_outside_loop_p): Support loop nest distribution.
2447         (classify_partition): Skip builtin pattern of loop nest's inner loop.
2448         (merge_dep_scc_partitions): New parameter ignore_alias_p and use it
2449         in call to build_partition_graph.
2450         (finalize_partitions): New parameter.  Make loop distribution more
2451         conservative by fusing more partitions.
2452         (distribute_loop): Don't do runtime alias check in case of loop nest
2453         distribution.
2454         (find_seed_stmts_for_distribution): New function.
2455         (prepare_perfect_loop_nest): New function.
2456         (pass_loop_distribution::execute): Refactor code finding seed stmts
2457         and loop nest into above functions.  Support loop nest distribution.
2458         Adjust dump information accordingly.
2460 2017-10-12  Bin Cheng  <bin.cheng@arm.com>
2462         * tree-loop-distribution.c (break_alias_scc_partitions): Add comment
2463         and set PTYPE_SEQUENTIAL for merged partition.
2465 2017-10-12  Richard Biener  <rguenther@suse.de>
2467         PR tree-optimization/69728
2468         Revert
2469         2017-09-19  Richard Biener  <rguenther@suse.de>
2471         PR tree-optimization/69728
2472         * graphite-sese-to-poly.c (schedule_error): New global.
2473         (add_loop_schedule): Handle empty domain by failing the
2474         schedule.
2475         (build_original_schedule): Handle schedule_error.
2477         * graphite-sese-to-poly.c (add_loop_schedule): Handle empty
2478         domain by returning an unchanged schedule.
2480 2017-10-12  Jakub Jelinek  <jakub@redhat.com>
2482         * genrecog.c (validate_pattern): For VEC_SELECT verify that
2483         CONST_INT selectors are 0 to GET_MODE_NUNITS (imode) - 1.
2485 2017-10-12  Aldy Hernandez  <aldyh@redhat.com>
2487         * Makefile.in (TAGS): Merge all the *.def files into one pattern.
2488         Handle params.def.
2490 2017-10-12  Jakub Jelinek  <jakub@redhat.com>
2492         PR c++/82159
2493         * expr.c (store_field): Don't optimize away bitsize == 0 store
2494         from CALL_EXPR with addressable return type.
2496 2017-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
2498         * config/rs6000/rs6000.h (TARGET_ISEL64): Delete.
2499         * config/rs6000/rs6000.md (sel): Delete mode attribute.
2500         (mov<mode>cc, isel_signed_<mode>, isel_unsigned_<mode>,
2501         *isel_reversed_signed_<mode>, *isel_reversed_unsigned_<mode>): Use
2502         TARGET_ISEL instead of TARGET_ISEL<sel>.
2504 2017-10-11  David Edelsohn  <dje.gcc@gmail.com>
2506         * config/rs6000/rs6000.c
2507         (rs6000_xcoff_asm_output_aligned_decl_common): Test for NULL decl.
2509 2017-10-11  Segher Boessenkool  <segher@kernel.crashing.org>
2511         * config/rs6000/predicates.md (zero_constant, all_ones_constant):
2512         Move up in file.
2513         (reg_or_cint_operand): Fix comment.
2514         (reg_or_zero_operand): New predicate.
2515         * config/rs6000/rs6000-protos.h (output_isel): Delete.
2516         * config/rs6000/rs6000.c (output_isel): Delete.
2517         * config/rs6000/rs6000.md (isel_signed_<mode>): Use reg_or_zero_operand
2518         instead of reg_or_cint_operand.  Output instruction directly (not via
2519         output_isel).
2520         (isel_unsigned_<mode>): Ditto.
2521         (*isel_reversed_signed_<mode>): Use reg_or_zero_operand instead of
2522         gpc_reg_operand.  Add an instruction alternative for this.  Output
2523         instruction directly.
2524         (*isel_reversed_unsigned_<mode>): Ditto.
2526 2017-10-11  Uros Bizjak  <ubizjak@gmail.com>
2528         * config/i386/i386.c (ix86_canonicalize_comparison): New function.
2529         (TARGET_CANONICALIZE_COMPARISON): Define.
2531 2017-10-11  Qing Zhao  <qing.zhao@oracle.com>
2533         PR target/81422
2534         * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2535         Check whether the dest is REG before adding REG_EQUIV note.
2537 2017-10-11  Vladimir Makarov  <vmakarov@redhat.com>
2539         PR sanitizer/82353
2540         * lra.c (collect_non_operand_hard_regs): Don't ignore operator
2541         locations.
2542         * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
2543         (make_hard_regno_born, make_hard_regno_dead): Update
2544         bb_killed_pseudos and bb_gen_pseudos.
2546 2017-10-11  Nathan Sidwell  <nathan@acm.org>
2548         * incpath.h (enum incpath_kind): Name enum, prefix values.
2549         (add_path, add_cpp_dir_path, get_added_cpp_dirs): Use incpath_kind.
2550         * incpath.c (heads, tails): Use INC_MAX.
2551         (add_env_var_paths, add_standard_paths): Use incpath_kind.
2552         (merge_include_chains, split_quote_chain,
2553         register_include_chains): Update incpath_kind names.
2554         (add_cpp_dir_path, add_path, get_added_cpp_dirs): Use incpath_kind.
2555         * config/darwin-c.c (add_system_framework_path): Update incpath_kind
2556         names.
2557         (add_framework_path, darwin_register_objc_includes): Likewise.
2558         * config/vms/vms-c.c (vms_c_register_includes): Likewise.
2560 2017-10-11  Uros Bizjak  <ubizjak@gmail.com>
2562         * config/i386/i386.md (*cmp<X87MODEF:mode>_<SWI24:mode>_i387):
2563         Do not use float_operator operator predicate.
2564         (*cmp<X87MODEF:mode>_<SWI24:mode>_cc_i387): Ditto.
2565         * config/i386/predicates.md (float_operator): Remove predicate.
2567 2017-10-11  Uros Bizjak  <ubizjak@gmail.com>
2569         * config/i386/i386.md (*jcc<mode>_0_i387): Remove insn pattern.
2570         (*jccxf_i387): Ditto.
2571         (*jcc<mode>_i387): Ditto.
2572         (*jccu<mode>_i387): Ditto.
2573         (*jcc<X87MODEF:mode>_<SWI24:mode>_i387): Ditto.
2574         (*jcc_*_i387 splitters): Remove.
2575         * config/i386/i386-protos.h (ix86_split_fp_branch): Remove prototype.
2576         * config/i386/i386.c (ix86_split_fp_branch): Remove.
2577         * config/i386/predicates.md (ix86_swapped_fp_comparison_operator):
2578         Remove predicate.
2580 2017-10-11  Jan Hubicka  <hubicka@ucw.cz>
2582         * profile-count.h (slow_safe_scale_64bit): New function.
2583         (safe_scale_64bit): New inline.
2584         (profile_count::max_safe_multiplier): Remove; use safe_scale_64bit.
2585         * profile-count.c: Include wide-int.h
2586         (slow_safe_scale_64bit): New.
2588 2017-10-11  Nathan Sidwell  <nathan@acm.org>
2590         * tree.h (DECL_ASSEMBLER_NAME_SET_P): Don't check
2591         HAS_DECL_ASSEMBLER_NAME_P.
2592         * gimple-expr.c (gimple_decl_printable_name: Check
2593         HAS_DECL_ASSEMBLER_NAME_P too.
2594         * ipa-utils.h (type_in_anonymous_namespace_p): Check
2595         DECL_ASSEMBLER_NAME_SET_P of TYPE_NAME.
2596         (odr_type_p): No need to assert TYPE_NAME is a TYPE_DECL.
2597         * passes.c (rest_of_decl_compilation): Check
2598         HAS_DECL_ASSEMBLER_NAME_P too.
2599         * recog.c (verify_changes): Likewise.
2600         * tree-pretty-print.c (dump_decl_name): Likewise.
2601         * tree-ssa-structalias.c (alias_get_name): Likewise.  Reimplement.
2603         * tree.h (DECL_ASSEMBLER_NAME_RAW): New.
2604         (SET_DECL_ASSEMBLER_NAME): Use it.
2605         (DECL_ASSEMBLER_NAME_SET_P): Likewise.
2606         (COPY_DECL_ASSEMBLER_NAME): Likewise.
2607         * tree.c (decl_assembler_name): Use DECL_ASSEMBLER_NAME_RAW.
2609 2017-10-11  Jan Hubicka  <hubicka@ucw.cz>
2611         * config.gcc (i386, x86_64): Add extra objects.
2612         * config/i386/i386-protos.h (ix86_rip_relative_addr_p): Declare.
2613         (ix86_min_insn_size): Declare.
2614         (ix86_issue_rate): Declare.
2615         (ix86_adjust_cost): Declare.
2616         (ia32_multipass_dfa_lookahead): Declare.
2617         (ix86_macro_fusion_p): Declare.
2618         (ix86_macro_fusion_pair_p): Declare.
2619         (ix86_bd_has_dispatch): Declare.
2620         (ix86_bd_do_dispatch): Declare.
2621         (ix86_core2i7_init_hooks): Declare.
2622         (ix86_atom_sched_reorder): Declare.
2623         * config/i386/i386.c Move all CPU cost tables to x86-tune-costs.h.
2624         (COSTS_N_BYTES): Move to x86-tune-costs.h.
2625         (DUMMY_STRINGOP_ALGS):Move to x86-tune-costs.h.
2626         (rip_relative_addr_p): Rename to ...
2627         (ix86_rip_relative_addr_p): ... this one; export.
2628         (memory_address_length): Update.
2629         (ix86_issue_rate): Move to x86-tune-sched.c.
2630         (ix86_flags_dependent): Move to x86-tune-sched.c.
2631         (ix86_agi_dependent): Move to x86-tune-sched.c.
2632         (exact_dependency_1): Move to x86-tune-sched.c.
2633         (exact_store_load_dependency): Move to x86-tune-sched.c.
2634         (ix86_adjust_cost): Move to x86-tune-sched.c.
2635         (ia32_multipass_dfa_lookahead): Move to x86-tune-sched.c.
2636         (ix86_macro_fusion_p): Move to x86-tune-sched.c.
2637         (ix86_macro_fusion_pair_p): Move to x86-tune-sched.c.
2638         (do_reorder_for_imul): Move to x86-tune-sched-atom.c.
2639         (swap_top_of_ready_list): Move to x86-tune-sched-atom.c.
2640         (ix86_sched_reorder): Move to x86-tune-sched-atom.c.
2641         (core2i7_first_cycle_multipass_init): Move to x86-tune-sched-core.c.
2642         (core2i7_dfa_post_advance_cycle): Move to x86-tune-sched-core.c.
2643         (min_insn_size): Rename to ...
2644         (ix86_min_insn_size): ... this one; export.
2645         (core2i7_first_cycle_multipass_begin): Move to x86-tune-sched-core.c.
2646         (core2i7_first_cycle_multipass_issue): Move to x86-tune-sched-core.c.
2647         (core2i7_first_cycle_multipass_backtrack): Move to
2648         x86-tune-sched-core.c.
2649         (core2i7_first_cycle_multipass_end): Move to x86-tune-sched-core.c.
2650         (core2i7_first_cycle_multipass_fini): Move to x86-tune-sched-core.c.
2651         (ix86_sched_init_global): Break up logic to ix86_core2i7_init_hooks.
2652         (ix86_avoid_jump_mispredicts): Update.
2653         (TARGET_SCHED_DISPATCH): Move to ix86-tune-sched-bd.c.
2654         (TARGET_SCHED_DISPATCH_DO): Move to ix86-tune-sched-bd.c.
2655         (TARGET_SCHED_REORDER): Move to ix86-tune-sched-bd.c.
2656         (DISPATCH_WINDOW_SIZE): Move to ix86-tune-sched-bd.c.
2657         (MAX_DISPATCH_WINDOWS): Move to ix86-tune-sched-bd.c.
2658         (MAX_INSN): Move to ix86-tune-sched-bd.c.
2659         (MAX_IMM): Move to ix86-tune-sched-bd.c.
2660         (MAX_IMM_SIZE): Move to ix86-tune-sched-bd.c.
2661         (MAX_IMM_32): Move to ix86-tune-sched-bd.c.
2662         (MAX_IMM_64): Move to ix86-tune-sched-bd.c.
2663         (MAX_LOAD): Move to ix86-tune-sched-bd.c.
2664         (MAX_STORE): Move to ix86-tune-sched-bd.c.
2665         (BIG): Move to ix86-tune-sched-bd.c.
2666         (enum dispatch_group): Move to ix86-tune-sched-bd.c.
2667         (enum insn_path): Move to ix86-tune-sched-bd.c.
2668         (get_mem_group): Move to ix86-tune-sched-bd.c.
2669         (is_cmp): Move to ix86-tune-sched-bd.c.
2670         (dispatch_violation): Move to ix86-tune-sched-bd.c.
2671         (is_branch): Move to ix86-tune-sched-bd.c.
2672         (is_prefetch): Move to ix86-tune-sched-bd.c.
2673         (init_window): Move to ix86-tune-sched-bd.c.
2674         (allocate_window): Move to ix86-tune-sched-bd.c.
2675         (init_dispatch_sched): Move to ix86-tune-sched-bd.c.
2676         (is_end_basic_block): Move to ix86-tune-sched-bd.c.
2677         (process_end_window): Move to ix86-tune-sched-bd.c.
2678         (allocate_next_window): Move to ix86-tune-sched-bd.c.
2679         (find_constant): Move to ix86-tune-sched-bd.c.
2680         (get_num_immediates): Move to ix86-tune-sched-bd.c.
2681         (has_immediate): Move to ix86-tune-sched-bd.c.
2682         (get_insn_path): Move to ix86-tune-sched-bd.c.
2683         (get_insn_group): Move to ix86-tune-sched-bd.c.
2684         (count_num_restricted): Move to ix86-tune-sched-bd.c.
2685         (fits_dispatch_window): Move to ix86-tune-sched-bd.c.
2686         (add_insn_window): Move to ix86-tune-sched-bd.c.
2687         (add_to_dispatch_window): Move to ix86-tune-sched-bd.c.
2688         (debug_dispatch_window_file): Move to ix86-tune-sched-bd.c.
2689         (debug_dispatch_window): Move to ix86-tune-sched-bd.c.
2690         (debug_insn_dispatch_info_file): Move to ix86-tune-sched-bd.c.
2691         (debug_ready_dispatch): Move to ix86-tune-sched-bd.c.
2692         (do_dispatch): Move to ix86-tune-sched-bd.c.
2693         (has_dispatch): Move to ix86-tune-sched-bd.c.
2694         * config/i386/t-i386: Add new object files.
2695         * config/i386/x86-tune-costs.h: New file.
2696         * config/i386/x86-tune-sched-atom.c: New file.
2697         * config/i386/x86-tune-sched-bd.c: New file.
2698         * config/i386/x86-tune-sched-core.c: New file.
2699         * config/i386/x86-tune-sched.c: New file.
2701 2017-10-11  Liu Hao  <lh_mouse@126.com>
2703         * pretty-print.c [_WIN32] (colorize_init): Remove.  Use
2704         the generic version below instead.
2705         (should_colorize): Recognize Windows consoles as terminals
2706         for MinGW targets.
2707         * pretty-print.c [__MINGW32__] (write_all): New function.
2708         [__MINGW32__] (find_esc_head): Likewise.
2709         [__MINGW32__] (find_esc_terminator): Likewise.
2710         [__MINGW32__] (eat_esc_sequence): Likewise.
2711         [__MINGW32__] (mingw_ansi_fputs): New function that handles
2712         ANSI escape codes.
2713         (pp_write_text_to_stream): Use mingw_ansi_fputs instead of fputs
2714         for MinGW targets.
2716 2017-10-11  Richard Biener  <rguenther@suse.de>
2718         * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2719         Properly call analyze_scalar_evolution with the loop of the stmt.
2721 2017-10-11  Richard Biener  <rguenther@suse.de>
2723         * tree.def (POLYNOMIAL_CHREC): Remove CHREC_VARIABLE tree operand.
2724         * tree-core.h (tree_base): Add chrec_var union member.
2725         * tree.h (CHREC_VAR): Remove.
2726         (CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE): Adjust.
2727         * tree-chrec.h (build_polynomial_chrec): Adjust.
2728         * tree-chrec.c (reset_evolution_in_loop): Use build_polynomial_chrec.
2729         * tree-pretty-print.c (dump_generic_node): Use CHREC_VARIABLE.
2731 2017-10-11  Marc Glisse  <marc.glisse@inria.fr>
2733         * fold-const.c (fold_binary_loc) [X +- Y CMP X]: Move ...
2734         * match.pd: ... here.
2735         ((T) X == (T) Y): Relax condition.
2737 2017-10-11  Bin Cheng  <bin.cheng@arm.com>
2739         PR tree-optimization/82472
2740         * tree-loop-distribution.c (sort_partitions_by_post_order): Refine
2741         comment.
2742         (break_alias_scc_partitions): Update postorder number.
2744 2017-10-11  Martin Liska  <mliska@suse.cz>
2746         PR sanitizer/82490
2747         * opts.c (parse_no_sanitize_attribute): Do not use error_value
2748         variable.
2749         * opts.h (parse_no_sanitize_attribute): Remove last argument.
2751 2017-10-11  Martin Liska  <mliska@suse.cz>
2753         * print-rtl.c (print_insn): Move declaration of idbuf
2754         to same scope as name.
2756 2017-10-11  Martin Liska  <mliska@suse.cz>
2758         Revert r253637:
2760         PR sanitizer/82484
2761         * sanopt.c (sanitize_rewrite_addressable_params): Do not handle
2762         volatile arguments.
2764 2017-10-11  Martin Liska  <mliska@suse.cz>
2766         PR sanitizer/82484
2767         * sanopt.c (sanitize_rewrite_addressable_params): Do not handle
2768         volatile arguments.
2770 2017-10-11  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
2772         * config.gcc (default_gnu_indirect_function): Default to yes for
2773         arm*-*-linux* with glibc.
2775 2017-10-11  Richard Biener  <rguenther@suse.de>
2777         * tree-scalar-evolution.c (get_scalar_evolution): Handle
2778         default-defs and types we do not want to analyze.
2779         (interpret_loop_phi): Replace unreachable code with an assert.
2780         (compute_scalar_evolution_in_loop): Remove and inline ...
2781         (analyze_scalar_evolution_1): ... here, replacing condition with
2782         what makes the intent clearer.  Remove handling of cases
2783         get_scalar_evolution now handles.
2785 2017-10-10  Jim Wilson  <wilson@tuliptree.org>
2787         PR rtl-optimization/81434
2788         * haifa-sched.c (prune_ready_list): Init min_cost_group to 0.  Update
2789         comment for main loop.  In sched_group_found if, also add checks for
2790         pass and min_cost_group.
2792 2017-10-10  Segher Boessenkool  <segher@kernel.crashing.org>
2794         * config/rs6000/rs6000.c (TARGET_INSN_COST): New.
2795         (rs6000_insn_cost): New function.
2796         * config/rs6000/rs6000.md (cost): New attribute.
2798 2017-10-10  Jakub Jelinek  <jakub@redhat.com>
2799             H.J. Lu  <hongjiu.lu@intel.com>
2801         PR target/79565
2802         PR target/82483
2803         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Add
2804         OPTION_MASK_ISA_MMX for __builtin_ia32_maskmovq,
2805         __builtin_ia32_vec_ext_v4hi and __builtin_ia32_vec_set_v4hi.
2806         (ix86_expand_builtin): Treat OPTION_MASK_ISA_MMX similarly
2807         to OPTION_MASK_ISA_AVX512VL - builtins that have both
2808         OPTION_MASK_ISA_MMX and some other bit set require both
2809         mmx and the ISAs without the mmx bit.
2810         * config/i386/i386-builtin.def (__builtin_ia32_cvtps2pi,
2811         __builtin_ia32_cvttps2pi, __builtin_ia32_cvtpi2ps,
2812         __builtin_ia32_pavgb, __builtin_ia32_pavgw, __builtin_ia32_pmulhuw,
2813         __builtin_ia32_pmaxub, __builtin_ia32_pmaxsw, __builtin_ia32_pminub,
2814         __builtin_ia32_pminsw, __builtin_ia32_psadbw, __builtin_ia32_pmovmskb,
2815         __builtin_ia32_pshufw, __builtin_ia32_cvtpd2pi,
2816         __builtin_ia32_cvttpd2pi, __builtin_ia32_cvtpi2pd,
2817         __builtin_ia32_pmuludq, __builtin_ia32_pabsb, __builtin_ia32_pabsw,
2818         __builtin_ia32_pabsd, __builtin_ia32_phaddw, __builtin_ia32_phaddd,
2819         __builtin_ia32_phaddsw, __builtin_ia32_phsubw, __builtin_ia32_phsubd,
2820         __builtin_ia32_phsubsw, __builtin_ia32_pmaddubsw,
2821         __builtin_ia32_pmulhrsw, __builtin_ia32_pshufb, __builtin_ia32_psignb,
2822         __builtin_ia32_psignw, __builtin_ia32_psignd, __builtin_ia32_movntq,
2823         __builtin_ia32_paddq, __builtin_ia32_psubq, __builtin_ia32_palignr):
2824         Add OPTION_MASK_ISA_MMX.
2826 2017-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
2828         * config.gcc (armv7*-*-freebsd*): New target.
2829         (armv6*-*-freebsd*): Remove obsolete TARGET_FREEBSD_ARMv6 define.
2831 2017-10-10  Jan Hubicka  <hubicka@ucw.cz>
2833         * x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI,
2834         X86_TUNE_ADJUST_UNROLL, X86_TUNE_ONE_IF_CONV_INSN): Move to right
2835         spot in the file.
2837 2017-10-10  Richard Sandiford  <richard.sandiford@linaro.org>
2839         * wide-int.h (wide_int_ref_storage): Make host_dependent_precision
2840         a template parameter.
2841         (WIDE_INT_REF_FOR): Update accordingly.
2842         * tree.h (wi::int_traits <const_tree>): Delete.
2843         (wi::tree_to_widest_ref, wi::tree_to_offset_ref): New typedefs.
2844         (wi::to_widest, wi::to_offset): Use them.  Expand commentary.
2845         (wi::tree_to_wide_ref): New typedef.
2846         (wi::to_wide): New function.
2847         * calls.c (get_size_range): Use wi::to_wide when operating on
2848         trees as wide_ints.
2849         * cgraph.c (cgraph_node::create_thunk): Likewise.
2850         * config/i386/i386.c (ix86_data_alignment): Likewise.
2851         (ix86_local_alignment): Likewise.
2852         * dbxout.c (stabstr_O): Likewise.
2853         * dwarf2out.c (add_scalar_info, gen_enumeration_type_die): Likewise.
2854         * expr.c (const_vector_from_tree): Likewise.
2855         * fold-const-call.c (host_size_t_cst_p, fold_const_call_1): Likewise.
2856         * fold-const.c (may_negate_without_overflow_p, negate_expr_p)
2857         (fold_negate_expr_1, int_const_binop_1, const_binop)
2858         (fold_convert_const_int_from_real, optimize_bit_field_compare)
2859         (all_ones_mask_p, sign_bit_p, unextend, extract_muldiv_1)
2860         (fold_div_compare, fold_single_bit_test, fold_plusminus_mult_expr)
2861         (pointer_may_wrap_p, expr_not_equal_to, fold_binary_loc)
2862         (fold_ternary_loc, multiple_of_p, fold_negate_const, fold_abs_const)
2863         (fold_not_const, round_up_loc): Likewise.
2864         * gimple-fold.c (gimple_fold_indirect_ref): Likewise.
2865         * gimple-ssa-warn-alloca.c (alloca_call_type_by_arg): Likewise.
2866         (alloca_call_type): Likewise.
2867         * gimple.c (preprocess_case_label_vec_for_gimple): Likewise.
2868         * godump.c (go_output_typedef): Likewise.
2869         * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
2870         * internal-fn.c (get_min_precision): Likewise.
2871         * ipa-cp.c (ipcp_store_vr_results): Likewise.
2872         * ipa-polymorphic-call.c
2873         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Likewise.
2874         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
2875         (ipa_modify_call_arguments): Likewise.
2876         * match.pd: Likewise.
2877         * omp-low.c (scan_omp_1_op, lower_omp_ordered_clauses): Likewise.
2878         * print-tree.c (print_node_brief, print_node): Likewise.
2879         * stmt.c (expand_case): Likewise.
2880         * stor-layout.c (layout_type): Likewise.
2881         * tree-affine.c (tree_to_aff_combination): Likewise.
2882         * tree-cfg.c (group_case_labels_stmt): Likewise.
2883         * tree-data-ref.c (dr_analyze_indices): Likewise.
2884         (prune_runtime_alias_test_list): Likewise.
2885         * tree-dump.c (dequeue_and_dump): Likewise.
2886         * tree-inline.c (remap_gimple_op_r, copy_tree_body_r): Likewise.
2887         * tree-predcom.c (is_inv_store_elimination_chain): Likewise.
2888         * tree-pretty-print.c (dump_generic_node): Likewise.
2889         * tree-scalar-evolution.c (iv_can_overflow_p): Likewise.
2890         (simple_iv_with_niters): Likewise.
2891         * tree-ssa-address.c (addr_for_mem_ref): Likewise.
2892         * tree-ssa-ccp.c (ccp_finalize, evaluate_stmt): Likewise.
2893         * tree-ssa-loop-ivopts.c (constant_multiple_of): Likewise.
2894         * tree-ssa-loop-niter.c (split_to_var_and_offset)
2895         (refine_value_range_using_guard, number_of_iterations_ne_max)
2896         (number_of_iterations_lt_to_ne, number_of_iterations_lt)
2897         (get_cst_init_from_scev, record_nonwrapping_iv)
2898         (scev_var_range_cant_overflow): Likewise.
2899         * tree-ssa-phiopt.c (minmax_replacement): Likewise.
2900         * tree-ssa-pre.c (compute_avail): Likewise.
2901         * tree-ssa-sccvn.c (vn_reference_fold_indirect): Likewise.
2902         (vn_reference_maybe_forwprop_address, valueized_wider_op): Likewise.
2903         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2904         * tree-ssa-uninit.c (is_pred_expr_subset_of): Likewise.
2905         * tree-ssanames.c (set_nonzero_bits, get_nonzero_bits): Likewise.
2906         * tree-switch-conversion.c (collect_switch_conv_info, array_value_type)
2907         (dump_case_nodes, try_switch_expansion): Likewise.
2908         * tree-vect-loop-manip.c (vect_gen_vector_loop_niters): Likewise.
2909         (vect_do_peeling): Likewise.
2910         * tree-vect-patterns.c (vect_recog_bool_pattern): Likewise.
2911         * tree-vect-stmts.c (vectorizable_load): Likewise.
2912         * tree-vrp.c (compare_values_warnv, vrp_int_const_binop): Likewise.
2913         (zero_nonzero_bits_from_vr, ranges_from_anti_range): Likewise.
2914         (extract_range_from_binary_expr_1, adjust_range_with_scev): Likewise.
2915         (overflow_comparison_p_1, register_edge_assert_for_2): Likewise.
2916         (is_masked_range_test, find_switch_asserts, maybe_set_nonzero_bits)
2917         (vrp_evaluate_conditional_warnv_with_ops, intersect_ranges): Likewise.
2918         (range_fits_type_p, two_valued_val_range_p, vrp_finalize): Likewise.
2919         (evrp_dom_walker::before_dom_children): Likewise.
2920         * tree.c (cache_integer_cst, real_value_from_int_cst, integer_zerop)
2921         (integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2)
2922         (tree_floor_log2, tree_ctz, mem_ref_offset, tree_int_cst_sign_bit)
2923         (tree_int_cst_sgn, get_unwidened, int_fits_type_p): Likewise.
2924         (get_type_static_bounds, num_ending_zeros, drop_tree_overflow)
2925         (get_range_pos_neg): Likewise.
2926         * ubsan.c (ubsan_expand_ptr_ifn): Likewise.
2927         * config/darwin.c (darwin_mergeable_constant_section): Likewise.
2928         * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
2929         * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
2930         * config/avr/avr.c (avr_fold_builtin): Likewise.
2931         * config/bfin/bfin.c (bfin_local_alignment): Likewise.
2932         * config/msp430/msp430.c (msp430_attr): Likewise.
2933         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
2934         * config/powerpcspe/powerpcspe-c.c
2935         (altivec_resolve_overloaded_builtin): Likewise.
2936         * config/powerpcspe/powerpcspe.c (rs6000_aggregate_candidate)
2937         (rs6000_expand_ternop_builtin): Likewise.
2938         * config/rs6000/rs6000-c.c
2939         (altivec_resolve_overloaded_builtin): Likewise.
2940         * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
2941         (rs6000_expand_ternop_builtin): Likewise.
2942         * config/s390/s390.c (s390_handle_hotpatch_attribute): Likewise.
2944 2017-10-10  Bin Cheng  <bin.cheng@arm.com>
2946         * tree-vect-loop-manip.c (rename_variables_in_bb): Rename PHI nodes
2947         when copying loop nest with only one inner loop.
2949 2017-10-10  Richard Biener  <rguenther@suse.de>
2951         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Avoid compacting
2952         blocks if SCEV is active.
2953         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Remove
2954         dead code.
2955         (analyze_scalar_evolution): Handle cached evolutions the obvious way.
2956         (scev_initialize): Assert we are not yet initialized.
2958 2017-10-10  Bin Cheng  <bin.cheng@arm.com>
2960         * tree-loop-distribution.c (generate_loops_for_partition): Remove
2961         inner loop's exit stmt by making it always exit the loop, otherwise
2962         we would generate an infinite empty loop.
2964 2017-10-10  Bin Cheng  <bin.cheng@arm.com>
2966         * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Skip
2967         renaming variables in new preheader if it's deleted.
2969 2017-10-10  Bin Cheng  <bin.cheng@arm.com>
2971         * tree-loop-distribution.c (struct partition): Remove unused field
2972         loops of the structure.
2973         (partition_alloc, partition_free): Ditto.
2974         (build_rdg_partition_for_vertex): Ditto.
2976 2017-10-09  Jeff Law  <law@redhat.com>
2978         * targhooks.c (default_stack_clash_protection_final_dynamic_probe): Fix
2979         return type to match prototype and documentation.
2981 2010-10-09  Segher Boessenkool  <segher@kernel.crashing.org>
2983         * config/rs6000/rs6000.c (processor_costs): Move to ...
2984         * config/rs6000/rs6000.h: ... here.
2985         (rs6000_cost): Declare.
2987 2017-10-09  Eric Botcazou  <ebotcazou@adacore.com>
2989         * except.c (setjmp_fn): New global variable.
2990         (init_eh): Initialize it if DONT_USE_BUILTIN_SETJMP is defined.
2991         (sjlj_emit_function_enter): Call it instead of BUILTIN_SETJMP
2992         if DONT_USE_BUILTIN_SETJMP is defined.
2994 2017-10-09  Segher Boessenkool  <segher@kernel.crashing.org>
2996         * target.def (insn_cost): New hook.
2997         * doc/tm.texi.in (TARGET_INSN_COST): New hook.
2998         * doc/tm.texi: Regenerate.
2999         * rtlanal.c (insn_cost): Use the new hook.
3001 2017-10-09  Segher Boessenkool  <segher@kernel.crashing.org>
3003         * combine.c (combine_validate_cost): Compute the new insn_cost,
3004         not just pattern_cost.
3005         (try_combine): Adjust comment.
3007 2017-10-09  Segher Boessenkool  <segher@kernel.crashing.org>
3009         * cfgrtl.c (rtl_account_profile_record): Replace insn_rtx_cost with
3010         insn_cost.
3011         * combine.c (uid_insn_cost): Adjust comment.
3012         (combine_validate_cost): Adjust comment.  Use pattern_cost instead
3013         of insn_rtx_cost
3014         (combine_instructions): Use insn_cost instead of insn_rtx_cost.
3015         * dse.c (find_shift_sequence): Ditto.
3016         * ifcvt.c (cheap_bb_rtx_cost_p): Ditto.
3017         (bb_valid_for_noce_process_p): Use pattern_cost.
3018         * rtl.h (insn_rtx_cost): Delete.
3019         (pattern_cost): New prototype.
3020         (insn_cost): New prototype.
3021         * rtlanal.c (insn_rtx_cost): Rename to...
3022         (pattern_cost): ... this.
3023         (insn_cost): New.
3025 2017-10-09  Uros Bizjak  <ubizjak@gmail.com>
3027         * config/i386/i386.md (*jcc_2): Remove insn pattern.
3028         (*jcc<mode>_0_r_i387): Ditto.
3029         (*jccxf_r_i387): Ditto.
3030         (*jcc<mode>_r_i387): Ditto.
3031         (*jccu<mode>_r_i387): Ditto.
3032         (*jcc<X87MODEF:mode>_<SWI24:mode>_r_i387): Ditto.
3033         (*jcc): Rename from *jcc_1.
3035 2017-10-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3037         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Process
3038         deferred rescans after the lvx/stvx recombination pre-pass.
3040 2017-10-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
3042         * config/rs6000/amo.h: New include file to provide ISA 3.0 atomic
3043         memory operation instruction support.
3044         * config.gcc (powerpc*-*-*): Include amo.h as an extra header.
3045         (rs6000-ibm-aix[789]*): Likewise.
3046         * doc/extend.texi (PowerPC Atomic Memory Operation Functions):
3047         Document new functions.
3049 2017-10-09  Richard Biener  <rguenther@suse.de>
3051         PR tree-optimization/82397
3052         * tree-data-ref.c (data_ref_compare_tree): Make sure to return
3053         equality only for semantically equal trees.
3055 2017-10-09  Richard Biener  <rguenther@suse.de>
3057         PR tree-optimization/82449
3058         * sese.c (scev_analyzable_p): Check whether the SCEV is linear.
3059         * tree-chrec.h (evolution_function_is_constant_p): Adjust to
3060         allow constant addresses.
3061         * tree-chrec.c (scev_is_linear_expression): Constant evolutions
3062         are linear.
3064 2017-10-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3066         * config/s390/s390-builtins.def (vec_nabs, vec_vfi): Fix builtin
3067         flags.
3069 2017-10-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3071         PR target/82463
3072         * config/s390/vecintrin.h (vec_madd, vec_msub): Fix macro
3073         definitions.
3075 2017-10-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3077         PR target/82465
3078         * config/s390/s390-builtins.def (vec_sqrt): Fix builtin flags.
3080 2017-10-09  Jakub Jelinek  <jakub@redhat.com>
3082         PR target/82464
3083         * config/s390/s390-builtins.def (s390_vec_xor_flt_a,
3084         s390_vec_xor_flt_b, s390_vec_xor_flt_c): New.
3086 2017-10-09  Richard Sandiford  <richard.sandiford@linaro.org>
3088         * wide-int.h (WI_BINARY_OPERATOR_RESULT): New macro.
3089         (WI_BINARY_PREDICATE_RESULT): Likewise.
3090         (wi::binary_traits::operator_result): New type.
3091         (wi::binary_traits::predicate_result): Likewise.
3092         (generic_wide_int::operator~, unary generic_wide_int::operator-)
3093         (generic_wide_int::operator==, generic_wide_int::operator!=)
3094         (generic_wide_int::operator&, generic_wide_int::and_not)
3095         (generic_wide_int::operator|, generic_wide_int::or_not)
3096         (generic_wide_int::operator^, generic_wide_int::operator+
3097         (binary generic_wide_int::operator-, generic_wide_int::operator*):
3098         Delete.
3099         (operator~, unary operator-, operator==, operator!=, operator&)
3100         (operator|, operator^, operator+, binary operator-, operator*): New
3101         functions.
3102         * expr.c (get_inner_reference): Use wi::bit_and_not.
3103         * fold-const.c (fold_binary_loc): Likewise.
3104         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
3105         * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
3106         (bit_value_binop): Likewise.
3107         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
3108         * tree-vrp.c (zero_nonzero_bits_from_vr): Likewise.
3109         (extract_range_from_binary_expr_1): Likewise.
3110         (masked_increment): Likewise.
3111         (simplify_bit_ops_using_ranges): Likewise.
3113 2017-10-09  Martin Jambor  <mjambor@suse.cz>
3115         PR hsa/82416
3116         * hsa-common.h (hsa_op_with_type): New method extend_int_to_32bit.
3117         * hsa-gen.c (hsa_extend_inttype_to_32bit): New function.
3118         (hsa_type_for_scalar_tree_type): Use it.  Always force min32int for
3119         COMPLEX types.
3120         (hsa_fixup_mov_insn_type): New function.
3121         (hsa_op_with_type::get_in_type): Use it.
3122         (hsa_build_append_simple_mov): Likewise.  Allow sub-32bit
3123         immediates in an assert.
3124         (hsa_op_with_type::extend_int_to_32bit): New method.
3125         (gen_hsa_insns_for_bitfield): Fixup instruction and intermediary
3126         types.  Convert to dest type if necessary.
3127         (gen_hsa_insns_for_bitfield_load): Fixup load type if necessary.
3128         (reg_for_gimple_ssa): Pass false as min32int to
3129         hsa_type_for_scalar_tree_type.
3130         (gen_hsa_addr): Fixup type when creating addresable temporary.
3131         (gen_hsa_cmp_insn_from_gimple): Extend operands if necessary.
3132         (gen_hsa_unary_operation): Extend operands and convert to dest type if
3133         necessary.  Call hsa_fixup_mov_insn_type.
3134         (gen_hsa_binary_operation): Changed operand types to hsa_op_with_type,
3135         extend operands and convert to dest type if necessary.
3136         (gen_hsa_insns_for_operation_assignment): Extend operands and convert
3137         to dest type if necessary.
3138         (set_output_in_type): Call hsa_fixup_mov_insn_type.  Just ude dest
3139         if conversion nt necessary and size matches.
3140         (gen_hsa_insns_for_load): Call hsa_fixup_mov_insn_type, convert
3141         to dest type if necessary.
3142         (gen_hsa_insns_for_store): Call hsa_fixup_mov_insn_type.
3143         (gen_hsa_insns_for_switch_stmt): Likewise. Also extend operands if
3144         necessary.
3145         (gen_hsa_clrsb): Likewise.
3146         (gen_hsa_ffs): Likewise.
3147         (gen_hsa_divmod): Extend operands and convert to dest type if
3148         necessary.
3149         (gen_hsa_atomic_for_builtin): Change type of op to hsa_op_with_type.
3151 2017-10-08  Segher Boessenkool  <segher@kernel.crashing.org>
3153         * config/rs6000/rs6000.md (conditional branch): Clean up formatting.
3154         Remove empty default arguments.  Use a brace block as output
3155         statement.
3156         (conditional return): Ditto.
3157         (jump): Ditto.
3158         (indirect_jump): Ditto.  Use b%T0 instead of bctr/blr.
3159         (tablejump, tablejumpsi, tablejumpdi, *tablejump<mode>_internal1):
3160         Ditto.
3161         (group_ending_nop): Ditto.
3162         (doloop_end): Ditto.
3163         (ctr<mode>, ctr<mode>_internal1, ctr<mode>_internal2): Ditto.
3164         (splitters for those): Ditto.
3166 2017-10-08  Segher Boessenkool  <segher@kernel.crashing.org>
3168         * config/rs6000/rs6000-string.c (expand_strncmp_align_check): Invert
3169         a conditional jump (and the compare for it) so that pc_rtx is the
3170         last operand.
3171         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Adjust
3172         for the deleted and renamed ctr<mode>_internal[234] patterns.
3173         * config/rs6000/rs6000.md: Delete second conditional branch pattern.
3174         Delete second conditional return pattern.
3175         (ctr<mode>_internal2): Delete this second bdnz pattern.
3176         (ctr<mode>_internal3): Rename to ctr<mode>_internal2.
3177         (ctr<mode>_internal4): Delete this second bdz pattern.
3179 2017-10-08  Eric Botcazou  <ebotcazou@adacore.com>
3181         * tree-outof-ssa.h (ssaexpand): Add partitions_for_undefined_values.
3182         (always_initialized_rtx_for_ssa_name_p): New predicate.
3183         * tree-outof-ssa.c (remove_ssa_form): Initialize new field of SA.
3184         (finish_out_of_ssa): Free new field of SA.
3185         * tree-ssa-coalesce.h (get_undefined_value_partitions): Declare.
3186         * tree-ssa-coalesce.c: Include tree-ssa.h.
3187         (get_parm_default_def_partitions): Remove extern keyword.
3188         (get_undefined_value_partitions): New function.
3189         * expr.c (expand_expr_real_1) <expand_decl_rtl>: For a SSA_NAME, do
3190         not set SUBREG_PROMOTED_VAR_P on the sub-register if it may contain
3191         uninitialized bits.
3192         * loop-iv.c (iv_get_reaching_def): Disqualify all subregs.
3194 2017-10-08  Eric Botcazou  <ebotcazou@adacore.com>
3196         * builtins.def (BUILT_IN_SETJMP): Revert latest change.
3198 2017-10-08  Jan Hubicka  <hubicka@ucw.cz>
3200         * config/i386/i386.c (ix86_expand_set_or_movmem): Disable 512bit loops
3201         for targets that preffer 128bit.
3203 2017-10-08  Jan Hubicka  <hubicka@ucw.cz>
3205         * config/i386/i386.c (has_dispatch): Disable for Ryzen.
3207 2017-10-08  Olivier Hainque  <hainque@adacore.com>
3209         * config/arm/arm.c (arm_set_return_address): Use MEM_VOLATILE_P
3210         on the target mem instead of RTX_FRAME_RELATED_P on the insn to
3211         prevent DSE.
3212         (thumb_set_return_address): Likewise.
3214 2017-10-08  Olivier Hainque  <hainque@adacore.com>
3216         * common/config/arm/arm-common.c (arm_except_unwind_info):
3217         Handle DWARF2_UNWIND_INFO.
3219 2017-10-07  Michael Collison <michael.collison@arm.com>
3221         * config/aarch64/aarch64.md (*aarch64_reg_<optab>_minus<mode>3):
3222         New pattern.
3224 2017-10-07  Eric Botcazou  <ebotcazou@adacore.com>
3226         * builtins.def (BUILT_IN_SETJMP): Declare as library builtin instead
3227         of GCC builtin if DONT_USE_BUILTIN_SETJMP is defined.
3228         * except.c (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is
3229         defined, force the creation of a new block for a dispatch label.
3231 2017-10-07  Jan Hubicka  <hubicka@ucw.cz>
3233         * invoke.texi (Wsuggest-attribute=cold): Document.
3234         * common.opt (Wsuggest-attribute=cold): New
3235         * ipa-pure-const.c (warn_function_cold): New function.
3236         * predict.c (compute_function_frequency): Use it.
3237         * predict.h (warn_function_cold): Declare.
3239 2017-10-06  Jan Hubicka  <hubicka@ucw.cz>
3241         * tree-switch-conversion.c (do_jump_if_equal, emit_cmp_and_jump_insns):
3242         Update profile.
3244 2017-10-06  Martin Liska  <mliska@suse.cz>
3246         * sanopt.c (struct sanopt_tree_triplet_hash): Remove inline
3247         keyword for member functions.
3248         (struct sanopt_tree_couple): New struct.
3249         (struct sanopt_tree_couple_hash): New function.
3250         (struct sanopt_ctx): Add new hash_map.
3251         (has_dominating_ubsan_ptr_check): New function.
3252         (record_ubsan_ptr_check_stmt): Likewise.
3253         (maybe_optimize_ubsan_ptr_ifn): Likewise.
3254         (sanopt_optimize_walker): Handle IFN_UBSAN_PTR.
3255         (pass_sanopt::execute): Handle also SANITIZE_POINTER_OVERFLOW.
3257 2017-10-06  Sudakshina Das  <sudi.das@arm.com>
3259         PR target/82440
3260         * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): Only call
3261         aarch64_simd_valid_immediate on CONST_VECTORs.
3262         (aarch64_reg_or_bic_imm): Likewise.
3264 2017-10-06  Wilco Dijkstra  <wdijkstr@arm.com>
3266         PR rtl-optimization/82396
3267         * haifa-sched.c (ready_sort_real): Disable qsort checking.
3269 2017-10-06  Sebastian Pop  <sebpop@gmail.com>
3271         * graphite-dependences.c (scop_get_reads): Move code to...
3272         (scop_get_must_writes): Move code to...
3273         (scop_get_may_writes): Move code to...
3274         (scop_get_reads_and_writes): ... here.
3275         (scop_get_dependences): Call scop_get_reads_and_writes.
3277 2017-10-06  Jakub Jelinek  <jakub@redhat.com>
3279         PR tree-optimization/82434
3280         * fold-const.h (can_native_encode_type_p,
3281         can_native_encode_string_p): Remove.
3282         * fold-const.c (native_encode_int): Formatting fixes.  If ptr is NULL,
3283         don't encode anything, just return what would be otherwise returned.
3284         (native_encode_fixed, native_encode_complex, native_encode_vector):
3285         Likewise.
3286         (native_encode_string): Likewise.  Inline by hand
3287         can_native_encode_string_p.
3288         (can_native_encode_type_p): Remove.
3289         (can_native_encode_string_p): Remove.
3290         * tree-vect-stmts.c (vectorizable_store): Instead of testing just
3291         STRING_CSTs using can_native_encode_string_p, test all
3292         CONSTANT_CLASS_P values using native_encode_expr with NULL ptr.
3293         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Remove last
3294         argument from native_encode_expr.
3295         (rhs_valid_for_store_merging_p): Use native_encode_expr with NULL ptr.
3296         (pass_store_merging::execute): Don't unnecessarily look for 3 stmts,
3297         but just 2.
3299 2017-10-06  Richard Biener  <rguenther@suse.de>
3301         PR tree-optimization/82397
3302         * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use
3303         operand_equal_p but rely on data_ref_compare_tree for detecting
3304         equalities.
3305         (vect_analyze_data_ref_accesses): Use data_ref_compare_tree
3306         to match up with dr_group_sort_cmp.
3308 2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3310         PR target/82322
3311         * config/s390/s390-builtins.def (s390_vfi): Define new overloaded
3312         builtin.
3313         * config/s390/s390-builtin-types.def: Regenerate.
3315 2017-10-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3317         PR target/82317
3318         * config/s390/s390-builtin-types.def: Regenerate.
3319         * config/s390/s390-builtins.def (s390_vfmaxdb_4, s390_vfmindb_4):
3320         Change flag from B_VXE to B_VX.
3321         (s390_vec_min_dbl): Remove B_VXE flag.
3323 2017-10-06  Richard Biener  <rguenther@suse.de>
3325         * graphite-isl-ast-to-gimple.c: Include ssa.h and tree-ssa.h.
3326         (translate_isl_ast_to_gimple::translate_pending_phi_nodes,
3327         translate_isl_ast_to_gimple::is_valid_rename,
3328         translate_isl_ast_to_gimple::get_rename,
3329         translate_isl_ast_to_gimple::get_def_bb_for_const,
3330         translate_isl_ast_to_gimple::get_new_name,
3331         translate_isl_ast_to_gimple::collect_all_ssa_names,
3332         translate_isl_ast_to_gimple::copy_loop_phi_args,
3333         translate_isl_ast_to_gimple::collect_all_ssa_names,
3334         translate_isl_ast_to_gimple::copy_loop_phi_args,
3335         translate_isl_ast_to_gimple::copy_loop_phi_nodes,
3336         translate_isl_ast_to_gimple::add_close_phis_to_merge_points,
3337         translate_isl_ast_to_gimple::add_close_phis_to_outer_loops,
3338         translate_isl_ast_to_gimple::copy_loop_close_phi_args,
3339         translate_isl_ast_to_gimple::copy_loop_close_phi_nodes,
3340         translate_isl_ast_to_gimple::copy_cond_phi_args,
3341         translate_isl_ast_to_gimple::copy_cond_phi_nodes,
3342         translate_isl_ast_to_gimple::edge_for_new_close_phis,
3343         translate_isl_ast_to_gimple::add_phi_arg_for_new_expr,
3344         translate_isl_ast_to_gimple::rename_uses,
3345         translate_isl_ast_to_gimple::rename_all_uses): Remove.
3346         (translate_isl_ast_to_gimple::get_rename_from_scev): Simplify.
3347         (set_rename_for_each_def): Likewise.
3348         (graphite_copy_stmts_from_block): Handle debug stmt resetting
3349         here.  Handle rewriting SCEV analyzable uses here.
3350         (copy_bb_and_scalar_dependences): Generate code for PHI
3351         copy-in/outs.
3352         (graphite_regenerate_ast_isl): Adjust.
3353         * graphite-scop-detection.c (trivially_empty_bb_p): Move to sese.[ch].
3354         (add_write, add_read): New functions.
3355         (build_cross_bb_scalars_def): Use it and simplify.
3356         (build_cross_bb_scalars_use): Likewise.
3357         (graphite_find_cross_bb_scalar_vars): Inline into...
3358         (try_generate_gimple_bb): ...here.  Add dependences for PHIs,
3359         simulating out-of-SSA.  Compute liveout and add dependencies.
3360         (build_scops): Force an empty entry block.
3361         * sese.h (sese_info_t::liveout, sese_info_t::debug_liveout): New
3362         members.
3363         (sese_build_liveouts): Declare.
3364         (sese_trivially_empty_bb_p): Likewise.
3365         * sese.c (sese_build_liveouts_bb): Properly handle PHIs,
3366         compute liveout and debug_liveout.
3367         (sese_bad_liveouts_use): Remove.
3368         (sese_reset_debug_liveouts_bb): Likewise.
3369         (sese_reset_debug_liveouts): Rewrite in terms of debug_liveout.
3370         (sese_build_liveouts): Build liveout and debug_liveout and store
3371         it in region.
3372         (new_sese_info): Adjust.
3373         (free_sese_info): Likewise.
3374         (sese_insert_phis_for_liveouts): Reset debug stmts from here,
3375         do not build liveout here.
3376         (move_sese_in_condition): Adjust region entry.
3377         (scev_analyzable_p): Match up with chrec_apply requirements.
3378         (sese_trivially_empty_bb_p): New.
3379         * tree-into-ssa.c (get_reaching_def): Properly support generating
3380         default-defs for incremental rewrite of anonymous names.
3382 2017-10-06  Richard Biener  <rguenther@suse.de>
3384         * graphite-sese-to-poly.c (extract_affine): For casts increasing
3385         precision do not perform modulo reduction.
3387 2017-10-06  Richard Biener  <rguenther@suse.de>
3389         PR tree-optimization/82436
3390         * tree-vect-slp.c (vect_supported_load_permutation_p): More
3391         conservatively choose the vectorization factor when checking
3392         whether we can perform the required load permutation.
3393         (vect_transform_slp_perm_load): Assert when we may not fail.
3395 2017-10-05  Segher Boessenkool  <segher@kernel.crashing.org>
3397         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Correct error
3398         message for incompatible -msdata=* and -mcall-* options.
3400 2017-10-05  Jan Hubicka <hubicka@ucw.cz>
3402         * config/i386/i386.c (ia32_multipass_dfa_lookahead): Default to issue
3403         rate for post-reload scheduling.
3405 2017-10-05  Tamar Christina  <tamar.christina@arm.com>
3407         * doc/sourcebuild.texi (vect_sizes_16B_8B, vect_sizes_32B_16B): New.
3409 2017-10-05  Jan Hubicka <hubicka@ucw.cz>
3411         * config/i386/i386.c (znver1_cost): Set branch_cost to 3 (instead of 2)
3412         to improve monte carlo in scimark.
3414 2017-10-05  Jan Hubicka <hubicka@ucw.cz>
3416         * config/i386/i386.c (ix86_size_cost, i386_cost, i486_cost,
3417         pentium_cost, lakemont_cost, pentiumpro_cost, geode_cost, k6_cost,
3418         athlon_cost, k8_cost, amdfam10_cost, btver1_cost, btver2_cost,
3419         pentium4_cost, nocona_cost): Set reassociation width to 1.
3420         (bdver1_cost, bdver2_cost, bdver3_cost, bdver4_cost): Set reassociation
3421         width to 2 for fp operations and 1 otherwise.
3422         (znver1_cost): Set scalar reassoc width to 4 and vector to 3 and 6
3423         for int and fp.
3424         (atom_cost): Set reassociation width to 2.
3425         (slm_cost, generic_cost): Set fp reassociation width
3426         to 2 and 1 otherwise.
3427         (intel_cost): Set fp reassociation width to 4 and 1 otherwise.
3428         (core_cost): Set fp reassociation width to 4 and vector to 2.
3429         (ix86_reassociation_width): Rewrite using cost table; special case
3430         plus/minus on Zen; honor X86_TUNE_SSE_SPLIT_REGS
3431         and TARGET_AVX128_OPTIMAL.
3432         * config/i386/i386.h (processor_costs): Add
3433         reassoc_int, reassoc_fp, reassoc_vec_int, reassoc_vec_fp.
3434         (TARGET_VECTOR_PARALLEL_EXECUTION, TARGET_REASSOC_INT_TO_PARALLEL,
3435         TARGET_REASSOC_FP_TO_PARALLEL): Remove.
3436         * x86-tune.def (X86_TUNE_REASSOC_INT_TO_PARALLEL): Remove.
3437         (X86_TUNE_REASSOC_FP_TO_PARALLEL): Remove.
3438         (X86_TUNE_VECTOR_PARALLEL_EXECUTION):  Remove.
3440 2017-10-05  Nathan Sidwell  <nathan@acm.org>
3442         * doc/invoke.texi (Wparentheses): Document C++ MVP behaviour.
3444 2017-10-05  Tamar Christina  <tamar.christina@arm.com>
3446         * config/arm/arm.c (arm_test_fpu_data): New.
3447         (arm_run_selftests): Call arm_test_fpu_data.
3449 2017-10-04  Nathan Sidwell  <nathan@acm.org>
3451         * toplev.c (toplev::main): Remove excess parens on pretty_printer
3452         decl.
3453         * caller-save.c (insert_save): Remove excess parens on TO_SAVE parm.
3455 2017-10-04  Sudakshina Das  <sudi.das@arm.com>
3457         * config/aarch64/aarch64-protos.h (enum simd_immediate_check): New
3458         check type for aarch64_simd_valid_immediate.
3459         (aarch64_output_simd_mov_immediate): Update prototype.
3460         (aarch64_simd_valid_immediate): Update prototype.
3461         * config/aarch64/aarch64-simd.md (orr<mode>3): modified pattern to add
3462         support for ORR-immediate.
3463         (and<mode>3): modified pattern to add support for BIC-immediate.
3464         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Function
3465         now checks for valid immediate for BIC and ORR based on new enum
3466         argument.
3467         (aarch64_output_simd_mov_immediate): Function now used to output
3468         BIC/ORR imm as well based on new enum argument.
3469         * config/aarch64/constraints.md (Do): New vector immediate constraint.
3470         (Db) : Likewise.
3471         * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): New predicate.
3472         (aarch64_reg_or_bic_imm): Likewise.
3474 2017-10-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3476         * config/s390/vx-builtins.md ("vec_mergeh<mode>")
3477         ("vec_mergel<mode>"): Change mode iterator to V_128_NOSINGLE.
3479 2017-10-04  Wilco Dijkstra  <wdijkstr@arm.com>
3481         Revert r253399:
3483         PR rtl-optimization/82396
3484         * haifa-sched.c (autopref_multipass_init): Simplify
3485         initialization.
3486         (autopref_rank_data): Simplify sort order.
3487         * sched-int.h (autopref_multipass_data_): Remove
3488         multi_mem_insn_p, min_offset and max_offset.
3490 2017-10-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3492         * doc/sourcebuild.texi: Document vect_peeling_profitable.
3494 2017-10-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3496         * doc/sourcebuild.texi: Document vect_intdouble_cvt and
3497         vect_doubleint_cvt.
3499 2017-10-04  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3501         * doc/sourcebuild.texi: Document vect_long_mult.
3503 2017-10-04  Richard Sandiford  <richard.sandiford@linaro.org>
3505         PR tree-optimization/82413
3506         * fold-const.c (build_range_check): Use widest_int when comparing
3507         the maximum ETYPE value with HIGH.
3509 2017-10-04  Wilco Dijkstra  <wdijkstr@arm.com>
3511         PR rtl-optimization/82396
3512         * haifa-sched.c (autopref_multipass_init): Simplify
3513         initialization.
3514         (autopref_rank_data): Simplify sort order.
3515         * sched-int.h (autopref_multipass_data_): Remove
3516         multi_mem_insn_p, min_offset and max_offset.
3518 2017-10-04  Jakub Jelinek  <jakub@redhat.com>
3520         PR tree-optimization/82381
3521         * tree-ssa-reassoc.c (sort_by_operand_rank): Check for different
3522         oeN->rank first.  Return 1 or -1 if one op is SSA_NAME and the other
3523         is not.
3525         PR tree-optimization/82374
3526         * omp-low.c (create_omp_child_function): Copy DECL_ATTRIBUTES,
3527         DECL_FUNCTION_SPECIFIC_OPTIMIZATION,
3528         DECL_FUNCTION_SPECIFIC_TARGET and DECL_FUNCTION_VERSIONED from
3529         current_function_decl to the new decl.
3531 2017-10-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
3533         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2_HW): Define new
3534         helper macro for IEEE float128 hardware built-in functions.
3535         (SQRTF128_ODD): Add built-in functions with the round-to-odd
3536         semantics.
3537         (TRUNCF128_ODD): Likewise.
3538         (ADDF128_ODD): Likewise.
3539         (SUBF128_ODD): Likewise.
3540         (MULF128_ODD): Likewise.
3541         (DIVF128_ODD): Likewise.
3542         (FMAF128_ODD): Likewise.
3543         * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): Rename to
3544         UNSPEC_TRUNC_ROUND_TO_ODD.
3545         (UNSPEC_TRUNC_ROUND_TO_ODD): Likewise.
3546         (UNSPEC_ADD_ROUND_TO_ODD): New unspec codes for the IEEE 128-bit
3547         floating point round to odd instructions.
3548         (UNSPEC_SUB_ROUND_TO_ODD): Likewise.
3549         (UNSPEC_MUL_ROUND_TO_ODD): Likewise.
3550         (UNSPEC_DIV_ROUND_TO_ODD): Likewise.
3551         (UNSPEC_FMA_ROUND_TO_ODD): Likewise.
3552         (UNSPEC_SQRT_ROUND_TO_ODD): Likewise.
3553         (trunc<mode>sf2_hw): Change the truncate with round to odd
3554         expansion to use UNSPEC_TRUNC_ROUND_TO_ODD.
3555         (add<mode>3_odd): Add insns for IEEE 128-bit floating point round
3556         to odd hardware instructions.
3557         (sub<mode>3_odd): Likewise.
3558         (mul<mode>3_odd): Likewise.
3559         (div<mode>3_odd): Likewise.
3560         (sqrt<mode>2_odd): Likewise.
3561         (fma<mode>4_odd): Likewise.
3562         (fms<mode>4_odd): Likewise.
3563         (nfma<mode>4_odd): Likewise.
3564         (nfms<mode>4_odd): Likewise.
3565         (trunc<mode>df2_odd): Change the truncate with round to odd
3566         expansion to use UNSPEC_TRUNC_ROUND_TO_ODD.  Add a generator
3567         function.
3568         * doc/extend.texi (PowerPC built-in functions): Update documentation
3569         for existing IEEE float128-bit built-in functions.  Add built-in
3570         functions that generate the IEEE 128-bit floating point round to
3571         odd instructions.
3573 2017-10-03  Segher Boessenkool  <segher@kernel.crashing.org>
3575         PR rtl-optimization/77729
3576         * simplify-rtx.c (simplify_binary_operation_1): Delete the (X&C1)|C2
3577         to (X&(C1&~C2))|C2 transformations.
3579 2017-10-03  Martin Jambor  <mjambor@suse.cz>
3581         PR tree-optimization/82363
3582         * tree-sra.c (propagate_subaccesses_across_link): In unrecoverable
3583         mismatch, mark lacc written regardless of racc.
3585 2017-10-03  Jakub Jelinek  <jakub@redhat.com>
3587         PR tree-optimization/82381
3588         * tree-ssa-reassoc.c (sort_by_operand_rank): Don't check
3589         stmt_to_insert nor wheather SSA_NAMEs are default defs.
3590         Return 1 or -1 if one of bba and bbb is NULL. If bb_rank is equal,
3591         fallthrough into reassoc_stmt_dominates_stmt_p.
3593         PR target/82386
3594         * combine.c (combine_instructions): Don't combine in unreachable
3595         basic blocks.
3597 2017-08-18  Peter Bergner  <bergner@vnet.ibm.com>
3599         PR target/80210
3600         * config/rs6000/rs6000.c (rs6000_option_override_internal): Rewrite
3601         function to not use the have_cpu variable.  Do not set cpu_index,
3602         rs6000_cpu_index or rs6000_tune_index if we end up using TARGET_DEFAULT
3603         or the default cpu.
3604         (rs6000_valid_attribute_p): Remove duplicate initializations of
3605         old_optimize and func_optimize.
3606         (rs6000_pragma_target_parse): Call rs6000_activate_target_options ().
3607         (rs6000_activate_target_options): Make global.
3608         * config/rs6000/rs6000-protos.h (rs6000_activate_target_options): Add
3609         prototype.
3611 2017-10-02  Jakub Jelinek  <jakub@redhat.com>
3613         * tree-dfa.c (get_ref_base_and_extent): Set *pmax_size to -1
3614         if *poffset + *pmax_size overflows in HOST_WIDE_INT.
3615         Set *poffset to 0 and *psize and *pmax_size to -1 if
3616         *poffset + *psize overflows in HOST_WIDE_INT.
3618         PR tree-optimization/82387
3619         PR tree-optimization/82388
3620         PR tree-optimization/82389
3621         * tree-ssa-dse.c (dse_classify_store): Test byte_tracking_enabled
3622         instead of live_bytes non-NULL.
3624 2017-10-02  Georg-Johann Lay  <avr@gjlay.de>
3626         PR target/41076
3627         * confg/avr/avr.md (*iorhi3.ashift8-ext.zerox): Add "r,r,0"
3628         alternative.
3630 2017-10-02  Richard Biener  <rguenther@suse.de>
3632         * graphite-isl-ast-to-gimple.c (set_codegen_error): With
3633         -fchecking and --param graphite-allow-codegen-errors=0 ICE.
3634         * params.def (PARAM_GRAPHITE_ALLOW_CODEGEN_ERRORS): New param.
3636 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
3638         * tree.h (wi::int_traits <const_tree>::decompose): Assert that the
3639         requested precision matches the type's.
3640         * calls.c (alloc_max_size): Calculate the new candidate size as
3641         a widest_int and use wi::to_widest when comparing it with the
3642         current candidate size.
3643         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Compare with
3644         zero rather than integer_zero_node.
3645         * match.pd: Check for a no-op conversion before using wi::add
3646         rather than after.  Use tree_to_uhwi when summing small shift
3647         counts into an unsigned int.
3649 2017-10-02  Richard Sandiford  <richard.sandiford@linaro.org>
3650             Alan Hayward  <alan.hayward@arm.com>
3651             David Sherwood  <david.sherwood@arm.com>
3653         PR target/71307
3654         * config/aarch64/aarch64.h (POINTER_AND_FP_REGS): New reg class.
3655         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3656         * config/aarch64/aarch64.c (aarch64_class_max_nregs): Handle
3657         POINTER_AND_FP_REGS.
3659 2017-10-02  Richard Biener  <rguenther@suse.de>
3661         PR tree-optimization/82355
3662         * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
3663         a mapping for the enclosing loop but avoid generating one for
3664         the loop tree root.
3665         (copy_bb_and_scalar_dependences): Remove premature codegen
3666         error on PHIs in blocks duplicated into multiple places.
3667         * graphite-scop-detection.c
3668         (scop_detection::stmt_has_simple_data_refs_p): For a loop not
3669         in the region use it as loop and nest to analyze the DR in.
3670         (try_generate_gimple_bb): Likewise.
3671         * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
3672         (add_loop_constraints): For blocks in a loop not in the region
3673         create a dimension with a single iteration.
3674         * sese.h (gbb_loop_at_index): Remove assert.
3676 2017-10-01  Kevin Buettner  <kevinb@redhat.com>
3678         * omp-expand.c (adjust_context_scope): New function.
3679         (expand_parallel_call): Call adjust_context_scope.
3681 2017-10-01  Jeff Law  <law@redhat.com>
3683         * tree-ssa-dom.c (optimize_stmt): Make this a method within the
3684         dom_opt_dom_walker class with direct access to private members.
3685         Add comments.  Call test_for_singularity.
3686         (dom_opt_dom_walker::before_dom_children): Corresponding changes.
3687         (dom_opt_dom_walker::after_dom_children): Do not lazily initialize
3688         m_dummy_cond anymore.
3689         (class dom_opt_dom_walker): Initialize m_dummy_cond member in the
3690         class ctor.
3691         (pass_dominator:execute): Build the dummy_cond here and pass it
3692         to the dom_opt_dom_walker ctor.
3693         (test_for_singularity): New function.
3695 2017-09-30  Krister Walfridsson  <krister.walfridsson@gmail.com>
3696             Maya Rashish  <coypu@sdf.org>
3698         * config.gcc (*-*-netbsd*): New variable nbsd_tm_file containing
3699         netbsd.h, netbsd-stdint.h, and netbsd-elf.h.
3700         (alpha*-*-netbsd*) Use nbsd_tm_file.
3701         (arm*-*-netbsdelf*) Likewise.
3702         (i[34567]86-*-netbsdelf*) Likewise.
3703         (x86_64-*-netbsd*) Likewise.
3704         (mips*-*-netbsd*) Likewise.
3705         (powerpc-*-netbsd*) Likewise.
3706         (sh*-*-netbsd*) Likewise.
3707         (sparc-*-netbsdelf*) Likewise.
3708         (sparc64-*-netbsd*) Likewise.
3709         (m68k*-*-netbsdelf*) Use nbsd_tm_file and add CHAR_FAST8/SHORT_FAST16
3710         to tm_defines.
3711         (vax-*-netbsdelf*) Likewise.
3712         * config/netbsd-stdint.h (INT_FAST8_TYPE): Check CHAR_FAST8.
3713         (UINT_FAST8_TYPE) Likewise.
3714         (INT_FAST16_TYPE) Check CHAR_FAST16.
3715         (UINT_FAST16_TYPE) Likewise.
3717 2017-09-30  Jakub Jelinek  <jakub@redhat.com>
3719         PR target/82361
3720         * config/i386/i386.md
3721         (TARGET_USE_8BIT_IDIV zext divmodsi4 splitter): New define_split.
3722         (divmodsi4_zext_1, divmodsi4_zext_2, *divmodsi4_zext_1,
3723         *divmodsi4_zext_2): New define_insn_and_split.
3724         (*divmodsi4_noext_zext_1, *divmodsi4_noext_zext_2): New define_insn.
3725         (TARGET_USE_8BIT_IDIV zext udivmodsi4 splitter): New define_split.
3726         (udivmodsi4_zext_1, udivmodsi4_zext_2, *udivmodsi4_zext_1,
3727         *udivmodsi4_zext_2, *udivmodsi4_pow2_zext_1, *udivmodsi4_pow2_zext_2):
3728         New define_insn_and_split.
3729         (*udivmodsi4_noext_zext_1, *udivmodsi4_noext_zext_2): New define_insn.
3730         * config/i386/i386.c (ix86_split_idivmod): Handle operands[0] or
3731         operands[1] having DImode when mode is SImode.
3733         * config/i386/i386.c (ix86_split_idivmod): Use mode instead of
3734         always SImode for DIV and MOD in REG_EQUAL notes.
3736 2017-09-29  Yury Gribov  <tetra2005@gmail.com>
3738         PR middle-end/82319
3739         * match.pd: Fix handling of NaNs in pattern.
3741 2017-09-29  Jeff Law  <law@redhat.com>
3743         * sbitmap.c (bitmap_bit_in_range_p): New function.
3744         * sbitmap.h (bitmap_bit_in_range_p): Prototype.
3745         * tree-ssa-dse.c (live_bytes_read): New function.
3746         (dse_classify_store): Ignore reads of dead bytes.
3748         * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash): Fix
3749         typos and whitespace errors.
3750         * config/i386/predicates.md (address_no_seg_operand): Likewise.
3751         * config/s390/s390.c (s390_emit_prologue): Likewise.
3753 2017-09-29  Vladimir Makarov  <vmakarov@redhat.com>
3755         PR target/81481
3756         * ira-costs.c (scan_one_insn): Don't take into account PIC equiv
3757         with a symbol for LRA.
3759 2017-09-29  Vladimir Makarov  <vmakarov@redhat.com>
3761         PR rtl-optimization/82338
3762         * lra-constraints.c (inherit_in_ebb): Check usage_insns check.
3764 2017-09-29  Alexander Monakov  <amonakov@ispras.ru>
3766         * genmodes.c (calc_wider_mode): Suppress qsort macro.
3767         * system.h [CHECKING_P] (qsort): Redirect to qsort_chk.
3768         (qsort_chk): Declare.
3769         * vec.c [CHECKING_P] (qsort_chk_error): New static function.
3770         (qsort_chk): New function.
3772 2017-09-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3774         PR tree-optimization/82337
3775         * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3776         phi definition if the PHI result appears in an abnormal PHI.
3777         (find_basis_for_base_expr): Don't record a basis if the LHS of the
3778         basis appears in an abnormal PHI.
3780 2017-09-29  Richard Biener  <rguenther@suse.de>
3782         * graphite-isl-ast-to-gimple.c
3783         (translate_isl_ast_to_gimple::set_codegen_error): New function.
3784         (binary_op_to_tree): Use it.
3785         (get_rename_from_scev): Likewise.
3786         (copy_loop_phi_nodes): Likewise.
3787         (copy_bb_and_scalar_dependences): Likewise.
3788         (translate_pending_phi_nodes): Likewise.
3790 2017-09-29  Jakub Jelinek  <jakub@redhat.com>
3792         PR target/82339
3793         * config/i386/i386.md (*movdi_internal peephole2): New -Os peephole
3794         for movabsq $(i32 << shift), r64.
3796 2017-09-28  Uros Bizjak  <ubizjak@gmail.com>
3798         * config/i386/i386.c (ix86_print_operand_address_as): Do not check
3799         index when encoding %esp as %rsp to avoid 0x67 prefix.
3801 2017-09-28  Sergey Shalnov  <Sergey.Shalnov@intel.com>
3803         * config/i386/i386.md (*movsf_internal, *movdf_internal):
3804         Return 256-bit AVX modes for TARGET_PREFER_AVX256.
3806 2017-09-28  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3808         * config/arm/arm.c (arm_option_override): Forbid ARMv8-M Security
3809         Extensions with more than 16 double VFP registers.
3810         (cmse_nonsecure_entry_clear_before_return): Remove second entry of
3811         to_clear_mask and all code related to it.  Replace the remaining
3812         entry by a sbitmap and adapt code accordingly.
3814 2017-09-28  Henry Linjamäki  <henry.linjamaki@parmance.com>
3816         * brig-builtins.def: Change pure attributes to const.
3818 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
3820         * config.gcc (default_gnu_indirect_function): Default to yes for
3821         sparc*-*-linux* with glibc.
3823 2017-09-28  Joseph Myers  <joseph@codesourcery.com>
3825         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor)
3826         (aarch64_elf_asm_destructor): Pass SECTION_NOTYPE to get_section
3827         when creating .init_array and .fini_array sections with priority
3828         specified.
3830 2017-09-27  Christophe Lyon  <christophe.lyon@linaro.org>
3832         PR target/71727
3833         * config/aarch64/aarch64.c
3834         (aarch64_builtin_support_vector_misalignment): Always return false
3835         when misalignment is unknown.
3837 2017-09-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
3839         * config/rs6000/rs6000-p8swap.c (const_load_sequence_p): Revise
3840         this function to return false if the definition used by the swap
3841         instruction is artificial, or if the memory address from which the
3842         constant value is loaded is not represented by a base address held
3843         in a register or if the base address register is a frame or stack
3844         pointer.  Additionally, return false if the base address of the
3845         loaded constant is a SYMBOL_REF but is not considered to be a
3846         constant.
3847         (replace_swapped_load_constant): New function.
3848         (rs6000_analyze_swaps): Add a new pass to replace a swap of a
3849         loaded constant vector with a load of a swapped constant vector.
3851 2017-09-27  Carl Love  <cel@us.ibm.com>
3853         * config/rs6000/rs6000-builtin.def (BU_FP_1MISC_1): Add define macro.
3854         (FCTID, FCTIW): Add BU_FP_MISC_1 macro expansion for builtins.
3855         * config/rs6000/rs6000.md (lrintsfsi2): Add define_insn for the
3856         fctiw instruction.
3858 2017-09-27  Alexander Monakov  <amonakov@ispras.ru>
3860         * haifa-sched.c (autopref_rank_for_schedule): Order 'irrelevant' insns
3861         first, always call autopref_rank_data otherwise.
3863 2017-09-27  Richard Biener  <rguenther@suse.de>
3865         * graphite-scop-detection.c (find_scop_parameters): Move
3866         loop bound handling ...
3867         (gather_bbs::before_dom_children): ... here, avoiding the need
3868         to build scop_info->loop_nest.
3869         (record_loop_in_sese): Remove.
3870         * sese.h (sese_info_t::loop_nest): Remove.
3871         * sese.c (new_sese_info): Do not allocate loop_nest.
3872         (free_sese_info): Do not free loop_nest.
3874 2017-09-27  Jakub Jelinek  <jakub@redhat.com>
3876         PR c++/82159
3877         * gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
3878         lhs from calls if the lhs has addressable type.
3880 2017-09-27  Richard Biener  <rguenther@suse.de>
3882         * graphite.h (scop::max_alias_set): New member.
3883         * graphite-scop-detection.c: Remove references to non-existing
3884         --param in comments.
3885         (build_alias_sets): Record the maximum alias set used for drs.
3886         (build_scops): Support zero as unlimited for
3887         --param graphite-max-arrays-per-scop.
3888         * graphite-sese-to-poly.c (add_scalar_version_numbers): Remove
3889         and inline into ...
3890         (build_poly_sr_1): ... here.  Compute alias set based on the
3891         maximum alias set used for drs rather than
3892         PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP
3894 2017-09-27  Richard Biener  <rguenther@suse.de>
3896         * graphite-optimize-isl.c (get_schedule_for_node_st): Allow
3897         --param loop-block-tile-size=0 to disable tiling.
3899 2017-09-27  Richard Biener  <rguenther@suse.de>
3901         * doc/invoke.texi (graphite-max-bbs-per-function): Remove.
3902         (graphite-max-nb-scop-params): Document special value zero.
3903         * domwalk.h (dom_walker::STOP): New symbolical constant.
3904         (dom_walker::dom_walker): Add optional parameter for bb to
3905         RPO mapping.
3906         (dom_walker::~dom_walker): Declare.
3907         (dom_walker::before_dom_children): Document STOP return value.
3908         (dom_walker::m_user_bb_to_rpo): New member.
3909         (dom_walker::m_bb_to_rpo): Likewise.
3910         * domwalk.c (dom_walker::dom_walker): Compute bb to RPO
3911         mapping here if not provided by the user.
3912         (dom_walker::~dom_walker): Free bb to RPO mapping if not
3913         provided by the user.
3914         (dom_walker::STOP): Define.
3915         (dom_walker::walk): Do not compute bb to RPO mapping here.
3916         Support STOP return value from before_dom_children to stop
3917         walking.
3918         * graphite-optimize-isl.c (optimize_isl): If the schedule
3919         is the same still generate code if -fgraphite-identity
3920         or -floop-parallelize-all are given.
3921         * graphite-scop-detection.c: Include cfganal.h.
3922         (gather_bbs::gather_bbs): Get and pass through bb to RPO
3923         mapping.
3924         (gather_bbs::before_dom_children): Return STOP for BBs
3925         not in the region.
3926         (build_scops): Compute bb to RPO mapping and pass it to
3927         the domwalk.  Treat --param graphite-max-nb-scop-params=0
3928         as not limiting the number of params.
3929         * graphite.c (graphite_initialize): Remove limit on the
3930         number of basic-blocks in a function.
3931         * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Remove.
3932         (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Adjust to documented
3933         default value of 10.
3935 2017-09-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3937         * config/rs6000/vsx.md (peephole for optimizing move SF to GPR):
3938         Adjust code to eliminate needing to do the shift right 32-bits
3939         operation after XSCVDPSPN.
3941 2017-09-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3943         * match.pd ((X / Y) == 0 -> X < Y): New pattern.
3944         ((X / Y) != 0 -> X >= Y): Likewise.
3946 2017-09-26  Carl Love  <cel@us.ibm.com>
3948         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VEC_XL_LEN_R,
3949         P9V_BUILTIN_VEC_XST_LEN_R): Add support for builtins
3950         vector unsigned char vec_xl_len_r (unsigned char *, size_t);
3951         void vec_xst_len_r (vector unsigned char, unsigned char *, size_t);
3952         * config/rs6000/altivec.h (vec_xl_len_r, vec_xst_len_r): Add defines.
3953         * config/rs6000/rs6000-builtin.def (XL_LEN_R, XST_LEN_R): Add
3954         definitions and overloading.
3955         * config/rs6000/rs6000.c (altivec_expand_builtin): Add case
3956         statement for P9V_BUILTIN_XST_LEN_R.
3957         (altivec_init_builtins): Add def_builtin for P9V_BUILTIN_STXVLL.
3958         * config/rs6000/vsx.md (lxvll, stxvll, xl_len_r, xst_len_r): Add
3959         define_expand and define_insn for the instructions and builtins.
3960         * doc/extend.texi: Update the built-in documentation file for the new
3961         built-in functions.
3962         * config/rs6000/altivec.md (altivec_lvsl_reg, altivec_lvsr_reg): Add
3963         define_insn for the instructions
3965 2017-09-26  Krister Walfridsson  <krister.walfridsson@gmail.com>
3967         PR target/39570
3968         * gcc/config/netbsd-protos.h: New file.
3969         * gcc/config/netbsd.c: New file.
3970         * gcc/config/netbsd.h (SUBTARGET_INIT_BUILTINS): Define.
3971         * gcc/config/t-netbsd: New file.
3972         * gcc/config.gcc (tm_p_file): Add netbsd-protos.h.
3973         (tmake_file) Add t-netbsd.
3974         (extra_objs) Add netbsd.o.
3976 2017-09-26  Janus Weil  <janus@gcc.gnu.org>
3978         PR fortran/82143
3979         PR fortran/82324
3980         * doc/sourcebuild.texi: Document fortran_real_10 and fortran_real_16.
3982 2017-09-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
3984         * config/rs6000/rs6000.md (extendsi<mode>2): Add a splitter to do
3985         sign extension from a vector register to a GPR by doing a 32-bit
3986         direct move and then an EXTSW.
3987         (extendsi<mode>2 splitter): Likewise.
3988         (movsi_from_sf): Adjust code to eliminate doing a 32-bit shift
3989         right or vector extract after doing XSCVDPSPN.  Use
3990         zero_extendsidi2 instead of p8_mfvsrd_4_disf to move the value to
3991         the GPRs.
3992         (movdi_from_sf_zero_ext): Likewise.
3993         (reload_gpr_from_vsxsf): Likewise.
3994         (p8_mfvsrd_4_disf): Delete, no longer used.
3995         (movsi_from_df): Optimize converting a DFmode to a SFmode, and
3996         then needing to move the SFmode to a GPR to use the XSCVDPSP
3997         instruction instead of FRSP and XSCVDPSPN.
3998         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Move insn so that
3999         it is adjacent to the other XSCVSPDP insns.
4000         (vsx_xscvdpsp_scalar): Use "ww" constraint instead of "f" to allow
4001         SFmode to be in traditional Altivec registers.
4002         (vsx_xscvdpspn): Eliminate useless alternative constraint.
4003         (vsx_xscvspdpn): Likewise.
4004         (vsx_xscvspdpn_scalar): Likewise.
4006 2017-09-26  Martin Jambor  <mjambor@suse.cz>
4008         * tree-sra.c (compare_access_positions): Put integral types first,
4009         stabilize sorting of integral types, remove conditions putting
4010         non-full-precision integers last.
4011         (sort_and_splice_var_accesses): Disable scalarization if a
4012         non-integert would be represented by a non-full-precision integer.
4014 2017-09-26  Joseph Myers  <joseph@codesourcery.com>
4016         * config/microblaze/linux.h (TARGET_ASM_FILE_END): Likewise.
4017         * config/pa/pa.h (NEED_INDICATE_EXEC_STACK): Likewise.
4018         * config/pa/pa-linux.h (NEED_INDICATE_EXEC_STACK): Likewise.
4019         * config/pa/pa.c (pa_hpux_file_end): Rename to pa_file_end.
4020         Define unconditionally, with [ASM_OUTPUT_EXTERNAL_REAL]
4021         conditionals inside the function instead of around it.  Call
4022         file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK.
4023         (TARGET_ASM_FILE_END): Define unconditionally to pa_file_end.
4025 2017-09-26  Richard Biener  <rguenther@suse.de>
4027         * graphite-scop-detection.c (scop_detection::build_scop_depth): Rewrite,
4028         fold in ...
4029         (scop_detection::build_scop_breadth): ... this.  Removed.
4030         (scop_detection::loop_is_valid_in_scop): Fold into single caller.
4031         (scop_detection::harmful_stmt_in_bb): Likewise.
4032         (scop_detection::graphite_can_represent_stmt): Likewise.
4033         (scop_detection::loop_body_is_valid_scop): Likewise.  Remove recursion.
4034         (scop_detection::can_represent_loop): Remove recursion, fold in ...
4035         (scop_detection::can_represent_loop_1): ... this.  Removed.
4036         (scop_detection::harmful_loop_in_region): Simplify after inlining
4037         the above and remove more quadraticness.
4038         (build_scops): Adjust.
4039         * tree-data-ref.c (loop_nest_has_data_refs): Remove pointless
4040         quadraticness.
4042 2017-09-26  Jakub Jelinek  <jakub@redhat.com>
4044         PR target/82267
4045         * config/i386/i386.c (ix86_print_operand_address_as): Only test
4046         REGNO (base) == SP_REG if base is a REG.
4048         PR middle-end/35691
4049         * tree-ssa-reassoc.c (update_range_test): Dump r->exp each time
4050         if it is different SSA_NAME.
4051         (optimize_range_tests_cmp_bitwise): New function.
4052         (optimize_range_tests): Call it.
4054 2017-09-26  Richard Biener  <rguenther@suse.de>
4056         PR tree-optimization/82321
4057         * graphite.c (canonicalize_loop_closed_ssa): Properly check
4058         for the def being inside the loop.
4060 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4062         * config/s390/vx-builtins.md ("vmslg"): Add missing operand in
4063         assembler output.
4064         * config/s390/s390-builtins.def: Fix constraint on op4.
4066 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4068         * config/s390/s390.c (s390_expand_vec_compare): Use the new mode
4069         independent expanders.
4070         * config/s390/vector.md ("vec_cmpuneq", "vec_cmpltgt")
4071         ("vec_ordered", "vec_unordered"): New expanders.
4073 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4075         * config/s390/s390.c (s390_preferred_simd_mode): Return V4SFmode
4076         for SFmode.
4078 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4080         * config/s390/vector.md ("vec_unpacks_low_v16qi"): Rename to
4081         vec_unpacks_lo_v16qi.
4082         ("vec_unpacku_low_v16qi"): Rename to vec_unpacku_lo_v16qi.
4084 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4086         * config/s390/vector.md ("vec_unpacks_lo_v4sf")
4087         ("vec_unpacks_hi_v4sf", "vec_unpacks_lo_v2df")
4088         ("vec_unpacks_hi_v2df", "vec_pack_trunc_v2df"): New expanders.
4090 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4092         * config/s390/predicates.md ("const_shift_by_byte_operand"): New
4093         predicate.
4094         * config/s390/vector.md ("*vec_srb<mode>"): Change modes to V_128
4095         and V16QI.
4096         ("*vec_slb<mode>"): New insn pattern.
4097         ("vec_shr_<mode>"): New expander.
4098         * config/s390/vx-builtins.md ("vec_slb<mode>"): Turn into expander
4099         and force the shift count operand to V16QImode.
4100         ("vec_srb<mode>"): Set shift count mode to V16QI.
4102 2017-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4104         * config/s390/vector.md ("vec_widen_umult_lo_<mode>")
4105         ("vec_widen_umult_hi_<mode>", "vec_widen_smult_lo_<mode>")
4106         ("vec_widen_smult_hi_<mode>"): New expander definitions.
4108 2017-09-26  Richard Earnshaw  <rearnsha@arm.com>
4110         PR target/82175
4111         * config/arm/arm.h (DRIVER_SELF_SPECS): Separate sub-rules with commas.
4113 2017-09-26  Richard Biener  <rguenther@suse.de>
4115         PR tree-optimization/82320
4116         * tree-ssa-sccvn.c (set_ssa_val_to): Changing undef to undef
4117         isn't a change.
4119 2017-09-25  Jeff Law  <law@redhat.com>
4121         * config/rs6000/rs6000-protos.h (output_probe_stack_range): Update
4122         prototype for new argument.
4123         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack_1): New function,
4124         mostly extracted from rs6000_emit_allocate_stack.
4125         (rs6000_emit_probe_stack_range_stack_clash): New function.
4126         (rs6000_emit_allocate_stack): Call
4127         rs6000_emit_probe_stack_range_stack_clash as needed.
4128         (rs6000_emit_probe_stack_range): Add additional argument
4129         to call to gen_probe_stack_range{si,di}.
4130         (output_probe_stack_range): New.
4131         (output_probe_stack_range_1): Renamed from output_probe_stack_range.
4132         (output_probe_stack_range_stack_clash): New.
4133         (rs6000_emit_prologue): Emit notes into dump file as requested.
4134         * rs6000.md (allocate_stack): Handle -fstack-clash-protection.
4135         (probe_stack_range<P:mode>): Operand 0 is now early-clobbered.
4136         Add additional operand and pass it to output_probe_stack_range.
4138 2017-09-25  Bin Cheng  <bin.cheng@arm.com>
4140         PR tree-optimization/82163
4141         * tree-ssa-loop-manip.h (verify_loop_closed_ssa): New parameter.
4142         (checking_verify_loop_closed_ssa): New parameter.
4143         * tree-ssa-loop-manip.c (check_loop_closed_ssa_use): Delete.
4144         (check_loop_closed_ssa_stmt): Delete.
4145         (check_loop_closed_ssa_def, check_loop_closed_ssa_bb): New functions.
4146         (verify_loop_closed_ssa): Check loop closed ssa form for LOOP.
4147         (tree_transform_and_unroll_loop): Check loop closed ssa form only for
4148         changed loops.
4150 2017-09-25  Pekka Jaaskelainen <pekka@parmance.com>
4152         * brig-builtins.def: Treat HSAIL barrier builtins as
4153         setjmp/longjump style functions.
4155 2017-09-25  Richard Sandiford  <richard.sandiford@linaro.org>
4157         * target.def (constant_alignment): New hook.
4158         * defaults.h (CONSTANT_ALIGNMENT): Delete.
4159         * doc/tm.texi.in (CONSTANT_ALIGNMENT): Replace with...
4160         (TARGET_CONSTANT_ALIGNMENT): ...this new hook.
4161         * doc/tm.texi: Regenerate.
4162         * targhooks.h (default_constant_alignment): Declare.
4163         (constant_alignment_word_strings): Likewise.
4164         * targhooks.c (default_constant_alignment): New function.
4165         (constant_alignment_word_strings): Likewise.
4166         * builtins.c (get_object_alignment_2): Use targetm.constant_alignment
4167         instead of CONSTANT_ALIGNMENT.
4168         * varasm.c (align_variable, get_variable_align, build_constant_desc)
4169         (force_const_mem): Likewise.
4170         * config/aarch64/aarch64.h (CONSTANT_ALIGNMENT): Delete.
4171         * config/aarch64/aarch64.c (aarch64_constant_alignment): New function.
4172         (aarch64_classify_address): Call it instead of CONSTANT_ALIGNMENT.
4173         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4174         * config/alpha/alpha.h (CONSTANT_ALIGNMENT): Delete commented-out
4175         definition.
4176         * config/arc/arc.h (CONSTANT_ALIGNMENT): Delete.
4177         * config/arc/arc.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4178         constant_alignment_word_strings.
4179         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR): Delete.
4180         (CONSTANT_ALIGNMENT): Likewise.
4181         * config/arm/arm.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4182         (arm_constant_alignment): New function.
4183         * config/bfin/bfin.h (CONSTANT_ALIGNMENT): Delete.
4184         * config/bfin/bfin.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4185         constant_alignment_word_strings.
4186         * config/cr16/cr16.h (CONSTANT_ALIGNMENT): Delete.
4187         * config/cr16/cr16.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4188         constant_alignment_word_strings.
4189         * config/cris/cris.h (CONSTANT_ALIGNMENT): Delete.
4190         * config/cris/cris.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4191         (cris_constant_alignment): New function.
4192         * config/epiphany/epiphany.h (CONSTANT_ALIGNMENT): Delete.
4193         * config/epiphany/epiphany.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4194         (epiphany_constant_alignment): New function.
4195         * config/fr30/fr30.h (CONSTANT_ALIGNMENT): Delete.
4196         * config/fr30/fr30.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4197         constant_alignment_word_strings.
4198         * config/frv/frv.h (CONSTANT_ALIGNMENT): Delete.
4199         * config/frv/frv.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4200         constant_alignment_word_strings.
4201         * config/ft32/ft32.h (CONSTANT_ALIGNMENT): Delete.
4202         * config/ft32/ft32.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4203         constant_alignment_word_strings.
4204         * config/i386/i386.h (CONSTANT_ALIGNMENT): Delete.
4205         * config/i386/i386-protos.h (ix86_constant_alignment): Delete.
4206         * config/i386/i386.c (ix86_constant_alignment): Make static.
4207         Use the same interface as the target hook.
4208         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4209         * config/ia64/ia64.h (CONSTANT_ALIGNMENT): Delete.
4210         * config/ia64/ia64.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4211         constant_alignment_word_strings.
4212         * config/iq2000/iq2000.h (CONSTANT_ALIGNMENT): Delete.
4213         * config/iq2000/iq2000.c (iq2000_constant_alignment): New function.
4214         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4215         * config/lm32/lm32.h (CONSTANT_ALIGNMENT): Delete.
4216         * config/lm32/lm32.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4217         constant_alignment_word_strings.
4218         * config/m32r/m32r.h (CONSTANT_ALIGNMENT): Delete.
4219         * config/m32r/m32r.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4220         constant_alignment_word_strings.
4221         * config/mcore/mcore.h (CONSTANT_ALIGNMENT): Delete.
4222         * config/mcore/mcore.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4223         constant_alignment_word_strings.
4224         * config/microblaze/microblaze.h (CONSTANT_ALIGNMENT): Delete.
4225         * config/microblaze/microblaze.c (microblaze_constant_alignment):
4226         New function.
4227         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4228         * config/mips/mips.h (CONSTANT_ALIGNMENT): Delete.
4229         * config/mips/mips.c (mips_constant_alignment): New function.
4230         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4231         * config/mmix/mmix.h (CONSTANT_ALIGNMENT): Delete.
4232         * config/mmix/mmix-protos.h (mmix_constant_alignment): Delete.
4233         * config/mmix/mmix.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4234         (mmix_constant_alignment): Make static.  Use the same interface
4235         as the target hook.
4236         * config/moxie/moxie.h (CONSTANT_ALIGNMENT): Delete.
4237         * config/moxie/moxie.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4238         constant_alignment_word_strings.
4239         * config/nios2/nios2.h (CONSTANT_ALIGNMENT): Delete.
4240         * config/nios2/nios2.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4241         constant_alignment_word_strings.
4242         * config/pa/pa.h (CONSTANT_ALIGNMENT): Delete.
4243         * config/pa/pa.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4244         constant_alignment_word_strings.
4245         * config/powerpcspe/powerpcspe.h (CONSTANT_ALIGNMENT): Delete.
4246         * config/powerpcspe/powerpcspe.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4247         (rs6000_constant_alignment): New function.
4248         * config/riscv/riscv.h (CONSTANT_ALIGNMENT): Delete.
4249         * config/riscv/riscv.c (riscv_constant_alignment): New function.
4250         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4251         * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Delete.
4252         * config/rs6000/rs6000.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4253         (rs6000_constant_alignment): New function.
4254         * config/s390/s390.h (CONSTANT_ALIGNMENT): Delete.
4255         * config/s390/s390.c (s390_constant_alignment): New function.
4256         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4257         * config/sh/sh.h (CONSTANT_ALIGNMENT): Delete.
4258         * config/sh/sh.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4259         constant_alignment_word_strings.
4260         * config/sparc/sparc.h (CONSTANT_ALIGNMENT): Delete.
4261         * config/sparc/sparc.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4262         (sparc_constant_alignment): New function.
4263         * config/spu/spu.h (CONSTANT_ALIGNMENT): Delete.
4264         * config/spu/spu.c (spu_constant_alignment): New function.
4265         (TARGET_CONSTANT_ALIGNMENT): Redefine.
4266         * config/stormy16/stormy16.h (CONSTANT_ALIGNMENT): Delete.
4267         * config/stormy16/stormy16.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4268         constant_alignment_word_strings.
4269         * config/tilegx/tilegx.h (CONSTANT_ALIGNMENT): Delete.
4270         * config/tilegx/tilegx.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4271         constant_alignment_word_strings.
4272         * config/tilepro/tilepro.h (CONSTANT_ALIGNMENT): Delete.
4273         * config/tilepro/tilepro.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4274         constant_alignment_word_strings.
4275         * config/visium/visium.h (CONSTANT_ALIGNMENT): Delete.
4276         * config/visium/visium.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4277         (visium_constant_alignment): New function.
4278         * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT): Delete.
4279         * config/xtensa/xtensa.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4280         (xtensa_constant_alignment): New function.
4281         * system.h (CONSTANT_ALIGNMENT): Poison.
4283 2017-09-25  Will Schmidt  <will_schmidt@vnet.ibm.com>
4285         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4286         for early folding of vector stores (ALTIVEC_BUILTIN_ST_*).
4287         (rs6000_builtin_valid_without_lhs): New helper function.
4288         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4289         Remove obsoleted code for handling ALTIVEC_BUILTIN_VEC_ST.
4291 2017-09-25  Richard Sandiford  <richard.sandiford@linaro.org>
4293         * target.h (vec_perm_indices): Use unsigned short rather than
4294         unsigned char.
4295         (auto_vec_perm_indices): Likewise.
4296         * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const_ok):
4297         Use unsigned int rather than unsigned char.
4298         * config/arm/arm.c (arm_vectorize_vec_perm_const_ok): Likewise.
4300 2017-09-25  Richard Biener  <rguenther@suse.de>
4302         * cfgloop.h (sort_sibling_loops): Declare.
4303         * cfgloop.c (sort_sibling_loops_cmp): New helper.
4304         (sort_sibling_loops): New function sorting the sibling loop list
4305         in RPO order.
4306         * graphite.c (graphite_transform_loops): Sort sibling loops.
4308 2017-09-25  Richard Sandiford  <richard.sandifird@linaro.org>
4310         * target.def (vec_perm_const_ok): Change sel parameter to
4311         vec_perm_indices.
4312         * optabs-query.c (can_vec_perm_p): Update accordingly.
4313         * doc/tm.texi: Regenerate.
4314         * config/aarch64/aarch64.c (expand_vec_perm_d): Change perm to
4315         auto_vec_perm_indices and remove separate nelt field.
4316         (aarch64_evpc_trn, aarch64_evpc_uzp, aarch64_evpc_zip)
4317         (aarch64_evpc_ext, aarch64_evpc_rev, aarch64_evpc_dup)
4318         (aarch64_evpc_tbl, aarch64_expand_vec_perm_const_1)
4319         (aarch64_expand_vec_perm_const): Update accordingly.
4320         (aarch64_vectorize_vec_perm_const_ok): Likewise.  Change sel
4321         to vec_perm_indices.
4322         * config/arm/arm.c (expand_vec_perm_d): Change perm to
4323         auto_vec_perm_indices and remove separate nelt field.
4324         (arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev)
4325         (arm_evpc_neon_vtrn, arm_evpc_neon_vext, arm_evpc_neon_vtbl)
4326         (arm_expand_vec_perm_const_1, arm_expand_vec_perm_const): Update
4327         accordingly.
4328         (arm_vectorize_vec_perm_const_ok): Likewise.  Change sel
4329         to vec_perm_indices.
4330         * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
4331         sel to vec_perm_indices.
4332         * config/ia64/ia64.c (ia64_vectorize_vec_perm_const_ok): Likewise.
4333         * config/mips/mips.c (mips_vectorize_vec_perm_const_ok): Likewise.
4334         * config/powerpcspe/powerpcspe.c (rs6000_vectorize_vec_perm_const_ok):
4335         Likewise.
4336         * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const_ok):
4337         Likewise.
4339 2017-09-25  Pierre-Marie de Rodat  <derodat@adacore.com>
4341         PR debug/82155
4342         * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
4343         on the FUNCTION_DECL function context if it has a DIE that is a
4344         declaration.
4346 2017-09-25  Richard Biener  <rguenther@suse.de>
4348         PR tree-optimization/82285
4349         * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
4350         enumeral types.
4352 2017-09-25  Tom de Vries  <tom@codesourcery.com>
4354         PR target/80035
4355         PR target/81069
4356         * config/nvptx/nvptx.c (nvptx_output_call_insn): Add exit after call to
4357         noreturn function.
4359 2017-09-25  Richard Biener  <rguenther@suse.de>
4361         * graphite-optimize-isl.c (optimize_isl): Fail and dump if
4362         ISL errors other than isl_error_quota happen.  Dump if the
4363         schedule is the same.
4364         * graphite-sese-to-poly.c (build_poly_scop): Fail on ISL
4365         errors instead of aborting inside ISL.
4367 2017-09-25  Iain Sandoe  <iain@codesourcery.com>
4369         PR target/80556
4370         * config/i386/darwin.h (REAL_LIB_SPEC): New; put libSystem ahead
4371         of libgcc_eh for m64.
4372         * config/i386/darwin64.h: Likewise.
4374 2017-09-25  Richard Biener  <rguenther@suse.de>
4376         PR middle-end/82144
4377         * dwarf2out.c (gen_enumeration_type_die): Do not add alignment
4378         attribute for incomplete types nor twice for complete ones.
4380 2017-09-24  Uros Bizjak  <ubizjak@gmail.com>
4382         PR target/82267
4383         * config/i386/i386.c (ix86_print_operand_address_as): Encode
4384         %esp as %rsp to avoid 0x67 prefix if there is no index or base
4385         register.
4387 2017-09-23  Uros Bizjak  <ubizjak@gmail.com>
4389         PR bootstrap/82306
4390         * config/i386/i386.opt (mprefer-avx256): Use
4391         ix86_target_flags variable.
4392         * config/i386/i386.c (ix86_target_string): Move
4393         -mprefer-avx256 to flag2_opts.
4395 2017-09-22  Jakub Jelinek  <jakub@redhat.com>
4397         PR middle-end/35691
4398         * match.pd: Simplify x == -1 & y == -1 into (x & y) == -1
4399         and x != -1 | y != -1 into (x & y) != -1.
4401 2017-09-22  Steve Ellcey  <sellcey@cavium.com>
4403         * config.gcc: Add new case statement to set
4404         default_gnu_indirect_function.  Remove it from x86_64-*-linux*,
4405         i[34567]86-*, powerpc*-*-linux*spe*, powerpc*-*-linux*, s390-*-linux*,
4406         s390x-*-linux* case statements.   Added aarch64 to the list of
4407         supported architectures.
4409 2017-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
4411         PR tree-optimization/82289
4412         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Check
4413         STMT_VINFO_RELEVANT_P.
4415 2017-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
4416             Alan Hayward  <alan.hayward@arm.com>
4417             David Sherwood  <david.sherwood@arm.com>
4419         * tree-vrp.c (extract_range_from_multiplicative_op_1): Assert
4420         for VR_RANGE only; don't allow VR_ANTI_RANGE.
4421         (extract_range_from_binary_expr_1): Don't call
4422         extract_range_from_multiplicative_op_1 if !range_int_cst_p.
4424 2017-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
4425             Alan Hayward  <alan.hayward@arm.com>
4426             David Sherwood  <david.sherwood@arm.com>
4428         * target.def (preferred_vector_alignment): New hook.
4429         * doc/tm.texi.in (TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT): New
4430         hook.
4431         * doc/tm.texi: Regenerate.
4432         * targhooks.h (default_preferred_vector_alignment): Declare.
4433         * targhooks.c (default_preferred_vector_alignment): New function.
4434         * tree-vectorizer.h (dataref_aux): Add a target_alignment field.
4435         Expand commentary.
4436         (DR_TARGET_ALIGNMENT): New macro.
4437         (aligned_access_p): Update commentary.
4438         (vect_known_alignment_in_bytes): New function.
4439         * tree-vect-data-refs.c (vect_calculate_required_alignment): New
4440         function.
4441         (vect_compute_data_ref_alignment): Set DR_TARGET_ALIGNMENT.
4442         Calculate the misalignment based on the target alignment rather than
4443         the vector size.
4444         (vect_update_misalignment_for_peel): Use DR_TARGET_ALIGMENT
4445         rather than TYPE_ALIGN / BITS_PER_UNIT to update the misalignment.
4446         (vect_enhance_data_refs_alignment): Mask the byte misalignment with
4447         the target alignment, rather than masking the element misalignment
4448         with the number of elements in a vector.  Also use the target
4449         alignment when calculating the maximum number of peels.
4450         (vect_find_same_alignment_drs): Use vect_calculate_required_alignment
4451         instead of TYPE_ALIGN_UNIT.
4452         (vect_duplicate_ssa_name_ptr_info): Remove stmt_info parameter.
4453         Measure DR_MISALIGNMENT relative to DR_TARGET_ALIGNMENT.
4454         (vect_create_addr_base_for_vector_ref): Update call accordingly.
4455         (vect_create_data_ref_ptr): Likewise.
4456         (vect_setup_realignment): Realign by ANDing with
4457         -DR_TARGET_MISALIGNMENT.
4458         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Calculate
4459         the number of peels based on DR_TARGET_ALIGNMENT.
4460         * tree-vect-stmts.c (get_group_load_store_type): Compare the gap
4461         with the guaranteed alignment boundary when deciding whether
4462         overrun is OK.
4463         (vectorizable_mask_load_store): Interpret DR_MISALIGNMENT
4464         relative to DR_TARGET_ALIGNMENT instead of TYPE_ALIGN_UNIT.
4465         (ensure_base_align): Remove stmt_info parameter.  Get the
4466         target base alignment from DR_TARGET_ALIGNMENT.
4467         (vectorizable_store): Update call accordingly.   Interpret
4468         DR_MISALIGNMENT relative to DR_TARGET_ALIGNMENT instead of
4469         TYPE_ALIGN_UNIT.
4470         (vectorizable_load): Likewise.
4472 2017-09-22  Richard Sandiford  <richard.sandiford@linaro.org>
4473             Alan Hayward  <alan.hayward@arm.com>
4474             David Sherwood  <david.sherwood@arm.com>
4476         * tree-vectorizer.h (vect_get_scalar_dr_size): New function.
4477         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use it.
4478         (vect_enhance_data_refs_alignment): Likewise.
4480 2017-09-22  Richard Earnshaw  <richard.earnshaw@arm.com>
4482         * config/arm/parsecpu.awk (fatal): Note that we've encountered an
4483         error.  Only quit immediately if parsing is complete.
4484         (BEGIN): Initialize fatal_err and parse_done.
4485         (begin fpu, end fpu): Check number of arguments.
4486         (begin arch, end arch): Likewise.
4487         (begin cpu, end cpu): Likewise.
4488         (cname, tune for, tune flags, architecture, fpu, option): Likewise.
4489         (optalias): Likewise.
4491 2017-09-22  Richard Earnshaw  <richard.earnshaw@arm.com>
4493         * config.gcc (arm*-*-*): Don't add arm-isa.h to tm_p_file.
4494         * config/arm/arm-isa.h: Delete.  Move definitions to ...
4495         * arm-cpus.in: ... here.  Use new feature and fgroup values.
4496         * config/arm/arm.c (arm_option_override): Use lower case for feature
4497         bit names.
4498         * config/arm/arm.h (TARGET_HARD_FLOAT): Likewise.
4499         (TARGET_VFP3, TARGET_VFP5, TARGET_FMA): Likewise.
4500         * config/arm/parsecpu.awk (END): Add new command 'isa'.
4501         (isa_pfx): Delete.
4502         (print_isa_bits_for): New function.
4503         (gen_isa): New function.
4504         (gen_comm_data): Use print_isa_bits_for.
4505         (define feature): New keyword.
4506         (define fgroup): New keyword.
4507         * config/arm/t-arm (TM_H): Remove.
4508         (GTM_H): Add arm-isa.h.
4509         (arm-isa.h): Add rule to generate file.
4510         * common/config/arm/arm-common.c: (arm_canon_arch_option): Use lower
4511         case for feature bit names.
4513 2017-09-22  Richard Biener  <rguenther@suse.de>
4515         * graphite-isl-ast-to-gimple.c (graphite_verify): Inline into
4516         single caller.
4517         (graphite_regenerate_ast_isl): Do not reset SCEV.  Move debug
4518         print of no dependency loops ...
4519         * graphite.c (graphite_transform_loops): ... here.
4520         (canonicalize_loop_closed_ssa_form): Work from inner to outer
4521         loops.
4522         (same_close_phi_node, remove_duplicate_close_phi,
4523         make_close_phi_nodes_unique, defined_in_loop_p): Fold into ...
4524         (canonicalize_loop_closed_ssa): ... here and simplify.
4525         * graphite-optimize-isl.c: Include tree-vectorizer.h.
4526         (optimize_isl): Use dump_printf_loc to tell when we stopped
4527         optimizing because of an ISL timeout.
4529 2017-09-22  Richard Biener  <rguenther@suse.de>
4531         PR tree-optimization/82291
4532         * tree-if-conv.c (predicate_mem_writes): Make sure to
4533         remove writes in blocks predicated with false.
4535 2017-09-22  Richard Biener  <rguenther@suse.de>
4537         * sese.c: Include cfganal.h.
4538         (if_region_set_false_region): Remove.
4539         (create_if_region_on_edge): Likewise.
4540         (move_sese_in_condition): Re-implement without destroying
4541         dominators.
4543 2017-09-22  Richard Biener  <rguenther@suse.de>
4545         * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes):
4546         Verify both BBs contain loop PHI nodes before dispatching to
4547         copy_loop_phi_args.
4548         (graphite_regenerate_ast_isl): Do not recompute dominators,
4549         do not verify three times.  Restructure for clarity.
4550         * graphite-scop-detection.c (same_close_phi_node,
4551         remove_duplicate_close_phi, make_close_phi_nodes_unique,
4552         defined_in_loop_p, canonicalize_loop_closed_ssa,
4553         canonicalize_loop_closed_ssa_form): Simplify, remove excess
4554         checking and SSA rewrite, move to ...
4555         * graphite.c: ... here.  Include ssa.h and tree-ssa-loop-manip.h.
4556         (graphite_initialize): Do not pass in ctx, do not reset the
4557         SCEV cache, compute only dominators.
4558         (graphite_transform_loops): Allocate ISL ctx after
4559         graphite_initialize.  Call canonicalize_loop_closed_ssa_form.
4560         Maintain post-dominators only around build_scops.
4561         * sese.c (if_region_set_false_region): Make static.  Free
4562         and recompute dominators.
4563         (move_sese_in_condition): Assert we don't get called with
4564         post-dominators computed.
4565         * sese.h (if_region_set_false_region): Remove.
4567 2017-09-22  Sergey Shalnov  <sergey.shalnov@intel.com>
4569         * config/i386/sse.md ("mov<mode>_internal"): Use <sseinsnmode>
4570         mode attribute for TARGET_AVX512VL.
4572 2017-09-21  Sergey Shalnov  <sergey.shalnov@intel.com>
4574         * config/i386/i386.opt (mprefer-avx256): New option.
4575         * config/i386/i386.c (ix86_target_string): Add -mprefer-avx256
4576         to flag_opts.
4577         (ix86_preferred_simd_mode): Return 256-bit AVX modes
4578         for TARGET_PREFER_AVX256.
4579         * doc/invoke.texi (x86 Options): Document -mprefer-avx256.
4581 2017-09-21  Jeff Law  <law@redhat.com>
4583         * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash):
4584         Fix dump output if the only stack space is for pushed registers.
4586 2017-09-21  Richard Sandiford  <richard.sandiford@linaro.org>
4588         * config/spu/spu.c (spu_sched_adjust_cost): Update after renaming
4589         of insn_cost.
4591 2017-09-21  Martin Sebor  <msebor@redhat.com>
4593         PR c/81882
4594         * doc/extend.texi (attribute ifunc): Avoid relying on ill-formed
4595         code (in C++) or code that triggers warnings.
4597 2017-09-21  Eric Botcazou  <ebotcazou@adacore.com>
4599         * stor-layout.c (bit_from_pos): Do not distribute the conversion.
4601 2017-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
4603         * haifa-sched.c: Rename insn_cost to insn_sched_cost.
4604         * sched-rgn.c: Ditto.
4605         * sel-sched-ir.c: Ditto.
4607 2017-09-21  Alexander Monakov  <amonakov@ispras.ru>
4609         * toplev.h (set_random_seed): Adjust return type.
4610         * toplev.c (init_local_tick): Move eager initialization of random_seed
4611         to get_random_seed.  Adjust comment.
4612         (init_random_seed): Inline to get_random_seed, delete.
4613         (get_random_seed): Initialize random_seed lazily.
4614         (set_random_seed): Do not return previous value.
4615         (print_switch_value): Do not call get_random_seed.
4617 2017-09-21  Evgeny Kudryashov  <kudryashov@ispras.ru>
4619         * cgraph.c (delete_function_version): New, broken out from...
4620         (cgraph_node::delete_function_version): ...here.  Rename to
4621         cgraph_node::delete_function_version_by_decl.  Update all uses.
4622         (cgraph_node::remove): Call delete_function_version.
4624 2017-09-21  Jakub Jelinek  <jakub@redhat.com>
4626         PR sanitizer/81715
4627         * tree-inline.c (expand_call_inline): Emit clobber stmts for
4628         VAR_DECLs to which addressable non-volatile parameters are mapped
4629         and for id->retvar after the return value assignment.  Clear
4630         id->retval and id->retbnd after inlining.
4632 2017-09-21  Richard Biener  <rguenther@suse.de>
4634         PR tree-optimization/82276
4635         PR tree-optimization/82244
4636         * tree-vrp.c (build_assert_expr_for): Set
4637         SSA_NAME_OCCURS_IN_ABNORMAL_PHI if the variable we assert on
4638         has it set.
4639         (remove_range_assertions): Revert earlier change.
4641 2017-09-21  Wilco Dijkstra  <wdijkstr@arm.com>
4643         PR target/71951
4644         * config/aarch64/aarch64.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
4646 2017-09-21  Richard Biener  <rguenther@suse.de>
4648         * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
4649         Restore valid IL after code generation errors.
4650         * graphite.c (graphite_transform_loops): Diagnose code
4651         generation issues as MSG_MISSED_OPTIMIZATION and continue
4652         with processing SCOPs.
4654 2017-09-21  Richard Sandiford  <richard.sandiford@linaro.org>
4655             Alan Hayward  <alan.hayward@arm.com>
4656             David Sherwood  <david.sherwood@arm.com>
4658         * calls.c (compute_argument_addresses): Use simplify_gen_binary
4659         rather than choosing between plus_constant and gen_rtx_<CODE>.
4660         * expr.c (emit_push_insn): Likewise.
4661         (expand_expr_real_2): Likewise.
4663 2017-09-21  Richard Sandiford  <richard.sandiford@linaro.org>
4664             Alan Hayward  <alan.hayward@arm.com>
4665             David Sherwood  <david.sherwood@arm.com>
4667         * loop-unroll.c (split_iv): Call copy_rtx on the step.
4669 2017-09-21  Richard Sandiford  <richard.sandiford@linaro.org>
4670             Alan Hayward  <alan.hayward@arm.com>
4671             David Sherwood  <david.sherwood@arm.com>
4673         * tree.c (find_atomic_core_type): Check tree_fits_uhwi_p before
4674         calling tree_to_uhwi.
4676 2017-09-21  Richard Sandiford  <richard.sandiford@linaro.org>
4677             Alan Hayward  <alan.hayward@arm.com>
4678             David Sherwood  <david.sherwood@arm.com>
4680         * tree-ssa-ccp.c (get_value_for_expr): Use a positive test for
4681         INTEGER_CST rather than a negative test for ADDR_EXPR.
4683 2017-09-21  Richard Sandiford  <richard.sandiford@linaro.org>
4684             Alan Hayward  <alan.hayward@arm.com>
4685             David Sherwood  <david.sherwood@arm.com>
4687         * tree-vrp.c (extract_range_from_binary_expr_1): Check
4688         int_cst_rangeN before calling value_range_constant_singleton (&vrN).
4690 2017-09-21  Richard Biener  <rguenther@suse.de>
4692         PR tree-optimization/71351
4693         * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple::
4694         graphite_create_new_loop_guard): Remove, fold remaining parts
4695         into caller ...
4696         (translate_isl_ast_node_for): ... here and simplify.
4698 2017-09-21  Jakub Jelinek  <jakub@redhat.com>
4700         PR target/82260
4701         * config/i386/i386.md (*movqi_internal): Replace (=q,q) alternative
4702         with (=Q,Q), (=R,R) and (=r,r) alternatives, only enable the
4703         latter two for 64-bit, renumber alternatives, for -Os imov (=q,n)
4704         alternative always use QI mode, for -Os imov (=R,R) alternative
4705         always use SI mode, for imov (=Q,Q) or (=r,r) alternatives
4706         ignore -Os.
4708 2017-09-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4709             Jeff Law  <law@redhat.com>
4711         * config/s390/s390.c (MIN_UNROLL_PROBES): Define.
4712         (allocate_stack_space): New function, partially extracted from
4713         s390_emit_prologue.
4714         (s390_emit_prologue): Track offset to most recent stack probe.
4715         Code to allocate space moved into allocate_stack_space.
4716         Dump actions when no stack is allocated.
4717         (s390_prologue_plus_offset): New function.
4718         (s390_emit_stack_probe): Likewise.
4720 2017-09-20  Alexandre Oliva <aoliva@redhat.com>
4722         * common.opt (Wa, Wl, Wp, g, gz=): Add
4723         RejectNegative.
4724         (gno-column-info): Remove.
4725         (gcolumn-info): Drop RejectNegative.
4726         (gno-): New prefix.
4727         (gno-record-gcc-switches): Remove.
4728         (grecord-gcc-switches): Drop RejectNegative.
4729         (gno-split-dwarf): Remove.
4730         (gsplit-dwarf): Drop RejectNegative.
4731         (gno-strict-dwarf): Remove.
4732         (gstrict-dwarf): Drop RejectNegative.
4733         * config/darwin.opt (gfull, gused): Add RejectNegative.
4734         * dwarf2out.c (gen_producer_string): Drop
4735         gno-record-gcc-switches handler.
4736         * optc-gen.awk: Add g to prefixes with negative forms.
4737         * opts-common.c (remapping_prefix_p): New.
4738         (find_opt): Check it.
4739         (generate_canonical_option): Test g prefix.
4740         (option_map): Add -gno- mapping.
4741         (add_misspelling_candidates): Check remapping_prefix_p.
4743 2017-09-20  Jeff Law  <law@redhat.com>
4745         * config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Fix
4746         thinko in stack clash protection support.
4748         * explow.c (compute_stack_clash_protection_loop_data): Use
4749         CONST_INT_P instead of explicit test.  Verify object is a
4750         CONST_INT_P before looking at INTVAL.
4751         (anti_adjust_stack_and_probe_stack_clash): Use CONST_INT_P
4752         instead of explicit test.
4754 2017-09-20  Segher Boessenkool  <segher@kernel.crashing.org>
4756         PR target/77687
4757         * config/rs6000/rs6000.md (stack_restore_tie): Store to a scratch
4758         address instead of to r1 and r11.
4760 2017-09-20  Sebastian Peryt  <sebastian.peryt@intel.com>
4762         * config.gcc: Support "knm".
4763         * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knm".
4764         * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4765         PROCESSOR_KNM.
4766         * config/i386/i386.c (m_KNM): Define.
4767         (processor_target_table): Add "knm".
4768         (PTA_KNM): Define.
4769         (ix86_option_override_internal): Add "knm".
4770         (ix86_issue_rate): Add PROCESSOR_KNM.
4771         (ix86_adjust_cost): Ditto.
4772         (ia32_multipass_dfa_lookahead): Ditto.
4773         (get_builtin_code_for_version): Handle PROCESSOR_KNM.
4774         (fold_builtin_cpu): Add M_INTEL_KNM.
4775         * config/i386/i386.h (processor_costs): Define TARGET_KNM.
4776         (processor_type): Add PROCESSOR_KNM.
4777         * config/i386/x86-tune.def: Add m_KNM.
4778         * doc/invoke.texi: Add knm as x86 -march=/-mtune= CPU type.
4780 2017-09-20  Richard Biener  <rguenther@suse.de>
4782         PR tree-optimization/80213
4783         * graphite-scop-detection.c (trivially_empty_bb_p): Labels
4784         are allowed in empty BBs as well.
4785         (canonicalize_loop_closed_ssa): Also look for other complex
4786         edges.
4787         (scop_detection::get_sese): Include the loop-closed PHI block
4788         in loop SESEs.
4789         (scop_detection::merge_sese): Remove code adding extra blocks.
4790         (scop_detection::region_has_one_loop): Adjust for get_sese changes.
4791         (build_scops): Assert the final returned scop is invalid.
4793 2017-09-20  Richard Biener  <rguenther@suse.de>
4795         PR tree-optimization/82264
4796         * tree-ssa-sccvn.c (vn_phi_eq): Use safe_dyn_cast to check
4797         for GIMPLE_CONDs.
4798         (vn_phi_lookup): Likewise.
4799         (vn_phi_insert): Likewise.
4801 2017-09-20  Jakub Jelinek  <jakub@redhat.com>
4803         * dwarf2out.c (tree_add_const_value_attribute): For INTEGER_CST
4804         that fits into uhwi or shwi, add DW_AT_const_value regardless
4805         of early_dwarf without going through RTL, using add_AT_unsigned
4806         or add_AT_int.
4808         * dwarf2out.c (DEBUG_LTO_DWO_INFO_SECTION): Reorder defines.
4809         (DEBUG_LTO_ABBREV_SECTION): Likewise.
4810         (DEBUG_LTO_MACINFO_SECTION): Likewise.
4811         (DEBUG_MACRO_SECTION): Likewise.
4812         (DEBUG_LTO_MACRO_SECTION): Likewise.
4813         (DEBUG_STR_DWO_SECTION): Likewise.
4814         (DEBUG_LTO_STR_DWO_SECTION): Likewise.
4815         (DEBUG_LTO_LINE_SECTION): Drop .dwo suffix from the name.
4816         (DEBUG_LTO_DWO_LINE_SECTION): Define.
4817         (DEBUG_LTO_LINE_STR_SECTION): Define.
4818         (init_sections_and_labels): Initialize debug_line_str_section
4819         variable.  Initialize debug_loc_section for -gdwarf-5 to
4820         DEBUG_LOCLISTS_SECTION.  Formatting fixes.
4822 2017-09-20  Richard Biener  <rguenther@suse.de>
4824         * graphite-sese-to-poly.c (extract_affine): Properly handle
4825         POINTER_PLUS_EXPR, BIT_NOT_EXPR and conversion to signed.
4827 2017-09-20  Richard Biener  <rguenther@suse.de>
4829         PR tree-optimization/81373
4830         * graphite-scop-detection.c (build_cross_bb_scalars_def):
4831         Force SESE live-out defs to be handled even if they are
4832         scev_analyzable_p.
4834 2017-09-19  Jeff Law  <law@redhat.com>
4836         * combine-stack-adj.c (combine_stack_adjustments_for_block): Do
4837         nothing for stack adjustments with REG_STACK_CHECK.
4838         * sched-deps.c (parse_add_or_inc): Reject insns with
4839         REG_STACK_CHECK from dependency breaking.
4840         * config/i386/i386.c (pro_epilogue_adjust_stack): Return insn.
4841         (ix86_adjust_satck_and_probe_stack_clash): Add REG_STACK_NOTEs.
4842         * reg-notes.def (STACK_CHECK): New note.
4844         * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash): New.
4845         (ix86_expand_prologue): Dump stack clash info as needed.
4846         Call ix86_adjust_stack_and_probe_stack_clash as needed.
4848         * function.c (dump_stack_clash_frame_info): New function.
4849         * function.h (dump_stack_clash_frame_info): Prototype.
4850         (enum stack_clash_probes): New enum.
4852         * config/alpha/alpha.c (alpha_expand_prologue): Also check
4853         flag_stack_clash_protection.
4854         * config/arm/arm.c (arm_compute_static_chain_stack_bytes): Likewise.
4855         (arm_expand_prologue, thumb1_expand_prologue): Likewise.
4856         (arm_frame_pointer_required): Likewise.
4857         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4858         (ia64_expand_prologue): Likewise.
4859         * config/mips/mips.c (mips_expand_prologue): Likewise.
4860         * config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Likewise.
4861         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4862         (sparc_flat_expand_prologue): Likewise.
4863         * config/spu/spu.c (spu_expand_prologue): Likewise.
4865         * explow.c: Include "params.h".
4866         (anti_adjust_stack_and_probe_stack_clash): New function.
4867         (get_stack_check_protect): Likewise.
4868         (compute_stack_clash_protection_loop_data): Likewise.
4869         (emit_stack_clash_protection_loop_start): Likewise.
4870         (emit_stack_clash_protection_loop_end): Likewise.
4871         (allocate_dynamic_stack_space): Use get_stack_check_protect.
4872         Use anti_adjust_stack_and_probe_stack_clash.
4873         * explow.h (compute_stack_clash_protection_loop_data): Prototype.
4874         (emit_stack_clash_protection_loop_start): Likewise.
4875         (emit_stack_clash_protection_loop_end): Likewise.
4876         * rtl.h (get_stack_check_protect): Prototype.
4877         * target.def (stack_clash_protection_final_dynamic_probe): New hook.
4878         * targhooks.c (default_stack_clash_protection_final_dynamic_probe): New.
4879         * targhooks.h (default_stack_clash_protection_final_dynamic_probe):
4880         Prototype.
4881         * doc/tm.texi.in (TARGET_STACK_CLASH_PROTECTION_FINAL_DYNAMIC_PROBE):
4882         Add @hook.
4883         * doc/tm.texi: Rebuilt.
4884         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
4885         get_stack_check_protect.
4886         * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4887         * config/arm/arm.c (arm_expand_prologue): Likewise.
4888         (arm_frame_pointer_required): Likewise.
4889         * config/i386/i386.c (ix86_expand_prologue): Likewise.
4890         * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4891         * config/mips/mips.c (mips_expand_prologue): Likewise.
4892         * config/powerpcspe/powerpcspe.c (rs6000_emit_prologue): Likewise.
4893         * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4894         * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4895         (sparc_flat_expand_prologue): Likewise.
4897         * common.opt (-fstack-clash-protection): New option.
4898         * flag-types.h (enum stack_check_type): Note difference between
4899         -fstack-check= and -fstack-clash-protection.
4900         * params.def (PARAM_STACK_CLASH_PROTECTION_GUARD_SIZE): New PARAM.
4901         (PARAM_STACK_CLASH_PROTECTION_PROBE_INTERVAL): Likewise.
4902         * toplev.c (process_options): Issue warnings/errors for cases
4903         not handled with -fstack-clash-protection.
4904         * doc/invoke.texi (-fstack-clash-protection): Document new option.
4905         (-fstack-check): Note additional problem with -fstack-check=generic.
4906         Note that -fstack-check is primarily for Ada and refer users
4907         to -fstack-clash-protection for stack-clash-protection.
4908         Document new params for stack clash protection.
4910 2017-09-19  Uros Bizjak  <ubizjak@gmail.com>
4912         * config/i386/i386.c (ix86_split_long_move): Do not handle
4913         address used for LEA in a special way.
4915 2017-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
4917         * simplify-rtx.c (simplify_binary_operation_1): Fix typo in comment.
4919 2017-09-19  Martin Sebor  <msebor@redhat.com>
4921         PR c/81854
4922         * cgraphunit.c (handle_alias_pairs): Reject aliases between functions
4923         of incompatible types.
4925 2017-09-19  Will Schmidt  <will_schmidt@vnet.ibm.com>
4927         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4928         for early folding of vector loads (ALTIVEC_BUILTIN_LVX_*).
4929         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4930         Remove obsoleted code for handling ALTIVEC_BUILTIN_VEC_LD.
4932 2017-09-19  Richard Biener  <rguenther@suse.de>
4934         PR tree-optimization/82244
4935         * tree-vrp.c (remove_range_assertions): Do not propagate
4936         a constant to abnormals but replace the assert with a copy.
4938 2017-09-19  Alexander Monakov  <amonakov@ispras.ru>
4940         PR rtl-optimization/57878
4941         PR rtl-optimization/68988
4942         * lra-assigns.c (reload_pseudo_compare_func): Remove fragmentation
4943         avoidance test involving non_reload_pseudos.  Move frequency test
4944         below the general fragmentation avoidance test.
4946 2017-09-19  Richard Biener  <rguenther@suse.de>
4948         PR tree-optimization/69728
4949         * graphite-sese-to-poly.c (schedule_error): New global.
4950         (add_loop_schedule): Handle empty domain by failing the
4951         schedule.
4952         (build_original_schedule): Handle schedule_error.
4954 2017-09-19  Richard Biener  <rguenther@suse.de>
4956         * graphite-scop-detection.c (scop_detection::can_represent_loop):
4957         Do not iterate to sibling loops but only to siblings of inner
4958         loops.
4960 2017-09-18  Andreas Schwab  <schwab@linux-m68k.org>
4962         PR target/81613
4963         * config/m68k/m68k.md (moveq feeding equality comparison): Check
4964         that the registers are different.
4966 2017-09-18  Uros Bizjak  <ubizjak@gmail.com>
4968         * config/i386/i386.c (fold_builtin_cpu): Add M_AMDFAM17H
4969         to processor_model and "amdfam17h" to arch_names_table.
4970         * doc/extend.texi (__builtin_cpu_is): Document amdfam17h CPU name.
4972 2017-09-18  Jakub Jelinek  <jakub@redhat.com>
4974         PR c/82234
4975         * doc/extend.texi: Add @findex entry for __builtin_shuffle.
4977 2017-09-18  Richard Sandiford  <richard.sandiford@linaro.org>
4978             Alan Hayward  <alan.hayward@arm.com>
4979             David Sherwood  <david.sherwood@arm.com>
4981         * tree-vectorizer.h (vect_slp_analyze_operations): Replace parameters
4982         with a vec_info *.
4983         * tree-vect-loop.c (vect_analyze_loop_operations): Update call
4984         accordingly.
4985         * tree-vect-slp.c (vect_slp_analyze_node_operations): Add vec_info *
4986         parameter.  Set SLP_TREE_NUMBER_OF_VEC_STMTS here rather than in
4987         vect_schedule_slp_instance.
4988         (vect_slp_analyze_operations): Replace parameters with a vec_info *.
4989         Update call to vect_slp_analyze_node_operations.  Simplify return
4990         value.
4991         (vect_slp_analyze_bb_1): Update call accordingly.
4992         (vect_schedule_slp_instance): Remove vectorization_factor parameter.
4993         Don't calculate SLP_TREE_NUMBER_OF_VEC_STMTS here.
4994         (vect_schedule_slp): Update call accordingly.
4996 2017-09-18  Richard Sandiford  <richard.sandiford@linaro.org>
4997             Alan Hayward  <alan.hayward@arm.com>
4998             David Sherwood  <david.sherwood@arm.com>
5000         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Cope
5001         with types that aren't in fact scalar.
5003 2017-09-18  Richard Sandiford  <richard.sandiford@linaro.org>
5005         * tree-vect-slp.c (vect_record_max_nunits): New function,
5006         split out from...
5007         (vect_build_slp_tree_1): ...here.
5008         (vect_build_slp_tree_2): Call it for phis too.
5010 2017-09-18  Richard Sandiford  <richard.sandiford@linaro.org>
5012         * tree-vect-stmts.c (vectorizable_mask_load_store): Pass mask_vectype
5013         to vect_get_vec_def_for_operand when getting the mask operand.
5015 2017-09-18  Richard Sandiford  <richard.sandiford@linaro.org>
5016             Alan Hayward  <alan.hayward@arm.com>
5017             David Sherwood  <david.sherwood@arm.com>
5019         * tree-vect-loop.c (vectorizable_live_operation): Fix type of
5020         bitstart.
5022 2017-09-18  Richard Sandiford  <richard.sandiford@linaro.org>
5023             Alan Hayward  <alan.hayward@arm.com>
5024             David Sherwood  <david.sherwood@arm.com>
5026         * tree-vect-loop.c (vectorizable_live_operation): Fix element size
5027         calculation for vector booleans.
5029 2017-09-18  Richard Sandiford  <richard.sandiford@linaro.org>
5030             Alan Hayward  <alan.hayward@arm.com>
5031             David Sherwood  <david.sherwood@arm.com>
5033         * tree-vect-stmts.c (can_vectorize_live_stmts): New function,
5034         split out from...
5035         (vect_transform_stmt): ...here.
5036         (vect_analyze_stmt): Use it instead of calling
5037         vectorizable_live_operation directly.
5039 2017-09-18  Cesar Philippidis  <cesar@codesourcery.com>
5041         * omp-offload.c (oacc_xform_loop): Enable SIMD vectorization on
5042         non-SIMT targets in acc vector loops.
5044 2017-09-18  Claudiu Zissulescu  <claziss@synopsys.com>
5046         * configure.ac: Add arc and check if assembler supports gdwarf2.
5047         * configure: Regenerate.
5049 2017-09-18  Richard Biener  <rguenther@suse.de>
5051         PR tree-optimization/82220
5052         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Exclude
5053         epilogue niters from the min_profitable_iters compute.
5055 2017-09-18  Jakub Jelinek  <jakub@redhat.com>
5057         PR target/82145
5058         * config/i386/i386.c (ix86_init_large_pic_reg): Revert 2017-09-01
5059         changes.  Turn CODE_LABEL into NOTE_INSN_DELETED_LABEL immediately.
5060         (ix86_init_pic_reg): Revert 2017-09-01 changes.
5062 2017-09-18  Eric Botcazou  <ebotcazou@adacore.com>
5064         PR target/81361
5065         * dwarf2cfi.c (add_cfis_to_fde): Do not generate DW_CFA_set_loc after
5066         switching to a new text section.
5068 2017-09-18  Richard Biener  <rguenther@suse.de>
5070         * graphite-scop-detection.c (scop_detection::stmt_has_simple_data_ref):
5071         Simplify.
5072         (build_alias_set): Reject aliases with no access function.
5074 2017-09-18  Richard Biener  <rguenther@suse.de>
5076         PR tree-optimization/79622
5077         * graphite-scop-detection.c (build_cross_bb_scalars_def): Properly
5078         handle PHIs.
5079         (build_cross_bb_scalars_use): Likewise.
5081 2017-09-18  Pierre-Marie de Rodat  <derodat@adacore.com>
5083         * cgraph.h (cgraph_thunk_info): Fix a typo in a comment.
5085 2017-09-18  Alan Modra  <amodra@gmail.com>
5087         PR target/81996
5088         * gcc/config/rs6000/rs6000.c (rs6000_return_addr): Use
5089         stack_pointer_rtx for count 0.  Update comments.  Break up
5090         large rtl expression.
5092 2017-09-17  Daniel Santos  <daniel.santos@pobox.com>
5094         * config/i386/i386.c (xlogue_layout::STUB_NAME_MAX_LEN):
5095         Increase to 20 bytes.
5096         (xlogue_layout::s_stub_names): Add an additional size-2 diminsion.
5097         (xlogue_layout::get_stub_name): Modify to select the appropairate sse
5098         or avx version of the stub.
5100 2017-09-17  H.J. Lu  <hongjiu.lu@intel.com>
5102         PR target/82166
5103         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Properly
5104         compute the minimum stack alignment.  Also update preferred stack
5105         boundary for leaf functions.
5107 2017-09-16  Richard Sandiford  <richard.sandiford@linaro.org>
5109         PR tree-optimization/82228
5110         * tree-vect-loop.c (vectorizable_live_operation): Move initialization
5111         of ncopies.
5113 2017-09-16  Chung-Ju Wu  <jasonwucj@gmail.com>
5115         * common/config/nds32/nds32-common.c
5116         (nds32_option_optimization_table): Refine formatting.
5117         (nds32_option_optimization_table): Use -fsched-pressure and
5118         -fomit-frame-pointer for specific optimization level.
5120 2017-09-16  Chung-Ju Wu  <jasonwucj@gmail.com>
5122         * config/nds32/nds32.c: Refine formatting and comments.
5123         * config/nds32/nds32.h: Likewise.
5124         * config/nds32/nds32.md: Likewise.
5125         * config/nds32/nds32-cost.c: Likewise.
5126         * config/nds32/nds32-isr.c: Likewise.
5127         * config/nds32/nds32-md-auxiliary.c: Likewise.
5128         * config/nds32/nds32-multiple.md: Likewise.
5129         * config/nds32/nds32-predicates.c: Likewise.
5131 2017-09-15  Andrew Sutton  <andrew.n.sutton@gmail.com>
5132             Jakub Jelinek  <jakub@redhat.com>
5134         Add support for -std=c++2a.
5135         * doc/cpp.texi (__cplusplus): Document value for -std=c++2a
5136         or -std=gnu+2a.
5137         * doc/invoke.texi: Document -std=c++2a and -std=gnu++2a.
5139 2017-09-15  Steve Ellcey  <sellcey@cavium.com>
5141         PR target/82066
5142         * doc/extend.texi (Common Function Attributes): Add 
5143         references to ARM, AArch64, and S/390 specific attributes.
5144         (Function Specific Option Pragmas): Add AArch64 and S/390
5145         to list of back ends that support the target pragma.
5147 2017-09-15  Nathan Sidwell  <nathan@acm.org>
5149         * doc/standards.texi: Fix C++17 description.  Update URLs for
5150         C++11 & 14.
5152 2017-09-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5154         * common.opt (Wcast-align=strict): New warning option.
5155         * doc/invoke.texi: Document -Wcast-align=strict. 
5157 2017-09-15  Pierre-Marie de Rodat  <derodat@adacore.com>
5159         * cgraph.h (cgraph_thunk_info): Add comments.
5160         * cgraph.c (cgraph_node::create_thunk): Adjust comment, make
5161         assert for VIRTUAL_* arguments stricter.
5163 2017-09-15  Jackson Woodruff  <jackson.woodruff@arm.com>
5165         PR tree-optimization/71026
5166         * match.pd: Move RDIV patterns from fold-const.c
5167         * fold-const.c (distribute_real_division): Removed.
5168         (fold_binary_loc): Remove calls to distribute_real_divison.
5170 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
5172         * doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
5173         c++1z and gnu++1z as deprecated.  Change other references to
5174         -std=c++1z to -std=c++17 and -std=gnu++1z to -std=gnu++17.
5175         Change -Wc++1z-compat to -Wc++17-compat.
5176         * doc/cpp.texi: Document -std=c++17 defines __cplusplus 201703L.
5177         * dwarf2out.c (highest_c_language): Handle C++17.
5178         (gen_compile_unit_die): Likewise.
5180 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
5182         PR rtl-optimization/82192
5183         * combine.c (make_extraction): Don't look through non-paradoxical
5184         SUBREGs or TRUNCATE if pos + len is or might be bigger than
5185         inner's mode.
5187 2017-09-15  Richard Sandiford  <richard.sandiford@linaro.org>
5188             Alan Hayward  <alan.hayward@arm.com>
5189             David Sherwood  <david.sherwood@arm.com>
5191         * target.def (function_arg_offset): New hook.
5192         * targhooks.h (default_function_arg_offset): Declare.
5193         * targhooks.c (default_function_arg_offset): New function.
5194         * function.c (locate_and_pad_parm): Use
5195         targetm.calls.function_arg_offset instead of FUNCTION_ARG_OFFSET.
5196         * doc/tm.texi.in (FUNCTION_ARG_OFFSET): Replace with...
5197         (TARGET_FUNCTION_ARG_OFFSET): ...this.
5198         * doc/tm.texi: Regenerate.
5199         * config/spu/spu.h (FUNCTION_ARG_OFFSET): Delete.
5200         * config/spu/spu.c (spu_function_arg_offset): New function.
5201         (TARGET_FUNCTION_ARG_OFFSET): Redefine.
5202         * system.h (FUNCTION_ARG_OFFSET): Poison.
5204 2017-09-15  Richard Sandiford  <richard.sandiford@linaro.org>
5205             Alan Hayard  <alan.hayward@arm.com>
5206             David Sherwood  <david.sherwood@arm.com>
5208         * target.def (truly_noop_truncation): New hook.
5209         (mode_rep_extended): Refer to TARGET_TRULY_NOOP_TRUNCATION rather
5210         than TRULY_NOOP_TRUNCATION.
5211         * hooks.h (hook_bool_uint_uint_true): Declare.
5212         * hooks.c (hook_bool_uint_uint_true): New function.
5213         * doc/tm.texi.in (TRULY_NOOP_TRUNCATION): Replace with...
5214         (TARGET_TRULY_NOOP_TRUNCATION): ...this.
5215         * doc/tm.texi: Regenerate.
5216         * combine.c (make_extraction): Refer to TARGET_TRULY_NOOP_TRUNCATION
5217         rather than TRULY_NOOP_TRUNCATION in comments.
5218         (simplify_comparison): Likewise.
5219         (record_truncated_value): Likewise.
5220         * expmed.c (extract_bit_field_1): Likewise.
5221         (extract_split_bit_field): Likewise.
5222         * convert.c (convert_to_integer_1): Use targetm.truly_noop_truncation
5223         instead of TRULY_NOOP_TRUNCATION.
5224         * function.c (assign_parm_setup_block): Likewise.
5225         * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): Likewise.
5226         * rtlhooks.c: Include target.h.
5227         * config/aarch64/aarch64.h (TRULY_NOOP_TRUNCATION): Delete.
5228         * config/alpha/alpha.h (TRULY_NOOP_TRUNCATION): Delete.
5229         * config/arc/arc.h (TRULY_NOOP_TRUNCATION): Delete.
5230         * config/arm/arm.h (TRULY_NOOP_TRUNCATION): Delete.
5231         * config/avr/avr.h (TRULY_NOOP_TRUNCATION): Delete.
5232         * config/bfin/bfin.h (TRULY_NOOP_TRUNCATION): Delete.
5233         * config/c6x/c6x.h (TRULY_NOOP_TRUNCATION): Delete.
5234         * config/cr16/cr16.h (TRULY_NOOP_TRUNCATION): Delete.
5235         * config/cris/cris.h (TRULY_NOOP_TRUNCATION): Delete.
5236         * config/epiphany/epiphany.h (TRULY_NOOP_TRUNCATION): Delete.
5237         * config/fr30/fr30.h (TRULY_NOOP_TRUNCATION): Delete.
5238         * config/frv/frv.h (TRULY_NOOP_TRUNCATION): Delete.
5239         * config/ft32/ft32.h (TRULY_NOOP_TRUNCATION): Delete.
5240         * config/h8300/h8300.h (TRULY_NOOP_TRUNCATION): Delete.
5241         * config/i386/i386.h (TRULY_NOOP_TRUNCATION): Delete.
5242         * config/ia64/ia64.h (TRULY_NOOP_TRUNCATION): Delete.
5243         * config/iq2000/iq2000.h (TRULY_NOOP_TRUNCATION): Delete.
5244         * config/lm32/lm32.h (TRULY_NOOP_TRUNCATION): Delete.
5245         * config/m32c/m32c.h (TRULY_NOOP_TRUNCATION): Delete.
5246         * config/m32r/m32r.h (TRULY_NOOP_TRUNCATION): Delete.
5247         * config/m68k/m68k.h (TRULY_NOOP_TRUNCATION): Delete.
5248         * config/mcore/mcore.h (TRULY_NOOP_TRUNCATION): Delete.
5249         * config/microblaze/microblaze.h (TRULY_NOOP_TRUNCATION): Delete.
5250         * config/mips/mips.h (TRULY_NOOP_TRUNCATION): Delete.
5251         * config/mips/mips.c (mips_truly_noop_truncation): New function.
5252         (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
5253         * config/mips/mips.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
5254         rather than TRULY_NOOP_TRUNCATION in comments.
5255         * config/mmix/mmix.h (TRULY_NOOP_TRUNCATION): Delete.
5256         * config/mn10300/mn10300.h (TRULY_NOOP_TRUNCATION): Delete.
5257         * config/moxie/moxie.h (TRULY_NOOP_TRUNCATION): Delete.
5258         * config/msp430/msp430.h (TRULY_NOOP_TRUNCATION): Delete.
5259         * config/nds32/nds32.h (TRULY_NOOP_TRUNCATION): Delete.
5260         * config/nios2/nios2.h (TRULY_NOOP_TRUNCATION): Delete.
5261         * config/nvptx/nvptx.h (TRULY_NOOP_TRUNCATION): Delete.
5262         * config/pa/pa.h (TRULY_NOOP_TRUNCATION): Delete.
5263         * config/pdp11/pdp11.h (TRULY_NOOP_TRUNCATION): Delete.
5264         * config/powerpcspe/powerpcspe.h (TRULY_NOOP_TRUNCATION): Delete.
5265         * config/riscv/riscv.h (TRULY_NOOP_TRUNCATION): Delete.
5266         * config/riscv/riscv.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
5267         rather than TRULY_NOOP_TRUNCATION in comments.
5268         * config/rl78/rl78.h (TRULY_NOOP_TRUNCATION): Delete.
5269         * config/rs6000/rs6000.h (TRULY_NOOP_TRUNCATION): Delete.
5270         * config/rx/rx.h (TRULY_NOOP_TRUNCATION): Delete.
5271         * config/s390/s390.h (TRULY_NOOP_TRUNCATION): Delete.
5272         * config/sh/sh.h (MAYBE_BASE_REGISTER_RTX_P): Remove
5273         TRULY_NOOP_TRUNCATION condition.
5274         (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
5275         (TRULY_NOOP_TRUNCATION): Delete.
5276         * config/sparc/sparc.h (TRULY_NOOP_TRUNCATION): Delete.
5277         * config/spu/spu.h (TRULY_NOOP_TRUNCATION): Delete.
5278         * config/spu/spu.c (spu_truly_noop_truncation): New function.
5279         (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
5280         * config/stormy16/stormy16.h (TRULY_NOOP_TRUNCATION): Delete.
5281         * config/tilegx/tilegx.h (TRULY_NOOP_TRUNCATION): Delete.
5282         * config/tilegx/tilegx.c (tilegx_truly_noop_truncation): New fuction.
5283         (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
5284         * config/tilegx/tilegx.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
5285         rather than TRULY_NOOP_TRUNCATION in comments.
5286         * config/tilepro/tilepro.h (TRULY_NOOP_TRUNCATION): Delete.
5287         * config/v850/v850.h (TRULY_NOOP_TRUNCATION): Delete.
5288         * config/vax/vax.h (TRULY_NOOP_TRUNCATION): Delete.
5289         * config/visium/visium.h (TRULY_NOOP_TRUNCATION): Delete.
5290         * config/xtensa/xtensa.h (TRULY_NOOP_TRUNCATION): Delete.
5291         * system.h (TRULY_NOOP_TRUNCATION): Poison.
5293 2017-09-15  Christophe Lyon  <christophe.lyon@linaro.org>
5295         PR target/67591
5296         * config/arm/arm.md (*cmp_and): Add enabled_for_depr_it attribute.
5297         (*cmp_ior): Likewise.
5298         (*ior_scc_scc): Add alternative for enabled_for_depr_it attribute.
5299         (*ior_scc_scc_cmp): Likewise.
5300         (*and_scc_scc): Likewise.
5301         (*and_scc_scc_cmp): Likewise.
5303 2017-09-15  Richard Sandiford  <richard.sandiford@linaro.org>
5304             Alan Hayard  <alan.hayward@arm.com>
5305             David Sherwood  <david.sherwood@arm.com>
5307         * target.def (can_change_mode_class): New hook.
5308         (mode_rep_extended): Refer to it instead of CANNOT_CHANGE_MODE_CLASS.
5309         (hard_regno_nregs): Likewise.
5310         * hooks.h (hook_bool_mode_mode_reg_class_t_true): Declare.
5311         * hooks.c (hook_bool_mode_mode_reg_class_t_true): New function.
5312         * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Replace with...
5313         (TARGET_CAN_CHANGE_MODE_CLASS): ...this.
5314         (LOAD_EXTEND_OP): Update accordingly.
5315         * doc/tm.texi: Regenerate.
5316         * doc/rtl.texi: Refer to TARGET_CAN_CHANGE_MODE_CLASS instead of
5317         CANNOT_CHANGE_MODE_CLASS.
5318         * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Replace with...
5319         (REG_CAN_CHANGE_MODE_P): ...this new macro.
5320         * combine.c (simplify_set): Update accordingly.
5321         * emit-rtl.c (validate_subreg): Likewise.
5322         * recog.c (general_operand): Likewise.
5323         * regcprop.c (mode_change_ok): Likewise.
5324         * reload1.c (choose_reload_regs): Likewise.
5325         (inherit_piecemeal_p): Likewise.
5326         * rtlanal.c (simplify_subreg_regno): Likewise.
5327         * postreload.c (reload_cse_simplify_set): Use REG_CAN_CHANGE_MODE_P
5328         instead of CANNOT_CHANGE_MODE_CLASS.
5329         (reload_cse_simplify_operands): Likewise.
5330         * reload.c (push_reload): Use targetm.can_change_mode_class
5331         instead of CANNOT_CHANGE_MODE_CLASS.
5332         (push_reload): Likewise.  Also use REG_CAN_CHANGE_MODE_P instead of
5333         REG_CANNOT_CHANGE_MODE_P.
5334         * config/alpha/alpha.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5335         * config/alpha/alpha.c (alpha_can_change_mode_class): New function.
5336         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5337         * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5338         * config/arm/arm.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5339         (arm_can_change_mode_class): New function.
5340         * config/arm/neon.md: Refer to TARGET_CAN_CHANGE_MODE_CLASS rather
5341         than CANNOT_CHANGE_MODE_CLASS in comments.
5342         * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5343         * config/i386/i386-protos.h (ix86_cannot_change_mode_class): Delete.
5344         * config/i386/i386.c (ix86_cannot_change_mode_class): Replace with...
5345         (ix86_can_change_mode_class): ...this new function, inverting the
5346         sense of the return value.
5347         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5348         * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5349         * config/ia64/ia64.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5350         (ia64_can_change_mode_class): New function.
5351         * config/m32c/m32c.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5352         * config/m32c/m32c-protos.h (m32c_cannot_change_mode_class): Delete.
5353         * config/m32c/m32c.c (m32c_cannot_change_mode_class): Replace with...
5354         (m32c_can_change_mode_class): ...this new function, inverting the
5355         sense of the return value.
5356         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5357         * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5358         * config/mips/mips-protos.h (mips_cannot_change_mode_class): Delete.
5359         * config/mips/mips.c (mips_cannot_change_mode_class): Replace with...
5360         (mips_can_change_mode_class): ...this new function, inverting the
5361         sense of the return value.
5362         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5363         * config/msp430/msp430.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5364         * config/msp430/msp430.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5365         (msp430_can_change_mode_class): New function.
5366         * config/nvptx/nvptx.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5367         * config/nvptx/nvptx.c (nvptx_can_change_mode_class): New function.
5368         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5369         * config/pa/pa32-regs.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5370         * config/pa/pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5371         * config/pa/pa-protos.h (pa_cannot_change_mode_class): Delete.
5372         * config/pa/pa.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5373         (pa_cannot_change_mode_class): Replace with...
5374         (pa_can_change_mode_class): ...this new function, inverting the
5375         sense of the return value.
5376         (pa_modes_tieable_p): Refer to TARGET_CAN_CHANGE_MODE_CLASS rather
5377         than CANNOT_CHANGE_MODE_CLASS in comments.
5378         * config/pdp11/pdp11.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5379         * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class): Delete.
5380         * config/pdp11/pdp11.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5381         (pdp11_cannot_change_mode_class): Replace with...
5382         (pdp11_can_change_mode_class): ...this new function, inverting the
5383         sense of the return value.
5384         * config/powerpcspe/powerpcspe.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5385         * config/powerpcspe/powerpcspe-protos.h
5386         (rs6000_cannot_change_mode_class_ptr): Delete.
5387         * config/powerpcspe/powerpcspe.c
5388         (rs6000_cannot_change_mode_class_ptr): Delete.
5389         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5390         (rs6000_option_override_internal): Assign to
5391         targetm.can_change_mode_class instead of
5392         rs6000_cannot_change_mode_class_ptr.
5393         (rs6000_cannot_change_mode_class): Replace with...
5394         (rs6000_can_change_mode_class): ...this new function, inverting the
5395         sense of the return value.
5396         (rs6000_debug_cannot_change_mode_class): Replace with...
5397         (rs6000_debug_can_change_mode_class): ...this new function.
5398         * config/riscv/riscv.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5399         * config/riscv/riscv.c (riscv_can_change_mode_class): New function.
5400         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5401         * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5402         * config/rs6000/rs6000-protos.h (rs6000_cannot_change_mode_class_ptr):
5403         Delete.
5404         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class_ptr): Delete.
5405         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5406         (rs6000_option_override_internal): Assign to
5407         targetm.can_change_mode_class instead of
5408         rs6000_cannot_change_mode_class_ptr.
5409         (rs6000_cannot_change_mode_class): Replace with...
5410         (rs6000_can_change_mode_class): ...this new function, inverting the
5411         sense of the return value.
5412         (rs6000_debug_cannot_change_mode_class): Replace with...
5413         (rs6000_debug_can_change_mode_class): ...this new function.
5414         * config/s390/s390.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5415         * config/s390/s390-protos.h (s390_cannot_change_mode_class): Delete.
5416         * config/s390/s390.c (s390_cannot_change_mode_class): Replace with...
5417         (s390_can_change_mode_class): ...this new function, inverting the
5418         sense of the return value.
5419         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5420         * config/sh/sh.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5421         * config/sh/sh-protos.h (sh_cannot_change_mode_class): Delete.
5422         * config/sh/sh.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5423         (sh_cannot_change_mode_class): Replace with...
5424         (sh_can_change_mode_class): ...this new function, inverting the
5425         sense of the return value.
5426         * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5427         * config/sparc/sparc.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5428         (sparc_can_change_mode_class): New function.
5429         * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5430         * config/spu/spu.c (spu_can_change_mode_class): New function.
5431         (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5432         * config/visium/visium.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5433         * config/visium/visium.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5434         (visium_can_change_mode_class): New function.
5435         * system.h (CANNOT_CHANGE_MODE_CLASS): Poison.
5437 2017-09-15  Richard Biener  <rguenther@suse.de>
5439         PR tree-optimization/82217
5440         * tree-ssa-sccvn.c (visit_phi): Properly handle all VN_TOP
5441         but not undefined case.
5443 2017-09-15  Jakub Jelinek  <jakub@redhat.com>
5445         PR target/82145
5446         * postreload.c (reload_cse_simplify_operands): Skip
5447         NOTE_INSN_DELETED_LABEL similarly to skipping CODE_LABEL.
5449 2017-09-15  Richard Biener  <rguenther@suse.de>
5451         PR tree-optimization/68823
5452         * graphite-scop-detection.c (build_alias_set): If we have a
5453         possible dependence check whether we can handle them by just
5454         looking at the DRs DR_ACCESS_FNs.
5455         (build_scops): If build_alias_set fails, fail the SCOP.
5457 2017-09-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
5459         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_1_HW): New macros
5460         to support float128 built-in functions that require the ISA 3.0
5461         hardware.
5462         (BU_FLOAT128_3_HW): Likewise.
5463         (SQRTF128): Add support for the IEEE 128-bit square root and fma
5464         built-in functions.
5465         (FMAF128): Likewise.
5466         (FMAQ): Likewise.
5467         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
5468         support for built-in functions that need the ISA 3.0 IEEE 128-bit
5469         floating point instructions.
5470         (rs6000_invalid_builtin): Likewise.
5471         (rs6000_builtin_mask_names): Likewise.
5472         * config/rs6000/rs6000.h (MASK_FLOAT128_HW): Likewise.
5473         (RS6000_BTM_FLOAT128_HW): Likewise.
5474         (RS6000_BTM_COMMON): Likewise.
5475         * config/rs6000/rs6000.md (fma<mode>4_hw): Add a generator
5476         function.
5477         * doc/extend.texi (RS/6000 built-in functions): Document the
5478         IEEE 128-bit floating point square root and fused multiply-add
5479         built-in functions.
5481 2017-09-14  Pat Haugen  <pthaugen@us.ibm.com>
5483         * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): Make sure the TOC
5484         reg (r2) isn't in the set of registers defined in the prologue.
5486 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5487             Alan Hayward  <alan.hayward@arm.com>
5488             David Sherwood  <david.sherwood@arm.com>
5490         * tree-vectorizer.h (_loop_vec_info): Add max_vectorization_factor.
5491         (LOOP_VINFO_MAX_VECT_FACTOR): New macro.
5492         (LOOP_VINFO_ORIG_VECT_FACTOR): Replace with...
5493         (LOOP_VINFO_ORIG_MAX_VECT_FACTOR): ...this new macro.
5494         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Update
5495         accordingly.
5496         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5497         max_vectorization_factor.
5498         (vect_analyze_loop_2): Set LOOP_VINFO_MAX_VECT_FACTOR.
5500 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5501             Alan Hayward  <alan.hayward@arm.com>
5502             David Sherwood  <david.sherwood@arm.com>
5504         * tree-vectorizer.h (vect_min_worthwhile_factor): Delete.
5505         (vect_worthwhile_without_simd_p): Declare.
5506         * tree-vect-loop.c (vect_worthwhile_without_simd_p): New function.
5507         (vectorizable_reduction): Use it.
5508         * tree-vect-stmts.c (vectorizable_shift): Likewise.
5509         (vectorizable_operation): Likewise.
5511 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5512             Alan Hayward  <alan.hayward@arm.com>
5513             David Sherwood  <david.sherwood@arm.com>
5515         * tree-vectorizer.h (vect_get_num_copies): New function.
5516         * tree-vect-data-refs.c (vect_get_data_access_cost): Use it.
5517         * tree-vect-loop.c (vectorizable_reduction): Likewise.
5518         (vectorizable_induction): Likewise.
5519         (vectorizable_live_operation): Likewise.
5520         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
5521         (vectorizable_bswap): Likewise.
5522         (vectorizable_call): Likewise.
5523         (vectorizable_conversion): Likewise.
5524         (vectorizable_assignment): Likewise.
5525         (vectorizable_shift): Likewise.
5526         (vectorizable_operation): Likewise.
5527         (vectorizable_store): Likewise.
5528         (vectorizable_load): Likewise.
5529         (vectorizable_condition): Likewise.
5530         (vectorizable_comparison): Likewise.
5531         (vect_analyze_stmt): Pass the slp node to vectorizable_live_operation.
5533 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5534             Alan Hayward  <alan.hayward@arm.com>
5535             David Sherwood  <david.sherwood@arm.com>
5537         * tree-vect-loop.c (vectorizable_induction): Use gimple_build instead
5538         of vect_init_vector.
5540 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5541             Alan Hayward  <alan.hayward@arm.com>
5542             David Sherwood  <david.sherwood@arm.com>
5544         * gimple-fold.h (gimple_build_vector_from_val): Declare, and provide
5545         an inline wrapper that provides a location.
5546         (gimple_build_vector): Likewise.
5547         * gimple-fold.c (gimple_build_vector_from_val): New function.
5548         (gimple_build_vector): Likewise.
5549         * tree-vect-loop.c (get_initial_def_for_reduction): Use the new
5550         functions to build the initial value.  Always return a gimple value.
5551         (get_initial_defs_for_reduction): Likewise.  Only compute
5552         neutral_vec once.
5553         (vect_create_epilog_for_reduction): Don't call force_gimple_operand or
5554         vect_init_vector on the results from get_initial_def(s)_for_reduction.
5555         (vectorizable_induction): Use gimple_build_vector rather than
5556         vect_init_vector.
5558 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5559             Alan Hayward  <alan.hayward@arm.com>
5560             David Sherwood  <david.sherwood@arm.com>
5562         * target.h (vec_perm_indices): New typedef.
5563         (auto_vec_perm_indices): Likewise.
5564         * optabs-query.h: Include target.h
5565         (can_vec_perm_p): Take a vec_perm_indices *.
5566         * optabs-query.c (can_vec_perm_p): Likewise.
5567         (can_mult_highpart_p): Update accordingly.  Use auto_vec_perm_indices.
5568         * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
5569         * tree-vect-generic.c (lower_vec_perm): Likewise.
5570         * tree-vect-data-refs.c (vect_grouped_store_supported): Likewise.
5571         (vect_grouped_load_supported): Likewise.
5572         (vect_shift_permute_load_chain): Likewise.
5573         (vect_permute_store_chain): Use auto_vec_perm_indices.
5574         (vect_permute_load_chain): Likewise.
5575         * fold-const.c (fold_vec_perm): Take vec_perm_indices.
5576         (fold_ternary_loc): Update accordingly.  Use auto_vec_perm_indices.
5577         Update uses of can_vec_perm_p.
5578         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Replace the
5579         mode with a number of elements.  Take a vec_perm_indices *.
5580         (vect_create_epilog_for_reduction): Update accordingly.
5581         Use auto_vec_perm_indices.
5582         (have_whole_vector_shift): Likewise.  Update call to can_vec_perm_p.
5583         * tree-vect-slp.c (vect_build_slp_tree_1): Likewise.
5584         (vect_transform_slp_perm_load): Likewise.
5585         (vect_schedule_slp_instance): Use auto_vec_perm_indices.
5586         * tree-vectorizer.h (vect_gen_perm_mask_any): Take a vec_perm_indices.
5587         (vect_gen_perm_mask_checked): Likewise.
5588         * tree-vect-stmts.c (vect_gen_perm_mask_any): Take a vec_perm_indices.
5589         (vect_gen_perm_mask_checked): Likewise.
5590         (vectorizable_mask_load_store): Use auto_vec_perm_indices.
5591         (vectorizable_store): Likewise.
5592         (vectorizable_load): Likewise.
5593         (perm_mask_for_reverse): Likewise.  Update call to can_vec_perm_p.
5594         (vectorizable_bswap): Likewise.
5596 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5597             Alan Hayward  <alan.hayward@arm.com>
5598             David Sherwood  <david.sherwood@arm.com>
5600         * tree.h (build_vector): Take a vec<tree> instead of a tree *.
5601         * tree.c (build_vector): Likewise.
5602         (build_vector_from_ctor): Update accordingly.
5603         (build_vector_from_val): Likewise.
5604         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5605         * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
5606         * tree-vect-generic.c (add_rshift): Likewise.
5607         (expand_vector_divmod): Likewise.
5608         (optimize_vector_constructor): Likewise.
5609         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5610         (vect_transform_slp_perm_load): Likewise.
5611         (vect_schedule_slp_instance): Likewise.
5612         * tree-vect-stmts.c (vectorizable_bswap): Likewise.
5613         (vectorizable_call): Likewise.
5614         (vect_gen_perm_mask_any): Likewise.  Add elements in order.
5615         * expmed.c (make_tree): Likewise.
5616         * fold-const.c (fold_negate_expr_1): Use auto_vec<tree> when building
5617         a vector passed to build_vector.
5618         (fold_convert_const): Likewise.
5619         (exact_inverse): Likewise.
5620         (fold_ternary_loc): Likewise.
5621         (fold_relational_const): Likewise.
5622         (const_binop): Likewise.  Use VECTOR_CST_ELT directly when operating
5623         on VECTOR_CSTs, rather than going through vec_cst_ctor_to_array.
5624         (const_unop): Likewise.  Store the reduction accumulator in a
5625         variable rather than an array.
5626         (vec_cst_ctor_to_array): Take the number of elements as a parameter.
5627         (fold_vec_perm): Update calls accordingly.  Use auto_vec<tree> for
5628         the new vector, rather than constructing it after the input arrays.
5629         (native_interpret_vector): Use auto_vec<tree> when building
5630         a vector passed to build_vector.  Add elements in order.
5631         * tree-vect-loop.c (get_initial_defs_for_reduction): Use
5632         auto_vec<tree> when building a vector passed to build_vector.
5633         (vect_create_epilog_for_reduction): Likewise.
5634         (vectorizable_induction): Likewise.
5635         (get_initial_def_for_reduction): Likewise.  Fix indentation of
5636         case statements.
5637         * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Change n_elts
5638         to a vec<tree> *.
5639         (sparc_fold_builtin): Use auto_vec<tree> when building a vector
5640         passed to build_vector.
5642 2017-09-14  Richard Sandiford  <richard.sandiford@linaro.org>
5643             Alan Hayward  <alan.hayward@arm.com>
5644             David Sherwood  <david.sherwood@arm.com>
5646         * tree-core.h (tree_base::u): Add an "nelts" field.
5647         (tree_vector): Use VECTOR_CST_NELTS as the length.
5648         * tree.c (tree_size): Likewise.
5649         (make_vector): Initialize VECTOR_CST_NELTS.
5650         * tree.h (VECTOR_CST_NELTS): Use the u.nelts field.
5651         * cfgexpand.c (expand_debug_expr): Use VECTOR_CST_NELTS instead of
5652         TYPE_VECTOR_SUBPARTS.
5653         * expr.c (const_vector_mask_from_tree): Consistently use "units"
5654         as the number of units, setting it from VECTOR_CST_NELTS.
5655         (const_vector_from_tree): Likewise.
5656         * fold-const.c (negate_expr_p): Use VECTOR_CST_NELTS instead of
5657         TYPE_VECTOR_SUBPARTS for the number of elements in a VECTOR_CST.
5658         (fold_negate_expr_1): Likewise.
5659         (fold_convert_const): Likewise.
5660         (const_binop): Likewise.  Differentiate the number of output and
5661         input elements.
5662         (const_unop): Likewise.
5663         (fold_ternary_loc): Use VECTOR_CST_NELTS for the number of elements
5664         in a VECTOR_CST, asserting that it is the same as TYPE_VECTOR_SUBPARTS
5665         in cases that did the opposite.
5667 2017-09-14  Richard Biener  <rguenther@suse.de>
5669         * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar
5670         to VN_TOP.
5672 2017-09-14  Eric Botcazou  <ebotcazou@adacore.com>
5674         * dwarf2out.c (dwarf2out_source_line): Remove superfluous test.
5676 2017-09-14  Jakub Jelinek  <jakub@redhat.com>
5678         PR target/81325
5679         * cfgbuild.c (find_bb_boundaries): Ignore debug insns in decisions
5680         if and where to split a bb, except for splitting before debug insn
5681         sequences followed by non-label real insn.  Delete debug insns
5682         in between basic blocks.
5684         * combine.c (make_compound_operation_int): Formatting fixes.
5686         * config/alpha/elf.h (LINK_EH_SPEC): Add -static-pie support.
5687         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5688         * config/netbsd.h (LINK_EH_SPEC): Likewise.
5689         * config/sol2.h (LINK_EH_SPEC): Likewise.
5690         * config/arm/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5691         * config/s390/linux.h (LINK_SPEC): Likewise.
5692         * config/freebsd.h (LINK_EH_SPEC): Likewise.
5693         * config/openbsd.h (LINK_EH_SPEC): Likewise.
5694         * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5695         * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Likewise.
5696         * config/powerpcspe/sysv4.h (LINK_EH_SPEC): Likewise.
5697         * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5698         * config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Fix a typo.
5699         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Formatting fix.
5701 2017-09-13  Jakub Jelinek  <jakub@redhat.com>
5703         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Add -static-pie
5704         support.
5705         (ENDFILE_LINUX_SPEC): Likewise.
5706         (LINK_EH_SPEC): Likewise.
5707         * config/rs6000/linux64.h (LINK_SHLIB_SPEC): Likewise.
5708         (LINK_OS_LINUX_SPEC32): Likewise.
5709         (LINK_OS_LINUX_SPEC64): Likewise.
5710         * config/rs6000/linux.h (LINK_SHLIB_SPEC): Likewise.
5711         (LINK_OS_LINUX_SPEC): Likewise.
5713 2017-09-13  Martin Liska  <mliska@suse.cz>
5715         PR middle-end/82154
5716         * stmt.c (expand_sjlj_dispatch_table): Use CASE_LOW when
5717         CASE_HIGH is NULL_TREE.
5719 2017-09-13  Richard Sandiford  <richard.sandiford@linaro.org>
5720             Alan Hayward  <alan.hayward@arm.com>
5721             David Sherwood  <david.sherwood@arm.com>
5723         * target.def (secondary_memory_needed): New hook.
5724         (secondary_reload): Refer to TARGET_SECONDARY_MEMORY_NEEDED
5725         instead of SECONDARY_MEMORY_NEEDED.
5726         (secondary_memory_needed_mode): Likewise.
5727         * hooks.h (hook_bool_mode_reg_class_t_reg_class_t_false): Declare.
5728         * hooks.c (hook_bool_mode_reg_class_t_reg_class_t_false): New function.
5729         * doc/tm.texi.in (SECONDARY_MEMORY_NEEDED): Replace with...
5730         (TARGET_SECONDARY_MEMORY_NEEDED): ...this.
5731         (SECONDARY_MEMORY_NEEDED_RTX): Update reference accordingly.
5732         * doc/tm.texi: Regenerate.
5733         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Delete.
5734         * config/alpha/alpha.c (alpha_secondary_memory_needed): New function.
5735         (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5736         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED): Delete.
5737         * config/i386/i386-protos.h (ix86_secondary_memory_needed): Delete.
5738         * config/i386/i386.c (inline_secondary_memory_needed): Put the
5739         mode argument first and change the reg_class arguments to reg_class_t.
5740         (ix86_secondary_memory_needed): Likewise.  Remove the strict parameter.
5741         Make static.  Update the call to inline_secondary_memory_needed.
5742         (ix86_register_move_cost): Update the call to
5743         inline_secondary_memory_needed.
5744         (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5745         * config/ia64/ia64.h (SECONDARY_MEMORY_NEEDED): Delete commented-out
5746         definition.
5747         * config/ia64/ia64.c (spill_xfmode_rfmode_operand): Refer to
5748         TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
5749         in comment.
5750         * config/mips/mips.h (SECONDARY_MEMORY_NEEDED): Delete.
5751         * config/mips/mips-protos.h (mips_secondary_memory_needed): Delete.
5752         * config/mips/mips.c (mips_secondary_memory_needed): Make static
5753         and match hook interface.  Add comment from mips.h.
5754         (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5755         * config/mmix/mmix.md (truncdfsf2): Refer to
5756         TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
5757         in comment.
5758         * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED): Rename to...
5759         (PA_SECONDARY_MEMORY_NEEDED): ...this, and put the mode argument first.
5760         * config/pa/pa.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5761         (pa_secondary_memory_needed): New function.
5762         * config/pdp11/pdp11.h (SECONDARY_MEMORY_NEEDED): Delete.
5763         * config/pdp11/pdp11-protos.h (pdp11_secondary_memory_needed): Delete.
5764         * config/pdp11/pdp11.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5765         (pdp11_secondary_memory_needed): Make static and match hook interface.
5766         * config/powerpcspe/powerpcspe.h (SECONDARY_MEMORY_NEEDED): Delete.
5767         * config/powerpcspe/powerpcspe-protos.h
5768         (rs6000_secondary_memory_needed_ptr): Delete.
5769         * config/powerpcspe/powerpcspe.c (rs6000_secondary_memory_needed_ptr):
5770         Delete.
5771         (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5772         (rs6000_option_override_internal): Assign to
5773         targetm.secondary_memory_needed rather than
5774         rs6000_secondary_memory_needed_ptr.
5775         (rs6000_secondary_memory_needed): Match hook interface.
5776         (rs6000_debug_secondary_memory_needed): Likewise.
5777         * config/riscv/riscv.h (SECONDARY_MEMORY_NEEDED): Delete.
5778         * config/riscv/riscv.c (riscv_secondary_memory_needed): New function.
5779         (riscv_register_move_cost): Use it instead of SECONDARY_MEMORY_NEEDED.
5780         (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5781         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED): Delete.
5782         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_ptr):
5783         Delete.
5784         * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_ptr): Delete.
5785         (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5786         (rs6000_option_override_internal): Assign to
5787         targetm.secondary_memory_needed rather than
5788         rs6000_secondary_memory_needed_ptr.
5789         (rs6000_secondary_memory_needed): Match hook interface.
5790         (rs6000_debug_secondary_memory_needed): Likewise.
5791         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Delete.
5792         * config/s390/s390.c (s390_secondary_memory_needed): New function.
5793         (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5794         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Delete.
5795         * config/sparc/sparc.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5796         (sparc_secondary_memory_needed): New function.
5797         * lra-constraints.c (check_and_process_move): Refer to
5798         TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
5799         in comment.
5800         (curr_insn_transform): Likewise.
5801         (process_alt_operands): Use targetm.secondary_memory_needed
5802         instead of TARGET_SECONDARY_MEMORY_NEEDED.
5803         (check_secondary_memory_needed_p): Likewise.
5804         (choose_split_class): Likewise.
5805         * reload.c: Unconditionally include code that was previously
5806         conditional on SECONDARY_MEMORY_NEEDED.
5807         (push_secondary_reload): Use targetm.secondary_memory_needed
5808         instead of TARGET_SECONDARY_MEMORY_NEEDED.
5809         (push_reload): Likewise.
5810         * reload1.c: Unconditionally include code that was previously
5811         conditional on SECONDARY_MEMORY_NEEDED.
5812         (choose_reload_regs): Use targetm.secondary_memory_needed
5813         instead of TARGET_SECONDARY_MEMORY_NEEDED.
5814         (gen_reload): Likewise.
5815         * system.h (SECONDARY_MEMORY_NEEDED): Poison.
5817 2017-09-13  Richard Sandiford  <richard.sandiford@linaro.org>
5818             Alan Hayward  <alan.hayward@arm.com>
5819             David Sherwood  <david.sherwood@arm.com>
5821         * target.def (secondary_memory_needed_mode): New hook:
5822         * targhooks.c (default_secondary_memory_needed_mode): Declare.
5823         * targhooks.h (default_secondary_memory_needed_mode): New function.
5824         * doc/tm.texi.in (SECONDARY_MEMORY_NEEDED_MODE): Replace with...
5825         (TARGET_SECONDARY_MEMORY_NEEDED_MODE): ...this.
5826         * doc/tm.texi: Regenerate.
5827         * lra-constraints.c (check_and_process_move): Use
5828         targetm.secondary_memory_needed_mode instead of
5829         TARGET_SECONDARY_MEMORY_NEEDED_MODE.
5830         (curr_insn_transform): Likewise.
5831         * reload.c (get_secondary_mem): Likewise.
5832         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5833         * config/alpha/alpha.c (alpha_secondary_memory_needed_mode): New
5834         function.
5835         (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5836         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5837         * config/i386/i386.c (ix86_secondary_memory_needed_mode): New function.
5838         (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5839         * config/powerpcspe/powerpcspe.h (SECONDARY_MEMORY_NEEDED_MODE):
5840         Delete.
5841         * config/powerpcspe/powerpcspe-protos.h
5842         (rs6000_secondary_memory_needed_mode): Delete.
5843         * config/powerpcspe/powerpcspe.c
5844         (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5845         (rs6000_secondary_memory_needed_mode): Make static.
5846         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5847         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_mode):
5848         Delete.
5849         * config/rs6000/rs6000.c (TARGET_SECONDARY_MEMORY_NEEDED_MODE):
5850         Redefine.
5851         (rs6000_secondary_memory_needed_mode): Make static.
5852         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5853         * config/s390/s390.c (s390_secondary_memory_needed_mode): New function.
5854         (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5855         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5856         * config/sparc/sparc.c (TARGET_SECONDARY_MEMORY_NEEDED_MODE):
5857         Redefine.
5858         (sparc_secondary_memory_needed_mode): New function.
5859         * system.h (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Poison.
5861 2017-09-13  Jackson Woodruff  <jackson.woodruff@arm.com>
5863         * config/aarch64/constraints.md (Umq): New constraint.
5864         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
5865         Change to use Umq.
5866         (mov<mode>): Update condition.
5868 2017-09-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5870         * gimple-ssa-store-merging.c (sort_by_bitpos): Compare store order
5871         when bitposition is the same.
5873 2017-09-13  Richard Biener  <rguenther@suse.de>
5875         * dwarf2out.c (output_die_symbol): Remove.
5876         (output_die): Do not output a DIEs symbol.
5878 2017-09-13  Richard Biener  <rguenther@suse.de>
5880         PR middle-end/82128
5881         * gimple-fold.c (gimple_fold_call): Update SSA name in-place to
5882         default-def to avoid breaking iterator update with the weird
5883         interaction with cgraph_update_edges_for_call_stmt_node.
5885 2017-09-13  Richard Biener  <rguenther@suse.de>
5887         * tree-cfg.c (verify_gimple_assign_binary): Add verification
5888         for WIDEN_SUM_EXPR, VEC_WIDEN_MULT_{HI,LO,EVEN,ODD}_EXPR,
5889         VEC_PACK_{TRUNC,SAT,FIX_TRUNC}_EXPR.
5890         (verify_gimple_assign_ternary): Add verification for DOT_PROD_EXPR.
5892 2017-09-13  Kugan Vivekanandarajah  <kuganv@linaro.org>
5894         * config/aarch64/aarch64.c (aarch64_override_options_after_change_1):
5895         Disable pc relative literal load irrespective of
5896         TARGET_FIX_ERR_A53_84341 for default.
5898 2017-09-12  Eric Botcazou  <ebotcazou@adacore.com>
5900         * config/sparc/sparc.c (output_return): Output the source location of
5901         the insn in the delay slot, if any.
5902         (output_sibcall): Likewise.
5904 2017-09-12  H.J. Lu  <hongjiu.lu@intel.com>
5906         PR driver/81498
5907         * common.opt (-static-pie): New alias.
5908         (shared): Negate static-pie.
5909         (-no-pie): Update help text.
5910         (-pie): Likewise.
5911         (static-pie): New option.
5912         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add
5913         -static-pie support.
5914         (GNU_USER_TARGET_ENDFILE_SPEC): Likewise.
5915         (LINK_EH_SPEC): Likewise.
5916         (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5917         * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
5918         * config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
5919         * gcc.c (LINK_COMMAND_SPEC): Likewise.
5920         (init_gcc_specs): Likewise.
5921         (init_spec): Likewise.
5922         (display_help): Update help message for -pie.
5923         * doc/invoke.texi: Update -pie, -no-pie and -static.  Document
5924         -static-pie.
5926 2017-09-12  Wilco Dijkstra  <wdijkstr@arm.com>
5928         * config/aarch64/aarch64.md (movsi_aarch64): Remove all '*'.
5929         (movdi_aarch64): Likewise.
5930         (movti_aarch64): Likewise.
5932 2017-09-12 Simon Wright <simon@pushface.org>
5934         PR target/80204
5935         * config/darwin-driver.c (darwin_find_version_from_kernel): Eliminate
5936         calculation of the minor version, always output as 0.
5938 2017-09-12  Jakub Jelinek  <jakub@redhat.com>
5940         PR target/82112
5941         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
5942         ALTIVEC_BUILTIN_VEC_LD if arg1 has array type call default_conversion
5943         on it early, rather than manual conversion late.  For
5944         ALTIVEC_BUILTIN_VEC_ST if arg2 has array type call default_conversion
5945         instead of performing manual conversion.
5947 2017-09-12  Carl Love  <cel@us.ibm.com>
5949         * config/rs6000/altivec.md (vec_widen_umult_even_v4si,
5950         vec_widen_smult_even_v4si): Add define expands for vmuleuw, vmulesw,
5951         vmulouw, vmulosw.
5952         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
5953         VMULOSW): Add definitions.
5954         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5955         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
5956         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
5957         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
5958         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
5960 2017-09-12  James Greenhalgh  <james.greenhalgh@arm.com>
5962         * config/aarch64/aarch64.md (movdi_aarch64): Set load/store
5963         types correctly.
5964         (movti_aarch64): Likewise.
5965         (movdf_aarch64): Likewise.
5966         (movtf_aarch64): Likewise.
5967         (load_pairdi): Likewise.
5968         (store_pairdi): Likewise.
5969         (load_pairdf): Likewise.
5970         (store_pairdf): Likewise.
5971         (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
5972         (storewb_pair<GPI:mode>_<P:mode>): Likewise.
5973         (ldr_got_small_<mode>): Likewise.
5974         (ldr_got_small_28k_<mode>): Likewise.
5975         (ldr_got_tiny): Likewise.
5976         * config/aarch64/iterators.md (ldst_sz): New.
5977         (ldpstp_sz): Likewise.
5978         * config/aarch64/thunderx.md (thunderx_storepair): Split store_8
5979         to store_16.
5980         (thunderx_load): Split load_8 to load_16.
5981         * config/aarch64/thunderx2t99.md (thunderx2t99_loadpair): Split
5982         load_8 to load_16.
5983         (thunderx2t99_storepair_basic): Split store_8 to store_16.
5984         * config/arm/xgene1.md (xgene1_load_pair): Split load_8 to load_16.
5985         (xgene1_store_pair): Split store_8 to store_16.
5986         * config/aarch64/falkor.md (falkor_ld_3_ld): Split load_8 to load_16.
5987         (falkor_st_0_st_sd): Split store_8 to store_16.
5989 2017-09-12  James Greenhalgh  <james.greenhalgh@arm.com>
5991         * config/arm/types.md (type): Rename load1/2/3/4 to load_4/8/12/16
5992         and store1/2/3/4 to store_4/8/12/16.
5993         * config/aarch64/aarch64.md: Update for rename.
5994         * config/arm/arm.md: Likewise.: Likewise.
5995         * config/arm/arm.c: Likewise.
5996         * config/arm/thumb1.md: Likewise.
5997         * config/arm/thumb2.md: Likewise.
5998         * config/arm/vfp.md: Likewise.
5999         * config/arm/arm-generic.md: Likewise.
6000         * config/arm/arm1020e.md: Likewise.
6001         * config/arm/arm1026ejs.md: Likewise.
6002         * config/arm/arm1136jfs.md: Likewise.
6003         * config/arm/arm926ejs.md: Likewise.
6004         * config/arm/cortex-a15.md: Likewise.
6005         * config/arm/cortex-a17.md: Likewise.
6006         * config/arm/cortex-a5.md: Likewise.
6007         * config/arm/cortex-a53.md: Likewise.
6008         * config/arm/cortex-a57.md: Likewise.
6009         * config/arm/cortex-a7.md: Likewise.
6010         * config/arm/cortex-a8.md: Likewise.
6011         * config/arm/cortex-a9.md: Likewise.
6012         * config/arm/cortex-m4.md: Likewise.
6013         * config/arm/cortex-m7.md: Likewise.
6014         * config/arm/cortex-r4.md: Likewise.
6015         * config/arm/exynos-m1.md: Likewise.
6016         * config/arm/fa526.md: Likewise.
6017         * config/arm/fa606te.md: Likewise.
6018         * config/arm/fa626te.md: Likewise.
6019         * config/arm/fa726te.md: Likewise.
6020         * config/arm/fmp626.md: Likewise.
6021         * config/arm/iwmmxt.md: Likewise.
6022         * config/arm/ldmstm.md: Likewise.
6023         * config/arm/marvell-pj4.md: Likewise.
6024         * config/arm/xgene1.md: Likewise.
6025         * config/aarch64/thunderx.md: Likewise.
6026         * config/aarch64/thunderx2t99.md: Likewise.
6027         * config/aarch64/falkor.md: Likewise.
6029 2017-09-12  Martin Liska  <mliska@suse.cz>
6031         * attribs.c (private_lookup_attribute): New function.
6032         * attribs.h (private_lookup_attribute): Declared here.
6033         (lookup_attribute): Called from this place.
6035 2017-09-12  Richard Biener  <rguenther@suse.de>
6037         PR tree-optimization/82157
6038         * tree-ssa-pre.c (remove_dead_inserted_code): Do not remove
6039         stmts with side-effects.
6041 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6042             Alan Hayward  <alan.hayward@arm.com>
6043             David Sherwood <david.sherwood@arm.com>
6045         * target.def (hard_regno_nregs): New hook.
6046         (class_max_nregs): Refer to it instead of HARD_REGNO_NREGS.
6047         * targhooks.h (default_hard_regno_nregs): Declare.
6048         * targhooks.c (default_hard_regno_nregs): New function.
6049         * doc/tm.texi.in (HARD_REGNO_NREGS): Replace with...
6050         (TARGET_HARD_REGNO_NREGS): ...this hook.
6051         (HARD_REGNO_NREGS_HAS_PADDING): Update accordingly.
6052         (CLASS_MAX_NREGS): Likewise.
6053         * doc/tm.texi: Regenerate.
6054         * reginfo.c (init_reg_modes_target): Use targetm.hard_regno_nregs
6055         instead of HARD_REGNO_NREGS.
6056         * rtl.h (REG_NREGS): Refer to TARGET_HARD_REGNO_NREGS rather than
6057         HARD_REGNO_NREGS in the comment.
6058         * config/aarch64/aarch64.h (HARD_REGNO_NREGS): Delete.
6059         * config/aarch64/aarch64-protos.h (aarch64_hard_regno_nregs): Delete.
6060         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs): Make static.
6061         Return an unsigned int.
6062         (TARGET_HARD_REGNO_NREGS): Redefine.
6063         * config/alpha/alpha.h (HARD_REGNO_NREGS): Delete.
6064         * config/arc/arc.h (HARD_REGNO_NREGS): Delete.
6065         * config/arc/arc.c (TARGET_HARD_REGNO_NREGS): Redefine.
6066         (arc_hard_regno_nregs): New function.
6067         * config/arm/arm.h (HARD_REGNO_NREGS): Delete.
6068         * config/arm/arm.c (TARGET_HARD_REGNO_NREGS): Redefine.
6069         (arm_hard_regno_nregs): New function.
6070         * config/avr/avr.h (HARD_REGNO_NREGS): Delete.
6071         * config/bfin/bfin.h (HARD_REGNO_NREGS): Delete.
6072         * config/bfin/bfin.c (bfin_hard_regno_nregs): New function.
6073         (TARGET_HARD_REGNO_NREGS): Redefine.
6074         * config/c6x/c6x.h (HARD_REGNO_NREGS): Delete.
6075         * config/cr16/cr16.h (LONG_REG_P): Use targetm.hard_regno_nregs.
6076         (HARD_REGNO_NREGS): Delete.
6077         * config/cr16/cr16.c (TARGET_HARD_REGNO_NREGS): Redefine.
6078         (cr16_hard_regno_nregs): New function.
6079         (cr16_memory_move_cost): Use it instead of HARD_REGNO_NREGS.
6080         * config/cris/cris.h (HARD_REGNO_NREGS): Delete.
6081         * config/cris/cris.c (TARGET_HARD_REGNO_NREGS): Redefine.
6082         (cris_hard_regno_nregs): New function.
6083         * config/epiphany/epiphany.h (HARD_REGNO_NREGS): Delete.
6084         * config/fr30/fr30.h (HARD_REGNO_NREGS): Delete.
6085         (CLASS_MAX_NREGS): Use targetm.hard_regno_nregs.
6086         * config/frv/frv.h (HARD_REGNO_NREGS): Delete.
6087         (CLASS_MAX_NREGS): Remove outdated copy of documentation.
6088         * config/frv/frv-protos.h (frv_hard_regno_nregs): Delete.
6089         * config/frv/frv.c (TARGET_HARD_REGNO_NREGS): Redefine.
6090         (frv_hard_regno_nregs): Make static.  Take and return an
6091         unsigned int.
6092         (frv_class_max_nregs): Remove outdated copy of documentation.
6093         * config/ft32/ft32.h (HARD_REGNO_NREGS): Delete.
6094         * config/h8300/h8300.h (HARD_REGNO_NREGS): Delete.
6095         * config/h8300/h8300-protos.h (h8300_hard_regno_nregs): Delete.
6096         * config/h8300/h8300.c (h8300_hard_regno_nregs): Delete.
6097         * config/i386/i386.h (HARD_REGNO_NREGS): Delete.
6098         * config/i386/i386.c (ix86_hard_regno_nregs): New function.
6099         (TARGET_HARD_REGNO_NREGS): Redefine.
6100         * config/ia64/ia64.h (HARD_REGNO_NREGS): Delete.
6101         (CLASS_MAX_NREGS): Update comment.
6102         * config/ia64/ia64.c (TARGET_HARD_REGNO_NREGS): Redefine.
6103         (ia64_hard_regno_nregs): New function.
6104         * config/iq2000/iq2000.h (HARD_REGNO_NREGS): Delete.
6105         * config/lm32/lm32.h (HARD_REGNO_NREGS): Delete.
6106         * config/m32c/m32c.h (HARD_REGNO_NREGS): Delete.
6107         * config/m32c/m32c-protos.h (m32c_hard_regno_nregs): Delete.
6108         * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Take and return
6109         an unsigned int.
6110         (m32c_hard_regno_nregs): Likewise.  Make static.
6111         (TARGET_HARD_REGNO_NREGS): Redefine.
6112         * config/m32r/m32r.h (HARD_REGNO_NREGS): Delete.
6113         * config/m68k/m68k.h (HARD_REGNO_NREGS): Delete.
6114         * config/m68k/m68k.c (TARGET_HARD_REGNO_NREGS): Redefine.
6115         (m68k_hard_regno_nregs): New function.
6116         * config/mcore/mcore.h (HARD_REGNO_NREGS): Delete.
6117         * config/microblaze/microblaze.h (HARD_REGNO_NREGS): Delete.
6118         * config/mips/mips.h (HARD_REGNO_NREGS): Delete.
6119         * config/mips/mips-protos.h (mips_hard_regno_nregs): Delete.
6120         * config/mips/mips.c (mips_hard_regno_nregs): Make static.
6121         Take and return an unsigned int.
6122         (TARGET_HARD_REGNO_NREGS): Redefine.
6123         * config/mmix/mmix.h (HARD_REGNO_NREGS): Delete.
6124         (CLASS_MAX_NREGS): Use targetm.hard_regno_nregs.
6125         * config/mn10300/mn10300.h (HARD_REGNO_NREGS): Delete.
6126         * config/moxie/moxie.h (HARD_REGNO_NREGS): Delete.
6127         * config/msp430/msp430.h (HARD_REGNO_NREGS): Delete.
6128         * config/msp430/msp430-protos.h (msp430_hard_regno_nregs): Delete.
6129         * config/msp430/msp430.c (TARGET_HARD_REGNO_NREGS): Redefine.
6130         (msp430_hard_regno_nregs): Make static.  Take and return an
6131         unsigned int.
6132         * config/nds32/nds32.h (HARD_REGNO_NREGS): Delete.
6133         * config/nds32/nds32-protos.h (nds32_hard_regno_nregs): Delete.
6134         * config/nds32/nds32.c (nds32_hard_regno_nregs): Delete.
6135         (nds32_hard_regno_mode_ok): Use targetm.hard_regno_nregs.
6136         * config/nios2/nios2.h (HARD_REGNO_NREGS): Delete.
6137         * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Delete.
6138         * config/nvptx/nvptx.c (nvptx_hard_regno_nregs): New function.
6139         (TARGET_HARD_REGNO_NREGS): Redefine.
6140         * config/pa/pa32-regs.h (HARD_REGNO_NREGS): Rename to...
6141         (PA_HARD_REGNO_NREGS): ...this.
6142         * config/pa/pa64-regs.h (HARD_REGNO_NREGS): Rename to...
6143         (PA_HARD_REGNO_NREGS): ...this.
6144         * config/pa/pa.c (TARGET_HARD_REGNO_NREGS): Redefine.
6145         (pa_hard_regno_nregs): New function.
6146         * config/pdp11/pdp11.h (HARD_REGNO_NREGS): Delete.
6147         * config/pdp11/pdp11.c (TARGET_HARD_REGNO_NREGS): Redefine.
6148         (pdp11_hard_regno_nregs): New function.
6149         * config/powerpcspe/powerpcspe.h (HARD_REGNO_NREGS): Delete.
6150         * config/powerpcspe/powerpcspe.c (TARGET_HARD_REGNO_NREGS): Redefine.
6151         (rs6000_hard_regno_nregs_hook): New function.
6152         * config/riscv/riscv.h (HARD_REGNO_NREGS): Delete.
6153         * config/riscv/riscv-protos.h (riscv_hard_regno_nregs): Delete.
6154         * config/riscv/riscv.c (riscv_hard_regno_nregs): Make static.
6155         Take and return an unsigned int.  Move earlier in file.
6156         (TARGET_HARD_REGNO_NREGS): Redefine.
6157         * config/rl78/rl78.h (HARD_REGNO_NREGS): Delete.
6158         * config/rl78/rl78-protos.h (rl78_hard_regno_nregs): Delete.
6159         * config/rl78/rl78.c (TARGET_HARD_REGNO_NREGS): Reefine.
6160         (rl78_hard_regno_nregs): Make static.  Take and return an
6161         unsigned int.
6162         * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Delete.
6163         * config/rs6000/rs6000.c (TARGET_HARD_REGNO_NREGS): Redefine.
6164         (rs6000_hard_regno_nregs_hook): New function.
6165         * config/rx/rx.h (HARD_REGNO_NREGS): Delete.
6166         * config/rx/rx.c (rx_hard_regno_nregs): New function.
6167         (TARGET_HARD_REGNO_NREGS): Redefine.
6168         * config/s390/s390.h (HARD_REGNO_NREGS): Delete.
6169         * config/s390/s390.c (REGNO_PAIR_OK): Use s390_hard_regno_nregs
6170         instead of HARD_REGNO_NREGS.
6171         (s390_hard_regno_nregs): New function.
6172         (s390_hard_regno_mode_ok): Add comment from s390.h.
6173         (TARGET_HARD_REGNO_NREGS): Redefine.
6174         * config/sh/sh.h (HARD_REGNO_NREGS): Delete.
6175         * config/sh/sh.c (TARGET_HARD_REGNO_NREGS): Redefine.
6176         (sh_hard_regno_nregs): New function.
6177         (sh_pass_in_reg_p): Use it.
6178         * config/sparc/sparc.h (HARD_REGNO_NREGS): Delete.
6179         * config/sparc/sparc.c (TARGET_HARD_REGNO_NREGS): Redefine.
6180         (sparc_hard_regno_nregs): New function.
6181         * config/spu/spu.h (HARD_REGNO_NREGS): Delete.
6182         * config/spu/spu.c (spu_hard_regno_nregs): New function.
6183         (spu_function_arg_advance): Use it, supplying a valid register number.
6184         (TARGET_HARD_REGNO_NREGS): Redefine.
6185         * config/stormy16/stormy16.h (HARD_REGNO_NREGS): Delete.
6186         * config/tilegx/tilegx.h (HARD_REGNO_NREGS): Delete.
6187         * config/tilepro/tilepro.h (HARD_REGNO_NREGS): Delete.
6188         * config/v850/v850.h (HARD_REGNO_NREGS): Delete.
6189         * config/vax/vax.h (HARD_REGNO_NREGS): Delete.
6190         * config/visium/visium.h (HARD_REGNO_NREGS): Delete.
6191         (CLASS_MAX_NREGS): Remove copy of old documentation.
6192         * config/visium/visium.c (TARGET_HARD_REGNO_NREGS): Redefine.
6193         (visium_hard_regno_nregs): New function.
6194         (visium_hard_regno_mode_ok): Use it instead of HARD_REGNO_NREGS.
6195         * config/xtensa/xtensa.h (HARD_REGNO_NREGS): Delete.
6196         * config/xtensa/xtensa.c (TARGET_HARD_REGNO_NREGS): Redefine.
6197         xtensa_hard_regno_nregs): New function.
6198         * system.h (HARD_REGNO_NREGS): Poison.
6200 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6202         * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Use
6203         hard_regno_nregs instead of HARD_REGNO_NREGS.
6204         (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6205         * config/c6x/c6x.c (c6x_expand_prologue): Likewise.
6206         (c6x_expand_epilogue): Likewise.
6207         * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6208         (frv_read_iacc_argument): Likewise.
6209         * config/sh/sh.c: Include regs.h.
6210         (sh_print_operand): Use hard_regno_nregs instead of HARD_REGNO_NREGS.
6211         (regs_used): Likewise.
6212         (output_stack_adjust): Likewise.
6213         * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Likewise.
6214         * expmed.c: Include regs.h.
6215         (store_bit_field_1): Use hard_regno_nregs instead of HARD_REGNO_NREGS.
6216         * ree.c: Include regs.h.
6217         (combine_reaching_defs): Use hard_regno_nregs instead of
6218         HARD_REGNO_NREGS.
6219         (add_removable_extension): Likewise.
6221 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6223         * regs.h (hard_regno_nregs): Turn into a function.
6224         (end_hard_regno): Update accordingly.
6225         * caller-save.c (setup_save_areas): Likewise.
6226         (save_call_clobbered_regs): Likewise.
6227         (replace_reg_with_saved_mem): Likewise.
6228         (insert_restore): Likewise.
6229         (insert_save): Likewise.
6230         * combine.c (can_change_dest_mode): Likewise.
6231         (move_deaths): Likewise.
6232         (distribute_notes): Likewise.
6233         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
6234         * config/powerpcspe/powerpcspe.c (rs6000_cannot_change_mode_class)
6235         (rs6000_split_multireg_move): Likewise.
6236         (rs6000_register_move_cost): Likewise.
6237         (rs6000_memory_move_cost): Likewise.
6238         * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Likewise.
6239         (rs6000_split_multireg_move): Likewise.
6240         (rs6000_register_move_cost): Likewise.
6241         (rs6000_memory_move_cost): Likewise.
6242         * cselib.c (cselib_reset_table): Likewise.
6243         (cselib_lookup_1): Likewise.
6244         * emit-rtl.c (set_mode_and_regno): Likewise.
6245         * function.c (aggregate_value_p): Likewise.
6246         * ira-color.c (setup_profitable_hard_regs): Likewise.
6247         (check_hard_reg_p): Likewise.
6248         (calculate_saved_nregs): Likewise.
6249         (assign_hard_reg): Likewise.
6250         (improve_allocation): Likewise.
6251         (calculate_spill_cost): Likewise.
6252         * ira-emit.c (modify_move_list): Likewise.
6253         * ira-int.h (ira_hard_reg_set_intersection_p): Likewise.
6254         (ira_hard_reg_in_set_p): Likewise.
6255         * ira.c (setup_reg_mode_hard_regset): Likewise.
6256         (clarify_prohibited_class_mode_regs): Likewise.
6257         (check_allocation): Likewise.
6258         * lra-assigns.c (find_hard_regno_for_1): Likewise.
6259         (lra_setup_reg_renumber): Likewise.
6260         (setup_try_hard_regno_pseudos): Likewise.
6261         (spill_for): Likewise.
6262         (assign_hard_regno): Likewise.
6263         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
6264         * lra-constraints.c (in_class_p): Likewise.
6265         (lra_constraint_offset): Likewise.
6266         (simplify_operand_subreg): Likewise.
6267         (lra_constraints): Likewise.
6268         (split_reg): Likewise.
6269         (split_if_necessary): Likewise.
6270         (invariant_p): Likewise.
6271         (inherit_in_ebb): Likewise.
6272         * lra-lives.c (process_bb_lives): Likewise.
6273         * lra-remat.c (reg_overlap_for_remat_p): Likewise.
6274         (get_hard_regs): Likewise.
6275         (do_remat): Likewise.
6276         * lra-spills.c (assign_spill_hard_regs): Likewise.
6277         * mode-switching.c (create_pre_exit): Likewise.
6278         * postreload.c (reload_combine_recognize_pattern): Likewise.
6279         * recog.c (peep2_find_free_register): Likewise.
6280         * regcprop.c (kill_value_regno): Likewise.
6281         (set_value_regno): Likewise.
6282         (copy_value): Likewise.
6283         (maybe_mode_change): Likewise.
6284         (find_oldest_value_reg): Likewise.
6285         (copyprop_hardreg_forward_1): Likewise.
6286         * regrename.c (check_new_reg_p): Likewise.
6287         (regrename_do_replace): Likewise.
6288         * reload.c (push_reload): Likewise.
6289         (combine_reloads): Likewise.
6290         (find_dummy_reload): Likewise.
6291         (operands_match_p): Likewise.
6292         (find_reloads): Likewise.
6293         (find_equiv_reg): Likewise.
6294         (reload_adjust_reg_for_mode): Likewise.
6295         * reload1.c (count_pseudo): Likewise.
6296         (count_spilled_pseudo): Likewise.
6297         (find_reg): Likewise.
6298         (clear_reload_reg_in_use): Likewise.
6299         (free_for_value_p): Likewise.
6300         (allocate_reload_reg): Likewise.
6301         (choose_reload_regs): Likewise.
6302         (reload_adjust_reg_for_temp): Likewise.
6303         (emit_reload_insns): Likewise.
6304         (delete_output_reload): Likewise.
6305         * rtlanal.c (subreg_get_info): Likewise.
6306         * sched-deps.c (sched_analyze_reg): Likewise.
6307         * sel-sched.c (init_regs_for_mode): Likewise.
6308         (mark_unavailable_hard_regs): Likewise.
6309         (choose_best_reg_1): Likewise.
6310         (verify_target_availability): Likewise.
6311         * valtrack.c (dead_debug_insert_temp): Likewise.
6312         * var-tracking.c (track_loc_p): Likewise.
6313         (emit_note_insn_var_location): Likewise.
6314         * varasm.c (make_decl_rtl): Likewise.
6315         * reginfo.c (choose_hard_reg_mode): Likewise.
6316         (init_reg_modes_target): Refer directly to
6317         this_target_regs->x_hard_regno_nregs.
6319 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6321         * ira-costs.c (record_operand_costs): Use in_hard_reg_set_p
6322         instead of hard_regno_nregs.
6324 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6326         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Use
6327         end_hard_regno instead of hard_regno_nregs.
6328         * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
6329         * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Likewise.
6330         * config/visium/visium.c (visium_hard_regno_mode_ok): Likewise.
6331         * ira-color.c (improve_allocation): Likewise.
6332         * lra-assigns.c (find_hard_regno_for_1): Likewise.
6333         * lra-lives.c (mark_regno_live): Likewise.
6334         (mark_regno_dead): Likewise.
6335         * lra-remat.c (operand_to_remat): Likewise.
6336         * lra.c (collect_non_operand_hard_regs): Likewise.
6337         * postreload.c (reload_combine_note_store): Likewise.
6338         (move2add_valid_value_p): Likewise.
6339         * reload.c (regno_clobbered_p): Likewise.
6341 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6343         * config/frv/frv.c (FOR_EACH_REGNO): Use END_REGNO instead of
6344         hard_regno_nregs.
6345         * config/v850/v850.c (v850_reorg): Likewise.
6346         * reload.c (refers_to_regno_for_reload_p): Likewise.
6347         (find_equiv_reg): Likewise.
6348         * reload1.c (reload_reg_reaches_end_p): Likewise.
6350 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6352         * caller-save.c (add_used_regs): Use REG_NREGS instead of
6353         hard_regno_nregs.
6354         * config/aarch64/aarch64.c (aarch64_split_combinev16qi): Likewise.
6355         * config/arm/arm.c (output_move_neon): Likewise.
6356         (arm_attr_length_move_neon): Likewise.
6357         (neon_split_vcombine): Likewise.
6358         * config/c6x/c6x.c (c6x_mark_reg_read): Likewise.
6359         (c6x_mark_reg_written): Likewise.
6360         (c6x_dwarf_register_span): Likewise.
6361         * config/i386/i386.c (ix86_save_reg): Likewise.
6362         * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
6363         (rws_access_reg): Likewise.
6364         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6365         * mode-switching.c (create_pre_exit): Likewise.
6366         * ree.c (combine_reaching_defs): Likewise.
6367         (add_removable_extension): Likewise.
6368         * regcprop.c (find_oldest_value_reg): Likewise.
6369         (copyprop_hardreg_forward_1): Likewise.
6370         * reload.c (reload_inner_reg_of_subreg): Likewise.
6371         (push_reload): Likewise.
6372         (combine_reloads): Likewise.
6373         (find_dummy_reload): Likewise.
6374         (reload_adjust_reg_for_mode): Likewise.
6375         * reload1.c (find_reload_regs): Likewise.
6376         (forget_old_reloads_1): Likewise.
6377         (reload_reg_free_for_value_p): Likewise.
6378         (reload_adjust_reg_for_temp): Likewise.
6379         (emit_reload_insns): Likewise.
6380         (delete_output_reload): Likewise.
6381         * sel-sched.c (choose_best_reg_1): Likewise.
6382         (choose_best_pseudo_reg): Likewise.
6384 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6385             Alan Hayward  <alan.hayward@arm.com>
6386             David Sherwood <david.sherwood@arm.com>
6388         * defaults.h (SLOW_UNALIGNED_ACCESS): Delete.
6389         * target.def (slow_unaligned_access): New hook.
6390         * targhooks.h (default_slow_unaligned_access): Declare.
6391         * targhooks.c (default_slow_unaligned_access): New function.
6392         * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Replace with...
6393         (TARGET_SLOW_UNALIGNED_ACCESS): ...this.
6394         * doc/tm.texi: Regenerate.
6395         * config/alpha/alpha.h (SLOW_UNALIGNED_ACCESS): Delete.
6396         * config/arm/arm.h (SLOW_UNALIGNED_ACCESS): Delete.
6397         * config/i386/i386.h (SLOW_UNALIGNED_ACCESS): Delete commented-out
6398         definition.
6399         * config/powerpcspe/powerpcspe.h (SLOW_UNALIGNED_ACCESS): Delete.
6400         * config/powerpcspe/powerpcspe.c (TARGET_SLOW_UNALIGNED_ACCESS):
6401         Redefine.
6402         (rs6000_slow_unaligned_access): New function.
6403         (rs6000_emit_move): Use it instead of SLOW_UNALIGNED_ACCESS.
6404         (expand_block_compare): Likewise.
6405         (expand_strn_compare): Likewise.
6406         (rs6000_rtx_costs): Likewise.
6407         * config/riscv/riscv.h (SLOW_UNALIGNED_ACCESS): Delete.
6408         (riscv_slow_unaligned_access): Likewise.
6409         * config/riscv/riscv.c (riscv_slow_unaligned_access): Rename to...
6410         (riscv_slow_unaligned_access_p): ...this and make static.
6411         (riscv_option_override): Update accordingly.
6412         (riscv_slow_unaligned_access): New function.
6413         (TARGET_SLOW_UNALIGNED_ACCESS): Redefine.
6414         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Delete.
6415         * config/rs6000/rs6000.c (TARGET_SLOW_UNALIGNED_ACCESS): Redefine.
6416         (rs6000_slow_unaligned_access): New function.
6417         (rs6000_emit_move): Use it instead of SLOW_UNALIGNED_ACCESS.
6418         (rs6000_rtx_costs): Likewise.
6419         * config/rs6000/rs6000-string.c (expand_block_compare)
6420         (expand_strn_compare): Use targetm.slow_unaligned_access instead
6421         of SLOW_UNALIGNED_ACCESS.
6422         * config/tilegx/tilegx.h (SLOW_UNALIGNED_ACCESS): Delete.
6423         * config/tilepro/tilepro.h (SLOW_UNALIGNED_ACCESS): Delete.
6424         * calls.c (expand_call): Use targetm.slow_unaligned_access instead
6425         of SLOW_UNALIGNED_ACCESS.
6426         * expmed.c (simple_mem_bitfield_p): Likewise.
6427         * expr.c (alignment_for_piecewise_move): Likewise.
6428         (emit_group_load_1): Likewise.
6429         (emit_group_store): Likewise.
6430         (copy_blkmode_from_reg): Likewise.
6431         (emit_push_insn): Likewise.
6432         (expand_assignment): Likewise.
6433         (store_field): Likewise.
6434         (expand_expr_real_1): Likewise.
6435         * gimple-fold.c (gimple_fold_builtin_memory_op): Likewise.
6436         * lra-constraints.c (simplify_operand_subreg): Likewise.
6437         * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
6438         * gimple-ssa-store-merging.c: Likewise in block comment at start
6439         of file.
6440         * tree-ssa-strlen.c: Include target.h.
6441         (handle_builtin_memcmp): Use targetm.slow_unaligned_access instead
6442         of SLOW_UNALIGNED_ACCESS.
6443         * system.h (SLOW_UNALIGNED_ACCESS): Poison.
6445 2017-09-12  Richard Sandiford  <richard.sandiford@linaro.org>
6447         PR rtl-optimization/82185
6448         * expmed.c (emit_store_flag_int): Only test tem if it has been
6449         initialized.
6451 2017-09-12  Richard Biener  <rguenther@suse.de>
6453         PR middle-end/82149
6454         * match.pd ((FTYPE) N CMP CST): Fix typo.
6456 2017-09-12  Simon Atanasyan  <simon.atanasyan@imgtec.com>
6458         * config/mips/mips.c (mips_attribute_table): Add 'short_call'
6459         attribute.
6460         (mips_near_type_p): Add 'short_call' attribute as a synonym
6461         for 'near'.
6462         * doc/extend.texi (short_call): Document new function attribute.
6464 2017-09-12  Jakub Jelinek  <jakub@redhat.com>
6466         PR target/82112
6467         * c-common.c (sync_resolve_size): Instead of c_dialect_cxx ()
6468         assertion check that in the condition.
6469         (get_atomic_generic_size): Likewise.  Before testing if parameter
6470         has pointer type, if it has array type, call for C++
6471         default_conversion to perform array-to-pointer conversion.
6473 2017-09-12  Richard Biener  <rguenther@suse.de>
6475         * tree-vect-generic.c (expand_vector_operations_1): Do nothing
6476         for operations we cannot scalarize.
6478 2017-09-12  Aldy Hernandez  <aldyh@redhat.com>
6480         * tree-ssa-threadbackward.c (fsm_find_thread_path): Make GC
6481         vectors heap vectors.  Clean up comments.
6482         Make visited_bbs a reference.
6483         (profitable_jump_thread_path): Make GC
6484         vectors heap vectors.  Clean up comments.
6485         Misc cleanups.
6486         (convert_and_register_jump_thread_path): Make GC vectors heap
6487         vectors.
6488         (check_subpath_and_update_thread_path): Same.  Clean up comments.
6489         Make visited_bbs a reference.
6490         (handle_phi): Abstract common code to to
6491         register_jump_thread_path_if_profitable.
6492         Rename VAR_BB to DEF_BB.
6493         Update comments.
6494         Make GC vectors heap vectors.
6495         Make visited_bbs a reference.
6496         (handle_assignment): Same.
6497         (register_jump_thread_path_if_profitable): New.
6498         (fsm_find_control_statement_thread_paths): Rename VAR_BB to
6499         DEF_BB.
6500         Make GC vectors heap vectors.  Clean up comments.
6501         Make visited_bbs a reference.
6502         (find_jump_threads_backwards): Make visited_bbs live in the stack.
6503         * tree-ssa-threadupdate.c (delete_jump_thread_path): Fix typo in
6504         comment.
6506 2017-09-11  Max Filippov  <jcmvbkbc@gmail.com>
6508         PR target/82181
6509         * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both
6510         words of E_DImode object are reachable by xtensa_uimm8x4 access.
6512 2017-09-11  Vidya Praveen  <vidyapraveen@arm.com>
6514         Revert r251800 and r251799.
6516 2017-09-11  Martin Jambor  <mjambor@suse.cz>
6518         PR hsa/82119
6519         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Process ADDR_EXPRs in
6520         arguments in advance.
6521         * hsa-regalloc.c (naive_process_phi): New parameter predecessors,
6522         use it to find predecessor edges.
6523         (naive_outof_ssa): Collect vector of predecessors.
6525 2017-09-08  Jason Merrill  <jason@redhat.com>
6527         PR c++/70029 - ICE with ref-qualifier and -flto
6528         * langhooks.h (struct lang_hooks_for_types): Add
6529         copy_lang_qualifiers.
6530         * attribs.c (build_type_attribute_qual_variant): Use it.
6531         * langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
6532         NULL.
6533         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
6534         * tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
6536 2017-09-08  Eric Botcazou  <ebotcazou@adacore.com>
6538         PR target/81988
6539         * config/sparc/sparc.md (mulsi3): Rename into *mulsi3_sp32.
6540         (*mulsi3_sp64): New instruction.
6541         (mulsi3): New expander.
6543 2017-09-08  Uros Bizjak  <ubizjak@gmail.com>
6545         * config/alpha/alpha.c (alpha_print_operand) <case 'S'>: Remove.
6547 2017-09-08  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
6549         * sancov.c: Include memmodel.h.
6551 2017-09-07  Eric Botcazou  <ebotcazou@adacore.com>
6553         PR target/80897
6554         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Deal with too
6555         large offsets.
6557 2017-09-07  Carl Love  <cel@us.ibm.com>
6559         * config/rs6000/vsx.md (define_insn "*stxvl"): Add missing argument to
6560         the sldi instruction.
6562 2017-09-07  David Edelsohn  <dje.gcc@gmail.com>
6564         * sancov.c: Include tm_p.h.
6566 2017-09-07  Jakub Jelinek  <jakub@redhat.com>
6568         PR target/81979
6569         * output.h (switch_to_other_text_partition): New declaration.
6570         * varasm.c (switch_to_other_text_partition): New function.
6571         * config/rs6000/rs6000.c (uses_TOC): Return 2 if
6572         NOTE_INSN_SWITCH_TEXT_SECTIONS is seen before finding load_toc_* insn.
6573         (rs6000_elf_declare_function_name): If uses_TOC returned 2, switch
6574         to the other text partition before emitting LCL label and switch back
6575         after emitting the word after it.
6577 2017-09-07  Richard Biener  <rguenther@suse.de>
6579         * passes.def (pass_split_crit_edges): Remove instance before PRE.
6580         * tree-ssa-pre.c (pass_pre::execute): Instead manually split
6581         critical edges here, after loop init.
6582         (pass_data_pre): Remove PROP_no_crit_edges flags.
6583         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use vn_valueize
6584         for valueization of call args to avoid leaking VN_TOP.
6585         (visit_use): Assert we do not visit default defs.
6586         (init_scc_vn): Use build_decl for VN_TOP to make name nicer.
6587         Use error_mark_node to more easily detect leaking VN_TOP.
6588         All default-defs are varying, not VN_TOP.  Mark them visited.
6589         (run_scc_vn): Make code match comment.
6591 2017-09-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
6593         * config/rs6000/rs6000-cpus.def (OTHER_VSX_VECTOR_MASKS): Delete
6594         OPTION_MASK_FLOAT128_KEYWORD.
6595         (POWERPC_MASKS): Likewise.
6596         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Delete
6597         support for the -mfloat128-type option, and make -mfloat128
6598         default on PowerPC Linux systems.  Define or undefine
6599         __FLOAT128__ and  __FLOAT128_HARDWARE__ for the current options.
6600         Define __float128 to be __ieee128 if IEEE 128-bit support is
6601         enabled, or undefine it.
6602         (rs6000_cpu_cpp_builtins): Delete defining __FLOAT128__ here.
6603         Delete defining __FLOAT128_TYPE__.
6604         * config/rs6000/rs6000.opt (x_TARGET_FLOAT128_TYPE): Delete the
6605         -mfloat128-type option and make -mfloat128 default on PowerPC
6606         Linux systems.
6607         (TARGET_FLOAT128_TYPE): Likewise.
6608         (-mfloat128-type): Likewise.
6609         * config/rs6000/rs6000.c (rs6000_option_override_internal):
6610         Delete the -mfloat128-type option and make -mfloat128 default on
6611         PowerPC Linux systems.  Always use __ieee128 to be the keyword for
6612         the IEEE 128-bit type, and map __float128 to __ieee128 if IEEE
6613         128-bit floating point is enabled.  Change tests from using
6614         -mfloat128-type to -mfloat128.
6615         (rs6000_mangle_type): Use the correct mangling for the __float128
6616         type even if normal long double is restricted to 64-bits.
6617         (floatn_mode): Enable the _Float128 type by default on VSX Linux
6618         systems.
6619         * config/rs6000/rs6000.h (MASK_FLOAT128_TYPE): Delete.
6620         (MASK_FLOAT128_KEYWORD): Define new shortcut macro.
6621         (RS6000BTM_FLOAT128): Define in terms of -mfloat128, not
6622         -mfloat128-type.
6623         * doc/invoke.texi (RS/6000 and PowerPC Options): Update
6624         documentation for -mfloat128.
6626 2017-09-06  Olivier Hainque  <hainque@adacore.com>
6628         * config.gcc (powerpc-wrs-vxworksspe): Now match as vxworks*spe.
6630 2017-09-06  Wish Wu  <wishwu007@gmail.com>
6631             Jakub Jelinek  <jakub@redhat.com>
6633         * asan.c (initialize_sanitizer_builtins): Add
6634         BT_FN_VOID_UINT8_UINT8, BT_FN_VOID_UINT16_UINT16,
6635         BT_FN_VOID_UINT32_UINT32, BT_FN_VOID_UINT64_UINT64,
6636         BT_FN_VOID_FLOAT_FLOAT, BT_FN_VOID_DOUBLE_DOUBLE and
6637         BT_FN_VOID_UINT64_PTR variables.
6638         * builtin-types.def (BT_FN_VOID_UINT8_UINT8): New fn type.
6639         (BT_FN_VOID_UINT16_UINT16): Likewise.
6640         (BT_FN_VOID_UINT32_UINT32): Likewise.
6641         (BT_FN_VOID_FLOAT_FLOAT): Likewise.
6642         (BT_FN_VOID_DOUBLE_DOUBLE): Likewise.
6643         (BT_FN_VOID_UINT64_PTR): Likewise.
6644         * common.opt (flag_sanitize_coverage): New variable.
6645         (fsanitize-coverage=trace-pc): Remove.
6646         (fsanitize-coverage=): Add.
6647         * flag-types.h (enum sanitize_coverage_code): New enum.
6648         * fold-const.c (fold_range_test): Disable non-short-circuit
6649         optimization if flag_sanitize_coverage.
6650         (fold_truth_andor): Likewise.
6651         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6652         * opts.c (COVERAGE_SANITIZER_OPT): Define.
6653         (coverage_sanitizer_opts): New array.
6654         (get_closest_sanitizer_option): Add OPTS argument, handle also
6655         OPT_fsanitize_coverage_.
6656         (parse_sanitizer_options): Adjusted to also handle
6657         OPT_fsanitize_coverage_.
6658         (common_handle_option): Add OPT_fsanitize_coverage_.
6659         * sancov.c (instrument_comparison, instrument_switch): New function.
6660         (sancov_pass): Add trace-cmp support.
6661         * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_CMP1,
6662         BUILT_IN_SANITIZER_COV_TRACE_CMP2, BUILT_IN_SANITIZER_COV_TRACE_CMP4,
6663         BUILT_IN_SANITIZER_COV_TRACE_CMP8,
6664         BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP1,
6665         BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP2,
6666         BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP4,
6667         BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP8,
6668         BUILT_IN_SANITIZER_COV_TRACE_CMPF, BUILT_IN_SANITIZER_COV_TRACE_CMPD,
6669         BUILT_IN_SANITIZER_COV_TRACE_SWITCH): New builtins.
6670         * doc/invoke.texi: Document -fsanitize-coverage=trace-cmp.
6672 2017-09-06  Richard Earnshaw  <rearnsha@arm.com>
6674         * config/arm/parsecpu.awk (fatal): Note that we've encountered an
6675         error.  Only quit immediately if parsing is complete.
6676         (BEGIN): Initialize fatal_err and parse_done.
6677         (begin fpu, end fpu): Check number of arguments.
6678         (begin arch, end arch): Likewise.
6679         (begin cpu, end cpu): Likewise.
6680         (cname, tune for, tune flags, architecture, fpu, option): Likewise.
6681         (optalias): Likewise.
6683 2017-09-06  Richard Earnshaw  <rearnsha@arm.com>
6685         * config.gcc (arm*-*-*): Don't add arm-isa.h to tm_p_file.
6686         * config/arm/arm-isa.h: Delete.  Move definitions to ...
6687         * arm-cpus.in: ... here.  Use new feature and fgroup values.
6688         * config/arm/arm.c (arm_option_override): Use lower case for feature
6689         bit names.
6690         * config/arm/arm.h (TARGET_HARD_FLOAT): Likewise.
6691         (TARGET_VFP3, TARGET_VFP5, TARGET_FMA): Likewise.
6692         * config/arm/parsecpu.awk (END): Add new command 'isa'.
6693         (isa_pfx): Delete.
6694         (print_isa_bits_for): New function.
6695         (gen_isa): New function.
6696         (gen_comm_data): Use print_isa_bits_for.
6697         (define feature): New keyword.
6698         (define fgroup): New keyword.
6699         * config/arm/t-arm (OPTIONS_H_EXTRA): Add arm-isa.h
6700         (arm-isa.h): Add rule to generate file.
6701         * common/config/arm/arm-common.c: (arm_canon_arch_option): Use lower
6702         case for feature bit names.
6704 2017-09-06  Richard Biener  <rguenther@suse.de>
6706         * tree-ssa-pre.c (NECESSARY): Remove.
6707         (create_expression_by_pieces): Do not touch pass-local flags.
6708         (insert_into_preds_of_block): Likewise.
6709         (do_pre_regular_insertion): Likewise.
6710         (eliminate_insert): Likewise.
6711         (eliminate_dom_walker::before_dom_children): Likewise.
6712         (fini_eliminate): Do not look at inserted_exprs.
6713         (mark_operand_necessary): Remove.
6714         (remove_dead_inserted_code): Replace with simple work-list
6715         algorithm based on inserted_exprs and SSA uses.
6716         (pass_pre::execute): Re-order fini_eliminate and
6717         remove_dead_inserted_code.
6719 2017-09-06  Olivier Hainque  <hainque@adacore.com>
6721         * config/powerpcspe/vxworks.h (VXCPU_FOR_8548): Correct definition
6722         for VxWorks 7.  Adjust surrounding comments.
6724 2017-09-06  Richard Biener  <rguenther@suse.de>
6726         * gimple-ssa-strength-reduction.c
6727         (find_candidates_dom_walker::before_dom_children): Also allow
6728         pointer types.
6730 2017-09-06  Richard Biener  <rguenther@suse.de>
6732         PR tree-optimization/82108
6733         * tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment
6734         for gap in the non-permutation SLP case.
6736 2017-09-06  Martin Jambor  <mjambor@suse.cz>
6738         PR tree-optimization/82078
6739         * tree-sra.c (sort_and_splice_var_accesses): Move call to
6740         add_access_to_work_queue...
6741         (build_accesses_from_assign): ...here.
6742         (propagate_all_subaccesses): Make sure racc is the group
6743         representative, if there is one.
6745 2017-09-06  Jakub Jelinek  <jakub@redhat.com>
6747         PR middle-end/82095
6748         * varasm.c (categorize_decl_for_section): Use SECCAT_TBSS for TLS vars with
6749         NULL DECL_INITIAL.
6751 2017-09-06  Richard Biener  <rguenther@suse.de>
6753         * gimple-ssa-strength-reduction.c
6754         (find_candidates_dom_walker::before_doom_children): Use a
6755         type and not a mode check.
6757 2017-09-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6759         PR target/77308
6760         * config/arm/predicates.md (arm_general_adddi_operand): Create new
6761         non-vfp predicate.
6762         * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Use new predicates.
6764 2017-09-05  Jeff Law  <law@redhat.com>
6766         PR tree-optimization/64910
6767         * tree-ssa-reassoc.c (reassociate_bb): Restrict last change to
6768         cases where we have 3 or more operands.
6770 2017-09-05  Jakub Jelinek  <jakub@redhat.com>
6772         PR middle-end/81768
6773         * omp-low.c (lower_omp_for): Recompute tree invariant if
6774         gimple_omp_for_initial/final is ADDR_EXPR.
6776         PR middle-end/81768
6777         * omp-expand.c (expand_omp_simd): Force second operands of COND_EXPR
6778         into gimple val before gimplification fo the COND_EXPR.
6780 2017-09-05  Aldy Hernandez  <aldyh@redhat.com>
6782         * tree-ssa-threadupdate.c (duplicate_thread_path): Remove unused
6783         REGION_COPY argument.
6784         (thread_through_all_blocks): Remove unused argument to
6785         duplicate_thread_path.
6787 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6788             Alan Hayward  <alan.hayward@arm.com>
6789             David Sherwood  <david.sherwood@arm.com>
6791         * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
6792         Take a scalar_mode rather than a machine_mode.
6793         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6794         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Likewise.
6795         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6796         (aarch64_gen_adjusted_ldpstp): Likewise.
6797         (aarch64_expand_vector_init): Use scalar_mode instead of machine_mode.
6799 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6800             Alan Hayward  <alan.hayward@arm.com>
6801             David Sherwood  <david.sherwood@arm.com>
6803         * config/aarch64/aarch64-protos.h (aarch64_is_extend_from_extract):
6804         Take a scalar_int_mode instead of a machine_mode.
6805         (aarch64_mask_and_shift_for_ubfiz_p): Likewise.
6806         (aarch64_output_scalar_simd_mov_immediate): Likewise.
6807         (aarch64_simd_scalar_immediate_valid_for_move): Likewise.
6808         (aarch64_simd_attr_length_rglist): Delete.
6809         * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Take
6810         a scalar_int_mode instead of a machine_mode.
6811         (aarch64_add_offset): Likewise.
6812         (aarch64_internal_mov_immediate): Likewise
6813         (aarch64_add_constant_internal): Likewise.
6814         (aarch64_add_constant): Likewise.
6815         (aarch64_movw_imm): Likewise.
6816         (aarch64_rtx_arith_op_extract_p): Likewise.
6817         (aarch64_mask_and_shift_for_ubfiz_p): Likewise.
6818         (aarch64_simd_scalar_immediate_valid_for_move): Likewise.
6819         Remove assert that the mode isn't a vector.
6820         (aarch64_output_scalar_simd_mov_immediate): Likewise.
6821         (aarch64_expand_mov_immediate): Update calls after above changes.
6822         (aarch64_output_casesi): Use as_a <scalar_int_mode>.
6823         (aarch64_and_bitmask_imm): Check for scalar integer modes.
6824         (aarch64_move_imm): Likewise.
6825         (aarch64_can_const_movi_rtx_p): Likewise.
6826         (aarch64_strip_extend): Likewise.
6827         (aarch64_extr_rtx_p): Likewise.
6828         (aarch64_rtx_costs): Likewise, using wode_mode as the mode of
6829         a CONST_INT when the mode parameter is VOIDmode.
6830         (aarch64_float_const_rtx_p): Use scalar_int_mode for a temporary.
6832 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6834         * machmode.h (bitwise_mode_for_mode): Return opt_mode.
6835         * stor-layout.c (bitwise_mode_for_mode): Likewise.
6836         (bitwise_type_for_mode): Update accordingly.
6838 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6840         * stor-layout.h (mode_for_size_tree): Return an opt_mode.
6841         * stor-layout.c (mode_for_size_tree): Likewise.
6842         (mode_for_array): Update accordingly.
6843         (layout_decl): Likewise.
6844         (compute_record_mode): Likewise.  Only set the mode once.
6846 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6848         * target.def (get_mask_mode): Change return type to opt_mode.
6849         Expand commentary.
6850         * doc/tm.texi: Regenerate.
6851         * targhooks.h (default_get_mask_mode): Return an opt_mode.
6852         * targhooks.c (default_get_mask_mode): Likewise.
6853         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
6854         * optabs-query.c (can_vec_mask_load_store_p): Update use of
6855         targetm.get_mask_mode.
6856         * tree.c (build_truth_vector_type): Likewise.
6858 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6860         * machmode.h (mode_for_vector): Return an opt_mode.
6861         * stor-layout.c (mode_for_vector): Likewise.
6862         (mode_for_int_vector): Update accordingly.
6863         (layout_type): Likewise.
6864         * config/i386/i386.c (emit_memmov): Likewise.
6865         (ix86_expand_set_or_movmem): Likewise.
6866         (ix86_expand_vector_init): Likewise.
6867         (ix86_get_mask_mode): Likewise.
6868         * config/powerpcspe/powerpcspe.c (rs6000_expand_vec_perm_const_1):
6869         Likewise.
6870         * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Likewise.
6871         * expmed.c (extract_bit_field_1): Likewise.
6872         * expr.c (expand_expr_real_2): Likewise.
6873         * optabs-query.c (can_vec_perm_p): Likewise.
6874         (can_vec_mask_load_store_p): Likewise.
6875         * optabs.c (expand_vec_perm): Likewise.
6876         * targhooks.c (default_get_mask_mode): Likewise.
6877         * tree-vect-stmts.c (vectorizable_store): Likewise.
6878         (vectorizable_load): Likewise.
6879         (get_vectype_for_scalar_type_and_size): Likewise.
6881 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6883         * machmode.h (mode_for_int_vector): New function.
6884         * stor-layout.c (mode_for_int_vector): Likewise.
6885         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use it.
6886         * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Likewise.
6887         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
6888         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
6889         (s390_expand_vcond): Likewise.
6891 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6893         * machmode.h (opt_machine_mode): New type.
6894         (opt_mode<T>): Allow construction from anything that can be
6895         converted to a T.
6896         (is_a, as_a, dyn_cast): Add overloads for opt_mode.
6897         (mode_for_size): Return an opt_machine_mode.
6898         * stor-layout.c (mode_for_size): Likewise.
6899         (mode_for_size_tree): Update call accordingly.
6900         (bitwise_mode_for_mode): Likewise.
6901         (make_fract_type): Likewise.
6902         (make_accum_type): Likewise.
6903         * caller-save.c (replace_reg_with_saved_mem): Update call
6904         accordingly.
6905         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6906         * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6907         * config/s390/s390.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6908         * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6909         * expmed.c (extract_bit_field_1): Likewise.
6910         * reload.c (get_secondary_mem): Likewise.
6911         * varasm.c (assemble_integer): Likewise.
6912         * lower-subreg.c (simplify_subreg_concatn): Likewise.  Move
6913         early-out.
6915 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6917         * machmode.h (decimal_float_mode_for_size): New function.
6918         * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use float_mode_for_size.
6919         (REAL_VALUE_TO_TARGET_DOUBLE): Likewise.
6920         (REAL_VALUE_TO_TARGET_SINGLE): Likewise.
6921         (REAL_VALUE_TO_TARGET_DECIMAL128): Use decimal_float_mode_for_size.
6922         (REAL_VALUE_TO_TARGET_DECIMAL64): Likewise.
6923         (REAL_VALUE_TO_TARGET_DECIMAL32): Likewise.
6925 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6927         * builtins.c (expand_builtin_powi): Use int_mode_for_size.
6928         (get_builtin_sync_mode): Likewise.
6929         (expand_ifn_atomic_compare_exchange): Likewise.
6930         (expand_builtin_atomic_clear): Likewise.
6931         (expand_builtin_atomic_test_and_set): Likewise.
6932         (fold_builtin_atomic_always_lock_free): Likewise.
6933         * calls.c (compute_argument_addresses): Likewise.
6934         (emit_library_call_value_1): Likewise.
6935         (store_one_arg): Likewise.
6936         * combine.c (combine_instructions): Likewise.
6937         * config/aarch64/aarch64.c (aarch64_function_value): Likewise.
6938         * config/arm/arm.c (arm_function_value): Likewise.
6939         (aapcs_allocate_return_reg): Likewise.
6940         * config/c6x/c6x.c (c6x_expand_movmem): Likewise.
6941         * config/i386/i386.c (construct_container): Likewise.
6942         (ix86_gimplify_va_arg): Likewise.
6943         (ix86_expand_sse_cmp): Likewise.
6944         (emit_memmov): Likewise.
6945         (emit_memset): Likewise.
6946         (expand_small_movmem_or_setmem): Likewise.
6947         (ix86_expand_pextr): Likewise.
6948         (ix86_expand_pinsr): Likewise.
6949         * config/lm32/lm32.c (lm32_block_move_inline): Likewise.
6950         * config/microblaze/microblaze.c (microblaze_block_move_straight):
6951         Likewise.
6952         * config/mips/mips.c (mips_function_value_1) Likewise.
6953         (mips_block_move_straight): Likewise.
6954         (mips_expand_ins_as_unaligned_store): Likewise.
6955         * config/powerpcspe/powerpcspe.c
6956         (rs6000_darwin64_record_arg_advance_flush): Likewise.
6957         (rs6000_darwin64_record_arg_flush): Likewise.
6958         * config/rs6000/rs6000.c
6959         (rs6000_darwin64_record_arg_advance_flush): Likewise.
6960         (rs6000_darwin64_record_arg_flush): Likewise.
6961         * config/sparc/sparc.c (sparc_function_arg_1): Likewise.
6962         (sparc_function_value_1): Likewise.
6963         * config/spu/spu.c (adjust_operand): Likewise.
6964         (spu_emit_branch_or_set): Likewise.
6965         (arith_immediate_p): Likewise.
6966         * emit-rtl.c (gen_lowpart_common): Likewise.
6967         * expr.c (expand_expr_real_1): Likewise.
6968         * function.c (assign_parm_setup_block): Likewise.
6969         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Likewise.
6970         * reload1.c (alter_reg): Likewise.
6971         * stor-layout.c (mode_for_vector): Likewise.
6972         (layout_type): Likewise.
6974 2017-09-05  Richard Sandiford  <richard.sandiford@linaro.org>
6976         * config/spu/spu.c (exp2_immediate_p): Use int_mode_for_mode.
6977         (spu_convert_move): Likewise.
6978         * lower-subreg.c (resolve_simple_move): Likewise.
6980 2017-09-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6982         PR target/81833
6983         * config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
6984         define_insn to a define_expand.
6985         (altivec_vsum2sws_direct): New define_insn.
6986         (altivec_vsumsws): Convert from a define_insn to a define_expand.
6988 2017-09-05  Wilco Dijkstra  <wdijkstr@arm.com>
6990         * config/arm/arm.c (arm_option_params_internal): Improve setting of
6991         max_insns_skipped.
6993 2017-09-05  H.J. Lu  <hongjiu.lu@intel.com>
6995         PR target/59501
6996         PR target/81624
6997         PR target/81769
6998         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Don't
6999         realign stack if stack alignment needed is less than incoming
7000         stack boundary.
7002 2017-09-05  Marek Polacek  <polacek@redhat.com>
7004         PR sanitizer/82072
7005         * convert.c (convert_to_integer_1) <case NEGATE_EXPR>: Move the ubsan
7006         check earlier.
7008 2017-09-05  Wilco Dijkstra  <wdijkstr@arm.com>
7010         * explow.c (get_dynamic_stack_size): Improve dynamic alignment.
7012 2017-09-05  Richard Biener  <rguenther@suse.de>
7014         PR tree-optimization/82084
7015         * fold-const.c (can_native_encode_string_p): Handle wide characters.
7017 2017-09-05  Richard Biener  <rguenther@suse.de>
7019         PR tree-optimization/82102
7020         * tree-ssa-pre.c (fini_eliminate): Check if lhs is NULL.
7022 2017-09-05  Martin Liska  <mliska@suse.cz>
7024         PR tree-optimization/82032
7025         * tree-cfg.c (generate_range_test): New function.
7026         * tree-cfg.h (generate_range_test): Declared here.
7027         * tree-cfgcleanup.c (convert_single_case_switch): New function.
7028         (cleanup_control_expr_graph): Use it.
7029         * tree-switch-conversion.c (try_switch_expansion): Remove
7030         assert.
7031         (emit_case_nodes): Use generate_range_test.
7033 2017-09-04  Uros Bizjak  <ubizjak@gmail.com>
7035         PR target/82098
7036         * config/i386/i386.md (*<btsc><mode>_mask): Add
7037         TARGET_USE_BT to insn constraint.
7038         (*btr<mode>_mask): Ditto.
7040 2017-09-04  Wilco Dijkstra  <wdijkstr@arm.com>
7042         * config/arm/arm.c (arm_legitimate_index_p): Add comment.
7043         (thumb2_legitimate_index_p): Use correct range for DI/DF mode.
7045 2017-09-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7047         PR target/77308
7048         * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Split early except for
7049         TARGET_NEON and TARGET_IWMMXT.
7050         (anddi3, iordi3, xordi3, one_cmpldi2): Split while expanding except for
7051         TARGET_NEON and TARGET_IWMMXT.
7052         (*one_cmpldi2_insn): Moved the body of one_cmpldi2 here.
7054 2017-09-04  Uros Bizjak  <ubizjak@gmail.com>
7056         * config/i386/i386-protos.h (ix86_tls_address_pattern_p) New prototype.
7057         (ix86_rewrite_tls_address): Ditto.
7058         * config/i386/i386.c (ix86_tls_address_pattern_p) New function.
7059         (ix86_rewrite_tls_address_1): Ditto.
7060         (ix86_rewrite_tls_address): Ditto.
7061         * config/i386/predicates.md (tls_address_pattern): New predicate.
7062         * config/i386/i386.md (TLS address splitter): New splitter.
7064 2017-09-04  Richard Biener  <rguenther@suse.de>
7066         PR tree-optimization/82084
7067         * fold-const.h (can_native_encode_string_p): Declare.
7068         * fold-const.c (can_native_encode_string_p): Factor out from ...
7069         (native_encode_string): ... here.
7070         * tree-vect-stmts.c (vectorizable_store): Call it to avoid
7071         vectorizing stores from constants we later cannot handle.
7073 2017-09-04  Marek Polacek  <polacek@redhat.com>
7075         PR c/81783
7076         * doc/invoke.texi: Update -Wtautological-compare documentation.
7078 2017-09-04  Jeff Law  <law@redhat.com>
7080         PR tree-optimization/64910
7081         * tree-ssa-reassoc.c (reassociate_bb): For bitwise binary ops,
7082         swap the first and last operand if the last is a constant.
7084 2017-09-04  Marek Polacek  <polacek@redhat.com>
7086         PR sanitizer/82072
7087         * convert.c (do_narrow): When sanitizing signed integer overflows,
7088         bail out for signed types.
7089         (convert_to_integer_1) <case NEGATE_EXPR>: Likewise.
7091 2017-09-04  Richard Biener  <rguenther@suse.de>
7093         PR tree-optimization/82060
7094         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7095         Move devirtualization after stmt folding and before EH/AB/noreturn
7096         cleanup to get the stmt refs canonicalized.  Use a bool instead
7097         of gimple_modified_p since that doesn't work for NOPs.  Schedule
7098         NOPs generated by folding for removal.
7100 2017-09-04  Richard Sandiford  <richard.sandiford@linaro.org>
7101             Alan Hayward  <alan.hayward@arm.com>
7102             David Sherwood  <david.sherwood@arm.com>
7104         * coretypes.h (pad_direction): New enum.
7105         * defaults.h (DEFAULT_FUNCTION_ARG_PADDING): Delete.
7106         (FUNCTION_ARG_PADDING): Likewise.
7107         * target.def (function_arg_padding): New hook.
7108         * targhooks.h (default_function_arg_padding): Declare.
7109         * targhooks.c (default_function_arg_padding): New function.
7110         * doc/tm.texi.in (FUNCTION_ARG_PADDING): Replace with...
7111         (TARGET_FUNCTION_ARG_PADDING): ...this.
7112         * doc/tm.texi: Regenerate.
7113         * calls.c (store_unaligned_arguments_into_pseudos): Use pad_direction
7114         instead of direction.
7115         (compute_argument_addresses): Likewise.
7116         (load_register_parameters): Likewise.
7117         (emit_library_call_value_1): Likewise.
7118         (store_one_arg): Use targetm.calls.function_arg_padding instead
7119         of FUNCTION_ARG_PADDING.
7120         (must_pass_in_stack_var_size_or_pad): Likewise.
7121         * expr.c (emit_group_load_1): Use pad_direction instead of direction.
7122         (emit_group_store): Likewise.
7123         (emit_single_push_insn_1): Use targetm.calls.function_arg_padding
7124         instead of FUNCTION_ARG_PADDING.
7125         (emit_push_insn): Likewise, and propagate enum change throughout
7126         function.
7127         * function.h (direction): Delete.
7128         (locate_and_pad_arg_data::where_pad): Use pad_direction instead
7129         of direction.
7130         * function.c (assign_parm_find_stack_rtl): Likewise.
7131         (assign_parm_setup_block_p): Likewise.
7132         (assign_parm_setup_block): Likewise.
7133         (gimplify_parameters): Likewise.
7134         (locate_and_pad_parm): Use targetm.calls.function_arg_padding
7135         instead of FUNCTION_ARG_PADDING, and propagate enum change throughout
7136         function.
7137         * config/aarch64/aarch64.h (FUNCTION_ARG_PADDING): Delete.
7138         (BLOCK_REG_PADDING): Use pad_direction instead of direction.
7139         * config/aarch64/aarch64-protos.h (aarch64_pad_arg_upward): Delete.
7140         * config/aarch64/aarch64.c (aarch64_pad_arg_upward): Replace with...
7141         (aarch64_function_arg_padding): ...this new function.
7142         (aarch64_gimplify_va_arg_expr): Use pad_direction instead of direction.
7143         (TARGET_FUNCTION_ARG_PADDING): Redefine.
7144         * config/arm/arm.h (FUNCTION_ARG_PADDING): Delete.
7145         (BLOCK_REG_PADDING): Use pad_direction instead of direction.
7146         * config/arm/arm-protos.h (arm_pad_arg_upward): Delete.
7147         * config/arm/arm.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7148         (arm_pad_arg_upward): Replace with...
7149         (arm_function_arg_padding): ...this new function.
7150         * config/c6x/c6x.h (BLOCK_REG_PADDING): Use pad_direction instead
7151         of direction.
7152         * config/ia64/hpux.h (FUNCTION_ARG_PADDING): Delete.
7153         * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): Delete.
7154         * config/ia64/ia64.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7155         (ia64_hpux_function_arg_padding): Replace with...
7156         (ia64_function_arg_padding): ...this new function.  Use pad_direction
7157         instead of direction.  Check for TARGET_HPUX.
7158         * config/iq2000/iq2000.h (FUNCTION_ARG_PADDING): Delete.
7159         * config/iq2000/iq2000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7160         (iq2000_function_arg_padding): New function.
7161         * config/mips/mips-protos.h (mips_pad_arg_upward): Delete.
7162         * config/mips/mips.c (mips_pad_arg_upward): Replace with...
7163         (mips_function_arg_padding): ...this new function.
7164         (mips_pad_reg_upward): Update accordingly.
7165         (TARGET_FUNCTION_ARG_PADDING): Redefine.
7166         * config/mips/mips.h (PAD_VARARGS_DOWN): Use
7167         targetm.calls.function_arg_padding.
7168         (FUNCTION_ARG_PADDING): Delete.
7169         (BLOCK_REG_PADDING): Use pad_direction instead of direction.
7170         * config/nios2/nios2.h (FUNCTION_ARG_PADDING): Delete.
7171         (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
7172         * config/nios2/nios2-protos.h (nios2_function_arg_padding): Delete.
7173         (nios2_block_reg_padding): Return pad_direction instead of direction.
7174         * config/nios2/nios2.c (nios2_block_reg_padding): Return pad_direction
7175         instead of direction.
7176         (nios2_function_arg_padding): Likewise.  Make static.
7177         (TARGET_FUNCTION_ARG_PADDING): Redefine.
7178         * config/pa/pa.h (FUNCTION_ARG_PADDING): Delete.
7179         (BLOCK_REG_PADDING): Use targetm.calls.function_arg_padding.
7180         * config/pa/pa-protos.h (pa_function_arg_padding): Delete.
7181         * config/pa/pa.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7182         (pa_function_arg_padding): Make static.  Return pad_direction instead
7183         of direction.
7184         * config/powerpcspe/powerpcspe.h (FUNCTION_ARG_PADDING): Delete.
7185         (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
7186         * config/powerpcspe/aix.h (BLOCK_REG_PADDING): Use pad_direction
7187         instead of direction.  Use targetm.calls.function_arg_padding.
7188         * config/powerpcspe/darwin.h (BLOCK_REG_PADDING): Likewise.
7189         * config/powerpcspe/freebsd64.h (BLOCK_REG_PADDING): Likewise.
7190         * config/powerpcspe/linux64.h (BLOCK_REG_PADDING): Likewise.
7191         * config/powerpcspe/powerpcspe-protos.h (function_arg_padding): Delete.
7192         * config/powerpcspe/powerpcspe.c (TARGET_FUNCTION_ARG_PADDING):
7193         Redefine.
7194         (function_arg_padding): Rename to...
7195         (rs6000_function_arg_padding): ...this.  Make static.  Return
7196         pad_direction instead of direction.
7197         (rs6000_return_in_msb): Use rs6000_function_arg_padding.
7198         * config/rs6000/rs6000.h (FUNCTION_ARG_PADDING): Delete.
7199         (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
7200         * config/rs6000/aix.h (BLOCK_REG_PADDING): Use pad_direction
7201         instead of direction.  Use targetm.calls.function_arg_padding.
7202         * config/rs6000/darwin.h (BLOCK_REG_PADDING): Likewise.
7203         * config/rs6000/freebsd64.h (BLOCK_REG_PADDING): Likewise.
7204         * config/rs6000/linux64.h (BLOCK_REG_PADDING): Likewise.
7205         * config/rs6000/rs6000-protos.h (function_arg_padding): Delete.
7206         * config/rs6000/rs6000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7207         (function_arg_padding): Rename to...
7208         (rs6000_function_arg_padding): ...this.  Make static.  Return
7209         pad_direction instead of direction.
7210         (rs6000_return_in_msb): Use rs6000_function_arg_padding.
7211         * config/s390/s390.h (FUNCTION_ARG_PADDING): Delete.
7212         * config/s390/s390.c (s390_function_arg_padding): New function.
7213         (TARGET_FUNCTION_ARG_PADDING): Redefine.
7214         * config/sparc/sparc.h (FUNCTION_ARG_PADDING): Delete.
7215         * config/sparc/sparc-protos.h (function_arg_padding): Delete.
7216         * config/sparc/sparc.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7217         (function_arg_padding): Rename to...
7218         (sparc_function_arg_padding): ...this.  Make static.  Return
7219         pad_direction instead of direction.
7220         * config/spu/spu.h (FUNCTION_ARG_PADDING): Delete.
7221         * config/spu/spu.c (spu_function_arg_padding): New function.
7222         (TARGET_FUNCTION_ARG_PADDING): Redefine.
7223         * system.h (FUNCTION_ARG_PADDING): Poison.
7225 2017-09-04  Richard Sandiford  <richard.sandiford@linaro.org>
7226             Alan Hayward  <alan.hayward@arm.com>
7227             David Sherwood  <david.sherwood@arm.com>
7229         * target.def (modes_tieable_p): New hook.
7230         * doc/tm.texi (MODES_TIEABLE_P): Replace with...
7231         (TARGET_MODES_TIEABLE_P): ...this.
7232         * doc/tm.texi.in: Regenerate.
7233         * hooks.h (hook_bool_mode_mode_true): Declare.
7234         * hooks.c (hook_bool_mode_mode_true): New function.
7235         * combine.c (subst): Use targetm.modes_tieable_p instead of
7236         MODES_TIEABLE_P.
7237         * dse.c (find_shift_sequence): Likewise.
7238         * expmed.c (extract_low_bits): Likewise.
7239         * lower-subreg.c: Include target.h.
7240         (find_decomposable_subregs): Use targetm.modes_tieable_p instead of
7241         MODES_TIEABLE_P.
7242         * rtlanal.c (rtx_cost): Likewise.
7243         * config/aarch64/aarch64.h (MODES_TIEABLE_P): Delete.
7244         * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): Delete.
7245         * config/aarch64/aarch64.c (aarch64_modes_tieable_p): Make static.
7246         (TARGET_MODES_TIEABLE_P): Redefine.
7247         * config/alpha/alpha.h (MODES_TIEABLE_P): Delete.
7248         * config/alpha/alpha.c (alpha_modes_tieable_p): New function.
7249         (TARGET_MODES_TIEABLE_P): Redefine.
7250         * config/arc/arc.h (MODES_TIEABLE_P): Delete.
7251         * config/arc/arc.c (TARGET_MODES_TIEABLE_P): Redefine.
7252         (arc_modes_tieable_p): New function.
7253         * config/arm/arm.h (MODES_TIEABLE_P): Delete.
7254         * config/arm/arm-protos.h (arm_modes_tieable_p): Delete.
7255         * config/arm/arm.c (TARGET_MODES_TIEABLE_P): Redefine.
7256         (arm_modes_tieable_p): Make static.
7257         * config/avr/avr.h (MODES_TIEABLE_P): Delete.
7258         * config/bfin/bfin.h (MODES_TIEABLE_P): Delete.
7259         * config/bfin/bfin.c (bfin_modes_tieable_p): New function.
7260         (TARGET_MODES_TIEABLE_P): Redefine.
7261         * config/c6x/c6x.h (MODES_TIEABLE_P): Delete.
7262         * config/c6x/c6x.c (c6x_modes_tieable_p): New function.
7263         (TARGET_MODES_TIEABLE_P): Redefine.
7264         * config/cr16/cr16.h (MODES_TIEABLE_P): Delete.
7265         * config/cr16/cr16.c (TARGET_MODES_TIEABLE_P): Redefine.
7266         (cr16_modes_tieable_p): New function.
7267         * config/cris/cris.h (MODES_TIEABLE_P): Delete.
7268         * config/epiphany/epiphany.h (MODES_TIEABLE_P): Delete.
7269         * config/fr30/fr30.h (MODES_TIEABLE_P): Delete.
7270         (TRULY_NOOP_TRUNCATION): Update comment.
7271         * config/frv/frv.h (MODES_TIEABLE_P): Delete.
7272         (TRULY_NOOP_TRUNCATION): Update comment.
7273         * config/frv/frv.c (TARGET_MODES_TIEABLE_P): Redefine.
7274         (frv_modes_tieable_p): New function.
7275         * config/ft32/ft32.h (MODES_TIEABLE_P): Delete.
7276         * config/h8300/h8300.h (MODES_TIEABLE_P): Delete.
7277         * config/h8300/h8300.c (h8300_modes_tieable_p): New function.
7278         (TARGET_MODES_TIEABLE_P): Redefine.
7279         * config/i386/i386.h (MODES_TIEABLE_P): Delete.
7280         * config/i386/i386-protos.h (ix86_modes_tieable_p): Delete.
7281         * config/i386/i386.c (ix86_modes_tieable_p): Make static.
7282         (TARGET_MODES_TIEABLE_P): Redefine.
7283         * config/ia64/ia64.h (MODES_TIEABLE_P): Delete.
7284         * config/ia64/ia64.c (TARGET_MODES_TIEABLE_P): Redefine.
7285         (ia64_modes_tieable_p): New function.
7286         * config/iq2000/iq2000.h (MODES_TIEABLE_P): Delete.
7287         * config/iq2000/iq2000.c (TARGET_MODES_TIEABLE_P): Redefine.
7288         (iq2000_modes_tieable_p): New function.
7289         * config/lm32/lm32.h (MODES_TIEABLE_P): Delete.
7290         * config/lm32/lm32.c (TARGET_MODES_TIEABLE_P): Redefine.
7291         (lm32_modes_tieable_p): New function.
7292         * config/m32c/m32c.h (MODES_TIEABLE_P): Delete.
7293         * config/m32c/m32c-protos.h (m32c_modes_tieable_p): Delete.
7294         * config/m32c/m32c.c (m32c_modes_tieable_p): Make static.
7295         (TARGET_MODES_TIEABLE_P): Redefine.
7296         * config/m32r/m32r.h (MODES_TIEABLE_P): Delete.
7297         * config/m32r/m32r.c (TARGET_MODES_TIEABLE_P): Redefine.
7298         (m32r_modes_tieable_p): New function.
7299         * config/m68k/m68k.h (MODES_TIEABLE_P): Delete.
7300         * config/m68k/m68k.c (TARGET_MODES_TIEABLE_P): Redefine.
7301         (m68k_modes_tieable_p): New function.
7302         * config/mcore/mcore.h (MODES_TIEABLE_P): Delete.
7303         * config/mcore/mcore.c (TARGET_MODES_TIEABLE_P): Redefine.
7304         (mcore_modes_tieable_p): New function.
7305         * config/microblaze/microblaze.h (MODES_TIEABLE_P): Delete.
7306         * config/microblaze/microblaze.c (microblaze_modes_tieable_p): New
7307         function.
7308         (TARGET_MODES_TIEABLE_P): Redefine.
7309         * config/mips/mips.h (MODES_TIEABLE_P): Delete.
7310         * config/mips/mips-protos.h (mips_modes_tieable_p): Delete.
7311         * config/mips/mips.c (mips_modes_tieable_p): Make static.
7312         (TARGET_MODES_TIEABLE_P): Redefine.
7313         * config/mmix/mmix.h (MODES_TIEABLE_P): Delete.
7314         * config/mn10300/mn10300.h (MODES_TIEABLE_P): Delete.
7315         * config/mn10300/mn10300-protos.h (mn10300_modes_tieable): Delete.
7316         * config/mn10300/mn10300.c (mn10300_modes_tieable): Rename to...
7317         (mn10300_modes_tieable_p): ...this and make static.
7318         (TARGET_MODES_TIEABLE_P): Redefine.
7319         * config/moxie/moxie.h (MODES_TIEABLE_P): Delete.
7320         * config/msp430/msp430.h (MODES_TIEABLE_P): Delete.
7321         * config/msp430/msp430-protos.h (msp430_modes_tieable_p): Delete.
7322         * config/msp430/msp430.c (TARGET_MODES_TIEABLE_P): Redefine.
7323         (msp430_modes_tieable_p): Make static.
7324         * config/nds32/nds32.h (MODES_TIEABLE_P): Delete.
7325         * config/nds32/nds32.c (nds32_modes_tieable_p): New function.
7326         (TARGET_MODES_TIEABLE_P): Redefine.
7327         * config/nios2/nios2.h (MODES_TIEABLE_P): Delete.
7328         * config/nvptx/nvptx.h (MODES_TIEABLE_P): Delete.
7329         * config/nvptx/nvptx.c (nvptx_modes_tieable_p): New function.
7330         (TARGET_MODES_TIEABLE_P): Redefine.
7331         * config/pa/pa.h (MODES_TIEABLE_P): Delete.
7332         * config/pa/pa-protos.h (pa_modes_tieable_p): Delete.
7333         * config/pa/pa.c (pa_modes_tieable_p): Make static.
7334         (TARGET_MODES_TIEABLE_P): Redefine.
7335         * config/pdp11/pdp11.h (MODES_TIEABLE_P): Delete.
7336         * config/pdp11/pdp11.c (TARGET_MODES_TIEABLE_P): Redefine.
7337         (pdp11_modes_tieable_p): New function.
7338         * config/powerpcspe/powerpcspe.h (MODES_TIEABLE_P): Delete.
7339         * config/powerpcspe/powerpcspe.c (TARGET_MODES_TIEABLE_P): Redefine.
7340         (rs6000_modes_tieable_p): New function.
7341         (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
7342         * config/powerpcspe/powerpcspe.md: Update comment.
7343         * config/riscv/riscv.h (MODES_TIEABLE_P): Delete.
7344         * config/riscv/riscv.c (riscv_modes_tieable_p): New function.
7345         (TARGET_MODES_TIEABLE_P): Redefine.
7346         * config/rl78/rl78.h (MODES_TIEABLE_P): Delete.
7347         * config/rl78/rl78.c (TARGET_MODES_TIEABLE_P): Redefine.
7348         (rl78_modes_tieable_p): New function.
7349         * config/rs6000/rs6000.h (MODES_TIEABLE_P): Delete.
7350         * config/rs6000/rs6000.c (TARGET_MODES_TIEABLE_P): Redefine.
7351         (rs6000_modes_tieable_p): New function.
7352         (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
7353         * config/rs6000/rs6000.md: Update comment.
7354         * config/rx/rx.h (MODES_TIEABLE_P): Delete.
7355         * config/rx/rx.c (rx_modes_tieable_p): New function.
7356         (TARGET_MODES_TIEABLE_P): Redefine.
7357         * config/s390/s390.h (MODES_TIEABLE_P): Delete.
7358         * config/s390/s390.c (s390_modes_tieable_p): New function.
7359         (TARGET_MODES_TIEABLE_P): Redefine.
7360         * config/sh/sh.h (MODES_TIEABLE_P): Delete.
7361         * config/sh/sh.c (TARGET_MODES_TIEABLE_P): Redefine.
7362         (sh_modes_tieable_p): New function.
7363         * config/sparc/sparc.h (MODES_TIEABLE_P): Delete.
7364         * config/sparc/sparc-protos.h (sparc_modes_tieable_p): Delete.
7365         * config/sparc/sparc.c (TARGET_MODES_TIEABLE_P): Redefine.
7366         (sparc_modes_tieable_p): Make static.
7367         * config/spu/spu.h (MODES_TIEABLE_P): Delete.
7368         * config/spu/spu.c (spu_modes_tieable_p): New function.
7369         (TARGET_MODES_TIEABLE_P): Redefine.
7370         * config/stormy16/stormy16.h (MODES_TIEABLE_P): Delete.
7371         * config/stormy16/stormy16.c (xstormy16_modes_tieable_p): New function.
7372         (TARGET_MODES_TIEABLE_P): Redefine.
7373         * config/tilegx/tilegx.h (MODES_TIEABLE_P): Delete.
7374         * config/tilepro/tilepro.h (MODES_TIEABLE_P): Delete.
7375         * config/v850/v850.h (MODES_TIEABLE_P): Delete.
7376         * config/v850/v850.c (v850_modes_tieable_p): New function.
7377         (TARGET_MODES_TIEABLE_P): Redefine.
7378         * config/vax/vax.h (MODES_TIEABLE_P): Delete.
7379         * config/visium/visium.h (MODES_TIEABLE_P): Delete.
7380         * config/visium/visium.c (TARGET_MODES_TIEABLE_P): Redefine.
7381         (visium_modes_tieable_p): New function.
7382         * config/xtensa/xtensa.h (MODES_TIEABLE_P): Delete.
7383         * config/xtensa/xtensa.c (TARGET_MODES_TIEABLE_P): Redefine.
7384         (xtensa_modes_tieable_p): New function.
7385         * system.h (MODES_TIEABLE_P): Poison.
7387 2017-09-04  Richard Sandiford  <richard.sandiford@linaro.org>
7388             Alan Hayward  <alan.hayward@arm.com>
7389             David Sherwood  <david.sherwood@arm.com>
7391         * target.def (hard_regno_mode_ok): New hook.
7392         * doc/tm.texi (HARD_REGNO_MODE_OK): Replace with...
7393         (TARGET_HARD_REGNO_MODE_OK): ...this.
7394         * doc/tm.texi.in: Regenerate.
7395         * hooks.h (hook_bool_uint_mode_true): Declare.
7396         * hooks.c (hook_bool_uint_mode_true): New function.
7397         * doc/md.texi: Refer to targetm.hard_regno_mode_ok instead of
7398         HARD_REGNO_MODE_OK.
7399         * genpreds.c (write_insn_preds_c): Add an include of target.h.
7400         * alias.c (init_alias_target): Use targetm.hard_regno_mode_ok
7401         instead of HARD_REGNO_MODE_OK.
7402         * caller-save.c: Include target.h.
7403         (reg_save_code): Use targetm.hard_regno_mode_ok instead of
7404         HARD_REGNO_MODE_OK.
7405         * combine.c (can_combine_p): Likewise.
7406         (combinable_i3pat): Likewise.
7407         (can_change_dest_mode): Likewise.
7408         * expr.c (init_expr_target): Likewise.
7409         (convert_move): Likewise.
7410         (convert_modes): Likewise.
7411         * ira.c (setup_prohibited_class_mode_regs): Likewise.
7412         (setup_prohibited_mode_move_regs): Likewise.
7413         * ira.h (target_ira): Likewise.
7414         * lra-assigns.c (find_hard_regno_for_1): Likewise.
7415         * lra-constraints.c (process_alt_operands): Likewise.
7416         (split_reg): Likewise.
7417         * recog.c (peep2_find_free_register): Likewise.
7418         * ree.c (combine_reaching_defs): Likewise.
7419         * regcprop.c (maybe_mode_change): Likewise.
7420         * reginfo.c (init_reg_sets_1): Likewise.
7421         (choose_hard_reg_mode): Likewise.
7422         (simplifiable_subregs): Likewise.
7423         * regrename.c (check_new_reg_p): Likewise.
7424         * reload.c (find_valid_class): Likewise.
7425         (find_valid_class_1): Likewise.
7426         (reload_inner_reg_of_subreg): Likewise.
7427         (push_reload): Likewise.
7428         (combine_reloads): Likewise.
7429         (find_dummy_reload): Likewise.
7430         (find_reloads): Likewise.
7431         * reload1.c (find_reg): Likewise.
7432         (set_reload_reg): Likewise.
7433         (allocate_reload_reg): Likewise.
7434         (choose_reload_regs): Likewise.
7435         (reload_adjust_reg_for_temp): Likewise.
7436         * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
7437         (simplify_subreg_regno): Likewise.
7438         * sel-sched.c (init_regs_for_mode): Likewise.
7439         * varasm.c (make_decl_rtl): Likewise.
7440         * config/aarch64/aarch64.h (HARD_REGNO_MODE_OK): Delete.
7441         (MODES_TIEABLE_P): Use targetm.hard_regno_mode_ok instead of
7442         HARD_REGNO_MODE_OK.
7443         * config/aarch64/aarch64-protos.h (aarch64_hard_regno_mode_ok): Delete.
7444         * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Make static.
7445         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7446         * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Delete.
7447         * config/alpha/alpha.c (alpha_hard_regno_mode_ok): New function.
7448         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7449         * config/arc/arc.h (arc_hard_regno_mode_ok): Delete.
7450         (arc_mode_class): Delete.
7451         (HARD_REGNO_MODE_OK): Delete.
7452         * config/arc/arc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7453         (arc_hard_regno_mode_ok): Rename old array to...
7454         (arc_hard_regno_mode_ok_modes): ...this.
7455         (arc_conditional_register_usage): Update accordingly.
7456         (arc_mode_class): Make static.
7457         (arc_hard_regno_mode_ok): New function.
7458         * config/arm/arm.h (HARD_REGNO_MODE_OK): Delete.
7459         * config/arm/arm-protos.h (arm_hard_regno_mode_ok): Delete.
7460         * config/arm/arm.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7461         (arm_hard_regno_mode_ok): Make static.
7462         * config/arm/arm.md (movdi): Use targetm.hard_regno_mode_ok instead of
7463         HARD_REGNO_MODE_OK.
7464         * config/avr/avr-protos.h (avr_hard_regno_mode_ok): Delete.
7465         * config/avr/avr.h (HARD_REGNO_MODE_OK): Delete.
7466         * config/avr/avr.c (avr_hard_regno_mode_ok): Make static and
7467         return a bool.
7468         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7469         * config/bfin/bfin-protos.h (hard_regno_mode_ok): Delete.
7470         * config/bfin/bfin.h (HARD_REGNO_MODE_OK): Delete.
7471         * config/bfin/bfin.c (hard_regno_mode_ok): Rename to...
7472         (bfin_hard_regno_mode_ok): ...this.  Make static and return a bool.
7473         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7474         * config/bfin/predicates.md (valid_reg_operand): Use
7475         targetm.hard_regno_mode_ok instead of HARD_REGNO_MODE_OK.
7476         * config/c6x/c6x.h (HARD_REGNO_MODE_OK): Delete.
7477         * config/c6x/c6x.c (c6x_hard_regno_mode_ok): New function.
7478         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7479         * config/cr16/cr16.h (HARD_REGNO_MODE_OK): Delete.
7480         * config/cr16/cr16-protos.h (cr16_hard_regno_mode_ok): Delete.
7481         * config/cr16/cr16.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7482         (cr16_hard_regno_mode_ok): Make static and return a bool.
7483         * config/cris/cris.h (HARD_REGNO_MODE_OK): Delete.
7484         * config/cris/cris.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7485         (cris_hard_regno_mode_ok): New function.
7486         * config/epiphany/epiphany.h (epiphany_hard_regno_mode_ok): Delete.
7487         (epiphany_mode_class): Delete.
7488         (HARD_REGNO_MODE_OK): Delete.
7489         * config/epiphany/epiphany-protos.h (hard_regno_mode_ok): Delete.
7490         * config/epiphany/epiphany.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7491         (hard_regno_mode_ok): Rename to...
7492         (epiphany_hard_regno_mode_ok): ...this.  Make static and return a bool.
7493         * config/fr30/fr30.h (HARD_REGNO_MODE_OK): Delete.
7494         * config/fr30/fr30.md: Refer to targetm.hard_regno_mode_ok instead of
7495         HARD_REGNO_MODE_OK.
7496         * config/frv/frv.h (HARD_REGNO_MODE_OK): Delete.
7497         * config/frv/frv-protos.h (frv_hard_regno_mode_ok): Delete.
7498         * config/frv/frv.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7499         (frv_hard_regno_mode_ok): Make static and return a bool.
7500         * config/frv/frv.md: Refer to targetm.hard_regno_mode_ok instead of
7501         HARD_REGNO_MODE_OK.
7502         * config/ft32/ft32.h (HARD_REGNO_MODE_OK): Delete.
7503         * config/h8300/h8300.h (HARD_REGNO_MODE_OK): Delete.
7504         * config/h8300/h8300-protos.h (h8300_hard_regno_mode_ok): Delete.
7505         * config/h8300/h8300.c (h8300_hard_regno_mode_ok): Make static
7506         and return a bool.
7507         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7508         * config/i386/i386.h (HARD_REGNO_MODE_OK): Delete.
7509         * config/i386/i386-protos.h (ix86_hard_regno_mode_ok): Delete.
7510         * config/i386/i386.c (ix86_hard_regno_mode_ok): Make static and
7511         return a bool.
7512         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7513         * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Delete.
7514         * config/ia64/ia64.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7515         (ia64_hard_regno_mode_ok): New function.
7516         * config/iq2000/iq2000.h (HARD_REGNO_MODE_OK): Delete.
7517         * config/iq2000/iq2000.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7518         (iq2000_hard_regno_mode_ok): New function.
7519         * config/lm32/lm32.h (HARD_REGNO_MODE_OK): Delete.
7520         * config/lm32/lm32.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7521         (lm32_hard_regno_mode_ok): New function.
7522         * config/m32c/m32c.h (HARD_REGNO_MODE_OK): Delete.
7523         * config/m32c/m32c-protos.h (m32c_hard_regno_ok): Delete.
7524         * config/m32c/m32c.c (class_can_hold_mode): Use m32c_hard_regno_mode_ok
7525         instead of HARD_REGNO_MODE_OK.
7526         (m32c_hard_regno_ok): Rename to...
7527         (m32c_hard_regno_mode_ok): ...this.  Make static and return a bool.
7528         (m32c_cannot_change_mode_class): Update accordingly.
7529         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7530         * config/m32r/m32r.h (m32r_hard_regno_mode_ok): Delete.
7531         (m32r_mode_class): Delete.
7532         (HARD_REGNO_MODE_OK): Delete.
7533         * config/m32r/m32r.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7534         (m32r_hard_regno_mode_ok): Rename to...
7535         (m32r_hard_regno_modes): ...this.
7536         (m32r_mode_class): Make static.
7537         (m32r_hard_regno_mode_ok): New function.
7538         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Delete.
7539         * config/m68k/m68k-protos.h (m68k_regno_mode_ok): Delete.
7540         * config/m68k/m68k.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7541         (m68k_hard_regno_mode_ok): Make static.
7542         * config/mcore/mcore.h (HARD_REGNO_MODE_OK): Delete.
7543         * config/mcore/mcore.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7544         (mcore_hard_regno_mode_ok): New function.
7545         * config/microblaze/microblaze.h (microblaze_hard_regno_mode_ok)
7546         (HARD_REGNO_MODE_OK): Delete.
7547         * config/microblaze/microblaze.c (microblaze_hard_regno_mode_ok):
7548         Rename to...
7549         (microblaze_hard_regno_mode_ok_p): ...this and make static.
7550         (microblaze_hard_regno_mode_ok): New function.
7551         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7552         * config/mips/mips.h (HARD_REGNO_MODE_OK): Delete.
7553         (mips_hard_regno_mode_ok): Delete.
7554         * config/mips/mips.c (mips_hard_regno_mode_ok): Rename to...
7555         (mips_hard_regno_mode_ok_p): ...this and make static.
7556         (mips_hard_regno_mode_ok_p): Rename to...
7557         (mips_hard_regno_mode_ok_uncached): ...this.
7558         (mips_hard_regno_mode_ok): New function.
7559         (mips_class_max_nregs): Use mips_hard_regno_mode_ok instead
7560         of HARD_REGNO_MODE_OK.
7561         (mips_option_override): Update after above name changes.
7562         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7563         * config/mmix/mmix.h (HARD_REGNO_MODE_OK): Delete.
7564         * config/mn10300/mn10300.h (HARD_REGNO_MODE_OK): Delete.
7565         * config/mn10300/mn10300-protos.h (mn10300_hard_regno_mode_ok): Delete.
7566         * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Make static.
7567         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7568         * config/moxie/moxie.h (HARD_REGNO_MODE_OK): Delete.
7569         * config/msp430/msp430.h (HARD_REGNO_MODE_OK): Delete.
7570         * config/msp430/msp430-protos.h (msp430_hard_regno_mode_ok): Delete.
7571         * config/msp430/msp430.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7572         (msp430_hard_regno_mode_ok): Make static and return a bool.
7573         * config/nds32/nds32.h (HARD_REGNO_MODE_OK): Delete.
7574         * config/nds32/nds32-protos.h (nds32_hard_regno_mode_ok): Delete.
7575         * config/nds32/nds32.c (nds32_hard_regno_mode_ok): Make static
7576         and return a bool.
7577         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7578         * config/nios2/nios2.h (HARD_REGNO_MODE_OK): Delete.
7579         * config/nvptx/nvptx.h (HARD_REGNO_MODE_OK): Delete.
7580         * config/pa/pa.h (MODES_TIEABLE_P): Update commentary.
7581         * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): Rename to...
7582         (PA_HARD_REGNO_MODE_OK): ...this
7583         * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Rename to...
7584         (PA_HARD_REGNO_MODE_OK): ...this.
7585         * config/pa/pa.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7586         (pa_hard_regno_mode_ok): New function.
7587         * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Delete.
7588         * config/pdp11/pdp11.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7589         (pdp11_hard_regno_mode_ok): New function.
7590         * config/powerpcspe/powerpcspe.h (HARD_REGNO_MODE_OK): Delete.
7591         * config/powerpcspe/powerpcspe-protos.h (rs6000_hard_regno_mode_ok_p):
7592         Delete.
7593         * config/powerpcspe/powerpcspe.c (rs6000_hard_regno_mode_ok_p):
7594         Make static.
7595         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7596         (rs6000_hard_regno_mode_ok): Rename to...
7597         (rs6000_hard_regno_mode_ok_uncached): ...this.
7598         (rs6000_init_hard_regno_mode_ok): Update accordingly.
7599         (rs6000_hard_regno_mode_ok): New function.
7600         * config/riscv/riscv.h (HARD_REGNO_MODE_OK): Delete.
7601         * config/riscv/riscv-protos.h (riscv_hard_regno_mode_ok_p): Delete.
7602         * config/riscv/riscv.c (riscv_hard_regno_mode_ok_p): Rename to...
7603         (riscv_hard_regno_mode_ok): ...this and make static.
7604         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7605         * config/rl78/rl78.h (HARD_REGNO_MODE_OK): Delete.
7606         * config/rl78/rl78-protos.h (rl78_hard_regno_mode_ok): Delete.
7607         * config/rl78/rl78.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7608         (rl78_hard_regno_mode_ok): Make static and return bool.
7609         * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Delete.
7610         * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
7611         Delete.
7612         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): Make static.
7613         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7614         (rs6000_hard_regno_mode_ok): Rename to...
7615         (rs6000_hard_regno_mode_ok_uncached): ...this.
7616         (rs6000_init_hard_regno_mode_ok): Update accordingly.
7617         (rs6000_hard_regno_mode_ok): New function.
7618         * config/rx/rx.h (HARD_REGNO_MODE_OK): Delete.
7619         * config/rx/rx.c (rx_hard_regno_mode_ok): New function.
7620         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7621         * config/s390/s390.h (HARD_REGNO_MODE_OK): Delete.
7622         * config/s390/s390-protos.h (s390_hard_regno_mode_ok): Delete.
7623         * config/s390/s390.c (s390_hard_regno_mode_ok): Make static.
7624         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7625         * config/sh/sh.h (HARD_REGNO_MODE_OK): Delete.
7626         * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Delete.
7627         * config/sh/sh.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7628         (sh_hard_regno_mode_ok): Make static.
7629         * config/sparc/constraints.md: Refer to targetm.hard_regno_mode_ok
7630         instead of HARD_REGNO_MODE_OK.
7631         * config/sparc/sparc.h (hard_regno_mode_classes): Delete.
7632         (sparc_mode_class): Delete.
7633         (HARD_REGNO_MODE_OK): Delete.
7634         * config/sparc/sparc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7635         (hard_regno_mode_classes): Make static.
7636         (sparc_mode_class): Likewise.
7637         (sparc_hard_regno_mode_ok): New function.
7638         * config/spu/spu.h (HARD_REGNO_MODE_OK): Delete.
7639         * config/stormy16/stormy16.h (HARD_REGNO_MODE_OK): Delete.
7640         * config/stormy16/stormy16.c (xstormy16_hard_regno_mode_ok): New
7641         function.
7642         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7643         * config/tilegx/tilegx.h (HARD_REGNO_MODE_OK): Delete.
7644         * config/tilepro/tilepro.h (HARD_REGNO_MODE_OK): Delete.
7645         * config/v850/v850.h (HARD_REGNO_MODE_OK): Delete.
7646         * config/v850/v850.c (v850_hard_regno_mode_ok): New function.
7647         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7648         * config/vax/vax.h (HARD_REGNO_MODE_OK): Delete.
7649         * config/visium/visium.h (HARD_REGNO_MODE_OK): Delete.
7650         * config/visium/visium.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7651         (visium_hard_regno_mode_ok): New function.
7652         * config/visium/visium.md: Refer to targetm.hard_regno_mode_ok
7653         instead of HARD_REGNO_MODE_OK.
7654         * config/xtensa/xtensa.h (xtensa_hard_regno_mode_ok): Delete.
7655         (HARD_REGNO_MODE_OK): Delete.
7656         * config/xtensa/xtensa.c (xtensa_hard_regno_mode_ok): Rename to...
7657         (xtensa_hard_regno_mode_ok_p): ...this and make static.
7658         (xtensa_option_override): Update accordingly.
7659         (TARGET_HARD_REGNO_MODE_OK): Redefine.
7660         (xtensa_hard_regno_mode_ok): New function.
7661         * system.h (HARD_REGNO_MODE_OK): Poison.
7663 2017-09-04  Richard Sandiford  <richard.sandiford@linaro.org>
7664             Alan Hayward  <alan.hayward@arm.com>
7665             David Sherwood  <david.sherwood@arm.com>
7667         * target.def (hard_regno_call_part_clobbered): New hook.
7668         * doc/tm.texi.in (HARD_REGNO_CALL_PART_CLOBBERED): Replace with...
7669         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): ...this hook.
7670         * doc/tm.texi: Regenerate.
7671         * hooks.h (hook_bool_uint_mode_false): Declare.
7672         * hooks.c (hook_bool_uint_mode_false): New function.
7673         * regs.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7674         * cselib.c (cselib_process_insn): Use
7675         targetm.hard_regno_call_part_clobbered instead of
7676         HARD_REGNO_CALL_PART_CLOBBERED.
7677         * ira-conflicts.c (ira_build_conflicts): Likewise.
7678         * ira-costs.c (ira_tune_allocno_costs): Likewise.
7679         * lra-constraints.c (need_for_call_save_p): Likewise.
7680         * lra-lives.c: Include target.h.
7681         (check_pseudos_live_through_calls): Use
7682         targetm.hard_regno_call_part_clobbered instead of
7683         HARD_REGNO_CALL_PART_CLOBBERED.
7684         * regcprop.c: Include target.h.
7685         (copyprop_hardreg_forward_1): Use
7686         targetm.hard_regno_call_part_clobbered instead of
7687         HARD_REGNO_CALL_PART_CLOBBERED.
7688         * reginfo.c (choose_hard_reg_mode): Likewise.
7689         * regrename.c (check_new_reg_p): Likewise.
7690         * reload.c (find_equiv_reg): Likewise.
7691         * reload1.c (emit_reload_insns): Likewise.
7692         * sched-deps.c (deps_analyze_insn): Likewise.
7693         * sel-sched.c (init_regs_for_mode): Likewise.
7694         (mark_unavailable_hard_regs): Likewise.
7695         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
7696         * config/aarch64/aarch64.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7697         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7698         New function.
7699         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7700         * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7701         * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered):
7702         Delete.
7703         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Make static
7704         and return a bool.
7705         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7706         * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7707         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): New
7708         function.
7709         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7710         * config/mips/mips.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7711         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): New
7712         function.
7713         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7714         * config/powerpcspe/powerpcspe.h (HARD_REGNO_CALL_PART_CLOBBERED):
7715         Delete.
7716         * config/powerpcspe/powerpcspe.c
7717         (rs6000_hard_regno_call_part_clobbered): New function.
7718         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7719         * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7720         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
7721         New function.
7722         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7723         * config/s390/s390.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7724         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): New
7725         function.
7726         (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7727         * config/sh/sh.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7728         * system.h (HARD_REGNO_CALL_PART_CLOBBERED): Poison.
7730 2017-09-04  Richard Sandiford  <richard.sandiford@linaro.org>
7731             Alan Hayward  <alan.hayward@arm.com>
7732             David Sherwood  <david.sherwood@arm.com>
7734         * rtl.h (subreg_memory_offset): Declare.
7735         * emit-rtl.c (subreg_memory_offset): New function.
7736         * expmed.c (store_bit_field_1): Use it.
7737         * expr.c (undefined_operand_subword_p): Likewise.
7738         * simplify-rtx.c (simplify_subreg): Likewise.
7740 2017-09-04  Alexander Monakov  <amonakov@ispras.ru>
7742         PR rtl-optimization/57448
7743         PR target/67458
7744         PR target/81316
7745         * optabs.c (expand_atomic_load): Place compiler memory barriers if
7746         using atomic_load pattern.
7747         (expand_atomic_store): Likewise.
7749 2017-09-04  Jakub Jelinek  <jakub@redhat.com>
7751         PR sanitizer/81981
7752         * gimple-fold.c (gimple_fold_call): Optimize away useless UBSAN_PTR
7753         and UBSAN_BOUNDS internal calls.  Clean up IFN_UBSAN_OBJECT_SIZE
7754         handling.  Use replace_call_with_value with NULL instead of
7755         gsi_replace, unlink_stmt_vdef and release_defs.
7757         * gdbhooks.py (OptMachineModePrinter.to_string): Use 8 spaces
7758         instead of tab.
7760         * lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
7762 2017-09-04  Richard Sandiford  <richard.sandiford@linaro.org>
7764         PR bootstrap/82045
7765         * rtl.h (emit_library_call_value_1): Declare.
7766         (emit_library_call): Replace declaration with a series of overloads.
7767         Remove the parameter count argument.
7768         (emit_library_call_value): Likewise.
7769         * calls.c (emit_library_call_value_1): Make global.  Replace varargs
7770         with an "rtx_mode_t *".
7771         (emit_library_call_value): Delete.
7772         (emit_library_call): Likewise.
7773         * asan.c (asan_emit_stack_protection): Update calls accordingly.
7774         (asan_emit_allocas_unpoison): Likewise.
7775         * builtins.c (expand_builtin_powi): Likewise.
7776         (expand_asan_emit_allocas_unpoison): Likewise.
7777         * cfgexpand.c (expand_main_function): Likewise.
7778         * config/aarch64/aarch64.c (aarch64_trampoline_init): Likewise.
7779         * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
7780         * config/alpha/alpha.c (alpha_trampoline_init): Likewise.
7781         * config/arm/arm.c (arm_trampoline_init): Likewise.
7782         (arm_call_tls_get_addr): Likewise.
7783         (arm_expand_divmod_libfunc): Likewise.
7784         * config/bfin/bfin.md (umulsi3_highpart): Likewise.
7785         (smulsi3_highpart): Likewise.
7786         * config/c6x/c6x.c (c6x_initialize_trampoline): Likewise.
7787         (c6x_expand_compare): Likewise.
7788         (c6x_expand_movmem): Likewise.
7789         * config/frv/frv.c (frv_trampoline_init): Likewise.
7790         * config/i386/i386.c (ix86_trampoline_init): Likewise.
7791         (ix86_expand_divmod_libfunc): Likewise.
7792         * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
7793         (ia64_expand_compare): Likewise.
7794         (ia64_profile_hook): Likewise.
7795         * config/ia64/ia64.md (save_stack_nonlocal): Likewise.
7796         (nonlocal_goto): Likewise.
7797         (restore_stack_nonlocal): Likewise.
7798         * config/m32r/m32r.c (block_move_call): Likewise.
7799         (m32r_trampoline_init): Likewise.
7800         * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7801         * config/m68k/m68k.c (m68k_call_tls_get_addr): Likewise.
7802         (m68k_call_m68k_read_tp): Likewise.
7803         * config/microblaze/microblaze.c (microblaze_call_tls_get_addr)
7804         (microblaze_expand_divide): Likewise.
7805         * config/mips/mips.h (mips_args): Likewise.
7806         * config/mips/sdemtk.h (mips_sync_icache): Likewise.
7807         (MIPS_ICACHE_SYNC): Likewise.
7808         * config/nios2/nios2.c (nios2_emit_expensive_div): Likewise.
7809         (nios2_trampoline_init): Likewise.
7810         * config/pa/pa.c (hppa_tls_call): Likewise.
7811         (pa_trampoline_init): Likewise.
7812         * config/pa/pa.md (canonicalize_funcptr_for_compare): Likewise.
7813         * config/powerpcspe/powerpcspe.c (rs6000_legitimize_tls_address)
7814         (expand_strn_compare): Likewise.
7815         (rs6000_generate_compare): Likewise.
7816         (rs6000_expand_float128_convert): Likewise.
7817         (output_profile_hook): Likewise.
7818         (rs6000_trampoline_init): Likewise.
7819         * config/powerpcspe/powerpcspe.md (neg<mode>2): Likewise.
7820         * config/riscv/riscv.h (PROFILE_HOOK): Likewise.
7821         * config/rs6000/rs6000-string.c (expand_strn_compare): Likewise.
7822         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
7823         (rs6000_generate_compare): Likewise.
7824         (rs6000_expand_float128_convert): Likewise.
7825         (output_profile_hook): Likewise.
7826         (rs6000_trampoline_init): Likewise.
7827         * config/rs6000/rs6000.md (neg<mode>2): Likewise.
7828         * config/sh/sh.c (sh_trampoline_init): Likewise.
7829         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Likewise.
7830         (sparc_emit_float_lib_cmp): Likewise.
7831         (sparc32_initialize_trampoline): Likewise.
7832         (sparc64_initialize_trampoline): Likewise.
7833         (sparc_profile_hook): Likewise.
7834         * config/spu/spu.c (ea_load_store): Likewise.
7835         * config/spu/spu.md (floatunssidf2): Likewise.
7836         * config/tilegx/tilegx.c (tilegx_trampoline_init): Likewise.
7837         * config/tilepro/tilepro.c (tilepro_trampoline_init): Likewise.
7838         * config/visium/visium.c (expand_block_move_4): Likewise.
7839         (expand_block_move_2): Likewise.
7840         (expand_block_move_1): Likewise.
7841         (expand_block_set_4): Likewise.
7842         (expand_block_set_2): Likewise.
7843         (expand_block_set_1): Likewise.
7844         (visium_trampoline_init): Likewise.
7845         (visium_profile_hook): Likewise.
7846         * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Likewise.
7847         (xtensa_setup_frame_addresses): Likewise.
7848         (xtensa_trampoline_init): Likewise.
7849         * except.c (sjlj_emit_function_enter): Likewise.
7850         (sjlj_emit_function_exit): Likewise.
7851         * explow.c (allocate_dynamic_stack_space): Likewise.
7852         (probe_stack_range): Likewise.
7853         * expr.c (convert_mode_scalar): Likewise.
7854         * optabs.c (expand_binop): Likewise.
7855         (expand_twoval_binop_libfunc): Likewise.
7856         (expand_unop): Likewise.
7857         (prepare_cmp_insn): Likewise.
7858         (prepare_float_lib_cmp): Likewise.
7859         (expand_float): Likewise.
7860         (expand_fix): Likewise.
7861         (expand_fixed_convert): Likewise.
7862         (maybe_emit_sync_lock_test_and_set): Likewise.
7863         (expand_atomic_compare_and_swap): Likewise.
7864         (expand_mem_thread_fence): Likewise.
7865         (expand_atomic_fetch_op): Likewise.
7867 2017-09-03  Gerald Pfeifer  <gerald@pfeifer.com>
7869         * doc/generic.texi (OpenACC): Adjust URL.
7870         * doc/invoke.texi (C Dialect Options): Ditto.
7872 2017-09-03  Uros Bizjak  <ubizjak@gmail.com>
7874         * config/i386/i386.md (*bt<mode>): Use nonimmediate_operand
7875         predicate for operand 1.  Add (m,<S>) constraint.
7876         (*jcc_bt<mode>): Use nonimmediate_operand predicate for operand 1.
7877         Prevent memory operand 1 with register operand 2.
7879 2017-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
7881         PR rtl-optimization/82024
7882         * combine.c (try_combine): If the combination result is a PARALLEL,
7883         and we only need to retain the SET in there that would be placed
7884         at I2, check that we can place that at I3 instead, before doing so.
7886 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
7888         PR target/81766
7889         * config/i386/i386.c (ix86_init_large_pic_reg): Return label
7890         instead of void.
7891         (ix86_init_pic_reg): Remember label from ix86_init_large_pic_reg,
7892         if non-NULL and preceded by NOTE_INSN_BASIC_BLOCK, swap the note
7893         and label.
7895 2017-09-01  Joerg Sonnenberger  <joerg@bec.de>
7896             Jeff Law  <law@redhat.com>
7898         * varasm.c (bss_initializer_p): Do not put constants into .bss
7899         (categorize_decl_for_section): Handle bss_initializer_p returning
7900         false when DECL_INITIAL is NULL.
7902 2017-09-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7904         PR target/82012
7905         * config/s390/s390.c (s390_can_inline_p): New function.
7907 2017-09-01  Jeff Law  <law@redhat.com>
7909         PR tree-optimization/82052
7910         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7911         Always initialize the returned slot after a hash table miss
7912         when INSERT is true.
7914 2017-09-01  Alexander Monakov  <amonakov@ispras.ru>
7916         * config/s390/s390.md (mem_signal_fence): Remove.
7917         * doc/md.texi (mem_signal_fence): Remove.
7918         * optabs.c (expand_mem_signal_fence): Remove uses of mem_signal_fence.
7919         Update comments.
7920         * target-insns.def (mem_signal_fence): Remove.
7922 2017-09-01  Jakub Jelinek  <jakub@redhat.com>
7924         PR sanitizer/81902
7925         * doc/invoke.texi: Document -fsanitize=pointer-overflow.
7927         PR sanitizer/81923
7928         * asan.c (create_odr_indicator): Strip name encoding from assembler
7929         name before appending it after __odr_asan_.
7931 2017-09-01  Martin Liska  <mliska@suse.cz>
7933         PR tree-optimization/82059
7934         * gimple-ssa-isolate-paths.c (isolate_path): Add profile and
7935         frequency only when an edge is redirected.
7937 2017-09-01  Claudiu Zissulescu  <claziss@synopsys.com>
7939         * config/arc/arc-c.c (__ARC_LPC_WIDTH__): Add builtin define.
7940         * config/arc/arc.c (ARC_MAX_LOOP_LENGTH): Define.
7941         (arc_conditional_register_usage): Remove ARC600 lp_count
7942         exception.
7943         (arc_file_start): Emit Tag_ARC_CPU_variation.
7944         (arc_can_use_doloop_p): New conditions to use ZOLs.
7945         (hwloop_fail): New function.
7946         (hwloop_optimize): Likewise.
7947         (hwloop_pattern_reg): Likewise.
7948         (arc_doloop_hooks): New struct, to be used with reorg_loops.
7949         (arc_reorg_loops): New function, calls reorg_loops.
7950         (arc_reorg): Call arc_reorg_loops.  Remove old ZOL handling.
7951         (arc600_corereg_hazard): Remove ZOL checking, case handled by
7952         hwloop_optimize.
7953         (arc_loop_hazard): Remove function, functionality moved into
7954         hwloop_optimize.
7955         (arc_hazard): Remove arc_loop_hazard call.
7956         (arc_adjust_insn_length): Remove ZOL handling, functionality moved
7957         into hwloop_optimize.
7958         (arc_label_align): Remove ZOL handling.
7959         * config/arc/arc.h (LOOP_ALIGN): Changed to 0.
7960         * config/arc/arc.md (doloop_begin): Remove pattern.
7961         (doloop_begin_i): Likewise.
7962         (doloop_end_i): Likewise.
7963         (doloop_fallback): Likewise.
7964         (doloop_fallback_m): Likewise.
7965         (doloop_end): Reimplement expand.
7966         (arc_lp): New pattern for LP instruction.
7967         (loop_end): New pattern.
7968         (loop_fail): Likewise.
7969         (decrement_and_branch_until_zero): Likewise.
7970         * config/arc/arc.opt (mlpc-width): New option.
7971         * doc/invoke.texi (mlpc-width): Document option.
7973 2017-09-01  Claudiu Zissulescu  <claziss@synopsys.com>
7975         * config/arc/arc.c (arc_ifcvt): Remove use of merge_blocks call.
7976         (arc_ccfsm_advance): Fix checking for delay slots.
7977         (arc_reorg): Add rtl dump after each call to arc_ifcvt.
7979 2017-09-01  Claudiu Zissulescu  <claziss@synopsys.com>
7981         * config/arc/arc.md (movqi_insn): Add stores to save constant long
7982         immediates.
7983         (movhi_insn): Update store instruction constraint which are saving
7984         6-bit short immediates.
7985         (movsi_insn): Consider also short scaled load operations.
7986         (zero_extendhisi2_i): Use Usd constraint instead of T.
7987         (extendhisi2_i): Add q constraint.
7988         (arc_clzsi2): Add type and length attributes.
7989         (arc_ctzsi2): Likewise.
7990         * config/arc/constraints.md (Usc): Update constraint, the
7991         assembler can parse two relocations for a single instruction.
7993 2017-09-01  Claudiu Zissulescu  <claziss@synopsys.com>
7995         * config/arc/arc.c (arc_use_anchors_for_symbol_p): New function.
7996         (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
7998 2017-08-31  Olivier Hainque  <hainque@adacore.com>
8000         * config.gcc (powerpc-wrs-vxworks|vxworksae|vxworksmils): Now
8001         match as powerpc-wrs-vxworks*.
8003 2017-08-31  James Greenhalgh  <james.greenhalgh@arm.com>
8005         * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): Fix
8006         register constraint for by-element operand.
8007         (aarch64_mls_elt_merge<mode>): Likewise.
8009 2017-08-31  Claudiu Zissulescu  <claziss@synopsys.com>
8011         * config/arc/arc.c (arc_can_follow_jump): Check for short
8012         branches.
8014 2017-08-31  Claudiu Zissulescu  <claziss@synopsys.com>
8016         * config.gcc: Use g.opt for arc.
8017         * config/arc/arc.c (LEGITIMATE_SCALED_ADDRESS_P): Deleted,
8018         functionality moved to ...
8019         (legitimate_scaled_address_p): New function, ...here.
8020         (LEGITIMATE_SMALL_DATA_OFFSET_P): New define.
8021         (LEGITIMATE_SMALL_DATA_ADDRESS_P): Use the above define.
8022         (legitimate_offset_address_p): Delete TARGET_NO_SDATA_SET
8023         condition.
8024         (arc_override_options): Handle G option.
8025         (arc_output_pic_addr_const): Correct function definition.
8026         (arc_legitimate_address_p): Use legitimate_scaled_address_p.
8027         (arc_decl_anon_ns_mem_p): Delete.
8028         (arc_in_small_data_p): Overhaul this function to take into
8029         consideration the value given via G option.
8030         (arc_rewrite_small_data_1): Renamed and corrected old
8031         arc_rewrite_small_data function.
8032         (arc_rewrite_small_data): New function.
8033         (small_data_pattern): Don't use pic_offset_table_rtx.
8034         * config/arc/arc.h (CC1_SPEC): Recognize G option.
8035         * config/arc/simdext.md (movmisalignv2hi): Use
8036         prepare_move_operands function.
8037         (mov*): Likewise.
8038         (movmisalign*): Likewise.
8039         * doc/invoke.texi (ARC options): Document -G option.
8041 2017-08-31  Claudiu Zissulescu  <claziss@synopsys.com>
8043         * config/arc/arc-protos.h (compact_sda_memory_operand): Update
8044         prototype.
8045         * config/arc/arc.c (arc_print_operand): Output scalled address for
8046         sdata whenever is possible.
8047         (arc_in_small_data_p): Allow sdata for 64bit datum when double
8048         load/stores are available.
8049         (compact_sda_memory_operand): Check for the alignment required by
8050         code density instructions.
8051         * config/arc/arc.md (movsi_insn): Use newly introduced Us0
8052         constraint.
8053         * config/arc/constraints.md (Usd): Update constraint.
8054         (Us0): New constraint.
8055         (Usc): Update constraint.
8057 2017-08-31  Richard Biener  <rguenther@suse.de>
8059         PR middle-end/82054
8060         * dwarf2out.c (dwarf2out_early_global_decl): Process each
8061         function only once.
8063 2017-08-31  Tamar Christina  <tamar.christina@arm.com>
8065         * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
8066         Resize type_signature.
8068 2017-08-31  Richard Sandiford  <richard.sandiford@linaro.org>
8069             Alan Hayward  <alan.hayward@arm.com>
8070             David Sherwood  <david.sherwood@arm.com>
8072         * config/aarch64/aarch64.c (aarch64_base_register_rtx_p): Only allow
8073         subregs whose inner modes can be stored in GPRs.
8074         (aarch64_classify_index): Likewise.
8076 2017-08-31  Richard Sandiford  <richard.sandiford@linaro.org>
8077             Alan Hayward  <alan.hayward@arm.com>
8078             David Sherwood  <david.sherwood@arm.com>
8080         * config/aarch64/iterators.md (V_cmp_result): Rename to...
8081         (V_INT_EQUIV): ...this.
8082         (v_cmp_result): Rename to...
8083         (v_int_equiv): ...this.
8084         * config/aarch64/aarch64.md (xorsign<mode>3): Update accordingly.
8085         * config/aarch64/aarch64-simd.md (xorsign<mode>3): Likewise.
8086         (copysign<mode>3): Likewise.
8087         (aarch64_simd_bsl<mode>_internal): Likewise.
8088         (aarch64_simd_bsl<mode>): Likewise.
8089         (vec_cmp<mode><mode>): Likewise.
8090         (vcond<mode><mode>): Likewise.
8091         (vcond<v_cmp_mixed><mode>): Likewise.
8092         (vcondu<mode><v_cmp_mixed>): Likewise.
8093         (aarch64_cm<optab><mode>): Likewise.
8094         (aarch64_cmtst<mode>): Likewise.
8095         (aarch64_fac<optab><mode>): Likewise.
8096         (vec_perm_const<mode>): Likewise.
8097         (vcond_mask_<mode><v_cmp_result>): Rename to...
8098         (vcond_mask_<mode><v_int_equiv>): ...this.
8099         (vec_cmp<mode><v_cmp_result>): Rename to...
8100         (vec_cmp<mode><v_int_equiv>): ...this.
8102 2017-08-31  Richard Sandiford  <richard.sandiford@linaro.org>
8103             Alan Hayward  <alan.hayward@arm.com>
8104             David Sherwood  <david.sherwood@arm.com>
8106         * config/aarch64/aarch64-modes.def: Remove 32-, 48- and 64-byte
8107         vector modes.
8108         * config/aarch64/iterators.md (VRL2, VRL3, VRL4): Delete.
8109         * config/aarch64/aarch64.md (UNSPEC_LD2_DREG, UNSPEC_LD3_DREG)
8110         (UNSPEC_LD4_DREG): New unspecs.
8111         * config/aarch64/aarch64-simd.md (aarch64_ld2<mode>_dreg_le)
8112         (aarch64_ld2<mode>_dreg_be): Replace with...
8113         (aarch64_ld2<mode>_dreg): ...this pattern and use the new DREG
8114         unspec.
8115         (aarch64_ld3<mode>_dreg_le)
8116         (aarch64_ld3<mode>_dreg_be): Replace with...
8117         (aarch64_ld3<mode>_dreg): ...this pattern and use the new DREG
8118         unspec.
8119         (aarch64_ld4<mode>_dreg_le)
8120         (aarch64_ld4<mode>_dreg_be): Replace with...
8121         (aarch64_ld4<mode>_dreg): ...this pattern and use the new DREG
8122         unspec.
8124 2017-08-30  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8126         PR tree-optimization/81987
8127         * gimple-ssa-strength-reduction.c (insert_initializers): Don't
8128         insert an initializer in a location not dominated by the stride
8129         definition.
8131 2017-08-30  Eric Botcazou  <ebotcazou@adacore.com>
8133         * tree-eh.c (lower_try_finally_switch): Set the location of the finally
8134         on the entire header of the finally block in the fallthru case.
8136 2017-08-30  Eric Botcazou  <ebotcazou@adacore.com>
8138         * varasm.c (decode_addr_const): Deal with INDIRECT_REF <INTEGER_CST>.
8140 2017-08-30  Pat Haugen  <pthaugen@us.ibm.com>
8142         * config/rs6000/rs6000.c (rs6000_emit_prologue_move_from_cr): Rename from
8143         rs6000_emit_move_from_cr and call renamed function.
8144         (rs6000_emit_prologue): Call renamed functions.
8145         * config/rs6000/rs6000.md (prologue_movesi_from_cr): Rename from
8146         movesi_from_cr, remove volatile CRs.
8148 2017-08-30  Jon Beniston  <jon@beniston.com>
8149             Richard Biener  <rguenther@suse.de>
8151         * tree-vect-patterns.c (vect_pattern_recog_1): Use VECTOR_TYPE_P instead
8152         of VECTOR_MODE_P check.
8153         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Allow single
8154         element vector types.
8156 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8158         * df.h (df_read_modify_subreg_p): Remove in favor of...
8159         * rtl.h (read_modify_subreg_p): ...this new function.  Take a
8160         const_rtx instead of an rtx.
8161         * cprop.c (local_cprop_find_used_regs): Update accordingly.
8162         * df-problems.c (df_word_lr_mark_ref): Likewise.
8163         * ira-lives.c (mark_pseudo_reg_live): Likewise.
8164         (mark_pseudo_reg_dead): Likewise.
8165         (mark_ref_dead): Likewise.
8166         * reginfo.c (init_subregs_of_mode): Likewise.
8167         * sched-deps.c (sched_analyze_1): Likewise.
8168         * df-scan.c (df_def_record_1): Likewise.
8169         (df_uses_record): Likewise.
8170         (df_read_modify_subreg_p): Remove in favor of...
8171         * rtlanal.c (read_modify_subreg_p): ...this new function.  Take a
8172         const_rtx instead of an rtx.
8174 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8175             Alan Hayward  <alan.hayward@arm.com>
8176             David Sherwood  <david.sherwood@arm.com>
8178         * rtl.h (partial_subreg_p): New function.
8179         * caller-save.c (save_call_clobbered_regs): Use it.
8180         * calls.c (expand_call): Likewise.
8181         * combine.c (combinable_i3pat): Likewise.
8182         (simplify_set): Likewise.
8183         (make_extraction): Likewise.
8184         (make_compound_operation_int): Likewise.
8185         (gen_lowpart_or_truncate): Likewise.
8186         (force_to_mode): Likewise.
8187         (make_field_assignment): Likewise.
8188         (reg_truncated_to_mode): Likewise.
8189         (record_truncated_value): Likewise.
8190         (move_deaths): Likewise.
8191         * cse.c (record_jump_cond): Likewise.
8192         (cse_insn): Likewise.
8193         * cselib.c (cselib_lookup_1): Likewise.
8194         * expmed.c (extract_bit_field_using_extv): Likewise.
8195         * function.c (assign_parm_setup_reg): Likewise.
8196         * ifcvt.c (noce_convert_multiple_sets): Likewise.
8197         * ira-build.c (create_insn_allocnos): Likewise.
8198         * lra-coalesce.c (merge_pseudos): Likewise.
8199         * lra-constraints.c (match_reload): Likewise.
8200         (simplify_operand_subreg): Likewise.
8201         (curr_insn_transform): Likewise.
8202         * lra-lives.c (process_bb_lives): Likewise.
8203         * lra.c (new_insn_reg): Likewise.
8204         (lra_substitute_pseudo): Likewise.
8205         * regcprop.c (mode_change_ok): Likewise.
8206         (maybe_mode_change): Likewise.
8207         (copyprop_hardreg_forward_1): Likewise.
8208         * reload.c (push_reload): Likewise.
8209         (find_reloads): Likewise.
8210         (find_reloads_subreg_address): Likewise.
8211         * reload1.c (alter_reg): Likewise.
8212         (eliminate_regs_1): Likewise.
8213         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8215 2017-08-30  David Edelsohn  <dje.gcc@gmail.com>
8217         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Revert
8218         back to if statements, including unpack.
8220 2017-08-30  Martin Liska  <mliska@suse.cz>
8222         PR inline-asm/82001
8223         * ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
8224         Rename to ...
8225         (func_checker::compare_asm_inputs_outputs): ... this function.
8226         (func_checker::compare_gimple_asm): Use the function to compare
8227         also ASM constrains.
8228         * ipa-icf-gimple.h: Rename the function.
8230 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8231             Alan Hayward  <alan.hayward@arm.com>
8232             David Sherwood  <david.sherwood@arm.com>
8234         * coretypes.h (complex_mode): New type.
8235         * gdbhooks.py (build_pretty_printer): Handle it.
8236         * machmode.h (complex_mode): New class.
8237         (complex_mode::includes_p): New function.
8238         (is_complex_int_mode): Likewise.
8239         (is_complex_float_mode): Likewise.
8240         * genmodes.c (get_mode_class): Handle complex mode classes.
8241         * function.c (expand_function_end): Use is_complex_int_mode.
8243 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8244             Alan Hayward  <alan.hayward@arm.com>
8245             David Sherwood  <david.sherwood@arm.com>
8247         * coretypes.h (scalar_mode_pod): New typedef.
8248         * gdbhooks.py (build_pretty_printer): Handle it.
8249         * machmode.h (gt_ggc_mx, gt_pch_nx): New functions.
8250         * fixed-value.h (fixed_value::mode): Change type to scalar_mode_pod.
8251         * fold-const.c (fold_convert_const_int_from_fixed): Use scalar_mode.
8252         * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields): Use
8253         as_a <scalar_mode>.
8255 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8256             Alan Hayward  <alan.hayward@arm.com>
8257             David Sherwood  <david.sherwood@arm.com>
8259         * machmode.h (mode_for_vector): Take a scalar_mode instead
8260         of a machine_mode.
8261         * stor-layout.c (mode_for_vector): Likewise.
8262         * explow.c (promote_mode): Use as_a <scalar_mode>.
8263         * sdbout.c (sdbout_parms): Use is_a <scalar_mode>.
8265 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8266             Alan Hayward  <alan.hayward@arm.com>
8267             David Sherwood  <david.sherwood@arm.com>
8269         * target.def (preferred_simd_mode): Take a scalar_mode
8270         instead of a machine_mode.
8271         * targhooks.h (default_preferred_simd_mode): Likewise.
8272         * targhooks.c (default_preferred_simd_mode): Likewise.
8273         * config/arc/arc.c (arc_preferred_simd_mode): Likewise.
8274         * config/arm/arm.c (arm_preferred_simd_mode): Likewise.
8275         * config/c6x/c6x.c (c6x_preferred_simd_mode): Likewise.
8276         * config/epiphany/epiphany.c (epiphany_preferred_simd_mode): Likewise.
8277         * config/i386/i386.c (ix86_preferred_simd_mode): Likewise.
8278         * config/mips/mips.c (mips_preferred_simd_mode): Likewise.
8279         * config/nvptx/nvptx.c (nvptx_preferred_simd_mode): Likewise.
8280         * config/powerpcspe/powerpcspe.c (rs6000_preferred_simd_mode):
8281         Likewise.
8282         * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Likewise.
8283         * config/s390/s390.c (s390_preferred_simd_mode): Likewise.
8284         * config/sparc/sparc.c (sparc_preferred_simd_mode): Likewise.
8285         * config/aarch64/aarch64.c (aarch64_preferred_simd_mode): Likewise.
8286         (aarch64_simd_scalar_immediate_valid_for_move): Update accordingly.
8287         * doc/tm.texi: Regenerate.
8288         * optabs-query.c (can_vec_mask_load_store_p): Return false for
8289         non-scalar modes.
8291 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8292             Alan Hayward  <alan.hayward@arm.com>
8293             David Sherwood  <david.sherwood@arm.com>
8295         * target.def (scalar_mode_supported_p): Take a scalar_mode
8296         instead of a machine_mode.
8297         * targhooks.h (default_scalar_mode_supported_p): Likewise.
8298         * targhooks.c (default_scalar_mode_supported_p): Likewise.
8299         * config/aarch64/aarch64.c (aarch64_scalar_mode_supported_p): Likewise.
8300         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
8301         * config/arm/arm.c (arm_scalar_mode_supported_p): Likewise.
8302         * config/avr/avr.c (avr_scalar_mode_supported_p): Likewise.
8303         * config/c6x/c6x.c (c6x_scalar_mode_supported_p): Likewise.
8304         * config/i386/i386.c (ix86_scalar_mode_supported_p): Likewise.
8305         * config/ia64/ia64.c (ia64_scalar_mode_supported_p): Likewise.
8306         * config/mips/mips.c (mips_scalar_mode_supported_p): Likewise.
8307         * config/msp430/msp430.c (msp430_scalar_mode_supported_p): Likewise.
8308         * config/pa/pa.c (pa_scalar_mode_supported_p): Likewise.
8309         * config/pdp11/pdp11.c (pdp11_scalar_mode_supported_p): Likewise.
8310         * config/powerpcspe/powerpcspe.c (rs6000_scalar_mode_supported_p):
8311         Likewise.
8312         * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Likewise.
8313         * config/s390/s390.c (s390_scalar_mode_supported_p): Likewise.
8314         * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
8315         * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
8316         * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p):
8317         Likewise.
8318         * doc/tm.texi: Regenerate.
8320 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8321             Alan Hayward  <alan.hayward@arm.com>
8322             David Sherwood  <david.sherwood@arm.com>
8324         * coretypes.h (opt_scalar_mode): New typedef.
8325         * gdbhooks.py (build_pretty_printers): Handle it.
8326         * machmode.h (mode_iterator::get_2xwider): Add overload for
8327         opt_mode<T>.
8328         * emit-rtl.c (init_emit_once): Use opt_scalar_mode when iterating
8329         over scalar modes.
8330         * expr.c (convert_mode_scalar): Likewise.
8331         * omp-low.c (omp_clause_aligned_alignment): Likewise.
8332         * optabs.c (expand_float): Likewise.
8333         (expand_fix): Likewise.
8334         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8336 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8337             Alan Hayward  <alan.hayward@arm.com>
8338             David Sherwood  <david.sherwood@arm.com>
8340         * optabs.c (expand_float): Explicitly check for scalars before
8341         using a branching expansion.
8342         (expand_fix): Likewise.
8344 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8345             Alan Hayward  <alan.hayward@arm.com>
8346             David Sherwood  <david.sherwood@arm.com>
8348         * expr.c (convert_mode): Split scalar handling out into...
8349         (convert_mode_scalar): ...this new function.  Treat the modes
8350         as scalar_modes.
8352 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8353             Alan Hayward  <alan.hayward@arm.com>
8354             David Sherwood  <david.sherwood@arm.com>
8356         * omp-expand.c (expand_omp_atomic): Use is_int_mode, is_float_mode
8357         and scalar_mode.
8358         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Likewise.
8360 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8361             Alan Hayward  <alan.hayward@arm.com>
8362             David Sherwood  <david.sherwood@arm.com>
8364         * fixed-value.h (fixed_from_double_int): Take a scalar_mode
8365         rather than a machine_mode.
8366         (fixed_from_string): Likewise.
8367         (fixed_convert): Likewise.
8368         (fixed_convert_from_int): Likewise.
8369         (fixed_convert_from_real): Likewise.
8370         (real_convert_from_fixed): Likewise.
8371         * fixed-value.c (fixed_from_double_int): Likewise.
8372         (fixed_from_string): Likewise.
8373         (fixed_convert): Likewise.
8374         (fixed_convert_from_int): Likewise.
8375         (fixed_convert_from_real): Likewise.
8376         (real_convert_from_fixed): Likewise.
8377         * config/avr/avr.c (avr_out_round): Use as_a <scalar_mode>.
8379 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8380             Alan Hayward  <alan.hayward@arm.com>
8381             David Sherwood  <david.sherwood@arm.com>
8383         * emit-rtl.c (immed_double_const): Use is_a <scalar_mode> instead
8384         of separate mode class checks.  Do not allow vector modes here.
8385         (immed_wide_int_const): Use as_a <scalar_mode>.
8386         * explow.c (trunc_int_for_mode): Likewise.
8387         * rtl.h (wi::int_traits<rtx_mode_t>::get_precision): Likewise.
8388         (wi::shwi): Likewise.
8389         (wi::min_value): Likewise.
8390         (wi::max_value): Likewise.
8391         * dwarf2out.c (loc_descriptor): Likewise.
8392         * simplify-rtx.c (simplify_immed_subreg): Fix rtx_mode_t argument
8393         for CONST_WIDE_INT.
8395 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8396             Alan Hayward  <alan.hayward@arm.com>
8397             David Sherwood  <david.sherwood@arm.com>
8399         * tree.h (SCALAR_TYPE_MODE): New macro.
8400         * expr.c (expand_expr_addr_expr_1): Use it.
8401         (expand_expr_real_2): Likewise.
8402         * fold-const.c (fold_convert_const_fixed_from_fixed): Likeise.
8403         (fold_convert_const_fixed_from_int): Likewise.
8404         (fold_convert_const_fixed_from_real): Likewise.
8405         (native_encode_fixed): Likewise
8406         (native_encode_complex): Likewise
8407         (native_encode_vector): Likewise.
8408         (native_interpret_fixed): Likewise.
8409         (native_interpret_real): Likewise.
8410         (native_interpret_complex): Likewise.
8411         (native_interpret_vector): Likewise.
8412         * omp-simd-clone.c (simd_clone_adjust_return_type): Likewise.
8413         (simd_clone_adjust_argument_types): Likewise.
8414         (simd_clone_init_simd_arrays): Likewise.
8415         (simd_clone_adjust): Likewise.
8416         * stor-layout.c (layout_type): Likewise.
8417         * tree.c (build_minus_one_cst): Likewise.
8418         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8419         * tree-inline.c (estimate_move_cost): Likewise.
8420         * tree-ssa-math-opts.c (convert_plusminus_to_widen): Likewise.
8421         * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
8422         (vectorizable_reduction): Likewise.
8423         * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
8424         (vect_recog_mixed_size_cond_pattern): Likewise.
8425         (check_bool_pattern): Likewise.
8426         (adjust_bool_pattern): Likewise.
8427         (search_type_for_mask_1): Likewise.
8428         * tree-vect-slp.c (vect_schedule_slp_instance): Likewise.
8429         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8430         (vectorizable_load): Likewise.
8431         (vectorizable_store): Likewise.
8432         * ubsan.c (ubsan_encode_value): Likewise.
8433         * varasm.c (output_constant): Likewise.
8435 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8436             Alan Hayward  <alan.hayward@arm.com>
8437             David Sherwood  <david.sherwood@arm.com>
8439         * coretypes.h (scalar_mode): New class.
8440         * machmode.h (scalar_mode): Likewise.
8441         (scalar_mode::includes_p): New function.
8442         (mode_to_inner): Return a scalar_mode rather than a machine_mode.
8443         * gdbhooks.py (build_pretty_printers): Handle scalar_mode.
8444         * genmodes.c (get_mode_class): Handle remaining scalar modes.
8445         * cfgexpand.c (expand_debug_expr): Use scalar_mode.
8446         * expmed.c (store_bit_field_1): Likewise.
8447         (extract_bit_field_1): Likewise.
8448         * expr.c (write_complex_part): Likewise.
8449         (read_complex_part): Likewise.
8450         (emit_move_complex_push): Likewise.
8451         (expand_expr_real_2): Likewise.
8452         * function.c (assign_parm_setup_reg): Likewise.
8453         (assign_parms_unsplit_complex): Likewise.
8454         * optabs.c (expand_binop): Likewise.
8455         * rtlanal.c (subreg_get_info): Likewise.
8456         * simplify-rtx.c (simplify_immed_subreg): Likewise.
8457         * varasm.c (output_constant_pool_2): Likewise.
8459 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8460             Alan Hayward  <alan.hayward@arm.com>
8461             David Sherwood  <david.sherwood@arm.com>
8463         * expmed.c (extract_high_half): Use scalar_int_mode and remove
8464         assertion.
8465         (expmed_mult_highpart_optab): Likewise.
8466         (expmed_mult_highpart): Likewise.
8468 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8469             Alan Hayward  <alan.hayward@arm.com>
8470             David Sherwood  <david.sherwood@arm.com>
8472         * builtins.h (builtin_strncpy_read_str): Take a scalar_int_mode
8473         instead of a machine_mode.
8474         (builtin_memset_read_str): Likewise.
8475         * builtins.c (c_readstr): Likewise.
8476         (builtin_memcpy_read_str): Likewise.
8477         (builtin_strncpy_read_str): Likewise.
8478         (builtin_memset_read_str): Likewise.
8479         (builtin_memset_gen_str): Likewise.
8480         (expand_builtin_signbit): Use scalar_int_mode for local variables.
8481         * cfgexpand.c (convert_debug_memory_address): Take a scalar_int_mode
8482         instead of a machine_mode.
8483         * combine.c (simplify_if_then_else): Use scalar_int_mode for local
8484         variables.
8485         (make_extraction): Likewise.
8486         (try_widen_shift_mode): Take and return scalar_int_modes instead
8487         of machine_modes.
8488         * config/aarch64/aarch64.c (aarch64_libgcc_cmp_return_mode): Return
8489         a scalar_int_mode instead of a machine_mode.
8490         * config/avr/avr.c (avr_addr_space_address_mode): Likewise.
8491         (avr_addr_space_pointer_mode): Likewise.
8492         * config/cr16/cr16.c (cr16_unwind_word_mode): Likewise.
8493         * config/msp430/msp430.c (msp430_addr_space_pointer_mode): Likewise.
8494         (msp430_unwind_word_mode): Likewise.
8495         * config/spu/spu.c (spu_unwind_word_mode): Likewise.
8496         (spu_addr_space_pointer_mode): Likewise.
8497         (spu_addr_space_address_mode): Likewise.
8498         (spu_libgcc_cmp_return_mode): Likewise.
8499         (spu_libgcc_shift_count_mode): Likewise.
8500         * config/rl78/rl78.c (rl78_addr_space_address_mode): Likewise.
8501         (rl78_addr_space_pointer_mode): Likewise.
8502         (fl78_unwind_word_mode): Likewise.
8503         (rl78_valid_pointer_mode): Take a scalar_int_mode instead of a
8504         machine_mode.
8505         * config/alpha/alpha.c (vms_valid_pointer_mode): Likewise.
8506         * config/ia64/ia64.c (ia64_vms_valid_pointer_mode): Likewise.
8507         * config/mips/mips.c (mips_mode_rep_extended): Likewise.
8508         (mips_valid_pointer_mode): Likewise.
8509         * config/tilegx/tilegx.c (tilegx_mode_rep_extended): Likewise.
8510         * config/ft32/ft32.c (ft32_valid_pointer_mode): Likewise.
8511         (ft32_addr_space_pointer_mode): Return a scalar_int_mode instead
8512         of a machine_mode.
8513         (ft32_addr_space_address_mode): Likewise.
8514         * config/m32c/m32c.c (m32c_valid_pointer_mode): Take a
8515         scalar_int_mode instead of a machine_mode.
8516         (m32c_addr_space_pointer_mode): Return a scalar_int_mode instead
8517         of a machine_mode.
8518         (m32c_addr_space_address_mode): Likewise.
8519         * config/powerpcspe/powerpcspe.c (rs6000_abi_word_mode): Likewise.
8520         (rs6000_eh_return_filter_mode): Likewise.
8521         * config/rs6000/rs6000.c (rs6000_abi_word_mode): Likewise.
8522         (rs6000_eh_return_filter_mode): Likewise.
8523         * config/s390/s390.c (s390_libgcc_cmp_return_mode): Likewise.
8524         (s390_libgcc_shift_count_mode): Likewise.
8525         (s390_unwind_word_mode): Likewise.
8526         (s390_valid_pointer_mode): Take a scalar_int_mode rather than a
8527         machine_mode.
8528         * target.def (mode_rep_extended): Likewise.
8529         (valid_pointer_mode): Likewise.
8530         (addr_space.valid_pointer_mode): Likewise.
8531         (eh_return_filter_mode): Return a scalar_int_mode rather than
8532         a machine_mode.
8533         (libgcc_cmp_return_mode): Likewise.
8534         (libgcc_shift_count_mode): Likewise.
8535         (unwind_word_mode): Likewise.
8536         (addr_space.pointer_mode): Likewise.
8537         (addr_space.address_mode): Likewise.
8538         * doc/tm.texi: Regenerate.
8539         * dojump.c (prefer_and_bit_test): Take a scalar_int_mode rather than
8540         a machine_mode.
8541         (do_jump): Use scalar_int_mode for local variables.
8542         * dwarf2cfi.c (init_return_column_size): Take a scalar_int_mode
8543         rather than a machine_mode.
8544         * dwarf2out.c (convert_descriptor_to_mode): Likewise.
8545         (scompare_loc_descriptor_wide): Likewise.
8546         (scompare_loc_descriptor_narrow): Likewise.
8547         * emit-rtl.c (adjust_address_1): Use scalar_int_mode for local
8548         variables.
8549         * except.c (sjlj_emit_dispatch_table): Likewise.
8550         (expand_builtin_eh_copy_values): Likewise.
8551         * explow.c (convert_memory_address_addr_space_1): Likewise.
8552         Take a scalar_int_mode rather than a machine_mode.
8553         (convert_memory_address_addr_space): Take a scalar_int_mode rather
8554         than a machine_mode.
8555         (memory_address_addr_space): Use scalar_int_mode for local variables.
8556         * expmed.h (expand_mult_highpart_adjust): Take a scalar_int_mode
8557         rather than a machine_mode.
8558         * expmed.c (mask_rtx): Likewise.
8559         (init_expmed_one_conv): Likewise.
8560         (expand_mult_highpart_adjust): Likewise.
8561         (extract_high_half): Likewise.
8562         (expmed_mult_highpart_optab): Likewise.
8563         (expmed_mult_highpart): Likewise.
8564         (expand_smod_pow2): Likewise.
8565         (expand_sdiv_pow2): Likewise.
8566         (emit_store_flag_int): Likewise.
8567         (adjust_bit_field_mem_for_reg): Use scalar_int_mode for local
8568         variables.
8569         (extract_low_bits): Likewise.
8570         * expr.h (by_pieces_constfn): Take a scalar_int_mode rather than
8571         a machine_mode.
8572         * expr.c (pieces_addr::adjust):  Likewise.
8573         (can_store_by_pieces): Likewise.
8574         (store_by_pieces): Likewise.
8575         (clear_by_pieces_1): Likewise.
8576         (expand_expr_addr_expr_1): Likewise.
8577         (expand_expr_addr_expr): Use scalar_int_mode for local variables.
8578         (expand_expr_real_1): Likewise.
8579         (try_casesi): Likewise.
8580         * final.c (shorten_branches): Likewise.
8581         * fold-const.c (fold_convert_const_int_from_fixed): Change the
8582         type of "mode" to machine_mode.
8583         * internal-fn.c (expand_arith_overflow_result_store): Take a
8584         scalar_int_mode rather than a machine_mode.
8585         (expand_mul_overflow): Use scalar_int_mode for local variables.
8586         * loop-doloop.c (doloop_modify): Likewise.
8587         (doloop_optimize): Likewise.
8588         * optabs.c (expand_subword_shift): Take a scalar_int_mode rather
8589         than a machine_mode.
8590         (expand_doubleword_shift_condmove): Likewise.
8591         (expand_doubleword_shift): Likewise.
8592         (expand_doubleword_clz): Likewise.
8593         (expand_doubleword_popcount): Likewise.
8594         (expand_doubleword_parity): Likewise.
8595         (expand_absneg_bit): Use scalar_int_mode for local variables.
8596         (prepare_float_lib_cmp): Likewise.
8597         * rtl.h (convert_memory_address_addr_space_1): Take a scalar_int_mode
8598         rather than a machine_mode.
8599         (convert_memory_address_addr_space): Likewise.
8600         (get_mode_bounds): Likewise.
8601         (get_address_mode): Return a scalar_int_mode rather than a
8602         machine_mode.
8603         * rtlanal.c (get_address_mode): Likewise.
8604         * stor-layout.c (get_mode_bounds): Take a scalar_int_mode rather
8605         than a machine_mode.
8606         * targhooks.c (default_mode_rep_extended): Likewise.
8607         (default_valid_pointer_mode): Likewise.
8608         (default_addr_space_valid_pointer_mode): Likewise.
8609         (default_eh_return_filter_mode): Return a scalar_int_mode rather
8610         than a machine_mode.
8611         (default_libgcc_cmp_return_mode): Likewise.
8612         (default_libgcc_shift_count_mode): Likewise.
8613         (default_unwind_word_mode): Likewise.
8614         (default_addr_space_pointer_mode): Likewise.
8615         (default_addr_space_address_mode): Likewise.
8616         * targhooks.h (default_eh_return_filter_mode): Likewise.
8617         (default_libgcc_cmp_return_mode): Likewise.
8618         (default_libgcc_shift_count_mode): Likewise.
8619         (default_unwind_word_mode): Likewise.
8620         (default_addr_space_pointer_mode): Likewise.
8621         (default_addr_space_address_mode): Likewise.
8622         (default_mode_rep_extended): Take a scalar_int_mode rather than
8623         a machine_mode.
8624         (default_valid_pointer_mode): Likewise.
8625         (default_addr_space_valid_pointer_mode): Likewise.
8626         * tree-ssa-address.c (addr_for_mem_ref): Use scalar_int_mode for
8627         local variables.
8628         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Take a scalar_int_mode
8629         rather than a machine_mode.
8630         * tree-switch-conversion.c (array_value_type): Use scalar_int_mode
8631         for local variables.
8632         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
8633         * var-tracking.c (use_narrower_mode): Take a scalar_int_mode rather
8634         than a machine_mode.
8636 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8637             Alan Hayward  <alan.hayward@arm.com>
8638             David Sherwood  <david.sherwood@arm.com>
8640         * dojump.c (do_jump_by_parts_greater_rtx): Change the type of
8641         the mode argument to scalar_int_mode.
8642         (do_jump_by_parts_zero_rtx): Likewise.
8643         (do_jump_by_parts_equality_rtx): Likewise.
8644         (do_jump_by_parts_greater): Take a mode argument.
8645         (do_jump_by_parts_equality): Likewise.
8646         (do_jump_1): Update calls accordingly.
8648 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8649             Alan Hayward  <alan.hayward@arm.com>
8650             David Sherwood  <david.sherwood@arm.com>
8652         * is-a.h (safe_dyn_cast): New function.
8653         * rtl.h (rtx_jump_table_data::get_data_mode): New function.
8654         (jump_table_for_label): Likewise.
8655         * final.c (final_addr_vec_align): Take an rtx_jump_table_data *
8656         instead of an rtx_insn *.
8657         (shorten_branches): Use dyn_cast instead of LABEL_P and
8658         JUMP_TABLE_DATA_P.  Use jump_table_for_label and
8659         rtx_jump_table_data::get_data_mode.
8660         (final_scan_insn): Likewise.
8662 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8663             Alan Hayward  <alan.hayward@arm.com>
8664             David Sherwood  <david.sherwood@arm.com>
8666         * combine.c (try_combine): Use is_a <scalar_int_mode> when
8667         trying to combine a full-register integer set with a subreg
8668         integer set.
8670 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8671             Alan Hayward  <alan.hayward@arm.com>
8672             David Sherwood  <david.sherwood@arm.com>
8674         * expr.c (expand_expr_addr_expr): Add a new_tmode local variable
8675         that is always either address_mode or pointer_mode.
8677 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8678             Alan Hayward  <alan.hayward@arm.com>
8679             David Sherwood  <david.sherwood@arm.com>
8681         * expr.c (expand_expr_real_2): Use word_mode instead of innermode
8682         when the two are known to be equal.
8684 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8685             Alan Hayward  <alan.hayward@arm.com>
8686             David Sherwood  <david.sherwood@arm.com>
8688         * simplify-rtx.c (simplify_const_unary_operation): Use
8689         is_a <scalar_int_mode> instead of checking for a nonzero
8690         precision.  Forcibly convert op_mode to a scalar_int_mode
8691         in that case.  More clearly differentiate the operand and
8692         result modes and use the former when deciding what the value
8693         of a count-bits operation should be.  Use is_int_mode instead
8694         of checking for a MODE_INT.  Remove redundant check for whether
8695         this mode has a zero precision.
8697 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8698             Alan Hayward  <alan.hayward@arm.com>
8699             David Sherwood  <david.sherwood@arm.com>
8701         * optabs.c (widen_leading): Change the type of the mode argument
8702         to scalar_int_mode.  Use opt_scalar_int_mode for the mode iterator.
8703         (widen_bswap): Likewise.
8704         (expand_parity): Likewise.
8705         (expand_ctz): Change the type of the mode argument to scalar_int_mode.
8706         (expand_ffs): Likewise.
8707         (epand_unop): Check for scalar integer modes before calling the
8708         above routines.
8710 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8711             Alan Hayward  <alan.hayward@arm.com>
8712             David Sherwood  <david.sherwood@arm.com>
8714         * expr.c (const_scalar_mask_from_tree): Add a mode argument.
8715         Expand commentary.
8716         (expand_expr_real_1): Update call accordingly.
8718 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8719             Alan Hayward  <alan.hayward@arm.com>
8720             David Sherwood  <david.sherwood@arm.com>
8722         * expmed.c (store_bit_field_using_insv): Add op0_mode and
8723         value_mode arguments.  Use scalar_int_mode internally.
8724         (store_bit_field_1): Rename the new integer mode from imode
8725         to op0_mode and use it instead of GET_MODE (op0).  Update calls
8726         to store_split_bit_field, store_bit_field_using_insv and
8727         store_fixed_bit_field.
8728         (store_fixed_bit_field): Add op0_mode and value_mode arguments.
8729         Use scalar_int_mode internally.  Use a bit count rather than a mode
8730         when calculating the largest bit size for get_best_mode.
8731         Update calls to store_split_bit_field and store_fixed_bit_field_1.
8732         (store_fixed_bit_field_1): Add mode and value_mode arguments.
8733         Remove assertion that OP0 has a scalar integer mode.
8734         (store_split_bit_field): Add op0_mode and value_mode arguments.
8735         Update calls to extract_fixed_bit_field.
8736         (extract_bit_field_using_extv): Add an op0_mode argument.
8737         Use scalar_int_mode internally.
8738         (extract_bit_field_1): Rename the new integer mode from imode to
8739         op0_mode and use it instead of GET_MODE (op0).  Update calls to
8740         extract_split_bit_field, extract_bit_field_using_extv and
8741         extract_fixed_bit_field.
8742         (extract_fixed_bit_field): Add an op0_mode argument.  Update calls
8743         to extract_split_bit_field and extract_fixed_bit_field_1.
8744         (extract_fixed_bit_field_1): Add a mode argument.  Remove assertion
8745         that OP0 has a scalar integer mode.  Use as_a <scalar_int_mode>
8746         on the target mode.
8747         (extract_split_bit_field): Add an op0_mode argument.  Update call
8748         to extract_fixed_bit_field.
8750 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8751             Alan Hayward  <alan.hayward@arm.com>
8752             David Sherwood  <david.sherwood@arm.com>
8754         * cse.c (cse_insn): Use opt_scalar_int_mode for the mode iterator.
8755         * explow.c (hard_function_value): Likewise.
8756         * expmed.c (extract_fixed_bit_field_1): Likewise.  Move the
8757         convert_to_mode call outside the loop.
8758         * expr.c (alignment_for_piecewise_move): Use opt_scalar_int_mode
8759         for the mode iterator.  Require the mode specified by max_pieces
8760         to exist.
8761         (emit_block_move_via_movmem): Use opt_scalar_int_mode for the
8762         mode iterator.
8763         (copy_blkmode_to_reg): Likewise.
8764         (set_storage_via_setmem): Likewise.
8765         * optabs.c (prepare_cmp_insn): Likewise.
8766         * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
8767         * stor-layout.c (finish_bitfield_representative): Likewise.
8769 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8770             Alan Hayward  <alan.hayward@arm.com>
8771             David Sherwood  <david.sherwood@arm.com>
8773         * rtl.h (subreg_unpromoted_mode, subreg_promoted_mode): New functions.
8774         * expr.c (convert_move): Use them.
8775         (convert_modes): Likewise.
8776         (store_expr_with_bounds): Likewise.
8778 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8779             Alan Hayward  <alan.hayward@arm.com>
8780             David Sherwood  <david.sherwood@arm.com>
8782         * rtl.h (rtl_hooks::reg_nonzero_bits): Add a scalar_int_mode
8783         parameter for the mode of "x".  Remove the "known_x", "known_mode"
8784         and "known_ret" arguments.  Change the type of the mode argument
8785         to scalar_int_mode.
8786         (rtl_hooks:reg_num_sign_bit_copies): Likewise.
8787         * combine.c (reg_nonzero_bits_for_combine): Update accordingly.
8788         (reg_num_sign_bit_copies_for_combine): Likewise.
8789         * rtlanal.c (nonzero_bits1): Likewise.
8790         (num_sign_bit_copies1): Likewise.
8791         * rtlhooks-def.h (reg_nonzero_bits_general): Likewise.
8792         (reg_num_sign_bit_copies_general): Likewise.
8793         * rtlhooks.c (reg_num_sign_bit_copies_general): Likewise.
8794         (reg_nonzero_bits_general): Likewise.
8796 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8797             Alan Hayward  <alan.hayward@arm.com>
8798             David Sherwood  <david.sherwood@arm.com>
8800         * rtlanal.c (num_sign_bit_copies): Handle VOIDmode here rather
8801         than in subroutines.  Return 1 for non-integer modes.
8802         (cached_num_sign_bit_copies): Change the type of the mode parameter
8803         to scalar_int_mode.
8804         (num_sign_bit_copies1): Likewise.  Remove early exit for other mode
8805         classes.  Handle CONST_INT_P first and then check whether X also
8806         has a scalar integer mode.  Check the same thing for inner registers
8807         of a SUBREG and for values that are being extended or truncated.
8809 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8810             Alan Hayward  <alan.hayward@arm.com>
8811             David Sherwood  <david.sherwood@arm.com>
8813         * rtlanal.c (nonzero_bits): Handle VOIDmode here rather than
8814         in subroutines.  Return the mode mask for non-integer modes.
8815         (cached_nonzero_bits): Change the type of the mode parameter
8816         to scalar_int_mode.
8817         (nonzero_bits1): Likewise.  Remove early exit for other mode
8818         classes.  Handle CONST_INT_P first and then check whether X
8819         also has a scalar integer mode.
8821 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8822             Alan Hayward  <alan.hayward@arm.com>
8823             David Sherwood  <david.sherwood@arm.com>
8825         * expr.c (widest_int_mode_for_size): Make the comment match the code.
8826         Return a scalar_int_mode and assert that the size is greater than
8827         one byte.
8828         (by_pieces_ninsns): Update accordingly and remove VOIDmode handling.
8829         (op_by_pieces_d::op_by_pieces_d): Likewise.
8830         (op_by_pieces_d::run): Likewise.
8831         (can_store_by_pieces): Likewise.
8833 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8834             Alan Hayward  <alan.hayward@arm.com>
8835             David Sherwood  <david.sherwood@arm.com>
8837         * combine.c (extract_left_shift): Add a mode argument and update
8838         recursive calls.
8839         (make_compound_operation_int): Change the type of the mode parameter
8840         to scalar_int_mode and update the call to extract_left_shift.
8842 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8843             Alan Hayward  <alan.hayward@arm.com>
8844             David Sherwood  <david.sherwood@arm.com>
8846         * combine.c (simplify_and_const_int): Change the type of the mode
8847         parameter to scalar_int_mode.
8848         (simplify_and_const_int_1): Likewise.  Update recursive call.
8850 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8851             Alan Hayward  <alan.hayward@arm.com>
8852             David Sherwood  <david.sherwood@arm.com>
8854         * combine.c (simplify_compare_const): Check that the mode is a
8855         scalar_int_mode (rather than VOIDmode) before testing its
8856         precision.
8857         (simplify_comparison): Move COMPARISON_P handling out of the
8858         loop and restrict the latter part of the loop to scalar_int_modes.
8859         Check is_a <scalar_int_mode> before calling HWI_COMPUTABLE_MODE_P
8860         and when considering SUBREG_REGs.  Use is_int_mode instead of
8861         checking GET_MODE_CLASS against MODE_INT.
8863 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8864             Alan Hayward  <alan.hayward@arm.com>
8865             David Sherwood  <david.sherwood@arm.com>
8867         * combine.c (try_widen_shift_mode): Move check for equal modes to...
8868         (simplify_shift_const_1): ...here.  Use scalar_int_mode for
8869         shift_unit_mode and for modes involved in scalar shifts.
8871 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8872             Alan Hayward  <alan.hayward@arm.com>
8873             David Sherwood  <david.sherwood@arm.com>
8875         * combine.c (force_int_to_mode): New function, split out from...
8876         (force_to_mode): ...here.  Keep xmode up-to-date and use it
8877         instead of GET_MODE (x).
8879 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8880             Alan Hayward  <alan.hayward@arm.com>
8881             David Sherwood  <david.sherwood@arm.com>
8883         * optabs-query.h (extraction_insn::struct_mode): Change type to
8884         opt_scalar_int_mode and update comment.
8885         (extraction_insn::field_mode): Change type to scalar_int_mode.
8886         (extraction_insn::pos_mode): Likewise.
8887         * combine.c (make_extraction): Update accordingly.
8888         * optabs-query.c (get_traditional_extraction_insn): Likewise.
8889         (get_optab_extraction_insn): Likewise.
8890         * recog.c (simplify_while_replacing): Likewise.
8891         * expmed.c (narrow_bit_field_mem): Change the type of the mode
8892         parameter to opt_scalar_int_mode.
8894 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8895             Alan Hayward  <alan.hayward@arm.com>
8896             David Sherwood  <david.sherwood@arm.com>
8898         * machmode.h (bit_field_mode_iterator::next_mode): Take a pointer
8899         to a scalar_int_mode instead of a machine_mode.
8900         (bit_field_mode_iterator::m_mode): Change type to opt_scalar_int_mode.
8901         (get_best_mode): Return a boolean and use a pointer argument to store
8902         the selected mode.  Replace the limit mode parameter with a bit limit.
8903         * expmed.c (adjust_bit_field_mem_for_reg): Use scalar_int_mode
8904         for the values returned by bit_field_mode_iterator::next_mode.
8905         (store_bit_field): Update call to get_best_mode.
8906         (store_fixed_bit_field): Likewise.
8907         (extract_fixed_bit_field): Likewise.
8908         * expr.c (optimize_bitfield_assignment_op): Likewise.
8909         * fold-const.c (optimize_bit_field_compare): Likewise.
8910         (fold_truth_andor_1): Likewise.
8911         * stor-layout.c (bit_field_mode_iterator::next_mode): As above.
8912         Update for new type of m_mode.
8913         (get_best_mode): As above.
8915 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8916             Alan Hayward  <alan.hayward@arm.com>
8917             David Sherwood  <david.sherwood@arm.com>
8919         * expmed.c (strict_volatile_bitfield_p): Change the type of fieldmode
8920         to scalar_int_mode.  Remove check for SCALAR_INT_MODE_P.
8921         (store_bit_field): Check is_a <scalar_int_mode> before calling
8922         strict_volatile_bitfield_p.
8923         (extract_bit_field): Likewise.
8925 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8926             Alan Hayward  <alan.hayward@arm.com>
8927             David Sherwood  <david.sherwood@arm.com>
8929         * target.def (cstore_mode): Return a scalar_int_mode.
8930         * doc/tm.texi: Regenerate.
8931         * config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
8932         * targhooks.h (default_cstore_mode): Likewise.
8933         * targhooks.c (default_cstore_mode): Likewise, using a forced
8934         conversion.
8935         * expmed.c (emit_cstore): Expect the target of the cstore to be
8936         a scalar_int_mode.
8938 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8939             Alan Hayward  <alan.hayward@arm.com>
8940             David Sherwood  <david.sherwood@arm.com>
8942         * cfgloop.h (rtx_iv): Change type of extend_mode and mode to
8943         scalar_int_mode.
8944         (niter_desc): Likewise mode.
8945         (iv_analyze): Add a mode parameter.
8946         (biv_p): Likewise.
8947         (iv_analyze_expr): Pass the mode paraeter before the rtx it describes
8948         and change its type to scalar_int_mode.
8949         * loop-iv.c: Update commentary at head of file.
8950         (iv_constant): Pass the mode paraeter before the rtx it describes
8951         and change its type to scalar_int_mode.  Remove VOIDmode handling.
8952         (iv_subreg): Change the type of the mode parameter to scalar_int_mode.
8953         (iv_extend): Likewise.
8954         (shorten_into_mode): Likewise.
8955         (iv_add): Use scalar_int_mode.
8956         (iv_mult): Likewise.
8957         (iv_shift): Likewise.
8958         (canonicalize_iv_subregs): Likewise.
8959         (get_biv_step_1): Pass the outer_mode parameter before the rtx
8960         it describes and change its mode to scalar_int_mode.   Also change
8961         the type of the returned inner_mode to scalar_int_mode.
8962         (get_biv_step): Likewise, turning outer_mode from a pointer
8963         into a direct parameter.  Update call to get_biv_step_1.
8964         (iv_analyze_biv): Add an outer_mode parameter.  Update calls to
8965         iv_constant and get_biv_step.
8966         (iv_analyze_expr): Pass the mode parameter before the rtx it describes
8967         and change its type to scalar_int_mode.  Don't initialise iv->mode
8968         to VOIDmode and remove later checks for its still being VOIDmode.
8969         Update calls to iv_analyze_op and iv_analyze_expr.  Check
8970         is_a <scalar_int_mode> when changing the mode under consideration.
8971         (iv_analyze_def): Ignore registers that don't have a scalar_int_mode.
8972         Update call to iv_analyze_expr.
8973         (iv_analyze_op): Add a mode parameter.  Reject subregs whose
8974         inner register is not also a scalar_int_mode.  Update call to
8975         iv_analyze_biv.
8976         (iv_analyze): Add a mode parameter.  Update call to iv_analyze_op.
8977         (biv_p): Add a mode parameter.  Update call to iv_analyze_biv.
8978         (iv_number_of_iterations): Use is_a <scalar_int_mode> instead of
8979         separate mode class checks.  Update calls to iv_analyze.  Remove
8980         fix-up of VOIDmodes after iv_analyze_biv.
8981         * loop-unroll.c (analyze_iv_to_split_insn): Reject registers that
8982         don't have a scalar_int_mode.  Update call to biv_p.
8984 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
8985             Alan Hayward  <alan.hayward@arm.com>
8986             David Sherwood  <david.sherwood@arm.com>
8988         * cfgexpand.c (convert_debug_memory_address): Use
8989         as_a <scalar_int_mode>.
8990         * combine.c (expand_compound_operation): Likewise.
8991         (make_extraction): Likewise.
8992         (change_zero_ext): Likewise.
8993         (simplify_comparison): Likewise.
8994         * cse.c (cse_insn): Likewise.
8995         * dwarf2out.c (minmax_loc_descriptor): Likewise.
8996         (mem_loc_descriptor): Likewise.
8997         (loc_descriptor): Likewise.
8998         * expmed.c (init_expmed_one_mode): Likewise.
8999         (synth_mult): Likewise.
9000         (emit_store_flag_1): Likewise.
9001         (expand_divmod): Likewise.  Use HWI_COMPUTABLE_MODE_P instead
9002         of a comparison with size.
9003         * expr.c (expand_assignment): Use as_a <scalar_int_mode>.
9004         (reduce_to_bit_field_precision): Likewise.
9005         * function.c (expand_function_end): Likewise.
9006         * internal-fn.c (expand_arith_overflow_result_store): Likewise.
9007         * loop-doloop.c (doloop_modify): Likewise.
9008         * optabs.c (expand_binop): Likewise.
9009         (expand_unop): Likewise.
9010         (expand_copysign_absneg): Likewise.
9011         (prepare_cmp_insn): Likewise.
9012         (maybe_legitimize_operand): Likewise.
9013         * recog.c (const_scalar_int_operand): Likewise.
9014         * rtlanal.c (get_address_mode): Likewise.
9015         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9016         (simplify_cond_clz_ctz): Likewise.
9017         * tree-nested.c (get_nl_goto_field): Likewise.
9018         * tree.c (build_vector_type_for_mode): Likewise.
9019         * var-tracking.c (use_narrower_mode): Likewise.
9021 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9022             Alan Hayward  <alan.hayward@arm.com>
9023             David Sherwood  <david.sherwood@arm.com>
9025         * tree.h (SCALAR_INT_TYPE_MODE): New macro.
9026         * builtins.c (expand_builtin_signbit): Use it.
9027         * cfgexpand.c (expand_debug_expr): Likewise.
9028         * dojump.c (do_jump): Likewise.
9029         (do_compare_and_jump): Likewise.
9030         * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Likewise.
9031         * expmed.c (make_tree): Likewise.
9032         * expr.c (expand_expr_real_2): Likewise.
9033         (expand_expr_real_1): Likewise.
9034         (try_casesi): Likewise.
9035         * fold-const-call.c (fold_const_call_ss): Likewise.
9036         * fold-const.c (unextend): Likewise.
9037         (extract_muldiv_1): Likewise.
9038         (fold_single_bit_test): Likewise.
9039         (native_encode_int): Likewise.
9040         (native_encode_string): Likewise.
9041         (native_interpret_int): Likewise.
9042         * gimple-fold.c (gimple_fold_builtin_memset): Likewise.
9043         * internal-fn.c (expand_addsub_overflow): Likewise.
9044         (expand_neg_overflow): Likewise.
9045         (expand_mul_overflow): Likewise.
9046         (expand_arith_overflow): Likewise.
9047         * match.pd: Likewise.
9048         * stor-layout.c (layout_type): Likewise.
9049         * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
9050         * tree-ssa-math-opts.c (convert_mult_to_widen): Likewise.
9051         * tree-ssanames.c (get_range_info): Likewise.
9052         * tree-switch-conversion.c (array_value_type) Likewise.
9053         * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
9054         (vect_recog_divmod_pattern): Likewise.
9055         (vect_recog_mixed_size_cond_pattern): Likewise.
9056         * tree-vrp.c (extract_range_basic): Likewise.
9057         (simplify_float_conversion_using_ranges): Likewise.
9058         * tree.c (int_fits_type_p): Likewise.
9059         * ubsan.c (instrument_bool_enum_load): Likewise.
9060         * varasm.c (mergeable_string_section): Likewise.
9061         (narrowing_initializer_constant_valid_p): Likewise.
9062         (output_constant): Likewise.
9064 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9065             Alan Hayward  <alan.hayward@arm.com>
9066             David Sherwood  <david.sherwood@arm.com>
9068         * machmode.h (NARROWEST_INT_MODE): New macro.
9069         * expr.c (alignment_for_piecewise_move): Use it instead of
9070         GET_CLASS_NARROWEST_MODE (MODE_INT).
9071         (push_block): Likewise.
9072         * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
9073         Likewise.
9074         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
9076 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9077             Alan Hayward  <alan.hayward@arm.com>
9078             David Sherwood  <david.sherwood@arm.com>
9080         * postreload.c (move2add_valid_value_p): Change the type of the
9081         mode parameter to scalar_int_mode.
9082         (move2add_use_add2_insn): Add a mode parameter and use it instead
9083         of GET_MODE (reg).
9084         (move2add_use_add3_insn): Likewise.
9085         (reload_cse_move2add): Update accordingly.
9087 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9088             Alan Hayward  <alan.hayward@arm.com>
9089             David Sherwood  <david.sherwood@arm.com>
9091         * expr.c (expand_expr_real_2): Use scalar_int_mode for the
9092         double-word mode.
9093         * lower-subreg.c (resolve_shift_zext): Use is_a <scalar_int_mode>.
9094         * optabs.c (expand_unop): Likewise.
9096 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9097             Alan Hayward  <alan.hayward@arm.com>
9098             David Sherwood  <david.sherwood@arm.com>
9100         * dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
9101         (clz_loc_descriptor): Likewise.  Remove SCALAR_INT_MODE_P check.
9102         (popcount_loc_descriptor): Likewise.
9103         (bswap_loc_descriptor): Likewise.
9104         (rotate_loc_descriptor): Likewise.
9105         (mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
9106         calling the functions above.
9108 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9109             Alan Hayward  <alan.hayward@arm.com>
9110             David Sherwood  <david.sherwood@arm.com>
9112         * combine.c (sign_extend_short_imm): Add is_a <scalar_int_mode>
9113         checks.
9114         (try_combine): Likewise.
9115         (simplify_if_then_else): Likewise.
9116         * cse.c (cse_insn): Likewise.
9117         * dwarf2out.c (mem_loc_descriptor): Likewise.
9118         * emit-rtl.c (gen_lowpart_common): Likewise.
9119         * simplify-rtx.c (simplify_truncation): Likewise.
9120         (simplify_binary_operation_1): Likewise.
9121         (simplify_const_relational_operation): Likewise.
9122         (simplify_ternary_operation): Likewise.
9123         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
9125 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9126             Alan Hayward  <alan.hayward@arm.com>
9127             David Sherwood  <david.sherwood@arm.com>
9129         * cse.c (cse_insn): Add is_a <scalar_int_mode> checks.
9130         * reload.c (push_reload): Likewise.
9131         (find_reloads): Likewise.
9133 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9134             Alan Hayward  <alan.hayward@arm.com>
9135             David Sherwood  <david.sherwood@arm.com>
9137         * combine.c (find_split_point): Add is_a <scalar_int_mode> checks.
9138         (make_compound_operation_int): Likewise.
9139         (change_zero_ext): Likewise.
9140         * expr.c (convert_move): Likewise.
9141         (convert_modes): Likewise.
9142         * fwprop.c (forward_propagate_subreg): Likewise.
9143         * loop-iv.c (get_biv_step_1): Likewise.
9144         * optabs.c (widen_operand): Likewise.
9145         * postreload.c (move2add_valid_value_p): Likewise.
9146         * recog.c (simplify_while_replacing): Likewise.
9147         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9148         (simplify_binary_operation_1): Likewise.  Remove redundant
9149         mode equality check.
9151 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9152             Alan Hayward  <alan.hayward@arm.com>
9153             David Sherwood  <david.sherwood@arm.com>
9155         * combine.c (combine_simplify_rtx): Add checks for
9156         is_a <scalar_int_mode>.
9157         (simplify_if_then_else): Likewise.
9158         (make_field_assignment): Likewise.
9159         (simplify_comparison): Likewise.
9160         * ifcvt.c (noce_try_bitop): Likewise.
9161         * loop-invariant.c (canonicalize_address_mult): Likewise.
9162         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9164 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9165             Alan Hayward  <alan.hayward@arm.com>
9166             David Sherwood  <david.sherwood@arm.com>
9168         * gimple-fold.c (gimple_fold_builtin_memory_op): Use
9169         is_a <scalar_int_mode> instead of != BLKmode.
9171 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9172             Alan Hayward  <alan.hayward@arm.com>
9173             David Sherwood  <david.sherwood@arm.com>
9175         * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>
9176         instead of != VOIDmode.
9177         * combine.c (if_then_else_cond): Likewise.
9178         (change_zero_ext): Likewise.
9179         * dwarf2out.c (mem_loc_descriptor): Likewise.
9180         (loc_descriptor): Likewise.
9181         * rtlanal.c (canonicalize_condition): Likewise.
9182         * simplify-rtx.c (simplify_relational_operation_1): Likewise.
9184 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9185             Alan Hayward  <alan.hayward@arm.com>
9186             David Sherwood  <david.sherwood@arm.com>
9188         * simplify-rtx.c (simplify_binary_operation_1): Use
9189         is_a <scalar_int_mode> instead of !VECTOR_MODE_P.
9191 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9192             Alan Hayward  <alan.hayward@arm.com>
9193             David Sherwood  <david.sherwood@arm.com>
9195         * wide-int.h (int_traits<unsigned char>) New class.
9196         (int_traits<unsigned short>) Likewise.
9197         * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>.
9198         Use GET_MODE_UNIT_PRECISION and remove redundant test for
9199         SCALAR_INT_MODE_P.
9200         * combine.c (set_nonzero_bits_and_sign_copies): Use
9201         is_a <scalar_int_mode>.
9202         (find_split_point): Likewise.
9203         (combine_simplify_rtx): Likewise.
9204         (simplify_logical): Likewise.
9205         (expand_compound_operation): Likewise.
9206         (expand_field_assignment): Likewise.
9207         (make_compound_operation): Likewise.
9208         (extended_count): Likewise.
9209         (change_zero_ext): Likewise.
9210         (simplify_comparison): Likewise.
9211         * dwarf2out.c (scompare_loc_descriptor): Likewise.
9212         (ucompare_loc_descriptor): Likewise.
9213         (minmax_loc_descriptor): Likewise.
9214         (mem_loc_descriptor): Likewise.
9215         (loc_descriptor): Likewise.
9216         * expmed.c (init_expmed_one_mode): Likewise.
9217         * lra-constraints.c (lra_constraint_offset): Likewise.
9218         * optabs.c (prepare_libcall_arg): Likewise.
9219         * postreload.c (move2add_note_store): Likewise.
9220         * reload.c (operands_match_p): Likewise.
9221         * rtl.h (load_extend_op): Likewise.
9222         * rtlhooks.c (gen_lowpart_general): Likewise.
9223         * simplify-rtx.c (simplify_truncation): Likewise.
9224         (simplify_unary_operation_1): Likewise.
9225         (simplify_binary_operation_1): Likewise.
9226         (simplify_const_binary_operation): Likewise.
9227         (simplify_const_relational_operation): Likewise.
9228         (simplify_subreg): Likewise.
9229         * stor-layout.c (bitwise_mode_for_mode): Likewise.
9230         * var-tracking.c (adjust_mems): Likewise.
9231         (prepare_call_arguments): Likewise.
9233 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9234             Alan Hayward  <alan.hayward@arm.com>
9235             David Sherwood  <david.sherwood@arm.com>
9237         * machmode.h (is_int_mode): New fuction.
9238         * combine.c (find_split_point): Use it.
9239         (combine_simplify_rtx): Likewise.
9240         (simplify_if_then_else): Likewise.
9241         (simplify_set): Likewise.
9242         (simplify_shift_const_1): Likewise.
9243         (simplify_comparison): Likewise.
9244         * config/aarch64/aarch64.c (aarch64_rtx_costs): Likewise.
9245         * cse.c (notreg_cost): Likewise.
9246         (cse_insn): Likewise.
9247         * cselib.c (cselib_lookup_1): Likewise.
9248         * dojump.c (do_jump_1): Likewise.
9249         (do_compare_rtx_and_jump): Likewise.
9250         * dse.c (get_call_args): Likewise.
9251         * dwarf2out.c (rtl_for_decl_init): Likewise.
9252         (native_encode_initializer): Likewise.
9253         * expmed.c (emit_store_flag_1): Likewise.
9254         (emit_store_flag): Likewise.
9255         * expr.c (convert_modes): Likewise.
9256         (store_field): Likewise.
9257         (expand_expr_real_1): Likewise.
9258         * fold-const.c (fold_read_from_constant_string): Likewise.
9259         * gimple-ssa-sprintf.c (get_format_string): Likewise.
9260         * optabs-libfuncs.c (gen_int_libfunc): Likewise.
9261         * optabs.c (expand_binop): Likewise.
9262         (expand_unop): Likewise.
9263         (expand_abs_nojump): Likewise.
9264         (expand_one_cmpl_abs_nojump): Likewise.
9265         * simplify-rtx.c (mode_signbit_p): Likewise.
9266         (val_signbit_p): Likewise.
9267         (val_signbit_known_set_p): Likewise.
9268         (val_signbit_known_clear_p): Likewise.
9269         (simplify_relational_operation_1): Likewise.
9270         * tree.c (vector_type_mode): Likewise.
9272 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9273             Alan Hayward  <alan.hayward@arm.com>
9274             David Sherwood  <david.sherwood@arm.com>
9276         * machmode.h (smallest_mode_for_size): Fix formatting.
9277         (smallest_int_mode_for_size): New function.
9278         * cfgexpand.c (expand_debug_expr): Use smallest_int_mode_for_size
9279         instead of smallest_mode_for_size.
9280         * combine.c (make_extraction): Likewise.
9281         * config/arc/arc.c (arc_expand_movmem): Likewise.
9282         * config/arm/arm.c (arm_expand_divmod_libfunc): Likewise.
9283         * config/i386/i386.c (ix86_get_mask_mode): Likewise.
9284         * config/s390/s390.c (s390_expand_insv): Likewise.
9285         * config/sparc/sparc.c (assign_int_registers): Likewise.
9286         * config/spu/spu.c (spu_function_value): Likewise.
9287         (spu_function_arg): Likewise.
9288         * coverage.c (get_gcov_type): Likewise.
9289         (get_gcov_unsigned_t): Likewise.
9290         * dse.c (find_shift_sequence): Likewise.
9291         * expmed.c (store_bit_field_1): Likewise.
9292         * expr.c (convert_move): Likewise.
9293         (store_field): Likewise.
9294         * internal-fn.c (expand_arith_overflow): Likewise.
9295         * optabs-query.c (get_best_extraction_insn): Likewise.
9296         * optabs.c (expand_twoval_binop_libfunc): Likewise.
9297         * stor-layout.c (layout_type): Likewise.
9298         (initialize_sizetypes): Likewise.
9299         * targhooks.c (default_get_mask_mode): Likewise.
9300         * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Likewise.
9302 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9303             Alan Hayward  <alan.hayward@arm.com>
9304             David Sherwood  <david.sherwood@arm.com>
9306         * machmode.h (opt_mode::else_blk): New function.
9307         (int_mode_for_mode): Declare.
9308         * stor-layout.c (int_mode_for_mode): Return an opt_scalar_int_mode.
9309         * builtins.c (expand_builtin_signbit): Adjust for new int_mode_for_mode
9310         return type.
9311         * cfgexpand.c (expand_debug_expr): Likewise.
9312         * combine.c (gen_lowpart_or_truncate): Likewise.
9313         (gen_lowpart_for_combine): Likewise.
9314         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
9315         * config/avr/avr.c (avr_to_int_mode): Likewise.
9316         (avr_out_plus_1): Likewise.
9317         (avr_out_plus): Likewise.
9318         (avr_out_round): Likewise.
9319         * config/i386/i386.c (ix86_split_to_parts): Likewise.
9320         * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
9321         (s390_expand_vcond): Likewise.
9322         * config/spu/spu.c (spu_split_immediate): Likewise.
9323         (spu_expand_mov): Likewise.
9324         * dse.c (get_stored_val): Likewise.
9325         * expmed.c (store_bit_field_1): Likewise.
9326         (convert_extracted_bit_field): Use int_mode_for_mode instead of
9327         int_mode_for_size.
9328         (extract_bit_field_1): Adjust for new int_mode_for_mode return type.
9329         (extract_low_bits): Likewise.
9330         * expr.c (emit_group_load_1): Likewise.  Separate out the BLKmode
9331         handling rather than repeating the check.
9332         (emit_group_store): Likewise.
9333         (emit_move_via_integer): Adjust for new int_mode_for_mode return type.
9334         * optabs.c (expand_absneg_bit): Likewise.
9335         (expand_copysign_absneg): Likewise.
9336         (expand_copysign_bit): Likewise.
9337         * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
9338         * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
9339         * tree-vect-stmts.c (vect_gen_perm_mask_any): Likewise.
9340         * var-tracking.c (prepare_call_arguments):  Likewise.
9341         * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Use
9342         int_mode_for_mode instead of mode_for_size.
9343         * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9345 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9346             Alan Hayward  <alan.hayward@arm.com>
9347             David Sherwood  <david.sherwood@arm.com>
9349         * machmode.h (int_mode_for_size): New function.
9350         * builtins.c (set_builtin_user_assembler_name): Use int_mode_for_size
9351         instead of mode_for_size.
9352         * calls.c (save_fixed_argument_area): Likewise.  Make use of BLKmode
9353         explicit.
9354         * combine.c (expand_field_assignment): Use int_mode_for_size
9355         instead of mode_for_size.
9356         (make_extraction): Likewise.
9357         (simplify_shift_const_1): Likewise.
9358         (simplify_comparison): Likewise.
9359         * dojump.c (do_jump): Likewise.
9360         * dwarf2out.c (mem_loc_descriptor): Likewise.
9361         * emit-rtl.c (init_derived_machine_modes): Likewise.
9362         * expmed.c (flip_storage_order): Likewise.
9363         (convert_extracted_bit_field): Likewise.
9364         * expr.c (copy_blkmode_from_reg): Likewise.
9365         * graphite-isl-ast-to-gimple.c (max_mode_int_precision): Likewise.
9366         * internal-fn.c (expand_mul_overflow): Likewise.
9367         * lower-subreg.c (simple_move): Likewise.
9368         * optabs-libfuncs.c (init_optabs): Likewise.
9369         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9370         * tree.c (vector_type_mode): Likewise.
9371         * tree-ssa-strlen.c (handle_builtin_memcmp): Likewise.
9372         * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Likewise.
9373         * tree-vect-generic.c (expand_vector_parallel): Likewise.
9374         * tree-vect-stmts.c (vectorizable_load): Likewise.
9375         (vectorizable_store): Likewise.
9377 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9378             Alan Hayward  <alan.hayward@arm.com>
9379             David Sherwood  <david.sherwood@arm.com>
9381         * coretypes.h (pod_mode): New type.
9382         (scalar_int_mode_pod): New typedef.
9383         * machmode.h (pod_mode): New class.
9384         (int_n_data_t::m): Change type to scalar_int_mode_pod.
9385         * genmodes.c (emit_mode_int_n): Update accordingly.
9386         * lower-subreg.h (target_lower_subreg): Change type to
9387         scalar_int_mode_pod.
9388         * gdbhooks.py (build_pretty_printer): Handle pod_mode and
9389         scalar_int_mode_pod.
9391 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9392             Alan Hayward  <alan.hayward@arm.com>
9393             David Sherwood  <david.sherwood@arm.com>
9395         * config/powerpcspe/powerpcspe.h (rs6000_pmode): Change type from
9396         machine_mode to scalar_int_mode.
9397         * config/powerpcspe/powerpcspe.c (rs6000_pmode): Likewise.
9398         (rs6000_option_override_internal): Remove cast to int.
9399         * config/rs6000/rs6000.h (rs6000_pmode): Change type from
9400         machine_mode to scalar_int_mode.
9401         * config/rs6000/rs6000.c (rs6000_pmode): Likewise.
9402         (rs6000_option_override_internal): Remove cast to int.
9403         * config/s390/s390.h (Pmode): Remove cast to machine_mode.
9404         * config/epiphany/epiphany.h (RTX_OK_FOR_OFFSET_P): Add cast
9405         to machine_mode.
9406         * config/s390/s390.c (s390_expand_builtin): Likewise.
9407         * coretypes.h (scalar_int_mode): New type.
9408         (opt_scalar_int_mode): New typedef.
9409         * machmode.h (scalar_int_mode): New class.
9410         (scalar_int_mode::includes_p): New function.
9411         (byte_mode): Change type to scalar_int_mode.
9412         (word_mode): Likewise.
9413         (ptr_mode): Likewise.
9414         * emit-rtl.c (byte_mode): Likewise.
9415         (word_mode): Likewise.
9416         (ptr_mode): Likewise.
9417         (init_derived_machine_modes): Update accordingly.
9418         * genmodes.c (get_mode_class): Return scalar_int_mode for MODE_INT
9419         and MODE_PARTIAL_INT.
9420         * gdbhooks.py (build_pretty_printer): Handle scalar_int_mode and
9421         opt_scalar_int_mode.
9423 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9424             Alan Hayward  <alan.hayward@arm.com>
9425             David Sherwood  <david.sherwood@arm.com>
9427         * target.def (libgcc_floating_mode_supported_p): Take a
9428         scalar_float_mode.
9429         * doc/tm.texi: Regenerate.
9430         * targhooks.h (default_libgcc_floating_mode_supported_p): Take a
9431         scalar_float_mode.
9432         * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
9433         * config/aarch64/aarch64.c (aarch64_libgcc_floating_mode_supported_p):
9434         Likewise.
9436 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9437             Alan Hayward  <alan.hayward@arm.com>
9438             David Sherwood  <david.sherwood@arm.com>
9440         * target.def (default_floatn_mode): Return an opt_scalar_float_mode.
9441         * doc/tm.texi: Regenerate.
9442         * config/arm/arm.c (arm_floatn_mode): Return an opt_scalar_float_mode.
9443         * config/powerpcspe/powerpcspe.c (rs6000_floatn_mode): Likewise.
9444         * config/rs6000/rs6000.c (rs6000_floatn_mode): Likewise.
9445         * targhooks.h (default_floatn_mode): Likewise.
9446         * targhooks.c (default_floatn_mode): Likewise.
9447         * tree.c (build_common_tree_nodes): Update accordingly.
9449 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9450             Alan Hayward  <alan.hayward@arm.com>
9451             David Sherwood  <david.sherwood@arm.com>
9453         * machmode.h (mode_iterator::start): Provide overload for opt_modes.
9454         (mode_iterator::iterate_p): Likewise.
9455         (mode_iterator::get_wider): Likewise.
9456         * expr.c (init_expr_target): Use opt_scalar_float_mode.
9458 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9459             Alan Hayward  <alan.hayward@arm.com>
9460             David Sherwood  <david.sherwood@arm.com>
9462         * coretypes.h (opt_scalar_float_mode): New typedef.
9463         * machmode.h (float_mode_for_size): New function.
9464         * emit-rtl.c (double_mode): Delete.
9465         (init_emit_once): Use float_mode_for_size.
9466         * stor-layout.c (layout_type): Likewise.
9467         * gdbhooks.py (build_pretty_printer): Handle opt_scalar_float_mode.
9469 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9470             Alan Hayward  <alan.hayward@arm.com>
9471             David Sherwood  <david.sherwood@arm.com>
9473         * output.h (assemble_real): Take a scalar_float_mode.
9474         * config/arm/arm.c (arm_assemble_integer): Update accordingly.
9475         * config/arm/arm.md (consttable_4): Likewise.
9476         (consttable_8): Likewise.
9477         (consttable_16): Likewise.
9478         * config/mips/mips.md (consttable_float): Likewise.
9479         * config/s390/s390.c (s390_output_pool_entry): Likewise.
9480         * varasm.c (assemble_real): Take a scalar_float_mode.
9481         (output_constant_pool_2): Update accordingly.
9482         (output_constant): Likewise.
9484 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9485             Alan Hayward  <alan.hayward@arm.com>
9486             David Sherwood  <david.sherwood@arm.com>
9488         * tree.h (SCALAR_FLOAT_TYPE_MODE): New macro.
9489         * builtins.c (expand_builtin_signbit): Use it instead of TYPE_MODE.
9490         * fold-const.c (fold_convert_const_real_from_fixed): Likewise.
9491         (native_encode_real): Likewise.
9492         (native_interpret_real): Likewise.
9493         * hsa-brig.c (emit_immediate_scalar_to_buffer): Likewise.
9494         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
9496 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9497             Alan Hayward  <alan.hayward@arm.com>
9498             David Sherwood  <david.sherwood@arm.com>
9500         * optabs-libfuncs.c (gen_trunc_conv_libfunc): Use is_a
9501         <scalar_float_mode>.  Simplify.
9502         (gen_extend_conv_libfunc): Likewise.
9504 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9505             Alan Hayward  <alan.hayward@arm.com>
9506             David Sherwood  <david.sherwood@arm.com>
9508         * coretypes.h (scalar_float_mode): New type.
9509         * machmode.h (mode_traits::from_int): Use machine_mode if
9510         USE_ENUM_MODES is defined.
9511         (is_a): New function.
9512         (as_a): Likewise.
9513         (dyn_cast): Likewise.
9514         (scalar_float_mode): New class.
9515         (scalar_float_mode::includes_p): New function.
9516         (is_float_mode): Likewise.
9517         * gdbhooks.py (MachineModePrinter): New class.
9518         (build_pretty_printer): Use it for scalar_float_mode.
9519         * real.h (FLOAT_MODE_FORMAT): Use as_a <scalar_float_mode>.
9520         (format_helper::format_helper): Turn into a template.
9521         * genmodes.c (get_mode_class): New function.
9522         (emit_insn_modes_h): Give modes the class returned by get_mode_class,
9523         or machine_mode if none.
9524         * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Use
9525         as_a <scalar_float_mode>.
9526         * dwarf2out.c (mem_loc_descriptor): Likewise.
9527         (insert_float): Likewise.
9528         (add_const_value_attribute): Likewise.
9529         * simplify-rtx.c (simplify_immed_subreg): Likewise.
9530         * optabs.c (expand_absneg_bit): Take a scalar_float_mode.
9531         (expand_unop): Update accordingly.
9532         (expand_abs_nojump): Likewise.
9533         (expand_copysign_absneg): Take a scalar_float_mode.
9534         (expand_copysign_bit): Likewise.
9535         (expand_copysign): Update accordingly.
9537 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9538             Alan Hayward  <alan.hayward@arm.com>
9539             David Sherwood  <david.sherwood@arm.com>
9541         * coretypes.h (opt_mode): New class.
9542         * machmode.h (opt_mode): Likewise.
9543         (opt_mode::else_void): New function.
9544         (opt_mode::require): Likewise.
9545         (opt_mode::exists): Likewise.
9546         (GET_MODE_WIDER_MODE): Turn into a function and return an opt_mode.
9547         (GET_MODE_2XWIDER_MODE): Likewise.
9548         (mode_iterator::get_wider): Update accordingly.
9549         (mode_iterator::get_2xwider): Likewise.
9550         (mode_iterator::get_known_wider): Likewise, turning into a template.
9551         * combine.c (make_extraction): Update use of GET_MODE_WIDER_MODE,
9552         forcing a wider mode to exist.
9553         * config/cr16/cr16.h (LONG_REG_P): Likewise.
9554         * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
9555         * config/c6x/c6x.c (c6x_rtx_costs): Update use of
9556         GET_MODE_2XWIDER_MODE, forcing a wider mode to exist.
9557         * lower-subreg.c (init_lower_subreg): Likewise.
9558         * optabs-libfuncs.c (init_sync_libfuncs_1): Likewise, but not
9559         on the final iteration.
9560         * config/i386/i386.c (ix86_expand_set_or_movmem): Check whether
9561         a wider mode exists before asking for a move pattern.
9562         (get_mode_wider_vector): Update use of GET_MODE_WIDER_MODE,
9563         forcing a wider mode to exist.
9564         (expand_vselect_vconcat): Update use of GET_MODE_2XWIDER_MODE,
9565         returning false if no such mode exists.
9566         * config/ia64/ia64.c (expand_vselect_vconcat): Likewise.
9567         * config/mips/mips.c (mips_expand_vselect_vconcat): Likewise.
9568         * expmed.c (init_expmed_one_mode): Update use of GET_MODE_WIDER_MODE.
9569         Avoid checking for a MODE_INT if we already know the mode is not a
9570         SCALAR_INT_MODE_P.
9571         (extract_high_half): Update use of GET_MODE_WIDER_MODE,
9572         forcing a wider mode to exist.
9573         (expmed_mult_highpart_optab): Likewise.
9574         (expmed_mult_highpart): Likewise.
9575         * expr.c (expand_expr_real_2): Update use of GET_MODE_WIDER_MODE,
9576         using else_void.
9577         * lto-streamer-in.c (lto_input_mode_table): Likewise.
9578         * optabs-query.c (find_widening_optab_handler_and_mode): Likewise.
9579         * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
9580         * internal-fn.c (expand_mul_overflow): Update use of
9581         GET_MODE_2XWIDER_MODE.
9582         * omp-low.c (omp_clause_aligned_alignment): Likewise.
9583         * tree-ssa-math-opts.c (convert_mult_to_widen): Update use of
9584         GET_MODE_WIDER_MODE.
9585         (convert_plusminus_to_widen): Likewise.
9586         * tree-switch-conversion.c (array_value_type): Likewise.
9587         * var-tracking.c (emit_note_insn_var_location): Likewise.
9588         * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
9589         Return false inside rather than outside the loop if no wider mode
9590         exists
9591         * optabs.c (expand_binop): Update use of GET_MODE_WIDER_MODE
9592         and GET_MODE_2XWIDER_MODE
9593         (can_compare_p): Use else_void.
9594         * gdbhooks.py (OptMachineModePrinter): New class.
9595         (build_pretty_printer): Use it for opt_mode.
9597 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9598             Alan Hayward  <alan.hayward@arm.com>
9599             David Sherwood  <david.sherwood@arm.com>
9601         * tree-switch-conversion.c (array_value_type): Only read TYPE_MODE
9602         once.  Use get_narrowest_mode instead of GET_CLASS_NARROWEST_MODE.
9604 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9605             Alan Hayward  <alan.hayward@arm.com>
9606             David Sherwood  <david.sherwood@arm.com>
9608         * machmode.h (mode_traits): New structure.
9609         (get_narrowest_mode): New function.
9610         (mode_iterator::start): Likewise.
9611         (mode_iterator::iterate_p): Likewise.
9612         (mode_iterator::get_wider): Likewise.
9613         (mode_iterator::get_known_wider): Likewise.
9614         (mode_iterator::get_2xwider): Likewise.
9615         (FOR_EACH_MODE_IN_CLASS): New mode iterator.
9616         (FOR_EACH_MODE): Likewise.
9617         (FOR_EACH_MODE_FROM): Likewise.
9618         (FOR_EACH_MODE_UNTIL): Likewise.
9619         (FOR_EACH_WIDER_MODE): Likewise.
9620         (FOR_EACH_2XWIDER_MODE): Likewise.
9621         * builtins.c (expand_builtin_strlen): Use new mode iterators.
9622         * combine.c (simplify_comparison): Likewise
9623         * config/i386/i386.c (type_natural_mode): Likewise.
9624         * cse.c (cse_insn): Likewise.
9625         * dse.c (find_shift_sequence): Likewise.
9626         * emit-rtl.c (init_derived_machine_modes): Likewise.
9627         (init_emit_once): Likewise.
9628         * explow.c (hard_function_value): Likewise.
9629         * expmed.c (extract_fixed_bit_field_1): Likewise.
9630         (extract_bit_field_1): Likewise.
9631         (expand_divmod): Likewise.
9632         (emit_store_flag_1): Likewise.
9633         * expr.c (init_expr_target): Likewise.
9634         (convert_move): Likewise.
9635         (alignment_for_piecewise_move): Likewise.
9636         (widest_int_mode_for_size): Likewise.
9637         (emit_block_move_via_movmem): Likewise.
9638         (copy_blkmode_to_reg): Likewise.
9639         (set_storage_via_setmem): Likewise.
9640         (compress_float_constant): Likewise.
9641         * omp-low.c (omp_clause_aligned_alignment): Likewise.
9642         * optabs-query.c (get_best_extraction_insn): Likewise.
9643         * optabs.c (expand_binop): Likewise.
9644         (expand_twoval_unop): Likewise.
9645         (expand_twoval_binop): Likewise.
9646         (widen_leading): Likewise.
9647         (widen_bswap): Likewise.
9648         (expand_parity): Likewise.
9649         (expand_unop): Likewise.
9650         (prepare_cmp_insn): Likewise.
9651         (prepare_float_lib_cmp): Likewise.
9652         (expand_float): Likewise.
9653         (expand_fix): Likewise.
9654         (expand_sfix_optab): Likewise.
9655         * postreload.c (move2add_use_add2_insn): Likewise.
9656         * reg-stack.c (reg_to_stack): Likewise.
9657         * reginfo.c (choose_hard_reg_mode): Likewise.
9658         * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
9659         * stor-layout.c (mode_for_size): Likewise.
9660         (smallest_mode_for_size): Likewise.
9661         (mode_for_vector): Likewise.
9662         (finish_bitfield_representative): Likewise.
9663         * tree-ssa-math-opts.c (target_supports_divmod_p): Likewise.
9664         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
9665         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
9666         * var-tracking.c (prepare_call_arguments): Likewise.
9668 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9669             Alan Hayward  <alan.hayward@arm.com>
9670             David Sherwood  <david.sherwood@arm.com>
9672         * genconditions.c (write_header): Add a "#define USE_ENUM_MODES".
9673         * genmodes.c (emit_insn_modes_h): Define FOOmode to E_FOOmode if
9674         USE_ENUM_MODES is defined and to ((void) 0, E_FOOmode) otherwise.
9675         * machmode.h (mode_size): Move earlier in file.
9676         (mode_precision): Likewise.
9677         (mode_inner): Likewise.
9678         (mode_nunits): Likewise.
9679         (mode_unit_size): Likewise.
9680         (unit_unit_precision): Likewise.
9681         (mode_wider): Likewise.
9682         (mode_2xwider): Likewise.
9683         (machine_mode): New class.
9684         (mode_to_bytes): New function.
9685         (mode_to_bits): Likewise.
9686         (mode_to_precision): Likewise.
9687         (mode_to_inner): Likewise.
9688         (mode_to_unit_size): Likewise.
9689         (mode_to_unit_precision): Likewise.
9690         (mode_to_nunits): Likewise.
9691         (GET_MODE_SIZE): Use mode_to_bytes.
9692         (GET_MODE_BITSIZE): Use mode_to_bits.
9693         (GET_MODE_PRECISION): Use mode_to_precision.
9694         (GET_MODE_INNER): Use mode_to_inner.
9695         (GET_MODE_UNIT_SIZE): Use mode_to_unit_size.
9696         (GET_MODE_UNIT_PRECISION): Use mode_to_unit_precision.
9697         (GET_MODE_NUNITS): Use mode_to_nunits.
9698         * system.h (ALWAYS_INLINE): New macro.
9699         * config/powerpcspe/powerpcspe-c.c
9700         (altivec_resolve_overloaded_builtin): Use machine_mode instead of
9701         int for arg1_mode and arg2_mode.
9703 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
9704             Alan Hayward  <alan.hayward@arm.com>
9705             David Sherwood  <david.sherwood@arm.com>
9707         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
9708         Prefix mode names with E_ in case statements.
9709         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9710         * config/aarch64/aarch64.c (aarch64_split_simd_combine): Likewise.
9711         (aarch64_split_simd_move): Likewise.
9712         (aarch64_gen_storewb_pair): Likewise.
9713         (aarch64_gen_loadwb_pair): Likewise.
9714         (aarch64_gen_store_pair): Likewise.
9715         (aarch64_gen_load_pair): Likewise.
9716         (aarch64_get_condition_code_1): Likewise.
9717         (aarch64_constant_pool_reload_icode): Likewise.
9718         (get_rsqrte_type): Likewise.
9719         (get_rsqrts_type): Likewise.
9720         (get_recpe_type): Likewise.
9721         (get_recps_type): Likewise.
9722         (aarch64_gimplify_va_arg_expr): Likewise.
9723         (aarch64_simd_container_mode): Likewise.
9724         (aarch64_emit_load_exclusive): Likewise.
9725         (aarch64_emit_store_exclusive): Likewise.
9726         (aarch64_expand_compare_and_swap): Likewise.
9727         (aarch64_gen_atomic_cas): Likewise.
9728         (aarch64_emit_bic): Likewise.
9729         (aarch64_emit_atomic_swap): Likewise.
9730         (aarch64_emit_atomic_load_op): Likewise.
9731         (aarch64_evpc_trn): Likewise.
9732         (aarch64_evpc_uzp): Likewise.
9733         (aarch64_evpc_zip): Likewise.
9734         (aarch64_evpc_ext): Likewise.
9735         (aarch64_evpc_rev): Likewise.
9736         (aarch64_evpc_dup): Likewise.
9737         (aarch64_gen_ccmp_first): Likewise.
9738         (aarch64_gen_ccmp_next): Likewise.
9739         * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
9740         (alpha_emit_xfloating_libcall): Likewise.
9741         (emit_insxl): Likewise.
9742         (alpha_arg_type): Likewise.
9743         * config/arc/arc.c (arc_vector_mode_supported_p): Likewise.
9744         (arc_preferred_simd_mode): Likewise.
9745         (arc_secondary_reload): Likewise.
9746         (get_arc_condition_code): Likewise.
9747         (arc_print_operand): Likewise.
9748         (arc_legitimate_constant_p): Likewise.
9749         * config/arc/arc.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9750         * config/arc/arc.md (casesi_load): Likewise.
9751         (casesi_compact_jump): Likewise.
9752         * config/arc/predicates.md (proper_comparison_operator): Likewise.
9753         (cc_use_register): Likewise.
9754         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9755         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
9756         (arm_init_iwmmxt_builtins): Likewise.
9757         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
9758         (neon_expand_vector_init): Likewise.
9759         (arm_attr_length_move_neon): Likewise.
9760         (maybe_get_arm_condition_code): Likewise.
9761         (arm_emit_vector_const): Likewise.
9762         (arm_preferred_simd_mode): Likewise.
9763         (arm_output_iwmmxt_tinsr): Likewise.
9764         (thumb1_output_casesi): Likewise.
9765         (thumb2_output_casesi): Likewise.
9766         (arm_emit_load_exclusive): Likewise.
9767         (arm_emit_store_exclusive): Likewise.
9768         (arm_expand_compare_and_swap): Likewise.
9769         (arm_evpc_neon_vuzp): Likewise.
9770         (arm_evpc_neon_vzip): Likewise.
9771         (arm_evpc_neon_vrev): Likewise.
9772         (arm_evpc_neon_vtrn): Likewise.
9773         (arm_evpc_neon_vext): Likewise.
9774         (arm_validize_comparison): Likewise.
9775         * config/arm/neon.md (neon_vc<cmp_op><mode>): Likewise.
9776         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
9777         * config/avr/avr.c (avr_rtx_costs_1): Likewise.
9778         * config/c6x/c6x.c (c6x_vector_mode_supported_p): Likewise.
9779         (c6x_preferred_simd_mode): Likewise.
9780         * config/epiphany/epiphany.c (get_epiphany_condition_code): Likewise.
9781         (epiphany_rtx_costs): Likewise.
9782         * config/epiphany/predicates.md (proper_comparison_operator):
9783         Likewise.
9784         * config/frv/frv.c (condexec_memory_operand): Likewise.
9785         (frv_emit_move): Likewise.
9786         (output_move_single): Likewise.
9787         (output_condmove_single): Likewise.
9788         (frv_hard_regno_mode_ok): Likewise.
9789         (frv_matching_accg_mode): Likewise.
9790         * config/h8300/h8300.c (split_adds_subs): Likewise.
9791         (h8300_rtx_costs): Likewise.
9792         (h8300_print_operand): Likewise.
9793         (compute_mov_length): Likewise.
9794         (output_logical_op): Likewise.
9795         (compute_logical_op_length): Likewise.
9796         (compute_logical_op_cc): Likewise.
9797         (h8300_shift_needs_scratch_p): Likewise.
9798         (output_a_shift): Likewise.
9799         (compute_a_shift_length): Likewise.
9800         (compute_a_shift_cc): Likewise.
9801         (expand_a_rotate): Likewise.
9802         (output_a_rotate): Likewise.
9803         * config/i386/i386.c (classify_argument): Likewise.
9804         (function_arg_advance_32): Likewise.
9805         (function_arg_32): Likewise.
9806         (function_arg_64): Likewise.
9807         (function_value_64): Likewise.
9808         (ix86_gimplify_va_arg): Likewise.
9809         (ix86_legitimate_constant_p): Likewise.
9810         (put_condition_code): Likewise.
9811         (split_double_mode): Likewise.
9812         (ix86_avx256_split_vector_move_misalign): Likewise.
9813         (ix86_expand_vector_logical_operator): Likewise.
9814         (ix86_split_idivmod): Likewise.
9815         (ix86_expand_adjust_ufix_to_sfix_si): Likewise.
9816         (ix86_build_const_vector): Likewise.
9817         (ix86_build_signbit_mask): Likewise.
9818         (ix86_match_ccmode): Likewise.
9819         (ix86_cc_modes_compatible): Likewise.
9820         (ix86_expand_branch): Likewise.
9821         (ix86_expand_sse_cmp): Likewise.
9822         (ix86_expand_sse_movcc): Likewise.
9823         (ix86_expand_int_sse_cmp): Likewise.
9824         (ix86_expand_vec_perm_vpermi2): Likewise.
9825         (ix86_expand_vec_perm): Likewise.
9826         (ix86_expand_sse_unpack): Likewise.
9827         (ix86_expand_int_addcc): Likewise.
9828         (ix86_split_to_parts): Likewise.
9829         (ix86_vectorize_builtin_gather): Likewise.
9830         (ix86_vectorize_builtin_scatter): Likewise.
9831         (avx_vpermilp_parallel): Likewise.
9832         (inline_memory_move_cost): Likewise.
9833         (ix86_tieable_integer_mode_p): Likewise.
9834         (x86_maybe_negate_const_int): Likewise.
9835         (ix86_expand_vector_init_duplicate): Likewise.
9836         (ix86_expand_vector_init_one_nonzero): Likewise.
9837         (ix86_expand_vector_init_one_var): Likewise.
9838         (ix86_expand_vector_init_concat): Likewise.
9839         (ix86_expand_vector_init_interleave): Likewise.
9840         (ix86_expand_vector_init_general): Likewise.
9841         (ix86_expand_vector_set): Likewise.
9842         (ix86_expand_vector_extract): Likewise.
9843         (emit_reduc_half): Likewise.
9844         (ix86_emit_i387_round): Likewise.
9845         (ix86_mangle_type): Likewise.
9846         (ix86_expand_round_sse4): Likewise.
9847         (expand_vec_perm_blend): Likewise.
9848         (canonicalize_vector_int_perm): Likewise.
9849         (ix86_expand_vec_one_operand_perm_avx512): Likewise.
9850         (expand_vec_perm_1): Likewise.
9851         (expand_vec_perm_interleave3): Likewise.
9852         (expand_vec_perm_even_odd_pack): Likewise.
9853         (expand_vec_perm_even_odd_1): Likewise.
9854         (expand_vec_perm_broadcast_1): Likewise.
9855         (ix86_vectorize_vec_perm_const_ok): Likewise.
9856         (ix86_expand_vecop_qihi): Likewise.
9857         (ix86_expand_mul_widen_hilo): Likewise.
9858         (ix86_expand_sse2_abs): Likewise.
9859         (ix86_expand_pextr): Likewise.
9860         (ix86_expand_pinsr): Likewise.
9861         (ix86_preferred_simd_mode): Likewise.
9862         (ix86_simd_clone_compute_vecsize_and_simdlen): Likewise.
9863         * config/i386/sse.md (*andnot<mode>3): Likewise.
9864         (<mask_codefor><code><mode>3<mask_name>): Likewise.
9865         (*<code><mode>3): Likewise.
9866         * config/ia64/ia64.c (ia64_expand_vecint_compare): Likewise.
9867         (ia64_expand_atomic_op): Likewise.
9868         (ia64_arg_type): Likewise.
9869         (ia64_mode_to_int): Likewise.
9870         (ia64_scalar_mode_supported_p): Likewise.
9871         (ia64_vector_mode_supported_p): Likewise.
9872         (expand_vec_perm_broadcast): Likewise.
9873         * config/iq2000/iq2000.c (iq2000_move_1word): Likewise.
9874         (iq2000_function_arg_advance): Likewise.
9875         (iq2000_function_arg): Likewise.
9876         * config/m32c/m32c.c (m32c_preferred_reload_class): Likewise.
9877         * config/m68k/m68k.c (output_dbcc_and_branch): Likewise.
9878         (m68k_libcall_value): Likewise.
9879         (m68k_function_value): Likewise.
9880         (sched_attr_op_type): Likewise.
9881         * config/mcore/mcore.c (mcore_output_move): Likewise.
9882         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9883         Likewise.
9884         (microblaze_function_arg): Likewise.
9885         * config/mips/mips.c (mips16_build_call_stub): Likewise.
9886         (mips_print_operand): Likewise.
9887         (mips_mode_ok_for_mov_fmt_p): Likewise.
9888         (mips_vector_mode_supported_p): Likewise.
9889         (mips_preferred_simd_mode): Likewise.
9890         (mips_expand_vpc_loongson_even_odd): Likewise.
9891         (mips_expand_vec_unpack): Likewise.
9892         (mips_expand_vi_broadcast): Likewise.
9893         (mips_expand_vector_init): Likewise.
9894         (mips_expand_vec_reduc): Likewise.
9895         (mips_expand_msa_cmp): Likewise.
9896         * config/mips/mips.md (casesi_internal_mips16_<mode>): Likewise.
9897         * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9898         (cc_flags_for_mode): Likewise.
9899         * config/msp430/msp430.c (msp430_print_operand): Likewise.
9900         * config/nds32/nds32-md-auxiliary.c (nds32_mem_format): Likewise.
9901         (nds32_output_casesi_pc_relative): Likewise.
9902         * config/nds32/nds32.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9903         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Likewise.
9904         (nvptx_gen_unpack): Likewise.
9905         (nvptx_gen_pack): Likewise.
9906         (nvptx_gen_shuffle): Likewise.
9907         (nvptx_gen_wcast): Likewise.
9908         (nvptx_preferred_simd_mode): Likewise.
9909         * config/pa/pa.c (pa_secondary_reload): Likewise.
9910         * config/pa/predicates.md (base14_operand): Likewise.
9911         * config/powerpcspe/powerpcspe-c.c
9912         (altivec_resolve_overloaded_builtin): Likewise.
9913         * config/powerpcspe/powerpcspe.c (rs6000_setup_reg_addr_masks):
9914         Likewise.
9915         (rs6000_preferred_simd_mode): Likewise.
9916         (output_vec_const_move): Likewise.
9917         (rs6000_expand_vector_extract): Likewise.
9918         (rs6000_split_vec_extract_var): Likewise.
9919         (reg_offset_addressing_ok_p): Likewise.
9920         (rs6000_legitimate_offset_address_p): Likewise.
9921         (rs6000_legitimize_address): Likewise.
9922         (rs6000_emit_set_const): Likewise.
9923         (rs6000_const_vec): Likewise.
9924         (rs6000_emit_move): Likewise.
9925         (spe_build_register_parallel): Likewise.
9926         (rs6000_darwin64_record_arg_recurse): Likewise.
9927         (swap_selector_for_mode): Likewise.
9928         (spe_init_builtins): Likewise.
9929         (paired_init_builtins): Likewise.
9930         (altivec_init_builtins): Likewise.
9931         (do_load_for_compare): Likewise.
9932         (rs6000_generate_compare): Likewise.
9933         (rs6000_expand_float128_convert): Likewise.
9934         (emit_load_locked): Likewise.
9935         (emit_store_conditional): Likewise.
9936         (rs6000_output_function_epilogue): Likewise.
9937         (rs6000_handle_altivec_attribute): Likewise.
9938         (rs6000_function_value): Likewise.
9939         (emit_fusion_gpr_load): Likewise.
9940         (emit_fusion_p9_load): Likewise.
9941         (emit_fusion_p9_store): Likewise.
9942         * config/powerpcspe/predicates.md (easy_fp_constant): Likewise.
9943         (fusion_gpr_mem_load): Likewise.
9944         (fusion_addis_mem_combo_load): Likewise.
9945         (fusion_addis_mem_combo_store): Likewise.
9946         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9947         (fusion_gpr_mem_load): Likewise.
9948         (fusion_addis_mem_combo_load): Likewise.
9949         (fusion_addis_mem_combo_store): Likewise.
9950         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9951         Likewise.
9952         * config/rs6000/rs6000-string.c (do_load_for_compare): Likewise.
9953         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
9954         (rs6000_preferred_simd_mode): Likewise.
9955         (output_vec_const_move): Likewise.
9956         (rs6000_expand_vector_extract): Likewise.
9957         (rs6000_split_vec_extract_var): Likewise.
9958         (reg_offset_addressing_ok_p): Likewise.
9959         (rs6000_legitimate_offset_address_p): Likewise.
9960         (rs6000_legitimize_address): Likewise.
9961         (rs6000_emit_set_const): Likewise.
9962         (rs6000_const_vec): Likewise.
9963         (rs6000_emit_move): Likewise.
9964         (rs6000_darwin64_record_arg_recurse): Likewise.
9965         (swap_selector_for_mode): Likewise.
9966         (paired_init_builtins): Likewise.
9967         (altivec_init_builtins): Likewise.
9968         (rs6000_expand_float128_convert): Likewise.
9969         (emit_load_locked): Likewise.
9970         (emit_store_conditional): Likewise.
9971         (rs6000_output_function_epilogue): Likewise.
9972         (rs6000_handle_altivec_attribute): Likewise.
9973         (rs6000_function_value): Likewise.
9974         (emit_fusion_gpr_load): Likewise.
9975         (emit_fusion_p9_load): Likewise.
9976         (emit_fusion_p9_store): Likewise.
9977         * config/rx/rx.c (rx_gen_move_template): Likewise.
9978         (flags_from_mode): Likewise.
9979         * config/s390/predicates.md (s390_alc_comparison): Likewise.
9980         (s390_slb_comparison): Likewise.
9981         * config/s390/s390.c (s390_handle_vectorbool_attribute): Likewise.
9982         (s390_vector_mode_supported_p): Likewise.
9983         (s390_cc_modes_compatible): Likewise.
9984         (s390_match_ccmode_set): Likewise.
9985         (s390_canonicalize_comparison): Likewise.
9986         (s390_emit_compare_and_swap): Likewise.
9987         (s390_branch_condition_mask): Likewise.
9988         (s390_rtx_costs): Likewise.
9989         (s390_secondary_reload): Likewise.
9990         (__SECONDARY_RELOAD_CASE): Likewise.
9991         (s390_expand_cs): Likewise.
9992         (s390_preferred_simd_mode): Likewise.
9993         * config/s390/vx-builtins.md (vec_packsu_u<mode>): Likewise.
9994         * config/sh/sh.c (sh_print_operand): Likewise.
9995         (dump_table): Likewise.
9996         (sh_secondary_reload): Likewise.
9997         * config/sh/sh.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9998         * config/sh/sh.md (casesi_worker_1): Likewise.
9999         (casesi_worker_2): Likewise.
10000         * config/sparc/predicates.md (icc_comparison_operator): Likewise.
10001         (fcc_comparison_operator): Likewise.
10002         * config/sparc/sparc.c (sparc_expand_move): Likewise.
10003         (emit_soft_tfmode_cvt): Likewise.
10004         (sparc_preferred_simd_mode): Likewise.
10005         (output_cbranch): Likewise.
10006         (sparc_print_operand): Likewise.
10007         (sparc_expand_vec_perm_bmask): Likewise.
10008         (vector_init_bshuffle): Likewise.
10009         * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
10010         (spu_vector_mode_supported_p): Likewise.
10011         (spu_expand_insv): Likewise.
10012         (spu_emit_branch_or_set): Likewise.
10013         (spu_handle_vector_attribute): Likewise.
10014         (spu_builtin_splats): Likewise.
10015         (spu_builtin_extract): Likewise.
10016         (spu_builtin_promote): Likewise.
10017         (spu_expand_sign_extend): Likewise.
10018         * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
10019         (tilegx_simd_int): Likewise.
10020         * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p): Likewise.
10021         (tilepro_simd_int): Likewise.
10022         * config/v850/v850.c (const_double_split): Likewise.
10023         (v850_print_operand): Likewise.
10024         (ep_memory_offset): Likewise.
10025         * config/vax/vax.c (vax_rtx_costs): Likewise.
10026         (vax_output_int_move): Likewise.
10027         (vax_output_int_add): Likewise.
10028         (vax_output_int_subtract): Likewise.
10029         * config/visium/predicates.md (visium_branch_operator): Likewise.
10030         * config/visium/visium.c (rtx_ok_for_offset_p): Likewise.
10031         (visium_print_operand_address): Likewise.
10032         * config/visium/visium.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
10033         * config/xtensa/xtensa.c (xtensa_mem_offset): Likewise.
10034         (xtensa_expand_conditional_branch): Likewise.
10035         (xtensa_copy_incoming_a7): Likewise.
10036         (xtensa_output_literal): Likewise.
10037         * dfp.c (decimal_real_maxval): Likewise.
10038         * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
10040 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
10041             Alan Hayward  <alan.hayward@arm.com>
10042             David Sherwood  <david.sherwood@arm.com>
10044         * genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
10045         (mode_nunits_inline): Likewise.
10046         (mode_inner_inline): Likewise.
10047         (mode_unit_size_inline): Likewise.
10048         (mode_unit_precision_inline): Likewise.
10049         (emit_insn_modes_h): Likewise.  Also emit a #define of the
10050         unprefixed name.
10051         (emit_mode_wider): Add an E_ prefix to mode names.
10052         (emit_mode_complex): Likewise.
10053         (emit_mode_inner): Likewise.
10054         (emit_mode_adjustments): Likewise.
10055         (emit_mode_int_n): Likewise.
10056         * config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
10057         (v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
10058         (v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
10059         (si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
10060         (CRC32_BUILTIN, ENTRY): Likewise.
10061         * config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
10062         (aarch64_pop_regs): Likewise.
10063         (aarch64_process_components): Likewise.
10064         * config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
10065         * config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
10066         (v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
10067         (v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
10068         * config/arm/arm.c (arm_init_libfuncs): Likewise.
10069         * config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
10070         Likewise.
10071         * config/i386/i386-builtin.def (pcmpestr): Likewise.
10072         (pcmpistr): Likewise.
10073         * config/microblaze/microblaze.c (double_memory_operand): Likewise.
10074         * config/mmix/mmix.c (mmix_output_condition): Likewise.
10075         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
10076         Likewise.
10077         * config/rl78/rl78.c (mduc_regs): Likewise.
10078         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
10079         (htm_expand_builtin): Likewise.
10080         * config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
10081         * config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
10082         * config/xtensa/xtensa.c (print_operand): Likewise.
10083         * expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
10084         (NUM_MODE_VECTOR_INT): Likewise.
10085         * genoutput.c (null_operand): Likewise.
10086         (output_operand_data): Likewise.
10087         * genrecog.c (print_parameter_value): Likewise.
10088         * lra.c (debug_operand_data): Likewise.
10090 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
10092         * dwarf2out.c (scompare_loc_descriptor_wide)
10093         (scompare_loc_descriptor_narrow): New functions, split out from...
10094         (scompare_loc_descriptor): ...here.
10095         * expmed.c (emit_store_flag_int): New function, split out from...
10096         (emit_store_flag): ...here.
10098 2017-08-30  Richard Biener  <rguenther@suse.de>
10100         * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
10101         (dwarf2out_early_finish): Move setting of AT_pubnames from
10102         early debug output to early finish.
10104 2017-08-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
10106         * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker
10107         and -mdata-region to the assembler.
10109 2017-08-30  Richard Biener  <rguenther@suse.de>
10111         * dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
10112         attributes.
10113         (gen_subprogram_die): Add DW_AT_object_pointer only early.
10114         (dwarf2out_early_global_decl): Only generate a DIE for the
10115         abstract origin if it doesn't already exist or is a declaration DIE.
10116         (resolve_addr): Do not add the linkage name twice when
10117         generating a stub DIE for the DW_TAG_GNU_call_site target.
10119 2017-08-30  Richard Sandiford  <richard.sandiford@linaro.org>
10121         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
10122         Use machine_mode rather than int for arg1_mode.
10124 2017-08-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
10126         PR target/82015
10127         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Insure
10128         that the second argument of the built-in functions to unpack
10129         128-bit scalar types to 64-bit values is 0 or 1.  Change to use a
10130         switch statement instead a lot of if statements.
10131         * config/rs6000/rs6000.md (unpack<mode>, FMOVE128_VSX iterator):
10132         Allow 64-bit values to be in Altivec registers as well as
10133         traditional floating point registers.
10134         (pack<mode>, FMOVE128_VSX iterator): Likewise.
10136 2017-08-29  Alexander Monakov  <amonakov@ispras.ru>
10138         * ira-costs.c (record_address_regs): Handle both operands of PLUS for
10139         MAX_REGS_PER_ADDRESS == 1.
10141 2017-08-29  Uros Bizjak  <ubizjak@gmail.com>
10143         * config/i386/i386.opt (flag_fentry): Do not init to -1.
10144         * config/i386/i386.c (ix86_option_override_internal): Simplify
10145         setting of opts->x_flag_entry.
10147 2017-08-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10148             Jakub Jelinek  <jakub@redhat.com>
10149             Richard Biener  <rguenther@suse.de>
10151         PR tree-optimization/81503
10152         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
10153         folded constant fits in the target type; reorder tests for clarity.
10155 2017-08-29  Martin Liska  <mliska@suse.cz>
10157         * passes.def: Include pass_lower_switch.
10158         * stmt.c (dump_case_nodes): Remove and move to
10159         tree-switch-conversion.
10160         (case_values_threshold): Likewise.
10161         (expand_switch_as_decision_tree_p): Likewise.
10162         (emit_case_decision_tree): Likewise.
10163         (expand_case): Likewise.
10164         (balance_case_nodes): Likewise.
10165         (node_has_low_bound): Likewise.
10166         (node_has_high_bound): Likewise.
10167         (node_is_bounded): Likewise.
10168         (emit_case_nodes): Likewise.
10169         (struct simple_case_node): New struct.
10170         (add_case_node): Remove.
10171         (emit_case_dispatch_table): Use vector instead of case_list.
10172         (reset_out_edges_aux): Remove.
10173         (compute_cases_per_edge): Likewise.
10174         (expand_case): Build list of simple_case_node.
10175         (expand_sjlj_dispatch_table): Use it.
10176         * tree-switch-conversion.c (struct case_node): Moved from
10177         stmt.c and adjusted.
10178         (emit_case_nodes): Likewise.
10179         (node_has_low_bound): Likewise.
10180         (node_has_high_bound): Likewise.
10181         (node_is_bounded): Likewise.
10182         (case_values_threshold): Likewise.
10183         (reset_out_edges_aux): Likewise.
10184         (compute_cases_per_edge): Likewise.
10185         (add_case_node): Likewise.
10186         (dump_case_nodes): Likewise.
10187         (balance_case_nodes): Likewise.
10188         (expand_switch_as_decision_tree_p): Likewise.
10189         (emit_jump): Likewise.
10190         (emit_case_decision_tree): Likewise.
10191         (try_switch_expansion): Likewise.
10192         (do_jump_if_equal): Likewise.
10193         (emit_cmp_and_jump_insns): Likewise.
10194         (fix_phi_operands_for_edge): New function.
10195         (record_phi_operand_mapping): Likewise.
10196         (class pass_lower_switch): New pass.
10197         (pass_lower_switch::execute): New function.
10198         (make_pass_lower_switch): Likewise.
10199         (conditional_probability):
10200         * timevar.def: Add TV_TREE_SWITCH_LOWERING.
10201         * tree-pass.h: Add make_pass_lower_switch.
10203 2017-08-29  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
10205         PR target/80993
10206         * gcc/config/msp430/msp430.c (msp430_attr): Mark interrupt
10207         handlers as used.
10209 2017-08-29  Richard Biener  <rguenther@suse.de>
10211         * dwarf2out.c (add_dwarf_attr): When checking is enabled verify
10212         we do not add a DW_AT_inline attribute twice.
10213         (gen_subprogram_die): Remove code setting DW_AT_inline on
10214         DECL_ABSTRACT_P nodes.
10216 2017-08-29  Richard Sandiford  <richard.sandiford@linaro.org>
10218         * gimplify.c (gimplify_call_expr): Copy the nothrow flag to
10219         calls to internal functions.
10220         (gimplify_modify_expr): Likewise.
10221         * tree-call-cdce.c (use_internal_fn): Likewise.
10222         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10223         (convert_to_divmod): Set the nothrow flag.
10224         * tree-if-conv.c (predicate_mem_writes):  Likewise.
10225         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
10226         (vectorizable_call): Likewise.
10227         (vectorizable_store): Likewise.
10228         (vectorizable_load): Likewise.
10229         * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10230         (vect_recog_mask_conversion_pattern): Likewise.
10232 2017-08-29  Martin Liska  <mliska@suse.cz>
10234         PR other/39851
10235         * gcc.c (driver_handle_option): Add new argument.
10236         * opts-common.c (handle_option): Pass
10237         target_option_override_hook.
10238         * opts-global.c (lang_handle_option): Add new option.
10239         (set_default_handlers):  Add new argument.
10240         (decode_options): Likewise.
10241         * opts.c (target_handle_option): Likewise.
10242         (common_handle_option): Call target_option_override_hook.
10243         * opts.h (struct cl_option_handler_func): Add hook for
10244         target option override.
10245         (struct cl_option_handlers): Likewise.
10246         (set_default_handlers): Add new argument.
10247         (decode_options): Likewise.
10248         (common_handle_option): Likewise.
10249         (target_handle_option): Likewise.
10250         * toplev.c (toplev::main): Pass targetm.target_option.override
10251         hook.
10253 2017-08-29  Richard Biener  <rguenther@suse.de>
10254         Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
10256         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine
10257         life to the active subtree.
10259 2017-08-28  Jeff Law  <law@redhat.com>
10261         * tree-ssa-dom.c (edge_info::record_simple_equiv): Call
10262         derive_equivalences.
10263         (derive_equivalences_from_bit_ior, record_temporary_equivalences):
10264         Code moved into....
10265         (edge_info::derive_equivalences): New private member function
10267         * tree-ssa-dom.c (class edge_info): Changed from a struct
10268         to a class.  Add ctor/dtor, methods and data members.
10269         (edge_info::edge_info): Renamed from allocate_edge_info.
10270         Initialize additional members.
10271         (edge_info::~edge_info): New.
10272         (free_dom_edge_info): Delete the edge info.
10273         (record_edge_info): Use new class & associated member functions.
10274         Tighten forms for testing for edge equivalences.
10275         (record_temporary_equivalences): Iterate over the simple
10276         equivalences rather than assuming there's only one per edge.
10277         (cprop_into_successor_phis): Iterate over the simple
10278         equivalences rather than assuming there's only one per edge.
10279         (optimize_stmt): Use operand_equal_p rather than pointer
10280         equality for mini-DSE code.
10282 2017-08-28  Nathan Sidwell  <nathan@acm.org>
10284         * gcc.c (execute): Fold SIGPIPE handling into switch
10285         statement.  Adjust internal error message.
10287 2017-08-28  Richard Biener  <rguenther@suse.de>
10289         PR debug/81993
10290         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
10291         Do nothing for removed DIEs.
10293 2017-08-28  Richard Biener  <rguenther@suse.de>
10295         PR tree-optimization/81977
10296         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
10297         memcpy.
10299 2017-08-28  Alexander Monakov  <amonakov@ispras.ru>
10301         PR target/80640
10302         * doc/md.texi (mem_thread_fence): Remove mention of mode.  Rewrite.
10303         * optabs.c (expand_mem_thread_fence): Emit a compiler barrier when
10304         using targetm.gen_mem_thread_fence.
10306 2017-08-27  Uros Bizjak  <ubizjak@gmail.com>
10308         PR target/81995
10309         * config/i386/i386.md (*<btsc><mode>): Change operand 2
10310         predicate to register_operand.  Reorder operands.
10311         (*btr<mode>): Ditto.
10312         (*<btsc><mode>_mask): Change operand 3 predicate to register_operand.
10313         (*btr<mode>_mask): Ditto.
10315 2017-08-25  Steven Munroe  <munroesj@gcc.gnu.org>
10317         * config.gcc (powerpc*-*-*): Add xmmintrin.h and mm_malloc.h.
10318         * config/rs6000/xmmintrin.h: New file.
10319         * config/rs6000/x86intrin.h [__ALTIVEC__]: Include xmmintrin.h.
10321 2017-08-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10323         PR target/81504
10324         * config/rs6000/rs6000-p8swap.c (find_alignment_op): Add reference
10325         parameter and_insn and return it.
10326         (recombine_lvx_pattern): Insert a copy to ensure availability of
10327         the base register of the copied masking operation at the point of
10328         the instruction replacement.
10329         (recombine_stvx_pattern): Likewise.
10331 2017-08-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
10333         * config/rs6000/rs6000.opt (-mpower9-dform-scalar): Delete
10334         undocumented switches.
10335         (-mpower9-dform-vector): Likewise.
10336         (-mpower9-dform): Likewise.
10337         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Update
10338         comments to delete references to -mpower9-dform* switches.
10339         * config/rs6000/predicates.md (vsx_quad_dform_memory_operand):
10340         Delete reference to -mpower9-dform* switches, test for
10341         -mpower9-vector instead.
10342         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Likewise.
10343         (OTHER_P9_VECTOR_MASKS): Likewise.
10344         (POWERPC_MASKS): Likewise.
10345         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Change
10346         tests against -mpower9-dform* to -mpower9-vector.  Delete code
10347         that checked for -mpower9-dform* consistancy with other options.
10348         Add test for -mpower9-misc to enable other power9 switches.
10349         (rs6000_init_hard_regno_mode_ok): Likewise.
10350         (rs6000_option_override_internal): Likewise.
10351         (rs6000_emit_prologue): Likewise.
10352         (rs6000_emit_epilogue): Likewise.
10353         (rs6000_opt_masks): Delete -mpower9-dform-{scalar,vector}.
10354         (rs6000_disable_incompatiable_switches): Delete -mpower9-dform.
10355         (emit_fusion_p9_load): Change tests for -mpower9-dform-scalar
10356         -mpower9-vector.
10357         (emit_fusion_p9_store): Likewise.
10358         * config/rs6000/rs6000.h (TARGET_P9_DFORM_SCALAR): Delete
10359         resetting these macros if the assembler does not support ISA 3.0
10360         instructions.
10361         (TARGET_P9_DFORM_VECTOR): Likewise.
10362         * config/rs6000/rs6000.md (peepholes to optimize altivec memory):
10363         Change to use -mpower9-vector instead of -mpower9-dform-scalar.
10365 2017-08-25  Alan Modra  <amodra@gmail.com>
10367         PR rtl-optimization/81747
10368         * cse.c (cse_extended_basic_block): Don't attempt to record
10369         equivalences for degenerate conditional branches that branch
10370         to their fall-through.
10372 2017-08-24  Martin Sebor  <msebor@redhat.com>
10374         PR middle-end/81908
10375         * gimple-fold.c (size_must_be_zero_p): New function.
10376         (gimple_fold_builtin_memory_op): Call it.
10378 2017-08-24  Steven Munroe  <munroesj@gcc.gnu.org>
10380         * config/rs6000/mm_malloc.h: New file.
10382 2017-08-24  Bin Cheng  <bin.cheng@arm.com>
10384         PR tree-optimization/81913
10385         * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
10386         analysis when either IVs in condition can wrap.
10388 2017-08-24  Uros Bizjak  <ubizjak@gmail.com>
10390         * dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40.
10391         * dwarf2cfi.c (MAX_ARTIFICIAL_LABEL_BYTES): Remove.
10393 2017-08-24  Richard Biener  <rguenther@suse.de>
10395         PR target/81921
10396         * targhooks.c (default_target_can_inline_p): Properly
10397         use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
10398         is present and always compare.
10399         * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
10400         infer -mfpmath=sse from TARGET_SSE_P.
10401         (ix86_can_inline_p): Properly use target_option_default_node when
10402         no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.
10404 2017-08-24  Richard Biener  <rguenther@suse.de>
10406         PR debug/81936
10407         * dwarf2out.c (output_die): Handle flag_generate_offload like
10408         flag_generate_lto.
10409         (output_comp_unit): Likewise.
10410         (gen_array_type_die): Likewise.
10411         (dwarf2out_early_finish): Likewise.
10412         (note_variable_value_in_expr): Likewise.
10413         (dwarf2out_finish): Likewise.  Adjust assert.
10414         * cgraphunit.c (symbol_table::compile): Move setting of
10415         flag_generate_offload earlier ...
10416         (symbol_table::finalize_compilation_unit): ... here, before
10417         early debug finalization.
10419 2017-08-24  Richard Biener  <rguenther@suse.de>
10421         * config/i386/i386.c: Include symbol-summary.h, ipa-prop.h
10422         and ipa-fnsummary.h.
10423         (ix86_can_inline_p): When ix86_fpmath flags do not match
10424         check whether the callee uses FP math at all.
10426 2017-08-24  Aldy Hernandez  <aldyh@redhat.com>
10428         PR middle-end/81931
10429         * tree-ssanames.c (get_nonzero_bits): Use element_precision
10430         instead of TYPE_PRECISION.
10432 2017-08-24  Richard Sandiford  <richard.sandiford@linaro.org>
10433             Alan Hayward  <alan.hayward@arm.com>
10434             David Sherwood  <david.sherwood@arm.com>
10436         * combine.c (make_extraction): Use subreg_offset_from_lsb.
10438 2017-08-23  Daniel Santos  <daniel.santos@pobox.com>
10440         * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
10441         Remove field.
10442         (ix86_frame::stack_realign_allocate): New field.
10443         (struct machine_frame_state): Modify comments.
10444         (machine_frame_state::sp_realigned_fp_end): New field.
10445         * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
10446         layout calculation.
10447         (sp_valid_at): Add assertion to assure no attempt to access invalid
10448         offset of a realigned stack.
10449         (fp_valid_at): Likewise.
10450         (choose_baseaddr): Modify comments.
10451         (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
10452         ix86_expand_prologue.
10453         (ix86_expand_prologue): Modify stack realignment and allocation.
10454         (ix86_expand_epilogue): Modify comments.
10455         * doc/sourcebuild.texi: Add documentation for target selectors avx2,
10456         avx2_runtime, avx512f, and avx512f_runtime.
10458 2017-08-23  Uros Bizjak  <ubizjak@gmail.com>
10460         * config/i386/i386.opt: Remove unneeded Init(0) initializations.
10461         (mstackrealign): Do not init to -1.
10462         * config/i386/i386.c (ix86_option_override_internal):
10463         Check opts_set, not opts when setting default value of
10464         opts->x_ix86_force_align_arg_pointer.
10466 2017-08-23  Richard Biener  <rguenther@suse.de>
10468         * function.c (fndecl_name): Use verbosity 1 (no arguments) for
10469         lang_hooks.decl_printable_name.
10470         * print-rtl-function.c (print_rtx_function): Likewise.
10471         * tree-pretty-print.c (dump_function_header): Likewise.
10473 2017-08-23  Richard Biener  <rguenther@suse.de>
10475         PR lto/81940
10476         * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
10477         -g0 at compile-time.
10479 2017-08-23  Tamar Christina  <tamar.christina@arm.com>
10481         PR middle-end/19706
10482         * doc/sourcebuild.texi (Other hardware attributes):
10483         Document xorsign.
10485 2017-08-23  Tamar Christina  <tamar.christina@arm.com>
10487         PR middle-end/19706
10488         * tree-ssa-math-opts.c (convert_expand_mult_copysign):
10489         Fix single-use check.
10491 2017-08-23  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10493         * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
10495 2017-08-22  Daniel Santos  <daniel.santos@pobox.com>
10497         * doc/install.texi: Modify to add more details on running selected
10498         tests.
10500 2017-08-22  Daniel Santos  <daniel.santos@pobox.com>
10502         * config/i386/i386.c (ix86_option_override_internal): Error when -mx32
10503         is combined with -mabi=ms.
10504         (ix86_function_type_abi): Limit errors for mixing -mx32 with attribute
10505         ms_abi.
10507 2017-08-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10509         PR tree-optimization/81488
10510         * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
10511         and cached_basis fields.
10512         (MAX_SPREAD): New constant.
10513         (alloc_cand_and_find_basis): Initialize new fields.
10514         (clear_visited): New function.
10515         (create_phi_basis_1): Rename from create_phi_basis, set visited
10516         and cached_basis fields.
10517         (create_phi_basis): New wrapper function.
10518         (phi_add_costs_1): Rename from phi_add_costs, add spread
10519         parameter, set visited field, short-circuit when limits reached.
10520         (phi_add_costs): New wrapper function.
10521         (record_phi_increments_1): Rename from record_phi_increments, set
10522         visited field.
10523         (record_phi_increments): New wrapper function.
10524         (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
10525         (phi_incr_cost): New wrapper function.
10526         (all_phi_incrs_profitable_1): Rename from
10527         all_phi_incrs_profitable, set visited field.
10528         (all_phi_incrs_profitable): New wrapper function.
10530 2017-08-22  Richard Sandiford  <richard.sandiford@linaro.org>
10531             Alan Hayward  <alan.hayward@arm.com>
10532             David Sherwood  <david.sherwood@arm.com>
10534         * rtl.h (paradoxical_subreg_p): Define inline, and add a version
10535         that takes the outer and inner modes.
10536         * doc/rtl.texi: Use paradoxical_subreg_p instead of a GET_MODE_SIZE
10537         comparison as the canonical test for a paradoxical subreg.
10538         * combine.c (simplify_set): Use paradoxical_subreg_p.
10539         (make_extraction): Likewise.
10540         (force_to_mode): Likewise.
10541         (rtx_equal_for_field_assignment_p): Likewise.
10542         (gen_lowpart_for_combine): Likewise.
10543         (simplify_comparison): Likewise.
10544         * cse.c (equiv_constant): Likewise.
10545         * expmed.c (store_bit_field_1): Likewise.
10546         * final.c (alter_subreg): Likewise.
10547         * fwprop.c (propagate_rtx): Likewise.
10548         (forward_propagate_subreg): Likewise.
10549         * ira-conflicts.c (ira_build_conflicts): Likewise.
10550         * lower-subreg.c (simplify_gen_subreg_concatn): Likewise.
10551         * lra-constraints.c (curr_insn_transform): Likewise.
10552         (split_reg): Likewise.
10553         * lra-eliminations.c (move_plus_up): Likewise.
10554         (lra_eliminate_regs_1): Likewise.
10555         * recog.c (general_operand): Likewise.
10556         * ree.c (combine_reaching_defs): Likewise.
10557         * reload.c (push_reload): Likewise.
10558         (find_reloads): Likewise.
10559         * reload1.c (elimination_effects): Likewise.
10560         (compute_reload_subreg_offset): Likewise.
10561         (choose_reload_regs): Likewise.
10562         * rtlanal.c (subreg_lsb_1): Likewise.
10563         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10564         (simplify_subreg): Likewise.
10565         * var-tracking.c (track_loc_p): Likewise.
10566         * emit-rtl.c (byte_lowpart_offset): Likewise.
10567         (paradoxical_subreg_p): Delete out-of-line definition.
10569 2017-08-22  Jeff Law  <law@redhat.com>
10571         PR tree-optimization/81741
10572         PR tree-optimization/71947
10573         * tree-ssa-dom.c: Include tree-inline.h.
10574         (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
10575         equivalences if one is more expensive to compute than the other.
10576         * tree-ssa-scopedtables.h (class const_or_copies): Make
10577         record_const_or_copy_raw method private.
10578         (class avail_exprs_stack): New method simplify_binary_operation.
10579         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
10580         avail_exprs_stack::simplify_binary_operation as needed.
10581         (avail_exprs_stack::simplify_binary_operation): New function.
10583 2017-08-22  Sebastian Huber  <sebastian.huber@embedded-brains.de>
10585         * config.gcc (powerpc-*-rtems*): Add rs6000/linux64.opt.
10586         * config/rs6000/rtems.h (ASM_PREFERRED_EH_DATA_FORMAT): New define.
10587         (DOT_SYMBOLS): Likewise.
10588         (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
10589         (RELOCATABLE_NEEDS_FIXUP): Likewise.
10590         (RS6000_ABI_NAME): Likewise.
10591         (TARGET_CMODEL): Likewise.
10592         (TOC_SECTION_ASM_OP): Likewise.
10593         (SET_CMODEL): New macro.
10594         (SUBSUBTARGET_OVERRIDE_OPTIONS): Evaluate cmodel options.
10596 2017-08-22  Richard Biener  <rguenther@suse.de>
10598         * tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT]
10599         to allow for free-lang-data replacements similar to verify_type_variant.
10601 2017-08-22  Richard Sandiford  <richard.sandiford@linaro.org>
10602             Alan Hayward  <alan.hayward@arm.com>
10603             David Sherwood  <david.sherwood@arm.com>
10605         * config/aarch64/aarch64.md (casesi): Use DImode rather than
10606         VOIDmode for the LABEL_REF.
10608 2017-08-22  Richard Biener  <rguenther@suse.de>
10610         * tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
10612 2017-08-22  Richard Biener  <rguenther@suse.de>
10614         * common.opt (feliminate-dwarf2-dups): Ignore.
10615         * doc/invoke.texi (feliminate-dwarf2-dups): Remove documentation.
10616         * dwarf2out.c (push_new_compile_unit, pop_compile_unit,
10617         same_die_p_wrap, compute_section_prefix,
10618         is_symbol_die, assign_symbol_names, break_out_includes): Remove.
10619         (comdat_symbol_id, comdat_symbol_number): Likewise.
10620         (cu_hash_table_entry, cu_hash_table_entry_hasher, cu_hash_type):
10621         Likewise.
10622         (check_duplicate_cu, record_comdat_symbol_number): Likewise.
10623         (output_die): Mark unreachable path unreachable.
10624         (dwarf2out_start_source_file): Do not create DW_TAG_GNU_BINCL.
10625         (dwarf2out_end_source_file): Do not create DW_TAG_GNU_EINCL.
10626         (dwarf2out_init): Remove code handling flag_eliminate_dwarf2_dups.
10627         (dwarf2out_early_finish): Likewise.
10629 2017-08-22  Aldy Hernandez  <aldyh@redhat.com>
10631         * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
10633 2017-08-22  Georg-Johann Lay  <avr@gjlay.de>
10635         PR target/81910
10636         * config/avr/avr.c (avr_handle_addr_attribute): Early return if
10637         not VAR_P. Filter attribute warnings with OPT_Wattributes.
10638         (avr_attribute_table) <io, io_low, address>: Initialize
10639         .decl_required with true.
10641 2017-08-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
10643         * config/rs6000/rs6000-cpus.def (-mvsx-scalar-float): Delete
10644         undocumented debugging options.
10645         (-mvsx-scalar-double): Likewise.
10646         (-mallow-df-permute): Likewise.
10647         (-mvectorize-builtins): Likewise.
10648         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
10649         (rs6000_builtin_vectorized_function): Likewise.
10650         (rs6000_builtin_md_vectorized_function): Likewise.
10651         (rs6000_opt_vars): Likewise.
10653 2017-08-21  Uros Bizjak  <ubizjak@gmail.com>
10655         PR target/46091
10656         * config/i386/i386.md (*btsq_imm): Rename from *btsq.
10657         (*btrq_imm): Rename from *btrq.
10658         (*btcq_imm): Rename from *btcq.
10659         (btsc): New code attribute.
10660         (*<btsc><mode>): New insn pattern.
10661         (*btr<mode>): Ditto.
10662         (*<btsc><mode>_mask): New insn_and_split pattern.
10663         (*btr<mode>_mask): Ditto.
10665 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
10666             Alan Hayward  <alan.hayward@arm.com>
10667             David Sherwood  <david.sherwood@arm.com>
10669         * function.c (pad_below): Simplify padding calculation.
10671 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
10672             Alan Hayward  <alan.hayward@arm.com>
10673             David Sherwood  <david.sherwood@arm.com>
10675         * target.def (function_prologue): Remove frame size argument.
10676         (function_epilogue): Likewise.
10677         * doc/tm.texi: Regenerate.
10678         * final.c (final_start_function): Update call to function_prologue.
10679         (final_end_function): Update call to function_epilogue.
10680         (default_function_pro_epilogue): Remove frame size argument.
10681         * output.h (default_function_pro_epilogue): Likewise.
10682         * config/arm/arm.c (arm_output_function_epilogue): Likewise.
10683         (arm_output_function_prologue): Likewise.
10684         * config/frv/frv.c (frv_function_prologue): Likewise.
10685         (frv_function_epilogue): Likewise.
10686         * config/i386/i386.c (ix86_output_function_epilogue): Likewise.
10687         * config/ia64/ia64.c (ia64_output_function_prologue): Likewise.
10688         (ia64_output_function_epilogue): Likewise.
10689         * config/m32r/m32r.c (m32r_output_function_prologue): Likewise.
10690         (m32r_output_function_epilogue): Likewise.
10691         * config/microblaze/microblaze.c (microblaze_function_prologue)
10692         (microblaze_function_epilogue): Likewise.
10693         * config/mips/mips.c (mips_output_function_prologue): Likewise.
10694         (mips_output_function_epilogue): Likewise.
10695         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Likewise.
10696         (mmix_target_asm_function_epilogue): Likewise.
10697         * config/msp430/msp430.c (msp430_start_function): Likewise.
10698         * config/nds32/nds32.c (nds32_asm_function_prologue): Likewise.
10699         (nds32_asm_function_epilogue): Likewise.
10700         * config/nios2/nios2.c (nios2_asm_function_prologue): Likewise.
10701         * config/pa/pa.c (pa_output_function_prologue): Likewise.
10702         (pa_output_function_epilogue): Likewise.
10703         * config/powerpcspe/powerpcspe.c (rs6000_output_function_prologue)
10704         (rs6000_output_function_epilogue): Likewise.
10705         * config/rl78/rl78.c (rl78_start_function): Likewise.
10706         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Likewise.
10707         (rs6000_output_function_epilogue): Likewise.
10708         * config/rx/rx.c (rx_output_function_prologue): Likewise.
10709         * config/sh/sh.c (sh_output_function_epilogue): Likewise.
10710         * config/sparc/sparc.c (sparc_asm_function_prologue): Likewise.
10711         (sparc_asm_function_epilogue): Likewise.
10713 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
10715         * tree.h (type_has_mode_precision_p): New function.
10716         * convert.c (convert_to_integer_1): Use it.
10717         * expr.c (expand_expr_real_2): Likewise.
10718         (expand_expr_real_1): Likewise.
10719         * fold-const.c (fold_single_bit_test_into_sign_test): Likewise.
10720         * match.pd: Likewise.
10721         * tree-ssa-forwprop.c (simplify_rotate): Likewise.
10722         * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
10723         * tree-tailcall.c (process_assignment): Likewise.
10724         * tree-vect-loop.c (vectorizable_reduction): Likewise.
10725         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern)
10726         (vect_recog_mult_pattern, vect_recog_divmod_pattern): Likewise.
10727         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
10728         (vectorizable_assignment): Likewise.
10729         (vectorizable_shift): Likewise.
10730         (vectorizable_operation): Likewise.
10731         * tree-vrp.c (register_edge_assert_for_2): Likewise.
10733 2017-08-21  Wilco Dijkstra  <wdijkstr@arm.com>
10735         * match.pd: Add pow (C, x) simplification.
10737 2017-08-21  Richard Biener  <rguenther@suse.de>
10739         PR tree-optimization/81900
10740         * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
10741         for blocks with abnormal predecessors.
10742         (compute_antic): Do not set visited flag prematurely.
10744 2017-08-21  Georg-Johann Lay  <avr@gjlay.de>
10746         PR target/79883
10747         * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.
10749 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
10751         * stor-layout.h (vector_type_mode): Move to...
10752         * tree.h (vector_type_mode): ...here.
10753         * stor-layout.c (vector_type_mode): Move to...
10754         * tree.c (vector_type_mode): ...here.  Include rtl.h and regs.h.
10756 2017-08-21  Richard Biener  <rguenther@suse.de>
10758         * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
10759         register_external_die hooks.
10760         (debug_false_tree_charstarstar_uhwistar): Declare.
10761         (debug_nothing_tree_charstar_uhwi): Likewise.
10762         * debug.c (do_nothing_debug_hooks): Adjust.
10763         (debug_false_tree_charstarstar_uhwistar): New do nothing.
10764         (debug_nothing_tree_charstar_uhwi): Likewise.
10765         * dbxout.c (dbx_debug_hooks): Adjust.
10766         (xcoff_debug_hooks): Likewise.
10767         * sdbout.c (sdb_debug_hooks): Likewise.
10768         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10769         * dwarf2out.c (macinfo_label_base): New global.
10770         (dwarf2out_register_external_die): New function for the
10771         register_external_die hook.
10772         (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
10773         (dwarf2_debug_hooks): Use them.
10774         (dwarf2_lineno_debug_hooks): Adjust.
10775         (struct die_struct): Add with_offset flag.
10776         (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
10777         DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
10778         DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
10779         DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
10780         DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
10781         DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
10782         defining section names for the early LTO debug variants.
10783         (reset_indirect_string): New helper.
10784         (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
10785         (print_dw_val): Add support for offsetted symbol references.
10786         (get_ultimate_context): Split out from is_cxx.
10787         (is_cxx): Use get_ultimate_context.
10788         (is_fortran): Add decl overload.
10789         (compute_comp_unit_symbol): Split out worker from
10790         compute_section_prefix.
10791         (compute_section_prefix): Call compute_comp_unit_symbol and
10792         set comdat_type_p here.
10793         (output_die): Skip DIE symbol output for the LTO added one.
10794         Handle DIE symbol references with offset.
10795         (output_comp_unit): Guard section name mangling properly.
10796         For LTO debug sections emit a symbol at the section beginning
10797         which we use to refer to its DIEs.
10798         (add_abstract_origin_attribute): For DIEs registered via
10799         dwarf2out_register_external_die directly refer to the early
10800         DIE rather than indirectly through the shadow one we created.
10801         Remove obsolete call to dwarf2out_abstract_function for
10802         non-function/block origins.
10803         (gen_array_type_die): When generating early LTO debug do
10804         not emit DW_AT_string_length.
10805         (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
10806         late when in LTO.  As suggested place a gcc_unreachable for
10807         the DECL_ABSTRACT_P case.
10808         (gen_subprogram_die): Avoid another specification DIE
10809         for early built declarations/definitions for the late LTO case.
10810         (gen_variable_die): Add type references for late duplicated VLA dies
10811         when in late LTO.
10812         (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
10813         we have the abstract instance already.
10814         (process_scope_var): Adjust decl DIE contexts in LTO which
10815         first puts them in limbo.
10816         (gen_decl_die): Do not generate type DIEs late apart from
10817         types for VLAs or for decls we do not yet have a DIE.  Do not
10818         call dwarf2out_abstract_function late.
10819         (dwarf2out_early_global_decl): Make sure to create DIEs
10820         for abstract instances of a decl first.
10821         (dwarf2out_late_global_decl): Adjust comment.
10822         (output_macinfo_op): With multiple macro sections use
10823         macinfo_label_base to distinguish labels.
10824         (output_macinfo): Likewise.  Update macinfo_label_base.
10825         Pass in the line info label.
10826         (note_variable_value_in_expr): When generating LTO resolve
10827         all variable values here by generating DIEs as needed.
10828         (init_sections_and_labels): Add early LTO debug flag parameter
10829         and generate different sections and names if set.  Add generation
10830         counter for the labels so we can have multiple of them.
10831         (reset_dies): Helper to allow DIEs to be output multiple times.
10832         (dwarf2out_finish): When outputting DIEs to the fat part of an
10833         LTO object first reset DIEs.
10834         (dwarf2out_early_finish): Output early DIEs when generating LTO.
10835         (modified_type_die): Check for decl_ultimate_origin being self
10836         before recursing.
10837         (gen_type_die_with_usage): Likewise.
10838         (gen_typedef_die): Allow decl_ultimate_origin being self.
10839         (set_decl_abstract_flags): Remove.
10840         (set_block_abstract_flags): Likewise.
10841         (dwarf2out_abstract_function): Treat the early generated DIEs
10842         as the abstract copy and only add DW_AT_inline and
10843         DW_AT_artificial here and call set_decl_origin_self.
10844         If the DIE has an abstract origin don't do anything.
10845         * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
10846         if we have none yet (Go fails to build one, PR78628).
10847         (variably_modified_type_p): Prevent endless recursion for Ada
10848         cyclic pointer types.
10849         * lto-streamer-in.c: Include debug.h.
10850         (dref_queue): New global.
10851         (lto_read_tree_1): Stream in DIE references.
10852         (lto_input_tree): Register DIE references.
10853         (input_function): Stream DECL_DEBUG_ARGS.
10854         * lto-streamer-out.c: Include debug.h.
10855         (lto_write_tree_1): Output DIE references.
10856         (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
10857         Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
10858         (output_function): Stream DECL_DEBUG_ARGS.
10859         * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10860         Stream DECL_ABSTRACT_ORIGIN.
10861         * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
10862         (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
10863         DECL_CONTEXT for file-scope decls.
10864         * lto-streamer.h (struct dref_entry): Declare.
10865         (dref_queue): Likewise.
10866         * cfgexpand.c (pass_expand::execute): Do not call the
10867         outlining_inline_function hook here.
10868         * lto-wrapper.c (debug_obj): New global.
10869         (tool_cleanup): Unlink it if required.
10870         (debug_objcopy): New function.
10871         (run_gcc): Handle early debug sections in the IL files by
10872         extracting them to separate files, partially linkin them and
10873         feeding the result back as result to the linker.
10874         * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
10875         DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
10876         DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
10877         sections into a separate segment.
10878         * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
10879         segments.
10880         (darwin_asm_dwarf_section): Likewise.
10881         (darwin_asm_output_dwarf_offset): Likewise.
10882         * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
10884 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
10885             Alan Hayward  <alan.hayward@arm.com>
10886             David Sherwood  <david.sherwood@arm.com>
10888         * read-md.h (md_reader::record_potential_iterator_use): Replace
10889         pointer argument with an rtx and an index.
10890         * read-rtl.c (iterator_group::apply_iterator): Likewise.
10891         (apply_mode_iterator): Likewise.
10892         (apply_code_iterator): Likewise.
10893         (apply_int_iterator): Likewise.
10894         (apply_subst_iterator): Likewise.
10895         (record_iterator_use): Likewise.
10896         (record_attribute_use): Likewise.
10897         (md_reader::record_potential_iterator_use): Likewise.  Update calls
10898         to record_iterator_use and apply_iterator.
10899         (iterator_use): Replace ptr with x and index.
10900         (attribute_use): Likewise.
10901         (apply_attribute_uses): Update calls to apply_iterator.
10902         (apply_iterators): Likewise.  Update initialization of iterator_use.
10903         (rtx_reader::read_rtx_code): Update calls to record_iterator_use
10904         and record_potential_iterator_use.
10905         (rtx_reader::read_rtx_operand): Likewise.
10907 2017-08-21  Richard Sandiford  <richard.sandiford@linaro.org>
10908             Alan Hayward  <alan.hayward@arm.com>
10909             David Sherwood  <david.sherwood@arm.com>
10911         * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
10912         CONST_WIDE_INT.
10914 2017-08-21  Richard Biener  <rguenther@suse.de>
10916         PR middle-end/81884
10917         * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
10918         at struct end conservatively when comparing common bases.
10920 2017-08-21  Richard Biener  <rguenther@suse.de>
10922         * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
10923         (mem_ref_in_stmt): Remove.
10924         (determine_max_movement): Use ref index to get at the reference.
10925         (invariantness_dom_walker::before_dom_children): Deal with
10926         lim data already initialized.
10927         (gather_mem_refs_stmt): Initialize lim data and record ref index.
10929 2017-08-19  Uros Bizjak  <ubizjak@gmail.com>
10931         * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
10932         (TARGET_ISA_ROUND): Ditto.
10933         (TARGET_ROUND): Ditto.
10934         * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
10935         * config/i386/i386.md: Ditto.
10936         * config/i386/sse.md: Ditto.
10937         * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
10938         with OPTION_MASK_ISA_SSE4_1.
10940 2017-08-19  Uros Bizjak  <ubizjak@gmail.com>
10942         PR target/81894
10943         * doc/extend.texi (x86 Built-in Functions): Correct the name of
10944         __builtin_ia32_lzcnt_u16.
10946 2017-08-18  Peter Bergner  <bergner@vnet.ibm.com>
10948         PR target/80210
10949         * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
10950         (rs6000_set_current_function): Rewrite function to use it.
10952 2017-08-18  H.J. Lu  <hongjiu.lu@intel.com>
10954         PR c/53037
10955         * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
10956         and TYPE_WARN_IF_NOT_ALIGN.
10957         * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
10958         (handle_warn_if_not_align): New.
10959         (place_union_field): Call handle_warn_if_not_align.
10960         (place_field): Call handle_warn_if_not_align.
10961         Copy TYPE_WARN_IF_NOT_ALIGN.
10962         (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
10963         (layout_type): Likewise.
10964         * tree-core.h (tree_type_common): Add warn_if_not_align.  Set
10965         spare to 18.
10966         (tree_decl_common): Add warn_if_not_align.
10967         * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
10968         * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
10969         (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
10970         (DECL_WARN_IF_NOT_ALIGN): Likewise.
10971         (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
10972         * doc/extend.texi: Document warn_if_not_aligned attribute.
10973         * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
10975 2017-08-17  Martin Liska  <mliska@suse.cz>
10977         PR bootstrap/81864
10978         * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
10979         (get_data_dependence): Use it as pointer type.
10980         (distribute_loop): Likewise.
10982 2017-08-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10984         * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
10985         (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
10986         (p8_vmrgow_<mode>_direct): New define_insn.
10987         * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
10988         handle endianness for vmrgew and vmrgow permute patterns.
10990 2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>
10992         * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
10993         * config/rs6000/rs6000-cpus.def: Remove comment.
10994         (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
10995         (POWERPC_MASKS): Likewise.
10996         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
10997         use of TARGET_VSX_TIMODE.
10998         (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
10999         (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
11000         TARGET_VSX_TIMODE.  Change use of TARGET_VSX_TIMODE to TARGET_VSX.
11001         (rs6000_option_override_internal): Remove dead code.
11002         (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
11003         (rs6000_legitimize_reload_address): Likewise.
11004         (rs6000_legitimate_address_p): Likewise.
11005         (rs6000_opt_masks): Delete "vsx-timode".
11006         (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
11007         from function comment.
11008         * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
11009         * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
11010         (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
11011         condition.
11012         * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
11013         * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
11014         * config/rs6000/vsx.md (VSX_LE_128): Likewise.
11015         (VSX_TI): Likewise.
11016         (VSX_M): Likewise.
11017         (define_peephole2): Likewise.
11019 2017-08-17  Martin Sebor  <msebor@redhat.com>
11021         PR c/81859
11022         * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
11023         past the end of an array.
11024         (test_pp_format): Add test cases.
11026 2017-08-17  Richard Sandiford  <richard.sandiford@linaro.org>
11028         * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
11029         missing ECF_NOTHROW flags.
11031 2017-08-17  Peter Bergner  <bergner@vnet.ibm.com>
11033         PR target/72804
11034         * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
11035         operands residing in integer registers.
11036         (*vsx_le_perm_load_<mode>): Likewise.
11037         (*vsx_le_perm_store_<mode>): Likewise.
11038         (define_peephole2): Add peepholes to optimize the above.
11040 2017-08-17  Marek Polacek  <polacek@redhat.com>
11042         PR middle-end/81814
11043         * fold-const.c (operand_equal_for_comparison_p): Remove code that used
11044         to mimic what shorten_compare did.  Change the return type to bool.
11045         (fold_cond_expr_with_comparison): Update call to
11046         operand_equal_for_comparison_p.
11047         (fold_ternary_loc): Likewise.
11049 2017-08-17  Jackson Woodruff  <jackson.woodruff@arm.com>
11051         * aarch64-simd.md (mov<mode>): No longer force zero immediate into
11052         register.
11053         (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
11055 2017-08-17  Richard Biener  <rguenther@suse.de>
11057         * tree-ssa-structalias.c (solve_graph): When propagating
11058         to successors update the graphs succ edges and avoid duplicate work.
11060 2017-08-17  Maxim Ostapenko  <m.ostapenko@samsung.com>
11062         PR target/81861
11063         * config/i386/i386.c (ix86_option_override_internal): Save target
11064         specific options after ix86_stack_protector_guard_reg was changed.
11066 2017-08-17  Richard Biener  <rguenther@suse.de>
11068         PR tree-optimization/81827
11069         * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
11070         (new_var_info): Initialize it conservatively.
11071         (get_call_vi): Mark register vars.
11072         (new_scalar_tmp_constraint_exp): Likewise.
11073         (handle_rhs_call): Likewise.
11074         (handle_const_call): Likewise.
11075         (create_function_info_for): Likewise.
11076         (solve_constraints): Sort varinfos to separate register from
11077         non-register vars to pack points-to solution bitmaps during
11078         iteration.
11080 2017-08-17  Marek Polacek  <polacek@redhat.com>
11082         * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
11084 2017-08-17  Richard Biener  <rguenther@suse.de>
11086         * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
11087         to true when overflow is undefined and we saturated the result.
11089 2017-08-17  Alan Modra  <amodra@gmail.com>
11091         PR target/80938
11092         * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
11093         Don't use store multiple if only one reg needs saving.
11094         (interesting_frame_related_regno): New function.
11095         (rs6000_frame_related): Don't emit frame info for regs that
11096         don't need saving.
11097         (rs6000_emit_epilogue): Likewise.
11099 2017-08-16  Nathan Sidwell  <nathan@acm.org>
11101         * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
11102         * tree.h (TYPE_BINFO): Use type_non_common.maxval.
11103         (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
11104         * tree.c (free_lang_data_in_type): Use else-if chain.  Always
11105         clear TYPE_LANG_1.  Remove obsolete member-function stripping.
11106         (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
11107         (verify_type): Adjust for TYPE_BINFO move.
11108         * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
11109         process TYPE_BINFO directly.
11110         (hash_tree): Likewise.
11111         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
11112         Likewise.
11113         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
11114         Likewise.
11116 2017-08-16  David Malcolm  <dmalcolm@redhat.com>
11118         * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
11120 2017-08-16  Uros Bizjak  <ubizjak@gmail.com>
11122         PR target/46091
11123         * config/i386/i386.md (*anddi_1_btr): Change predicates of
11124         operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
11125         Add ix86_binary_operator_ok to insn constraint.
11126         (*iordi_1_bts): Ditto.
11127         (*xordi_1_btc): Ditto.
11128         (*btsq): Change predicate of operand 0 to nonimmediate_operand.
11129         Update corresponding peephole2 pattern.
11130         (*btrq): Ditto.
11131         (*btcq): Ditto.
11133 2017-08-16  Bin Cheng  <bin.cheng@arm.com>
11135         PR tree-optimization/81832
11136         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
11137         copy loop header which has IFN_LOOP_DIST_ALIAS call.
11139 2017-08-16  Marek Polacek  <polacek@redhat.com>
11141         PR middle/81695
11142         * fold-const.c (fold_indirect_ref_1): Restore original behavior
11143         regarding size_zero_node.
11145 2017-08-16  Martin Liska  <mliska@suse.cz>
11147         PR target/81753
11148         * config.gcc: Respect previously set extra_objs in case
11149         of darwin target.
11151 2017-08-16  Richard Sandiford  <richard.sandiford@linaro.org>
11153         PR tree-optimization/81835
11154         * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
11155         the phi SSA_NAME.  Check that the condition in a COND_EXPR does
11156         not depend on the phi.
11158 2017-08-16  Alan Modra  <amodra@gmail.com>
11160         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
11161         dead code.
11163 2017-08-16  Alan Modra  <amodra@gmail.com>
11165         * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
11166         (save_reg_p): ..into this.  Update all callers.
11167         (first_reg_to_save): Simplify.
11169 2017-08-16  Alan Modra  <amodra@gmail.com>
11171         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
11172         fixed regs.
11174 2017-08-15  Joseph Myers  <joseph@codesourcery.com>
11176         PR target/78460
11177         PR target/67712
11178         * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
11179         constant count if that count is less than 32.
11181 2017-08-15  Nathan Sidwell  <nathan@acm.org>
11183         * gcc.c (execute): Emit friendlier message if inferior is killed
11184         by an external cause.
11186 2017-08-15  Richard Biener  <rguenther@suse.de>
11188         PR tree-optimization/81790
11189         * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
11190         CONSTRUCTORs from simplifying and VN.
11192 2017-08-14  Martin Sebor  <msebor@redhat.com>
11194         * builtin-attrs.def: Add comments.
11196 2017-08-14  Martin Sebor  <msebor@redhat.com>
11198         PR c/81117
11199         * doc/extend.texi (attribute nonstring): Document new attribute.
11201 2017-08-14  Martin Sebor  <msebor@redhat.com>
11203         PR c/81117
11204         * tree-diagnostic.c (default_tree_printer): Handle %G.
11205         * gimple-pretty-print.h (percent_G_format): Declare new function.
11206         * gimple-pretty-print.c (percent_G_format): Define.
11207         * tree-pretty-print.c (percent_K_format): Add argument.
11209 2017-08-14  Martin Sebor  <msebor@redhat.com>
11211         PR translation/79998
11212         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11213         Remove a stray space.
11215 2017-08-14  Uros Bizjak  <ubizjak@gmail.com>
11217         PR target/46091
11218         * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
11219         (*iordi_1_bts): Ditto.
11220         (*xordi_1_btc): Ditto.
11222 2017-08-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11224         PR target/79845
11225         * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
11226         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11227         Likewise.
11228         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
11229         quoted strings, and make more translator-friendly.
11230         (darwin_rs6000_override_options): Likewise.
11231         (rs6000_option_override_internal): Likewise.
11232         (rs6000_return_in_memory): Fix overlong line.
11233         (init_cmulative_args): Use quoted strings, and make more
11234         translator-friendly.
11235         (rs6000_pass_by_reference): Fix overlong line.
11236         (def_builtin): Use quoted strings.
11237         (altivec_expand_predicate_builtin): Use quoted strings, and make
11238         more translator-friendly.
11239         (htm_expand_builtin): Use quoted strings.
11240         (cpu_expand_builtin): Use quoted strings, and make more
11241         translator-friendly.
11242         (altivec_expand_builtin): Likewise.
11243         (paired_expand_predicate_builtin): Likewise.
11244         (rs6000_invalid_builtin): Likewise.
11245         (builtin_function_type): Use quoted strings.
11246         (rs6000_expand_split_stack_prologue): Use quoted strings, and make
11247         more translator-friendly.
11248         (rs6000_trampoline_init): Likewise.
11249         (rs6000_handle_altivec_attribute): Likewise.
11250         (rs6000_inner_target_options): Use quoted strings.
11251         (rs6000_disable_incompatible_switches): Likewise.
11252         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
11253         strings, and make more translator-friendly.
11254         (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
11256 2017-08-14  Bin Cheng  <bin.cheng@arm.com>
11258         PR tree-optimization/81799
11259         * tree-loop-distribution.c (version_loop_by_alias_check): Force
11260         cond_expr to simple gimple operand.
11262 2017-08-14  Wilco Dijkstra  <wdijkstr@arm.com>
11264         PR middle-end/46932
11265         * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
11267 2017-08-14  Georg-Johann Lay  <avr@gjlay.de>
11269         PR target/81754
11270         PR target/81268
11271         * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
11272         * config/avr/avr.md (gasisr, *gasisr): Use it instead of
11273         TARGET_GASISR_PROLOGUES.
11274         * config/avr/avr.c (avr_option_override): Same.
11275         (avr_pass_pre_proep::execute): Same.
11277 2017-08-13  H.J. Lu  <hongjiu.lu@intel.com>
11279         PR target/81820
11280         * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
11281         frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
11283 2017-08-13  Uros Bizjak  <ubizjak@gmail.com>
11285         * config/i386/i386.md (*load_tp_<mode>): Redefine as
11286         define_insn_and_split.  Split to a memory load from 0 in
11287         DEFAULT_TLS_SEG_REG address space.  Merge with *load_tp_x32
11288         using PTR mode iterator.
11289         (*load_tp_x32_zext"): Redefine as define_insn_and_split.
11290         Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
11291         (*add_tp_<mode>): Redefine as define_insn_and_split.
11292         Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
11293         address space.  Merge with *add_tp_x32 using PTR mode iterator.
11294         (*add_tp_x32_zext"): Redefine as define_insn_and_split.
11295         Split to an add with a  memory load from 0 in
11296         DEFAULT_TLS_SEG_REG address space.
11298 2017-08-12  Andrew Pinski  <apinski@cavium.com>
11300         * config/aarch64/aarch64-option-extensions.def (rdma):
11301         Fix feature string to what Linux prints out in /proc/cpuinfo.
11303 2017-08-12  Pierre-Marie de Rodat  <derodat@adacore.com>
11305         PR ada/79542
11306         * dwarf2out.c (modified_type_die): For C typedef types that have
11307         an ultimate origin, process the ultimate origin instead of the
11308         input type.
11309         (gen_typedef_die): Assert that input DECLs have no ultimate
11310         origin.
11311         (gen_type_die_with_usage): For typedef variants that have an
11312         ultimate origin, just call gen_decl_die on the original DECL.
11313         (process_scope_var): Avoid creating DIEs for local typedefs and
11314         concrete static variables.
11316 2017-08-12  Alan Modra  <amodra@gmail.com>
11318         PR target/81170
11319         PR target/81295
11320         * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
11321         match gnu-user.h startfile.
11322         (ENDFILE_LINUX_SPEC): Similarly.
11324 2017-08-11  Thomas Schwinge  <thomas@codesourcery.com>
11326         PR lto/81430
11327         * config/nvptx/nvptx.c (nvptx_override_options_after_change):
11328         Remove function.
11329         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
11331 2017-08-11  Tamar Christina  <tamar.christina@arm.com>
11332         * config/aarch64/aarch64.md (mov<mode>): Change.
11333         (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
11334         aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
11335         * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
11337 2017-08-11  Eric Botcazou  <ebotcazou@adacore.com>
11339         * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
11340         for storage order barriers.
11342 2017-08-11  Martin Liska  <mliska@suse.cz>
11344         PR tree-opt/79987
11345         * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
11346         variables of void type.
11348 2017-08-11  Martin Liska  <mliska@suse.cz>
11350         * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
11351         TARGET_SUPPORTS_ALIASES.
11352         * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
11353         * ipa-visibility.c (can_replace_by_local_alias): Likewise.
11354         (optimize_weakref): Likewise.
11355         * symtab.c (symtab_node::noninterposable_alias): Likewise.
11356         * varpool.c (varpool_node::create_extra_name_alias): Likewise.
11357         * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
11359 2017-08-11  Martin Liska  <mliska@suse.cz>
11361         PR ipa/81213
11362         * config/i386/i386.c (make_resolver_func): Do complete
11363         refactoring of the function.
11365 2017-08-10  Uros Bizjak  <ubizjak@gmail.com>
11367         PR target/81708
11368         * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
11369         * config/i386/i386.c (ix86_stack_protect_guard): Use
11370         ix86_stack_protect_guard_symbol_str to generate varible declaration.
11371         * doc/invoke.texi (x86 Options): Document
11372         -mstack-protector-guard-symbol= option.
11374 2017-08-10  Uros Bizjak  <ubizjak@gmail.com>
11376         * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
11377         * config/i386/i386.c (ix86_split_stack_guard): New function.
11378         (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
11379         (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
11380         (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
11381         (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
11382         * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
11383         (split_stack_space_check): Call ix86_split_stack_guard.
11385 2017-08-10  Martin Sebor  <msebor@redhat.com>
11387         * print-tree.c (print_node): Print location using the established
11388         format %s:%i%i.
11389         Replace spaces with colons.
11390         (debug_raw, debug): Ditto.
11392 2017-08-10  Martin Sebor  <msebor@redhat.com>
11394         PR c++/81586
11395         * pretty-print.c (pp_format): Correct the handling of %s precision.
11397 2017-08-10  H.J. Lu  <hongjiu.lu@intel.com>
11399         PR target/81736
11400         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
11401         to ...
11402         (ix86_finalize_stack_frame_flags): This.  Also clear
11403         frame_pointer_needed if -fno-omit-frame-pointer is used without
11404         stack access.
11405         (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
11406         with ix86_finalize_stack_frame_flags.
11407         (ix86_expand_epilogue): Likewise.
11408         (ix86_expand_split_stack_prologue): Likewise.
11409         * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
11411 2017-08-10  Martin Liska  <mliska@suse.cz>
11413         PR c++/81355
11414         * c-attribs.c (handle_target_attribute):
11415         Report warning for an empty string argument of target attribute.
11417 2017-08-09  Jakub Jelinek  <jakub@redhat.com>
11419         PR c/81687
11420         * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
11421         LABEL_DECLs.
11422         * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
11423         or DECL_NONLOCAL labels.
11424         (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
11425         or DECL_NONLOCAL labels here.
11427 2017-08-09  Will Schmidt  <will_schmidt@vnet.ibm.com>
11429         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
11430         to indicate when early gimple folding has been disabled.
11431         (rs6000_gimple_fold_builtin): Add debug content.
11432         (rs6000_invalid_builtin): Fix whitespace.
11433         (rs6000_expand_builtin): Fix whitespace.
11434         * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
11436 2017-08-09  Segher Boessenkool  <segher@kernel.crashing.org>
11438         PR target/80938
11439         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
11440         SAVE_MULTIPLE if not all the registers that saves, should be saved.
11442 2017-08-09  Jim Wilson  <jim.wilson@linaro.org>
11444         * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
11445         (qdf24xx): Likewise.
11446         * config/aarch64/aarch64.md: Include falkor.md.
11447         * config/aarch64/falkor.md: New.
11449 2017-08-09  Marek Polacek  <polacek@redhat.com>
11451         PR c/81233
11452         * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
11453         * diagnostic.c (emit_diagnostic): Add a comment.
11454         (emit_diagnostic_valist): New function.
11456 2017-08-09  Marek Polacek  <polacek@redhat.com>
11458         PR c/81417
11459         * input.c (make_location): New overload.
11460         * input.h (make_location): Declare.
11462 2017-08-08  Alan Modra  <amodra@gmail.com>
11463             H.J. Lu  <hongjiu.lu@intel.com>
11465         PR driver/81523
11466         * gcc.c (NO_PIE_SPEC): Delete.
11467         (PIE_SPEC): Define as !no-pie/pie.  Move static|shared|r
11468         exclusion..
11469         (LINK_PIE_SPEC): ..to here.
11470         (LINK_COMMAND_SPEC): Support -no-pie.
11471         * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
11472         chain of crtbegin*.o selection, update for PIE_SPEC changes and
11473         format.
11474         (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
11475         * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
11476         (ENDFILE_CRTEND_SPEC): Similarly.
11478 2017-08-08  Uros Bizjak  <ubizjak@gmail.com>
11480         PR target/81708
11481         * config/i386/i386.opt (mstack-protector-guard-reg=): New option
11482         (mstack-protector-guard-offset=): Ditto.
11483         * config/i386/i386.c (ix86_option_override): Handle
11484         -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
11485         options.
11486         (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
11487         ix86_stack_protect_guard_offset variables.
11488         (TARGET_STACK_PROTECT_GUARD): Always define.
11489         * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
11490         and -mstack-protector-guard-offset= options.
11492 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
11494         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
11495         boundary case for the last candidate.
11497 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
11499         * doc/invoke.texi: Document -ftree-loop-distribution for O3.
11500         * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
11502 2017-08-08  Tamar Christina  <tamar.christina@arm.com>
11504         PR middle-end/19706
11505         * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
11506         * config/aarch64/aarch64-builtins.c
11507         (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
11508         * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
11509         * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
11511 2017-08-08  Tamar Christina  <tamar.christina@arm.com>
11512             Andrew Pinski <pinskia@gmail.com>
11514         PR middle-end/19706
11515         * internal-fn.def (XORSIGN): New.
11516         * optabs.def (xorsign_optab): New.
11517         * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
11518         (convert_expand_mult_copysign): New.
11519         (pass_optimize_widening_mul::execute): Call
11520         convert_expand_mult_copysign.
11522 2017-08-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11524         PR tree-optimization/81354
11525         * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
11526         Insert on edges rather than explicitly creating landing pads.
11527         (analyze_candidates_and_replace): Commit edge inserts.
11529 2017-08-08  Richard Biener  <rguenther@suse.de>
11531         PR middle-end/81719
11532         * tree-ssa-loop-niter.c: Include tree-dfa.h.
11533         (expand_simple_operations): Also look through ADDR_EXPRs with
11534         MEM_REF bases treating them as POINTER_PLUS_EXPR.
11536 2017-08-08  Richard Biener  <rguenther@suse.de>
11538         PR tree-optimization/81723
11539         * tree-vect-slp.c (struct bst_traits): New hash traits.
11540         (bst_fail): New global.
11541         (vect_build_slp_tree_2): New worker, split out from ...
11542         (vect_build_slp_tree): ... this now wrapping it with using
11543         bst_fail set to cache SLP tree build fails.  Properly handle
11544         max_tree_size.
11545         (vect_analyze_slp_instance): Allocate and free bst_fail.
11547 2017-08-08  Martin Liska  <mliska@suse.cz>
11549         PR tree-opt/81696
11550         * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
11551         LABEL_DECLs that can be from a different function.
11553 2017-08-08  Bin Cheng  <bin.cheng@arm.com>
11555         PR tree-optimization/81744
11556         * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
11557         loop's number of iterations.
11559 2017-08-08  Martin Liska  <mliska@suse.cz>
11561         * asan.c: Include header files.
11562         * attribs.c (build_decl_attribute_variant): New function moved
11563         from tree.[ch].
11564         (build_type_attribute_qual_variant): Likewise.
11565         (cmp_attrib_identifiers): Likewise.
11566         (simple_cst_list_equal): Likewise.
11567         (omp_declare_simd_clauses_equal): Likewise.
11568         (attribute_value_equal): Likewise.
11569         (comp_type_attributes): Likewise.
11570         (build_type_attribute_variant): Likewise.
11571         (lookup_ident_attribute): Likewise.
11572         (remove_attribute): Likewise.
11573         (merge_attributes): Likewise.
11574         (merge_type_attributes): Likewise.
11575         (merge_decl_attributes): Likewise.
11576         (merge_dllimport_decl_attributes): Likewise.
11577         (handle_dll_attribute): Likewise.
11578         (attribute_list_equal): Likewise.
11579         (attribute_list_contained): Likewise.
11580         * attribs.h (lookup_attribute): New function moved from tree.[ch].
11581         (lookup_attribute_by_prefix): Likewise.
11582         * bb-reorder.c: Include header files.
11583         * builtins.c: Likewise.
11584         * calls.c: Likewise.
11585         * cfgexpand.c: Likewise.
11586         * cgraph.c: Likewise.
11587         * cgraphunit.c: Likewise.
11588         * convert.c: Likewise.
11589         * dwarf2out.c: Likewise.
11590         * final.c: Likewise.
11591         * fold-const.c: Likewise.
11592         * function.c: Likewise.
11593         * gimple-expr.c: Likewise.
11594         * gimple-fold.c: Likewise.
11595         * gimple-pretty-print.c: Likewise.
11596         * gimple.c: Likewise.
11597         * gimplify.c: Likewise.
11598         * hsa-common.c: Likewise.
11599         * hsa-gen.c: Likewise.
11600         * internal-fn.c: Likewise.
11601         * ipa-chkp.c: Likewise.
11602         * ipa-cp.c: Likewise.
11603         * ipa-devirt.c: Likewise.
11604         * ipa-fnsummary.c: Likewise.
11605         * ipa-inline.c: Likewise.
11606         * ipa-visibility.c: Likewise.
11607         * ipa.c: Likewise.
11608         * lto-cgraph.c: Likewise.
11609         * omp-expand.c: Likewise.
11610         * omp-general.c: Likewise.
11611         * omp-low.c: Likewise.
11612         * omp-offload.c: Likewise.
11613         * omp-simd-clone.c: Likewise.
11614         * opts-global.c: Likewise.
11615         * passes.c: Likewise.
11616         * predict.c: Likewise.
11617         * sancov.c: Likewise.
11618         * sanopt.c: Likewise.
11619         * symtab.c: Likewise.
11620         * toplev.c: Likewise.
11621         * trans-mem.c: Likewise.
11622         * tree-chkp.c: Likewise.
11623         * tree-eh.c: Likewise.
11624         * tree-into-ssa.c: Likewise.
11625         * tree-object-size.c: Likewise.
11626         * tree-parloops.c: Likewise.
11627         * tree-profile.c: Likewise.
11628         * tree-ssa-ccp.c: Likewise.
11629         * tree-ssa-live.c: Likewise.
11630         * tree-ssa-loop.c: Likewise.
11631         * tree-ssa-sccvn.c: Likewise.
11632         * tree-ssa-structalias.c: Likewise.
11633         * tree-ssa.c: Likewise.
11634         * tree-streamer-in.c: Likewise.
11635         * tree-vectorizer.c: Likewise.
11636         * tree-vrp.c: Likewise.
11637         * tsan.c: Likewise.
11638         * ubsan.c: Likewise.
11639         * varasm.c: Likewise.
11640         * varpool.c: Likewise.
11641         * tree.c: Remove functions moved to attribs.[ch].
11642         * tree.h: Likewise.
11643         * config/aarch64/aarch64.c: Add attrs.h header file.
11644         * config/alpha/alpha.c: Likewise.
11645         * config/arc/arc.c: Likewise.
11646         * config/arm/arm.c: Likewise.
11647         * config/avr/avr.c: Likewise.
11648         * config/bfin/bfin.c: Likewise.
11649         * config/c6x/c6x.c: Likewise.
11650         * config/cr16/cr16.c: Likewise.
11651         * config/cris/cris.c: Likewise.
11652         * config/darwin.c: Likewise.
11653         * config/epiphany/epiphany.c: Likewise.
11654         * config/fr30/fr30.c: Likewise.
11655         * config/frv/frv.c: Likewise.
11656         * config/ft32/ft32.c: Likewise.
11657         * config/h8300/h8300.c: Likewise.
11658         * config/i386/winnt.c: Likewise.
11659         * config/ia64/ia64.c: Likewise.
11660         * config/iq2000/iq2000.c: Likewise.
11661         * config/lm32/lm32.c: Likewise.
11662         * config/m32c/m32c.c: Likewise.
11663         * config/m32r/m32r.c: Likewise.
11664         * config/m68k/m68k.c: Likewise.
11665         * config/mcore/mcore.c: Likewise.
11666         * config/microblaze/microblaze.c: Likewise.
11667         * config/mips/mips.c: Likewise.
11668         * config/mmix/mmix.c: Likewise.
11669         * config/mn10300/mn10300.c: Likewise.
11670         * config/moxie/moxie.c: Likewise.
11671         * config/msp430/msp430.c: Likewise.
11672         * config/nds32/nds32-isr.c: Likewise.
11673         * config/nds32/nds32.c: Likewise.
11674         * config/nios2/nios2.c: Likewise.
11675         * config/nvptx/nvptx.c: Likewise.
11676         * config/pa/pa.c: Likewise.
11677         * config/pdp11/pdp11.c: Likewise.
11678         * config/powerpcspe/powerpcspe.c: Likewise.
11679         * config/riscv/riscv.c: Likewise.
11680         * config/rl78/rl78.c: Likewise.
11681         * config/rx/rx.c: Likewise.
11682         * config/s390/s390.c: Likewise.
11683         * config/sh/sh.c: Likewise.
11684         * config/sol2.c: Likewise.
11685         * config/sparc/sparc.c: Likewise.
11686         * config/spu/spu.c: Likewise.
11687         * config/stormy16/stormy16.c: Likewise.
11688         * config/tilegx/tilegx.c: Likewise.
11689         * config/tilepro/tilepro.c: Likewise.
11690         * config/v850/v850.c: Likewise.
11691         * config/vax/vax.c: Likewise.
11692         * config/visium/visium.c: Likewise.
11693         * config/xtensa/xtensa.c: Likewise.
11695 2017-08-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
11697         PR target/81593
11698         * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
11699         constraints since the -mupper-regs-* switches have been
11700         eliminated.
11701         (vsx_concat_<mode>_1): New combiner insns to recognize inserting
11702         into a vector from a double word element that was extracted from
11703         another vector, and eliminate extra XXPERMDI instructions.
11704         (vsx_concat_<mode>_2): Likewise.
11705         (vsx_concat_<mode>_3): Likewise.
11706         (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
11707         concat to allow optimizing inserts from previous extracts.
11709 2017-08-07  Uros Bizjak  <ubizjak@gmail.com>
11711         * config/i386/i386.c (ix86_stack_protect_guard): Generate
11712         memory reference to a SSP offset in TLS address space.
11713         (ix86_print_operand) <case '@'>: Remove.
11714         (ix86_print_operand_punct_valid_p): Remove '@' code.
11715         * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
11716         UNSPEC_SP_TLS_TEST.
11717         (stack_tls_protect_set_<mode>): Remove.
11718         (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
11719         (stack_tls_protect_test_<mode>): Remove.
11720         (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
11722 2017-08-07  Olivier Hainque  <hainque@adacore.com>
11724         PR target/81755
11725         * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
11727 2017-08-07  Douglas Rupp  <rupp@adacore.com>
11729         * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
11730         variable was referenced as multidir in command.
11732 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11734         PR c/69389
11735         * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
11736         BIT_FIELD_REF.
11738 2017-08-07  Martin Liska  <mliska@suse.cz>
11740         * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
11741         * config/rl78/rl78.c: Add include of attribs.h.
11742         * config/sh/sh.c: Likewise.
11743         * config/v850/v850.c: Likewise.
11745 2017-08-07  Tom de Vries  <tom@codesourcery.com>
11747         PR middle-end/78266
11748         * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
11750 2017-08-07  Martin Liska  <mliska@suse.cz>
11752         * config/mips/mips.c: Include attribs.h.
11754 2017-08-07  Thomas Koenig  <tkoenig@gcc.gnu.org>
11756         PR fortran/68829
11757         * doc/invoke.texi: Document change in behvaior for -Ofast for
11758         Fortran.
11760 2017-08-07  Wilco Dijkstra  <wdijkstr@arm.com>
11762         * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
11763         Use gen_frame_mem.
11764         (aarch64_pop_regs): Likewise.
11765         (aarch64_gen_load_pair): Likewise.
11766         (aarch64_save_callee_saves): Likewise.
11767         (aarch64_restore_callee_saves): Likewise.
11769 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11771         * config/i386/i386.c: Revert the last change.
11773 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11775         PR target/81736
11776         * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
11777         to ...
11778         (ix86_finalize_stack_frame_flags): This.  Also clear
11779         frame_pointer_needed if -fno-omit-frame-pointer is used without
11780         stack access.
11781         (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
11782         with ix86_finalize_stack_frame_flags.
11783         (ix86_expand_epilogue): Likewise.
11784         (ix86_expand_split_stack_prologue): Likewise.
11786 2017-08-07  H.J. Lu  <hongjiu.lu@intel.com>
11788         PR target/81743
11789         * config/i386/i386.c (get_builtin_code_for_version): Set priority
11790         to P_AES for Westmere.
11792 2017-08-07  Jonathan Yong  <10walls@gmail.com>
11794         * config/i386/mingw.opt (fset-stack-executable): Removed.
11795         * config/i386/cygming.opt (fset-stack-executable): Moved
11796         from mingw.opt.
11797         * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
11799 2017-08-07  Segher Boessenkool  <segher@kernel.crashing.org>
11801         * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
11803 2017-08-07  Marek Polacek  <polacek@redhat.com>
11805         PR middle-end/81737
11806         * fold-const.c (fold_indirect_ref_1): Check type_domain.
11808 2017-08-07  Martin Liska  <mliska@suse.cz>
11810         * attribs.h (canonicalize_attr_name): New function.
11811         (cmp_attribs): Move from c-format.c and adjusted.
11812         (is_attribute_p): Moved from tree.h.
11813         * tree-inline.c: Add new includes.
11814         * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
11815         (private_is_attribute_p): Remove.
11816         (private_lookup_attribute): Likewise.
11817         (private_lookup_attribute_by_prefix): Simplify.
11818         (remove_attribute): Use is_attribute_p.
11819         * tree.h: Remove removed declarations.
11821 2017-08-07  Jakub Jelinek  <jakub@redhat.com>
11823         PR middle-end/81698
11824         * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
11825         instead of computing it in the function.  Formatting fix.
11826         (expand_case): Don't rely on default_edge being the first edge,
11827         clear it if removing it, pass default_edge to
11828         emit_case_dispatch_table.
11829         (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
11830         fix.
11832 2017-08-06  Uros Bizjak  <ubizjak@gmail.com>
11834         * config/alpha/alpha.c (alpha_reorg): If trap is the last active
11835         insn in the function, emit NOP after the insn.
11837 2017-08-06  Tom de Vries  <tom@codesourcery.com>
11839         * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
11840         and element loops.
11842 2017-08-06  Tom de Vries  <tom@codesourcery.com>
11844         * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
11845         loop.
11847 2017-08-04  Yury Gribov  <tetra2005@gmail.com>
11849         PR tree-optimization/57371
11850         * match.pd: New pattern.
11852 2017-08-04  Marek Polacek  <polacek@redhat.com>
11854         PR middle-end/81695
11855         * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
11856         perform the computation in offset_int.
11858 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
11860         PR tree-optimization/81136
11861         * tree-vectorizer.h: Include tree-hash-traits.h.
11862         (vec_base_alignments): New typedef.
11863         (vec_info): Add a base_alignments field.
11864         (vect_record_base_alignments): Declare.
11865         * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
11866         field.
11867         (DR_IS_CONDITIONAL_IN_STMT): New macro.
11868         (create_data_ref): Add an is_conditional_in_stmt argument.
11869         * tree-data-ref.c (create_data_ref): Likewise.  Use it to initialize
11870         the is_conditional_in_stmt field.
11871         (data_ref_loc): Add an is_conditional_in_stmt field.
11872         (get_references_in_stmt): Set the is_conditional_in_stmt field.
11873         (find_data_references_in_stmt): Update call to create_data_ref.
11874         (graphite_find_data_references_in_stmt): Likewise.
11875         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
11876         * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
11877         (vect_record_base_alignment): New function.
11878         (vect_record_base_alignments): Likewise.
11879         (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
11880         for nested statements even if we fail to compute a misalignment.
11881         Use pooled base alignments for unconditional references.
11882         (vect_find_same_alignment_drs): Compare base addresses instead
11883         of base objects.
11884         (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
11885         * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
11887 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
11889         * tree-vectorizer.h (vec_info): Add a constructor and destructor.
11890         Add an explicit name for the enum.  Use auto_vec for slp_instances
11891         and grouped_stores.
11892         (_loop_vec_info): Add a constructor and destructor.  Use auto_vec
11893         for all vectors.
11894         (_bb_vec_info): Add a constructor and destructor.
11895         (vinfo_for_stmt): Return NULL for uids of -1 as well.
11896         (destroy_loop_vec_info): Delete.
11897         (vect_destroy_datarefs): Likewise.
11898         * tree-vectorizer.c (vect_destroy_datarefs): Delete.
11899         (vec_info::vec_info): New function.
11900         (vec_info::~vec_info): Likewise.
11901         (vectorize_loops): Use delete instead of destroy_loop_vec_info.
11902         * tree-parloops.c (gather_scalar_reductions): Use delete instead of
11903         destroy_loop_vec_info.
11904         * tree-vect-loop.c (new_loop_vec_info): Replace with...
11905         (_loop_vec_info::_loop_vec_info): ...this.
11906         (destroy_loop_vec_info): Replace with...
11907         (_loop_vec_info::~_loop_vec_info): ...this.  Unconditionally delete
11908         the stmt_vec_infos.  Leave handling of vec_info information to its
11909         destructor.  Remove explicit vector releases.
11910         (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
11911         (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
11912         * tree-vect-slp.c (new_bb_vec_info): Replace with...
11913         (_bb_vec_info::_bb_vec_info): ...this.  Don't reserve space in
11914         BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
11915         (destroy_bb_vec_info): Replace with...
11916         (_bb_vec_info::~_bb_vec_info): ...this.  Leave handling of vec_info
11917         information to its destructor.
11918         (vect_slp_analyze_bb_1): Use new and delete instead of
11919         new_bb_vec_info and destroy_bb_vec_info.
11920         (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
11921         single delete.
11923 2017-08-04  Richard Sandiford  <richard.sandiford@linaro.org>
11925         * tree-data-ref.h (subscript): Add access_fn field.
11926         (data_dependence_relation): Add could_be_independent_p.
11927         (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
11928         (same_access_functions): Move to tree-data-ref.c.
11929         * tree-data-ref.c (ref_contains_union_access_p): New function.
11930         (access_fn_component_p): Likewise.
11931         (access_fn_components_comparable_p): Likewise.
11932         (dr_analyze_indices): Add a reference to access_fn_component_p.
11933         (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
11934         DR_ACCESS_FN.
11935         (constant_access_functions): Likewise.
11936         (add_other_self_distances): Likewise.
11937         (same_access_functions): Likewise.  (Moved from tree-data-ref.h.)
11938         (initialize_data_dependence_relation): Use XCNEW and remove
11939         explicit zeroing of DDR_REVERSED_P.  Look for a subsequence
11940         of access functions that have the same type.  Allow the
11941         subsequence to end with different bases in some circumstances.
11942         Record the chosen access functions in SUB_ACCESS_FN.
11943         (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
11944         a_index and b_index.  Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
11945         (subscript_dependence_tester_1): Likewise dra and drb.
11946         (build_classic_dist_vector): Update calls accordingly.
11947         (subscript_dependence_tester): Likewise.
11948         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
11949         DDR_COULD_BE_INDEPENDENT_P.
11950         * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
11951         comp_alias_ddrs instead of may_alias_ddrs.
11952         * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
11953         New function.
11954         (vect_analyze_data_ref_dependence): Use it if
11955         DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
11956         distance vectors if that fails.
11957         (dependence_distance_ge_vf): New function.
11958         (vect_prune_runtime_alias_test_list): Use it.  Don't clear
11959         LOOP_VINFO_MAY_ALIAS_DDRS.
11961 2017-08-04  Richard Biener  <rguenther@suse.de>
11963         PR middle-end/81705
11964         * fold-const.c (fold_binary_loc): Properly restrict
11965         minus_var0 && minus_var1 case when associating undefined overflow
11966         entities.
11968 2017-08-04  Tom de Vries  <tom@codesourcery.com>
11970         * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
11972 2017-08-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11974         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11975         Don't start diagnostic messages with a capital letter.
11976         * config/rs6000/rs6000.c (rs6000_option_override_internal):
11977         Likewise.
11978         (rs6000_invalid_builtin): Likewise.
11979         (rs6000_trampoline_init): Likewise.
11981 2017-08-03  Jakub Jelinek  <jakub@redhat.com>
11983         PR target/81621
11984         * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
11985         after setting changeable df flags.
11987 2017-08-03  Richard Biener  <rguenther@suse.de>
11989         * tree-ssa-reassoc.c (should_break_up_subtract): Also break
11990         up if the use is in USE - X.
11992 2017-08-03  Alexander Monakov  <amonakov@ispras.ru>
11994         * toplev.c (dumpfile.h): New include.
11995         (internal_error_reentered): New static function.  Use it...
11996         (internal_error_function): ...here to handle reentered internal_error.
11998 2017-08-03  Richard Biener  <rguenther@suse.de>
12000         PR middle-end/81148
12001         * fold-const.c (split_tree): Add minus_var and minus_con
12002         arguments, remove unused loc arg.  Never generate NEGATE_EXPRs
12003         here but always use minus_*.
12004         (associate_trees): Assert we never associate with MINUS_EXPR
12005         and NULL first operand.  Do not recurse for PLUS_EXPR operands
12006         when associating as MINUS_EXPR either.
12007         (fold_binary_loc): Track minus_var and minus_con.
12009 2017-08-03  Tom de Vries  <tom@codesourcery.com>
12011         PR lto/81430
12012         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
12013         ACCEL_COMPILER, apply finish_options on
12014         DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
12016 2017-08-03  Tom de Vries  <tom@codesourcery.com>
12018         PR target/81662
12019         * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
12020         function_entry_patch_area_size > 0.
12022 2017-08-03  Jakub Jelinek  <jakub@redhat.com>
12024         PR driver/81650
12025         * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
12026         instead of 10??LU, perform unit multiplication in wide_int,
12027         don't change alloc_object_size_limit if the limit is larger
12028         than SSIZE_MAX.
12030         PR tree-optimization/81655
12031         PR tree-optimization/81588
12032         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
12033         the case when ranges[i].low and high are 1 for unsigned type with
12034         precision 1.
12036         PR middle-end/81052
12037         * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
12038         (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
12040 2017-08-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
12042         * tree-vrp.h: Add include guard.
12044 2017-08-02  Uros Bizjak  <ubizjak@gmail.com>
12046         PR target/81644
12047         * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
12048         (ud2): New insn pattern.
12049         * config/i386/i386.c (ix86_expand_epilogue):
12050         For naked functions, generate ud2 instead of trap insn.
12052 2017-08-02  Marek Polacek  <polacek@redhat.com>
12054         PR other/81667
12055         * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
12057 2017-08-02  Tom de Vries  <tom@codesourcery.com>
12058             Cesar Philippidis  <cesar@codesourcery.com>
12060         * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
12061         Add missing edge probabilities.
12063 2017-08-02  Tamar Christina  <tamar.christina@arm.com>
12065         * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
12066         Correct endianness.
12068 2017-08-02  Jakub Jelinek  <jakub@redhat.com>
12070         PR middle-end/79499
12071         * function.c (thread_prologue_and_epilogue_insns): Determine blocks
12072         for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
12073         of first NONDEBUG_INSN_P in each of the split_prologue_seq and
12074         prologue_seq sequences - if any.
12076 2017-08-02  Richard Biener  <rguenther@suse.de>
12078         * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
12079         via vectors if supported, integer extracts via punning if supported
12080         or otherwise vector extracts.
12082 2017-08-02  Richard Biener  <rguenther@suse.de>
12084         * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
12085         into ...
12086         (bitmap_insert_into_set): ... this.
12088 2017-08-02  Richard Biener  <rguenther@suse.de>
12090         PR tree-optimization/81633
12091         Revert
12092         2015-08-17  Alan Hayward  <alan.hayward@arm.com>
12094         PR tree-optimization/71752
12095         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
12097 2017-08-01  Daniel Santos  <daniel.santos@pobox.com>
12099         * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
12100         (machine_function::call_ms2sysv_pad_out): Remove field.
12101         * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
12102         (ix86_compute_frame_layout): Likewise.
12104 2017-08-01  H.J. Lu  <hongjiu.lu@intel.com>
12106         PR target/81654
12107         * config/i386/i386.c (ix86_set_func_type): Disallow naked
12108         attribute with interrupt attribute.
12110 2017-08-01  Andrew Pinski  <apinski@cavium.com>
12112         * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
12113         BIT_INSERT_EXPR's operand 1
12114         to see if the types precision matches.
12116 2017-08-01  Martin Liska  <mliska@suse.cz>
12118         PR middle-end/70140
12119         * builtins.c (expand_builtin_memcpy_args): Remove.
12120         (expand_builtin_memcpy): Call newly added function
12121         expand_builtin_memory_copy_args.
12122         (expand_builtin_memcpy_with_bounds): Likewise.
12123         (expand_builtin_mempcpy): Remove last argument.
12124         (expand_builtin_mempcpy_with_bounds): Likewise.
12125         (expand_builtin_memory_copy_args): New function created from
12126         expand_builtin_mempcpy_args with small modifications.
12127         (expand_builtin_mempcpy_args): Remove.
12128         (expand_builtin_stpcpy): Remove unused argument.
12129         (expand_builtin): Likewise.
12130         (expand_builtin_with_bounds): Likewise.
12132 2017-08-01  Martin Liska  <mliska@suse.cz>
12134         Revert r250771
12135         Make mempcpy more optimal (PR middle-end/70140).
12137 2017-08-01  Jakub Jelinek  <jakub@redhat.com>
12139         PR target/81622
12140         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
12141         __builtin_vec_cmpne verify both arguments are compatible vectors
12142         before looking at TYPE_MODE on the element type.  For __builtin_vec_ld
12143         verify arg1_type is a pointer or array type.  For __builtin_vec_st,
12144         move computation of aligned to after checking the argument types.
12145         Formatting fixes.
12147         PR target/80846
12148         * config/rs6000/vsx.md (vextract_fp_from_shorth,
12149         vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
12150         calls.
12152 2017-08-01  Jerome Lambourg  <lambourg@adacore.com>
12153             Doug Rupp  <rupp@adacore.com>
12154             Olivier Hainque  <hainque@adacore.com>
12156         * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
12157         well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
12158         arm8 (arch v4).
12159         * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
12160         for TARGET_OS_CPP_BUILTIN.
12161         (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
12162         refine CPU definitions for arm_arch5 and add those for arm_arch6 and
12163         arm_arch7.
12164         (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
12165         passing required abi options to the assembler for EABI configurations.
12166         (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
12167         of .text.hot and .text.unlikely sections for kernel modules when
12168         using ARM style exceptions.
12169         (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
12170         options. Add EXTRA_CC1_SPEC.
12171         (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
12172         toolchain options.
12173         (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
12174         transition.
12175         (ARM_TARGET2_DWARF_FORMAT): Define.
12176         * config/arm/t-vxworks: Adjust multilib control to removal of the
12177         Diab command line options.
12179 2017-08-01  Martin Liska  <mliska@suse.cz>
12181         PR gcov-profile/81561
12182         * gcov.c (unblock): Make unblocking safe as we need to preserve
12183         index correspondence of blocks and block_lists.
12185 2017-08-01  Richard Biener  <rguenther@suse.de>
12187         PR tree-optimization/81181
12188         * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
12189         (compute_antic): ... end of iteration here.
12191 2017-08-01  James Greenhalgh  <james.greenhalgh@arm.com>
12193         * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
12194         (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
12195         (ftree-slp-vectorize): Likewise.
12196         * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
12197         can no longer be set independent of flag_tree_loop_vectorize.
12198         * omp-general.c (emp_max_vf): Likewise.
12199         * opts.c (enable_fdo_optimizations): Remove references to
12200         flag_tree_vectorize, these are now implicit.
12201         (common_handle_option): Remove handling for OPT_ftree_vectorize,
12202         and leave it for the options machinery.
12204 2017-08-01  Martin Liska  <mliska@suse.cz>
12206         PR middle-end/70140
12207         * builtins.c (expand_builtin_memcpy_args): Remove.
12208         (expand_builtin_memcpy): Call newly added function
12209         expand_builtin_memory_copy_args.
12210         (expand_builtin_memcpy_with_bounds): Likewise.
12211         (expand_builtin_mempcpy): Remove last argument.
12212         (expand_builtin_mempcpy_with_bounds): Likewise.
12213         (expand_builtin_memory_copy_args): New function created from
12214         expand_builtin_mempcpy_args with small modifications.
12215         (expand_builtin_mempcpy_args): Remove.
12216         (expand_builtin_stpcpy): Remove unused argument.
12217         (expand_builtin): Likewise.
12218         (expand_builtin_with_bounds): Likewise.
12220 2017-08-01  Uros Bizjak  <ubizjak@gmail.com>
12222         PR target/81641
12223         * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
12224         print "ds:" only for immediates in generic address space.
12226 2017-08-01  Uros Bizjak  <ubizjak@gmail.com>
12228         PR target/81639
12229         * config/i386/i386.c (ix86_funciton_naked): New prototype.
12230         (ix86_function_ok_for_sibcall): Return false for naked functions.
12232 2017-08-01  Richard Biener  <rguenther@suse.de>
12234         * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
12235         (compute_antic): Seed worklist with exit block predecessors.
12236         * cfganal.c (dfs_find_deadend): For a cycle return the source
12237         of the edge closing it.
12239 2017-08-01  Tamar Christina  <tamar.christina@arm.com>
12241         * config/aarch64/aarch64.c
12242         (aarch64_can_const_movi_rtx_p): Move 0 check.
12244 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
12246         * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
12247         * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
12248         above macro.
12249         * match.pd: Ditto in address comparison pattern.
12251 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
12253         PR tree-optimization/81627
12254         * tree-predcom.c (prepare_finalizers): Always rewrite into loop
12255         closed ssa form for store-store chain.
12257 2017-08-01  Bin Cheng  <bin.cheng@arm.com>
12259         PR tree-optimization/81620
12260         * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
12261         for store-store chain.
12263 2017-08-01  Jakub Jelinek  <jakub@redhat.com>
12265         PR tree-optimization/81588
12266         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
12267         ranges[i].in_p, invert comparison code ccode.  For >/>=,
12268         swap rhs1 and rhs2 and comparison code unconditionally,
12269         for </<= don't do that.  Don't swap rhs1/rhs2 again if
12270         ranges[i].in_p, instead invert comparison code ccode if
12271         opcode or oe->rank is BIT_IOR_EXPR.
12273         PR target/80846
12274         * optabs.def (vec_extract_optab, vec_init_optab): Change from
12275         a direct optab to conversion optab.
12276         * optabs.c (expand_vector_broadcast): Use convert_optab_handler
12277         with GET_MODE_INNER as last argument instead of optab_handler.
12278         * expmed.c (extract_bit_field_1): Likewise.  Use vector from
12279         vector extraction if possible and optab is available.
12280         * expr.c (store_constructor): Use convert_optab_handler instead
12281         of optab_handler.  Use vector initialization from smaller
12282         vectors if possible and optab is available.
12283         * tree-vect-stmts.c (vectorizable_load): Likewise.
12284         * doc/md.texi (vec_extract, vec_init): Document that the optabs
12285         now have two modes.
12286         * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
12287         of vec_init from half-sized vectors with the same element mode.
12288         * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
12289         (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
12290         (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
12291         reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
12292         reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
12293         after mode in gen_vec_extract* calls.
12294         (vec_extract<mode>): Renamed to ...
12295         (vec_extract<mode><ssescalarmodelower>): ... this.
12296         (vec_extract<mode><ssehalfvecmodelower>): New expander.
12297         (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
12298         element mode after mode in gen_vec_init* calls.
12299         (VEC_INIT_HALF_MODE): New mode iterator.
12300         (vec_init<mode>): Renamed to ...
12301         (vec_init<mode><ssescalarmodelower>): ... this.
12302         (vec_init<mode><ssehalfvecmodelower>): New expander.
12303         * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
12304         (vec_extractv2sfsf): ... this.
12305         (vec_initv2sf): Renamed to ...
12306         (vec_initv2sfsf): ... this.
12307         (vec_extractv2si): Renamed to ...
12308         (vec_extractv2sisi): ... this.
12309         (vec_initv2si): Renamed to ...
12310         (vec_initv2sisi): ... this.
12311         (vec_extractv4hi): Renamed to ...
12312         (vec_extractv4hihi): ... this.
12313         (vec_initv4hi): Renamed to ...
12314         (vec_initv4hihi): ... this.
12315         (vec_extractv8qi): Renamed to ...
12316         (vec_extractv8qiqi): ... this.
12317         (vec_initv8qi): Renamed to ...
12318         (vec_initv8qiqi): ... this.
12319         * config/rs6000/vector.md (VEC_base_l): New mode attribute.
12320         (vec_init<mode>): Renamed to ...
12321         (vec_init<mode><VEC_base_l>): ... this.
12322         (vec_extract<mode>): Renamed to ...
12323         (vec_extract<mode><VEC_base_l>): ... this.
12324         * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
12325         (vec_initv2sfsf): ... this.
12326         * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
12327         vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
12328         vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
12329         element mode after mode in gen_vec_init* calls.
12330         * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
12331         (vec_init<mode><Vel>): ... this.
12332         (vec_extract<mode>): Renamed to ...
12333         (vec_extract<mode><Vel>): ... this.
12334         * config/aarch64/iterators.md (Vel): New mode attribute.
12335         * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
12336         Add element mode after mode in gen_vec_extract* calls.
12337         * config/s390/vector.md (non_vec_l): New mode attribute.
12338         (vec_extract<mode>): Renamed to ...
12339         (vec_extract<mode><non_vec_l>): ... this.
12340         (vec_init<mode>): Renamed to ...
12341         (vec_init<mode><non_vec_l>): ... this.
12342         * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
12343         s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
12344         vec_extract mode.
12345         * config/arm/iterators.md (V_elem_l): New mode attribute.
12346         * config/arm/neon.md (vec_extract<mode>): Renamed to ...
12347         (vec_extract<mode><V_elem_l>): ... this.
12348         (vec_extractv2di): Renamed to ...
12349         (vec_extractv2didi): ... this.
12350         (vec_init<mode>): Renamed to ...
12351         (vec_init<mode><V_elem_l>): ... this.
12352         (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
12353         reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
12354         reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
12355         Add element mode after gen_vec_extract* calls.
12356         * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
12357         (vec_init<mode><unitmode>): ... this.
12358         (vec_extract<mode>): Renamed to ...
12359         (vec_extract<mode><unitmode>): ... this.
12360         * config/mips/loongson.md (vec_init<mode>): Renamed to ...
12361         (vec_init<mode><unitmode>): ... this.
12362         * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
12363         (vec_initv2sfsf): ... this.
12364         (vec_extractv2sf): Renamed to ...
12365         (vec_extractv2sfsf): ... this.
12366         (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
12367         Add element mode after gen_vec_extract* calls.
12368         * config/mips/mips.md (unitmode): New mode iterator.
12369         * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
12370         spu_builtin_extract): Add element mode after gen_vec_extract* calls.
12371         * config/spu/spu.md (inner_l): New mode attribute.
12372         (vec_init<mode>): Renamed to ...
12373         (vec_init<mode><inner_l>): ... this.
12374         (vec_extract<mode>): Renamed to ...
12375         (vec_extract<mode><inner_l>): ... this.
12376         * config/sparc/sparc.md (veltmode): New mode iterator.
12377         (vec_init<VMALL:mode>): Renamed to ...
12378         (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
12379         * config/ia64/vect.md (vec_initv2si): Renamed to ...
12380         (vec_initv2sisi): ... this.
12381         (vec_initv2sf): Renamed to ...
12382         (vec_initv2sfsf): ... this.
12383         (vec_extractv2sf): Renamed to ...
12384         (vec_extractv2sfsf): ... this.
12385         * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
12386         (vec_init<mode>): Renamed to ...
12387         (vec_init<mode><VEC_base_l>): ... this.
12388         (vec_extract<mode>): Renamed to ...
12389         (vec_extract<mode><VEC_base_l>): ... this.
12390         * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
12391         (vec_initv2sfsf): ... this.
12392         * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
12393         vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
12394         vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
12395         gen_vec_init* calls.
12397 2017-08-01  Richard Biener  <rguenther@suse.de>
12399         PR tree-optimization/81297
12400         * tree-vrp.c (get_single_symbol): Remove assert, instead drop
12401         TREE_OVERFLOW from INTEGER_CSTs.
12403 2017-07-31  Segher Boessenkool  <segher@kernel.crashing.org>
12405         * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
12407 2017-07-31  Carl Love  <cel@us.ibm.com>
12409         * config/rs6000/rs6000-c: Add support for built-in functions
12410         vector signed char vec_xl_be (signed long long, signed char *);
12411         vector unsigned char vec_xl_be (signed long long, unsigned char *);
12412         vector signed int vec_xl_be (signed long long, signed int *);
12413         vector unsigned int vec_xl_be (signed long long, unsigned int *);
12414         vector signed long long vec_xl_be (signed long long, signed long long *);
12415         vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
12416         vector signed short vec_xl_be (signed long long, signed short *);
12417         vector unsigned short vec_xl_be (signed long long, unsigned short *);
12418         vector double vec_xl_be (signed long long, double *);
12419         vector float vec_xl_be (signed long long, float *);
12420         * config/rs6000/altivec.h (vec_xl_be): Add #define.
12421         * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
12422         XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
12423         for the builtins.
12424         * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
12425         (altivec_expand_builtin): Add switch statement to call
12426         altivec_expand_xl_be for each builtin.
12427         (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
12428         __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
12429         __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
12430         __builtin_vsx_le_be_v16qi.
12431         * doc/extend.texi: Update the built-in documentation file for the
12432         new built-in functions.
12434 2017-07-31  Uros Bizjak  <ubizjak@gmail.com>
12436         PR target/25967
12437         * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
12438         New function.
12439         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12441 2017-07-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12443         * config.gcc: Add z14.
12444         * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
12445         CPU model numbers for z13s and z14.
12446         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
12447         arch12 with z14.
12448         * config/s390/s390-opts.h (enum processor_type): Rename
12449         PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
12450         * config/s390/s390.c (processor_table): Add field for CPU name to
12451         be passed to Binutils.
12452         (s390_asm_output_machine_for_arch): Use the new field in
12453         processor_table for Binutils.
12454         (s390_expand_builtin): Replace arch12 with z14.
12455         (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
12456         (s390_get_sched_attrmask): Likewise.
12457         (s390_get_unit_mask): Likewise.
12458         * config/s390/s390.opt: Add z14 to processor_type enum.
12460 2017-07-31  Martin Jambor  <mjambor@suse.cz>
12462         PR hsa/81477
12463         * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
12464         regardless of optimization level.
12466 2017-07-31  Jan Hubicka <hubicka@ucw.cz>
12467             Martin Liska  <mliska@suse.cz>
12469         * predict.def: Remove old comment and adjust probability.
12470         * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
12471         PREDICT statements.
12473 2017-07-31  Uros Bizjak  <ubizjak@gmail.com>
12475         PR target/25967
12476         * config/i386/i386.c (ix86_function_naked): New function.
12477         (ix86_can_use_return_insn_p): Return false for naked functions.
12478         (ix86_expand_prologue): Skip prologue for naked functions.
12479         (ix86_expand_epilogue): Skip epilogue for naked functions
12480         and emit trap instruction.
12481         (ix86_warn_func_return): New function.
12482         (ix86_attribute_table): Add "naked" attribute specification.
12483         (TARGET_WARN_FUNC_RETURN): Define.
12484         * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
12486 2017-07-31  Martin Liska  <mliska@suse.cz>
12488         * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
12489         (dump_gimple_bb_header): Always dump BB info.
12490         (pp_cfg_jump): Do not append info about BB when dumping a jump.
12492 2017-07-31  Martin Liska  <mliska@suse.cz>
12494         PR sanitize/81530
12495         * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
12496         also with current_function_decl non-null equality.
12498 2017-07-31  Jakub Jelinek  <jakub@redhat.com>
12500         PR sanitizer/81604
12501         * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
12502         change type to the element type, instead add eltype variable and
12503         use it where we are interested in the element type.
12505         PR tree-optimization/81603
12506         * ipa-polymorphic-call.c
12507         (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
12508         offset arithmetic in offset_int, bail out if the resulting bit offset
12509         doesn't fit into shwi.
12511 2017-07-31  Martin Liska  <mliska@suse.cz>
12513         * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
12514         (gimplify_save_expr): Fix comment.
12516 2017-07-30  H.J. Lu  <hongjiu.lu@intel.com>
12518         PR target/79793
12519         * config/i386/i386.c (ix86_function_arg): Update arguments for
12520         exception handler.
12521         (ix86_compute_frame_layout): Set the initial stack offset to
12522         INCOMING_FRAME_SP_OFFSET.  Update red-zone offset with
12523         INCOMING_FRAME_SP_OFFSET.
12524         (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
12525         stack before exception handler returns.
12526         * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
12527         the 'ERROR_CODE' for exception handler.
12529 2017-07-30  Uros Bizjak  <ubizjak@gmail.com>
12531         * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
12532         (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
12533         (ASM_OUTPUT_REG_POP): Ditto.
12534         * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
12535         instead of asm_fprintf to output pure string.
12537 2017-07-29  Jakub Jelinek  <jakub@redhat.com>
12539         * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
12540         to imported_module_or_decl hook.
12541         (debug_nothing_tree_tree_tree_bool): Remove.
12542         (debug_nothing_tree_tree_tree_bool_bool): New declaration.
12543         * debug.c (do_nothing_debug_hooks): Use
12544         debug_nothing_tree_tree_tree_bool_bool instead of
12545         debug_nothing_tree_tree_tree_bool.
12546         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12547         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12548         * sdbout.c (sdb_debug_hooks): Likewise.
12549         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12550         (gen_namespace_die): Add DW_AT_export_symbols attribute if
12551         langhook wants it.
12552         (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
12553         if true, -gdwarf-5 and decl will have DW_AT_export_symbols
12554         attribute, don't add anything.
12556 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12558         * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
12559         (fold_build2_stat_loc): Likewise.
12560         (fold_build3_stat_loc): Likewise.
12561         * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
12562         (fold_build1_loc): Remove macro.
12563         (fold_build2_loc): Likewise.
12564         (fold_build3_loc): Likewise.
12566 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12568         * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
12569         (gimple_build_debug_bind_source_stat): Likewise.
12570         * gimple.h (gimple_build_debug_bind): Remove macro.
12571         (gimple_build_debug_bind_source): Likewise.
12573 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12575         * bitmap.c (bitmap_alloc): Adjust.
12576         (bitmap_gc_alloc): Likewise.
12577         * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
12579 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12581         * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
12582         (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
12583         * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
12584         (bitmap_gc_alloc_stat): Likewise.
12585         (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
12587 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12589         * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
12590         * rtl.h (shallow_copy_rtx): Remove macro.
12592 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12594         * emit-rtl.c (gen_raw_REG): Adjust.
12595         * gengenrtl.c (gendef): Likewise.
12596         * rtl.c (rtx_alloc_stat): Remove _stat from name.
12597         * rtl.h (rtx_alloc): Remove macro.
12599 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12601         * tree.c (build_tree_list_vec_stat): Remove _stat from name.
12602         (build_tree_list_stat): Likewise.
12603         * tree.h (build_tree_list): Remove macro.
12604         (build_tree_list_vec): Likewise.
12606 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12608         * tree.c (make_vector_stat): Remove _stat from name.
12609         (build_vector_stat): Likewise.
12610         * tree.h (make_vector_stat): Remove macro.
12611         (build_vector_stat): Likewise.
12613 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12615         * tree.h (build_var_debug_value): Remove prototype.
12617 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12619         * tree.c (tree_cons_stat): Remove _stat from name.
12620         * tree.h (tree_cons): Remove macro.
12622 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12624         * tree.c (build_vl_exp_stat): Remove _stat from name.
12625         * tree.h (build_vl_exp): Remove macro.
12627 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12629         * tree.c (build_decl_stat): Remove _stat from name.
12630         * tree.h (build_decl): Remove macro.
12632 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12634         * gimple.c (gimple_build_with_ops_stat): Adjust.
12635         (gimple_alloc_stat): Remove _stat from name.
12636         * gimple.h (gimple_alloc): Remove macro.
12638 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12640         * tree.c (make_tree_vec_stat): Remove _stat from name.
12641         (grow_tree_vec_stat): Likewise.
12642         * tree.h (make_tree_vec_stat): Adjust prototype.
12643         (grow_tree_vec_stat): Likewise.
12644         (make_tree_vec): Remove macro.
12645         (grow_tree_vec): Likewise.
12647 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12649         * fold-const.c (fold_build1_stat_loc): Adjust.
12650         (fold_build2_stat_loc): Likewise.
12651         (fold_build3_stat_loc): Likewise.
12652         * tree.c (build0_stat): Remove _stat from name.
12653         (build1_stat): Likewise.
12654         (build2_stat): Likewise.
12655         (build3_stat): Likewise.
12656         (build4_stat): Likewise.
12657         (build5_stat): Likewise.
12658         * tree.h (build1_loc): Remove macro, and rename _stat function
12659         to this.
12660         (build2_loc): Likewise.
12661         (build3_loc): Likewise.
12662         (build4_loc): Likewise.
12663         (build5_loc): Likewise.
12665 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12667         * tree.c (make_int_cst_stat): Remove _stat from name.
12668         * tree.h (make_int_cst_stat): Adjust prototype.
12669         (make_int_cst): Remove macro.
12671 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12673         * tree.c (make_tre_binfo_stat): Remove _stat from name.
12674         * tree.h (make_tree_binfo_stat): Adjust prototype.
12675         (make_tree_binfo): Remove.
12677 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12679         * tree.c (copy_node_stat): Rename to copy_node.
12680         (build_distinct_type_copy): Adjust.
12681         * tree.h (copy_node_stat): Adjust prototype.
12682         (copy_node): Remove macro.
12684 2017-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
12686         * tree.c (make_node_stat): rename to make_node.
12687         (build_tree_list_stat): Adjust.
12688         (build0_stat): Likewise.
12689         (build2_stat): Likewise.
12690         (build3_stat): Likewise.
12691         (build4_stat): Likewise.
12692         (build5_stat): Likewise.
12693         (build_decl_stat): Likewise.
12694         * tree.h (make_node_stat): Adjust prototype.
12695         (make_node): remove macro.
12697 2017-07-28  Peter Bergner  <bergner@vnet.ibm.com>
12699         * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
12700         (PPC_FEATURE2_SCV): Likewise.
12701         * config/rs6000/rs6000.c (cpu_supports_info): Use them.
12703 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
12705         * config/aarch64/aarch64.c
12706         (aarch64_internal_mov_immediate): Add new special pattern.
12707         * config/aarch64/aarch64.md (*movdi_aarch64):
12708         Add reg/32bit const mov case.
12710 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
12711             Richard Sandiford <richard.sandiford@linaro.org>
12713         * config/aarch64/aarch64.md (mov<mode>): Generalize.
12714         (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
12715         Add integer and movi cases.
12716         (movi-split-hf-df-sf split, fp16): New.
12717         (enabled): Added TARGET_FP_F16INST.
12718         * config/aarch64/iterators.md (GPF_HF): New.
12719         * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
12721 2017-07-28  Tamar Christina  <tamar.christina@arm.com>
12723         * config/aarch64/aarch64.c
12724         (aarch64_simd_container_mode): Add prototype.
12725         (aarch64_expand_mov_immediate): Add HI support.
12726         (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
12727         (aarch64_can_const_movi_rtx_p): New.
12728         (aarch64_preferred_reload_class):
12729         Remove restrictions of using FP registers for certain SIMD operations.
12730         (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
12731         (aarch64_valid_floating_const): Add integer move validation.
12732         (aarch64_simd_imm_scalar_p): Remove.
12733         (aarch64_output_scalar_simd_mov_immediate): Generalize function.
12734         (aarch64_legitimate_constant_p): Expand list of supported cases.
12735         * config/aarch64/aarch64-protos.h
12736         (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
12737         (aarch64_reinterpret_float_as_int): New.
12738         (aarch64_simd_imm_scalar_p): Remove.
12739         * config/aarch64/constraints.md (Uvi): New.
12740         (Dd): Split into Ds and new Dd.
12741         * config/aarch64/aarch64.md (*movsi_aarch64):
12742         Add SIMD mov case.
12743         (*movdi_aarch64): Add SIMD mov case.
12745 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
12747         * tree-predcom.c: (struct chain): Handle store-store chain in which
12748         stores for elimination only store loop invariant values.
12749         (execute_pred_commoning_chain): Ditto.
12750         (prepare_initializers_chain_store_elim): Ditto.
12751         (prepare_finalizers): Ditto.
12752         (is_inv_store_elimination_chain): New function.
12753         (initialize_root_vars_store_elim_1): New function.
12755 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
12757         * tree-predcom.c: Revise general description of the pass.
12758         (enum chain_type): New enum type for store elimination.
12759         (struct chain): New field supporting store elimination.
12760         (struct component): Ditto.
12761         (dump_chain): Dump store-stores chain.
12762         (release_chain): Release resources.
12763         (split_data_refs_to_components): Compute and create component
12764         contains only stores for elimination.
12765         (get_chain_last_ref_at): New function.
12766         (make_invariant_chain): Initialization.
12767         (make_rooted_chain): Specify chain type in parameter and record it.
12768         (add_looparound_copies): Skip for store-stores chain.
12769         (determine_roots_comp): Compute type of chain and pass it to
12770         make_rooted_chain.
12771         (initialize_root_vars_store_elim_2): New function.
12772         (finalize_eliminated_stores): New function.
12773         (remove_stmt): Handle store for elimination.
12774         (execute_pred_commoning_chain): Execute predictive commoning on
12775         store-store chains.
12776         (determine_unroll_factor): Skip unroll for store-stores chain.
12777         (prepare_initializers_chain_store_elim): New function.
12778         (prepare_initializers_chain): Hanlde store-store chain.
12779         (prepare_finalizers_chain, prepare_finalizers): New function.
12780         (tree_predictive_commoning_loop): Return integer value indicating
12781         if loop is unrolled or lcssa form is corrupted.
12782         (tree_predictive_commoning): Rewrite for lcssa form if necessary.
12784 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
12786         * tree-predcom.c (initialize_root): Delete.
12787         (execute_pred_commoning_chain): Initialize root vars and replace
12788         reference of non-combined chain directly, rather than call above
12789         function.
12791 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
12793         * tree-predcom.c (ref_at_iteration): Add parameter NITERS.  Compute
12794         memory reference to DR at (NITERS + ITERS)-th iteration of loop.
12796 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
12798         * tree-predcom.c (struct chain): New field init_seq.
12799         (release_chain): Release init_seq.
12800         (prepare_initializers_chain): Record intialization stmts in above
12801         field.
12802         (insert_init_seqs): New function.
12803         (tree_predictive_commoning_loop): Call insert_init_seqs.
12805 2017-07-28  Bin Cheng  <bin.cheng@arm.com>
12807         * tree-predcom.c (determine_roots_comp): Skip trivial components.
12809 2017-07-28  Richard Biener  <rguenther@suse.de>
12811         * match.pd: Remove superfluous :c.
12812         * genmatch.c (simplify::id): Add member.
12813         (lower_commutative, lower_opt_convert, lower_cond, lower_for):
12814         Copy id.
12815         (current_id): New global.
12816         (dt_node::parent): Move from ...
12817         (dt_operand::parent): ... here.  Add for_id member.
12818         (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
12819         (decision_tree::find_node): Relax order requirement when
12820         merging DT_TRUE nodes to ones inbetween the current simplify
12821         and the one we try to merge with.  Add diagnostic whenever
12822         we need to enforce pattern order by not merging.
12823         (decision_tree::insert): Set current_id.
12824         (decision_tree::print_node): Dump parent node and for_id.
12825         (parser::last_id): Add member.
12826         (parser::push_simplify): Assign unique id.
12827         (parser::parser): Initialize last_id.
12829 2017-07-28  Martin Liska  <mliska@suse.cz>
12831         PR sanitizer/81340
12832         * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
12833         gimple_build_debug_bind.
12835 2017-07-28  Richard Biener  <rguenther@suse.de>
12837         PR tree-optimization/81502
12838         * match.pd: Add pattern combining BIT_INSERT_EXPR with
12839         BIT_FIELD_REF.
12840         * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
12841         size/pos operands.
12842         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
12843         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
12844         for BIT_FIELD_REF args.
12845         * fold-const.c (make_bit_field_ref): Likewise.
12846         * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
12848 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
12850         PR sanitizer/80998
12851         * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
12852         * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
12853         * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
12854         Or it into SANITIZER_UNDEFINED.
12855         * ubsan.c: Include gimple-fold.h and varasm.h.
12856         (ubsan_expand_ptr_ifn): New function.
12857         (instrument_pointer_overflow): New function.
12858         (maybe_instrument_pointer_overflow): New function.
12859         (instrument_object_size): Formatting fix.
12860         (pass_ubsan::execute): Call instrument_pointer_overflow
12861         and maybe_instrument_pointer_overflow.
12862         * internal-fn.c (expand_UBSAN_PTR): New function.
12863         * ubsan.h (ubsan_expand_ptr_ifn): Declare.
12864         * sanitizer.def (__ubsan_handle_pointer_overflow,
12865         __ubsan_handle_pointer_overflow_abort): New builtins.
12866         * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
12867         * internal-fn.def (UBSAN_PTR): New internal function.
12868         * opts.c (sanitizer_opts): Add pointer-overflow.
12869         * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
12870         * fold-const.c (build_range_check): Compute pointer range check in
12871         integral type if pointer arithmetics would be needed.  Formatting
12872         fixes.
12874 2017-07-28  Martin Liska  <mliska@suse.cz>
12876         PR sanitizer/81460
12877         * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
12878         parameters that are of a variable-length.
12880 2017-07-28  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12882         * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h.  Add
12883         rs6000/biarch64.h.
12884         * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
12885         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
12886         (CRT_CALL_STATIC_FUNCTION): Likewise.
12887         (ASM_DEFAULT_SPEC): New define.
12888         (ASM_SPEC32): Likewise.
12889         (ASM_SPEC64): Likewise.
12890         (ASM_SPEC_COMMON): Likewise.
12891         (ASM_SPEC): Likewise.
12892         (INVALID_64BIT): Likewise.
12893         (LINK_OS_DEFAULT_SPEC): Likewise.
12894         (LINK_OS_SPEC32): Likewise.
12895         (LINK_OS_SPEC64): Likewise.
12896         (POWERPC_LINUX): Likewise.
12897         (PTRDIFF_TYPE): Likewise.
12898         (RESTORE_FP_PREFIX): Likewise.
12899         (RESTORE_FP_SUFFIX): Likewise.
12900         (SAVE_FP_PREFIX): Likewise.
12901         (SAVE_FP_SUFFIX): Likewise.
12902         (SIZE_TYPE): Likewise.
12903         (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12904         (TARGET_64BIT): Likewise.
12905         (TARGET_64BIT): Likewise.
12906         (TARGET_AIX): Likewise.
12907         (WCHAR_TYPE_SIZE): Likewise.
12908         (WCHAR_TYPE): Undefine.
12909         (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
12910         (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
12911         (CPP_OS_RTEMS_SPEC): Delete.
12912         (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems.  Add
12913         asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
12914         link_os_spec64.
12915         * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
12917 2017-07-28  Jakub Jelinek  <jakub@redhat.com>
12919         PR tree-optimization/81578
12920         * tree-parloops.c (build_new_reduction): Bail out if
12921         reduction_code isn't one of the standard OpenMP reductions.
12922         Move the details printing after that decision.
12924 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
12926         * config/rs6000/predicates.md (volatile_mem_operand): Remove code
12927         related to reload_in_progress.
12928         (splat_input_operand): Likewise.
12929         * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
12930         Delete prototype.
12931         * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
12932         field.
12933         (TARGET_EXPAND_TO_RTL_HOOK): Delete.
12934         (TARGET_INSTANTIATE_DECLS): Likewise.
12935         (legitimate_indexed_address_p): Delete reload_in_progress code.
12936         (rs6000_debug_legitimate_address_p): Likewise.
12937         (rs6000_eliminate_indexed_memrefs): Likewise.
12938         (rs6000_emit_le_vsx_store): Likewise.
12939         (rs6000_emit_move_si_sf_subreg): Likewise.
12940         (rs6000_emit_move): Likewise.
12941         (register_to_reg_type): Likewise.
12942         (rs6000_pre_atomic_barrier): Likewise.
12943         (rs6000_machopic_legitimize_pic_address): Likewise.
12944         (rs6000_allocate_stack_temp): Likewise.
12945         (rs6000_address_for_fpconvert): Likewise.
12946         (rs6000_address_for_altivec): Likewise.
12947         (rs6000_secondary_memory_needed_rtx): Delete function.
12948         (rs6000_check_sdmode): Likewise.
12949         (rs6000_alloc_sdmode_stack_slot): Likewise.
12950         (rs6000_instantiate_decls): Likewise.
12951         * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
12952         * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
12953         Delete reload_in_progress.
12954         (*vec_reload_and_plus_<mptrsize>): Likewise.
12955         * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12956         (vsx_div_v2di): Likewise.
12957         (vsx_udiv_v2di): Likewise.
12959 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
12961         * config/rs6000/rs6000.opt (mlra): Replace with stub.
12962         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
12963         * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
12964         (rs6000_debug_reg_global): Delete print of LRA status.
12965         (rs6000_option_override_internal): Delete dead LRA related code.
12966         (rs6000_lra_p): Delete function.
12967         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
12969 2017-07-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
12971         * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
12972         * config/riscv/rtems.h: New file.
12974 2017-07-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12975             Sudakshina Das  <sudi.das@arm.com>
12977         * config/aarch64/aarch64.md
12978         (define_split for and<mode>3nr_compare): Move
12979         non aarch64_logical_operand to a register.
12980         (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
12981         register immediate operand to a register.
12982         * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
12984 2017-07-27  Peter Bergner  <bergner@vnet.ibm.com>
12986         PR middle-end/81564
12987         * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
12989 2017-07-27  Richard Biener  <rguenther@suse.de>
12991         PR tree-optimization/81573
12992         PR tree-optimization/81494
12993         * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12994         multi defuse cycle case.
12996 2017-07-27  Richard Biener  <rguenther@suse.de>
12998         PR tree-optimization/81571
12999         * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
13000         PHIs.
13002 2017-07-27  Eric Botcazou  <ebotcazou@adacore.com>
13004         * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
13005         earlier and only if MASK_FPU is set.  Adjust formatting.
13007 2017-07-27  Martin Liska  <mliska@suse.cz>
13009         * opt-functions.awk: Add validation of value of Init.
13010         * optc-gen.awk: Pass new argument.
13012 2017-07-27  Martin Liska  <mliska@suse.cz>
13014         * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
13015         Fix wrong condition.
13017 2017-07-27  Martin Liska  <mliska@suse.cz>
13019         * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
13020         BBs and edges seen by autoFDO.
13022 2017-07-27  Richard Biener  <rguenther@suse.de>
13024         PR tree-optimization/81502
13025         * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
13026         with incompatible but same sized type.
13027         (execute_update_addresses_taken): Likewise.
13029 2017-07-27  James Greenhalgh  <james.greenhalgh@arm.com>
13031         * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
13032         flag_tree_loop_vectorize rather than flag_tree_vectorize.
13034 2017-07-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
13036         PR target/81534
13037         * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
13038         ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
13039         Change s_operand to memory_operand.
13041 2017-07-27  Richard Sandiford  <richard.sandiford@linaro.org>
13043         * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
13044         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
13045         (rs6000_emit_le_vsx_permute): ...this.  Take the destination as input.
13046         Emit instructions rather than returning an expression.  Handle TFmode
13047         and KFmode by casting to TImode.
13048         (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
13049         (rs6000_emit_le_vsx_store): Likewise.
13050         * config/rs6000/vsx.md (VSX_TI): New iterator.
13051         (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
13052         (*vsx_le_undo_permute_<mode>): Likewise.
13053         (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
13054         emit the split sequence.
13055         (*vsx_le_perm_store_<mode>): Likewise.
13057 2017-07-27  Jakub Jelinek  <jakub@redhat.com>
13059         PR tree-optimization/81555
13060         PR tree-optimization/81556
13061         * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
13062         if true, force CHANGED for the recursive invocation.
13063         (reassociate_bb): Remember original length of ops array, pass
13064         len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
13066         * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
13067         attributes for noipa attribute.  For naked attribute use
13068         lookup_attribute first before lookup_attribute_spec.
13069         * final.c (rest_of_handle_final): Disable IPA RA for functions with
13070         noipa attribute.
13071         * ipa-visibility.c (non_local_p): Fix comment typos.  Return true
13072         for functions with noipa attribute.
13073         (cgraph_externally_visible_p): Return true for functions with noipa
13074         attribute.
13075         * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
13076         for functions with noipa attribute.
13077         * doc/extend.texi: Document noipa function attribute.
13078         * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
13079         also for functions with noipa attribute.
13080         (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
13082 2017-07-26  Andrew Pinski  <apinski@cavium.com>
13084         * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
13085         vec_unalign_load_cost and vec_unalign_store_cost.
13087 2017-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
13089         * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
13090         -mvsx-small-integer option.
13091         (ISA_3_0_MASKS_IEEE): Likewise.
13092         (OTHER_VSX_VECTOR_MASKS): Likewise.
13093         (POWERPC_MASKS): Likewise.
13094         * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
13095         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
13096         code, only testing for DImode being allowed in non-VSX floating
13097         point registers.
13098         (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
13099         to TARGET_P8_VECTOR test.  Remove redundant VSX test inside of
13100         another VSX test.
13101         (rs6000_option_override_internal): Delete -mvsx-small-integer.
13102         (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
13103         TARGET_P8_VECTOR test.
13104         (rs6000_secondary_reload_simple_move): Likewise.
13105         (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
13106         since TARGET_P9_VECTOR was already tested.
13107         (rs6000_opt_masks): Remove -mvsx-small-integer.
13108         * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
13109         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
13110         used.
13111         (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
13112         test for TARGET_VEXTRACTUB was used, and that uses
13113         TARGET_P9_VECTOR.
13114         (p9 extract splitter): Likewise.
13115         (vsx_extract_<mode>_di_p9): Likewise.
13116         (vsx_extract_<mode>_store_p9): Likewise.
13117         (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
13118         for TARGET_P9_VECTOR was used.  Delete code that is now dead with
13119         the elimination of TARGET_VSX_SMALL_INTEGER.
13120         (vsx_extract_<mode>_p8): Likewise.
13121         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
13122         (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
13123         (vsx_set_<mode>_p9): Likewise.
13124         (vsx_set_v4sf_p9): Likewise.
13125         (vsx_set_v4sf_p9_zero): Likewise.
13126         (vsx_insert_extract_v4sf_p9): Likewise.
13127         (vsx_insert_extract_v4sf_p9_2): Likewise.
13128         * config/rs6000/rs6000.md (sign extend splitter): Change
13129         TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
13130         (floatsi<mode>2_lfiwax_mem): Likewise.
13131         (floatunssi<mode>2_lfiwzx_mem): Likewise.
13132         (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
13133         since a test for TARGET_P9_VECTOR was used.
13134         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
13135         (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
13136         (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
13137         (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
13138         TARGET_P8_VECTOR test.
13139         (fix_trunc<mode>si2_stfiwx): Likewise.
13140         (fix_trunc<mode>si2_internal): Likewise.
13141         (fix_trunc<SFDF:mode><QHI:mode>2): Delete
13142         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
13143         used.
13144         (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
13145         (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
13146         TARGET_P8_VECTOR test.
13147         (fixuns_trunc<mode>si2_stfiwx): Likewise.
13148         (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
13149         TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
13150         used.
13151         (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
13152         (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
13153         since a test for TARGET_P9_VECTOR was used.
13154         (splitter for loading small constants): Likewise.
13156 2017-07-26  Andrew Pinski  <apinski@cavium.com>
13158         * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
13159         vec_fp_stmt_cost.
13161 2017-07-26  H.J. Lu  <hongjiu.lu@intel.com>
13163         PR target/81563
13164         * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
13165         (fp_valid_at): Likewise.
13167 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
13169         * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
13170         (qdf24xx_addrcost_table): Likewise.
13171         (cortexa57_tunings): Update to use generic_branch_cost.
13172         (cortexa72_tunings): Likewise.
13173         (cortexa73_tunings): Likewise.
13174         (qdf24xx_tunings): Likewise.
13176 2017-07-26  James Greenhalgh  <james.greenhalgh@arm.com>
13178         * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
13179         (thunderx2t99_branch_cost): Likewise.
13180         (cortexa35_tunings): Update to use generic_branch_cost.
13181         (cortexa53_tunings): Likewise.
13182         (cortexa57_tunings): Likewise.
13183         (cortexa72_tunings): Likewise.
13184         (cortexa73_tunings): Likewise.
13185         (thunderx2t99_tunings): Likewise.
13187 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13189         * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
13190         (sparc_option_override): Honour MASK_FSMULD.
13191         * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
13192         * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
13193         * config/sparc/sparc.opt (mfsmuld): New option.
13194         * doc/invoke.texi (mfsmuld): Document option.
13196 2017-07-26  Marek Polacek  <polacek@redhat.com>
13198         PR middle-end/70992
13199         * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
13201 2017-07-26  Richard Biener  <rguenther@suse.de>
13203         * gimple-match-head.c (do_valueize): Return OP if valueize
13204         returns NULL_TREE.
13205         (get_def): New helper to get at the def stmt of a SSA name
13206         if valueize allows.
13207         * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
13208         do_valueize to get at the def stmt.
13209         (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
13211 2017-07-26  Wilco Dijkstra  <wdijkstr@arm.com>
13213         PR middle-end/46932
13214         * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
13216 2017-07-26  Martin Liska  <mliska@suse.cz>
13218         PR sanitize/81186
13219         * function.c (expand_function_start): Make expansion of
13220         nonlocal_goto_save_area after parm_birth_insn.
13222 2017-07-26  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13224         * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
13225         from all CPU target flags enable members.
13227 2017-07-26  Richard Biener  <rguenther@suse.de>
13229         * genmatch.c (dt_simplify::gen): Make iterator vars const.
13230         (decision_tree::gen): Make 'type' const.
13231         (write_predicate): Likewise.
13233 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13235         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
13236         Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
13237         (rs6000_option_override_internal): Likewise.
13238         (rs6000_expand_vector_set): Likewise.
13239         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
13240         (TARGET_UPPER_REGS_SF): Likewise.
13241         (TARGET_UPPER_REGS_DI): Likewise.
13242         (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
13243         (TARGET_DIRECT_MOVE_64BIT): Likewise.
13244         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
13245         (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
13246         (Splitters for DI constants in Altivec registers): Likewise.
13247         * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
13248         (vsx_set_v4sf_p9): Likewise.
13249         (vsx_set_v4sf_p9_zero): Likewise.
13250         (vsx_insert_extract_v4sf_p9): Likewise.
13251         (vsx_insert_extract_v4sf_p9_2): Likewise.
13253 2017-07-25  Carl Love  <cel@us.ibm.com>
13255         * doc/extend.texi: Update the built-in documentation file for the
13256         existing built-in functions
13257         vector signed char vec_cnttz (vector signed char);
13258         vector unsigned char vec_cnttz (vector unsigned char);
13259         vector signed short vec_cnttz (vector signed short);
13260         vector unsigned short vec_cnttz (vector unsigned short);
13261         vector signed int vec_cnttz (vector signed int);
13262         vector unsigned int vec_cnttz (vector unsigned int);
13263         vector signed long long vec_cnttz (vector signed long long);
13264         vector unsigned long long vec_cnttz (vector unsigned long long);
13266 2017-07-25  Andrew Pinski  <apinski@cavium.com>
13268         * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
13269         accesses where the use is for the first operand of a BIT_INSERT.
13271 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
13273         PR bootstrap/81521
13274         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
13275         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
13277 2017-07-25  Jim Wilson  <jim.wilson@linaro.org>
13279         * config/i386/gstabs.h: Delete.
13280         * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
13282 2017-07-25  Uros Bizjak  <ubizjak@gmail.com>
13284         * config/i386/i386.c (ix86_decompose_address): Do not check for
13285         register RTX when looking at index_reg or base_reg.
13286         * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
13288 2017-07-25  Eric Botcazou  <ebotcazou@adacore.com>
13290         * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
13291         to update EH info here.
13293 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
13295         * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
13297 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
13299         * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
13301 2017-07-25  Torsten Duwe  <duwe@suse.de>
13303         * common.opt: Introduce -fpatchable-function-entry
13304         command line option, and its variables function_entry_patch_area_size
13305         and function_entry_patch_area_start.
13306         * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
13307         including a two-value parser.
13308         * target.def (print_patchable_function_entry): New target hook.
13309         * targhooks.h (default_print_patchable_function_entry): New function.
13310         * targhooks.c (default_print_patchable_function_entry): Likewise.
13311         * toplev.c (process_options): Switch off IPA-RA if
13312         patchable function entries are being generated.
13313         * varasm.c (assemble_start_function): Look at the
13314         patchable-function-entry command line switch and current
13315         function attributes and maybe generate NOP instructions by
13316         calling the print_patchable_function_entry hook.
13317         * doc/extend.texi: Document patchable_function_entry attribute.
13318         * doc/invoke.texi: Document -fpatchable_function_entry
13319         command line option.
13320         * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
13321         New target hook.
13322         * doc/tm.texi: Re-generate.
13324 2017-07-25  Jakub Jelinek  <jakub@redhat.com>
13326         PR target/81532
13327         * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
13328         TARGET_AVX512DQ rather than TARGET_AVX512BW.
13330 2017-07-25  Tamar Christina  <tamar.christina@arm.com>
13332         * config/arm/parsecpu.awk (all_cores): Remove duplicates.
13334 2017-07-25  Richard Biener  <rguenther@suse.de>
13336         PR tree-optimization/81455
13337         * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
13338         not walk in cycles when looking for guards.
13340 2017-07-25  Richard Biener  <rguenther@suse.de>
13342         PR tree-optimization/81529
13343         * tree-vect-stmts.c (process_use): Disregard live induction PHIs
13344         when optimizing backedge uses.
13346 2017-07-25  David Edelsohn  <dje.gcc@gmail.com>
13348         * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
13349         character for AIX.
13350         * dwarf2out.c (output_macinfo): Copy debug_line_section_label
13351         to dl_section_ref.  On AIX, append an expression to subtract
13352         the size of the section length to dl_section_ref.
13354 2017-07-25  Segher Boessenkool  <segher@kernel.crashing.org>
13356         * configure.ac: If any of the config.* scripts fail, exit 1.
13357         * configure: Regenerate.
13359 2017-07-25  Richard Biener  <rguenther@suse.de>
13361         PR middle-end/81546
13362         * tree-ssa-operands.c (verify_imm_links): Remove cap on number
13363         of immediate uses, be more verbose on errors.
13365 2017-07-25  Richard Biener  <rguenther@suse.de>
13367         PR tree-optimization/81510
13368         * tree-vect-loop.c (vect_is_simple_reduction): When the
13369         reduction stmt is not inside the loop bail out.
13371 2017-07-25  Richard Biener  <rguenther@suse.de>
13373         PR tree-optimization/81303
13374         * tree-vect-loop-manip.c (vect_loop_versioning): Build
13375         profitability check against LOOP_VINFO_NITERSM1.
13377 2017-07-25  Alexander Monakov  <amonakov@ispras.ru>
13379         * domwalk.c (cmp_bb_postorder): Simplify.
13380         (sort_bbs_postorder): New function.  Use it...
13381         (dom_walker::walk): ...here to optimize common cases.
13383 2017-07-25  Martin Liska  <mliska@suse.cz>
13385         PR ipa/81520
13386         * ipa-visibility.c (function_and_variable_visibility): Make the
13387         redirection just on target that supports aliasing.
13388         Fix GNU coding style.
13390 2017-07-25  Sebastian Huber  <sebastian.huber@embedded-brains.de>
13392         PR libgcc/61152
13393         * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
13394         Format changes.
13395         * config/arm/rtems.h: Likewise.
13396         * config/bfin/rtems.h: Likewise.
13397         * config/i386/rtemself.h: Likewise.
13398         * config/lm32/rtems.h: Likewise.
13399         * config/m32c/rtems.h: Likewise.
13400         * config/m68k/rtemself.h: Likewise.
13401         * config/microblaze/rtems.h: Likewise.
13402         * config/mips/rtems.h: Likewise.
13403         * config/moxie/rtems.h: Likewise.
13404         * config/nios2/rtems.h: Likewise.
13405         * config/powerpcspe/rtems.h: Likewise.
13406         * config/rs6000/rtems.h: Likewise.
13407         * config/rtems.h: Likewise.
13408         * config/sh/rtems.h: Likewise.
13409         * config/sh/rtemself.h: Likewise.
13410         * config/sparc/rtemself.h: Likewise.
13412 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
13414         PR 81487
13415         * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
13416         * gimple-pretty-print.c (dump_profile, dump_probability): Same.
13417         * tree-ssa-structalias.c (alias_get_name): Same.
13419 2017-07-25  Bin Cheng  <bin.cheng@arm.com>
13421         PR target/81414
13422         * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
13423         instructions if no du chain is found.
13425 2017-07-25  Georg-Johann Lay  <avr@gjlay.de>
13427         * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
13429 2017-07-25  Richard Biener  <rguenther@suse.de>
13431         PR middle-end/81505
13432         * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
13433         sticky.
13435 2017-07-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
13437         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
13438         upper-regs options.
13439         (ISA_2_7_MASKS_SERVER): Likewise.
13440         (ISA_3_0_MASKS_IEEE): Likewise.
13441         (OTHER_P8_VECTOR_MASKS): Likewise.
13442         (OTHER_VSX_VECTOR_MASKS): Likewise.
13443         (POWERPC_MASKS): Likewise.
13444         (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
13445         duplicate list of options.
13446         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
13447         explicit -mupper-regs options.
13448         * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
13449         -mupper-regs* options.  Delete -mvsx-scalar-memory, which was an
13450         alias for -mupper-regs-df.
13451         * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
13452         (rs6000_init_hard_regno_mode_ok): Likewise.
13453         (rs6000_option_override_internal): Likewise.
13454         (rs6000_opt_masks): Likewise.
13455         * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
13456         options in terms of whether -mvsx or -mpower8-vector was used.
13457         (TARGET_UPPER_REGS_DI): Likewise.
13458         (TARGET_UPPER_REGS_SF): Likewise.
13459         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
13460         -mupper-regs-* options.
13462 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
13464         * passes.c (emergency_dump_function): Print some empty lines and a
13465         header before the RTL dump.
13467 2017-07-24  Segher Boessenkool  <segher@kernel.crashing.org>
13469         * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
13471 2017-07-24  Wilco Dijkstra  <wdijkstr@arm.com>
13473         PR target/79041
13474         * config/aarch64/aarch64.c (aarch64_classify_symbol):
13475         Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
13477 2017-07-24  Carl Love  <cel@us.ibm.com>
13479         * config/rs6000/rs6000-c.c: Add support for built-in functions
13480         vector float vec_extract_fp32_from_shorth (vector unsigned short);
13481         vector float vec_extract_fp32_from_shortl (vector unsigned short);
13482         * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
13483         vec_extract_fp_from_shortl): Add defines for the two builtins.
13484         * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
13485         VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
13486         new builtins.
13487         * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
13488         (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
13489         * doc/extend.texi: Update the built-in documentation file for the
13490         new built-in function.
13492 2017-07-24  Jakub Jelinek  <jakub@redhat.com>
13494         PR bootstrap/81521
13495         * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
13496         documentation.
13497         * doc/generic.texi: Likewise.
13498         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
13499         for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
13501 2017-07-24  Jackson Woodruff  <jackson.woodruff@arm.com>
13503         * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
13504         (aarch64_mls_elt_merge<mode>): Likewise.
13506 2017-07-23  Krister Walfridsson  <krister.walfridsson@gmail.com>
13508         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
13509         having __cxa_atexit.
13511 2017-07-23  Michael Collison  <michael.collison@arm.com>
13513         * config/arm/arm.c (arm_option_override): Deprecate
13514         use of -mstructure-size-boundary.
13515         * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
13516         * doc/invoke.texi: Deprecate -mstructure-size-boundary.
13518 2017-07-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
13520         PR target/80695
13521         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
13522         Reduce cost estimate for direct moves.
13524 2017-07-23  Uros Bizjak  <ubizjak@gmail.com>
13526         PR target/80569
13527         * config/i386/i386.c (ix86_option_override_internal): Disable
13528         BMI, BMI2 and TBM instructions for -m16.
13530 2017-07-21  Carl Love  <cel@us.ibm.com>
13532         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13533         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
13534         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
13535         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
13536         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
13537         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
13538         VMULOSW): New enum "unspec" values.
13539         (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
13540         altivec_vmulosw): New patterns.
13541         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
13542         VMULOSW): Add definitions.
13544 2017-07-21  Jim Wilson  <jim.wilson@linaro.org>
13546         * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
13547         (qdf24xx): Likewise.
13548         * config/aarch64/aarch64-options-extensions.def (rdma); New.
13549         * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
13550         (AARCH64_FL_V8_1): Renumber.
13551         (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
13552         (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
13553         * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
13554         * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs.  Add
13555         rdma to feature modifiers list.
13557 2017-07-21  Yury Gribov  <tetra2005@gmail.com>
13559         PR middle-end/56727
13560         * ipa-visibility (function_and_variable_visibility): Convert
13561         recursive PLT call to direct call if appropriate.
13563 2017-07-21  Andrew Pinski  <apinski@cavium.com>
13565         * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
13566         operand 1 to see if the types precision matches.
13567         * fold-const.c (operand_equal_p): Likewise.
13569 2017-07-21  Richard Biener  <rguenther@suse.de>
13571         PR tree-optimization/81303
13572         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
13573         in datarefs vector.  Allow NULL dr0 for no peeling cost estimate.
13574         (vect_peeling_hash_get_lowest_cost): Adjust.
13575         (vect_enhance_data_refs_alignment): Likewise.  Use
13576         vect_get_peeling_costs_all_drs to compute the penalty for no
13577         peeling to match up costs.
13579 2017-07-21  Richard Biener  <rguenther@suse.de>
13581         PR tree-optimization/81500
13582         * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
13583         we didn't identify a reduction path.
13585 2017-07-21  Tom de Vries  <tom@codesourcery.com>
13586             Cesar Philippidis  <cesar@codesourcery.com>
13588         PR gcov-profile/81442
13589         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
13590         probabilities.
13592 2017-07-21  Tom de Vries  <tom@codesourcery.com>
13594         PR lto/81430
13595         * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
13596         function.
13597         (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
13598         nvptx_override_options_after_change.
13600 2017-07-21  Ulrich Drepper  <drepper@redhat.com>
13602         * dwarf2out.c (output_file_names): Avoid double testing for
13603         dwarf_version >= 5.
13605 2017-07-21  Georg-Johann Lay  <avr@gjlay.de>
13607         * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
13609 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
13611         * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
13612         hot/cold regions.
13613         (try_crossjump_to_edge): Do not punt on partitioned functions.
13615 2016-07-21  Jan Hubicka  <hubicka@ucw.cz>
13617         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13618         Put all BBs reachable only via paths crossing cold region to cold
13619         region.
13620         * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
13622 2016-07-21  Richard Biener  <rguenther@suse.de>
13624         PR tree-optimization/81303
13625         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
13626         into account prologue and epilogue iterations when raising
13627         min_profitable_iters to sth at least covering one vector iteration.
13629 2017-07-21  Tamar Christina  <tamar.christina@arm.com>
13631         * config/arm/arm.c (arm_test_cpu_arch_dat):
13632         Check for overlap.
13634 2017-07-20  Nathan Sidwell  <nathan@acm.org>
13636         Remove TYPE_METHODS.
13637         * tree.h (TYPE_METHODS): Delete.
13638         * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
13639         * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
13640         (dbxout_type_methods): Scan TYPE_FIELDS.
13641         (dbxout_type): Don't check TYPE_METHODS here.
13642         * function.c (use_register_for_decl): Always ignore register for
13643         class types when not optimizing.
13644         * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
13645         * tree.c (free_lang_data_in_type): Stitch out member functions and
13646         templates from TYPE_FIELDS.
13647         (build_distinct_type_copy, verify_type_variant,
13648         verify_type): Member fns are on TYPE_FIELDS.
13649         * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
13650         * tree-pretty-print.c (dump_generic_node): Likewise.
13652 2017-07-20  Jakub Jelinek  <jakub@redhat.com>
13654         PR target/80846
13655         * config/i386/i386.c (ix86_expand_vector_init_general): Handle
13656         V2TImode and V4TImode.
13657         (ix86_expand_vector_extract): Likewise.
13658         * config/i386/sse.md (VMOVE): Enable V4TImode even for just
13659         TARGET_AVX512F, instead of only for TARGET_AVX512BW.
13660         (ssescalarmode): Handle V4TImode and V2TImode.
13661         (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
13662         (*vec_extractv2ti, *vec_extractv4ti): New insns.
13663         (VEXTRACTI128_MODE): New mode iterator.
13664         (splitter for *vec_extractv?ti first element): New.
13665         (VEC_INIT_MODE): New mode iterator.
13666         (vec_init<mode>): Consolidate 3 expanders into one using
13667         VEC_INIT_MODE mode iterator.
13669 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
13671         * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
13672         non_spilled_static_chain_regno_p.
13674 2017-07-20  Alexander Monakov  <amonakov@ispras.ru>
13676         * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
13678 2017-07-20  Jan Hubicka  <hubicka@ucw.cz>
13680         * bb-reorder.c (connect_traces): Allow copying of blocks within
13681         single partition.
13683 2017-07-20  Richard Biener  <rguenther@suse.de>
13685         * gimple.h (gimple_phi_result): Add gphi * overload.
13686         (gimple_phi_result_ptr): Likewise.
13687         (gimple_phi_arg): Likewise.  Adjust index assert to only
13688         allow actual argument accesses rather than all slots available
13689         by capacity.
13690         (gimple_phi_arg_def): Add gphi * overload.
13691         * tree-phinodes.c (make_phi_node): Initialize only actual
13692         arguments.
13693         (resize_phi_node): Clear memory not covered by old node,
13694         do not initialize excess argument slots.
13695         (reserve_phi_args_for_new_edge): Initialize new argument slot
13696         completely.
13698 2017-07-20  Bin Cheng  <bin.cheng@arm.com>
13700         PR tree-optimization/81388
13701         Revert r238585:
13702         2016-07-21  Bin Cheng  <bin.cheng@arm.com>
13704         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
13705         by removing computation of may_be_zero.
13707 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
13708             Tom de Vries  <tom@codesourcery.com>
13710         PR middle-end/81030
13711         * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
13712         when gimple level profile disagrees with what RTL expander did.
13714 2017-07-20  Richard Biener  <rguenther@suse.de>
13716         PR tree-optimization/61171
13717         * tree-vectorizer.h (slp_instance): Add reduc_phis member.
13718         (vect_analyze_stmt): Add slp instance parameter.
13719         (vectorizable_reduction): Likewise.
13720         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
13721         (vect_is_simple_reduction): Deal with chains not detected
13722         as SLP reduction chain, specifically not properly associated
13723         chains containing a mix of plus/minus.
13724         (get_reduction_op): Remove.
13725         (get_initial_defs_for_reduction): Simplify, pass in whether
13726         this is a reduction chain, pass in the SLP node for the PHIs.
13727         (vect_create_epilog_for_reduction): Get the SLP instance as
13728         arg and adjust.
13729         (vectorizable_reduction): Get the SLP instance as arg.
13730         During analysis remember the SLP node with the PHIs in the
13731         instance.  Simplify getting at the vectorized reduction PHIs.
13732         * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
13733         through SLP instance.
13734         (vect_slp_analyze_operations): Likewise.
13735         * tree-vect-stms.c (vect_analyze_stmt): Likewise.
13736         (vect_transform_stmt): Likewise.
13738 2017-07-20  Tom de Vries  <tom@codesourcery.com>
13740         PR tree-optimization/81489
13741         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
13742         read of phi arg location to before loop that modifies phi.
13744 2017-07-20  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
13746         * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
13747         New pattern.
13749 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
13751         PR middle-end/81331
13752         * except.c (execute): Fix ordering issue.
13754 2018-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
13756         PR rtl-optimization/81423
13757         * combine.c (make_compound_operation_int): Don't try to optimize
13758         the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
13760 2017-07-19  Segher Boessenkool  <segher@kernel.crashing.org>
13762         PR rtl-optimization/81423
13763         * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
13764         with a constant that is -1 in the truncated to mode.
13766 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
13768         * predict.c (propagate_unlikely_bbs_forward): Break out from ...
13769         (determine_unlikely_bbs): ... here.
13770         * predict.h (propagate_unlikely_bbs_forward): Declare.
13771         * cfgexpand.c (pass_expand::execute): Use it.
13772         * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
13773         unlikely edges.
13774         (find_rarely_executed_basic_blocks_and_crossing_edges): Use
13775         propagate_unlikely_bbs_forward.
13777 2017-07-19  Jan Hubicka  <hubicka@ucw.cz>
13779         PR middle-end/81331
13780         * except.c (maybe_add_nop_after_section_switch): New function.
13781         (execute): Use it.
13783 2017-07-19  Tom de Vries  <tom@codesourcery.com>
13785         * gimple.h (gimple_phi_set_arg): Make assert more strict.
13787 2017-07-19  Tom de Vries  <tom@codesourcery.com>
13789         * gimple.h (gimple_phi_arg): Make assert more strict.
13791 2017-07-19  Steven Munroe  <munroesj@gcc.gnu.org>
13793         * config.gcc (powerpc*-*-*): Add mmintrin.h.
13794         * config/rs6000/mmintrin.h: New file.
13795         * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
13797 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
13799         PR tree-optimization/81346
13800         * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
13802 2017-07-19  Tom de Vries  <tom@codesourcery.com>
13804         * config/nvptx/nvptx.md (VECIM): Add V2DI.
13806 2017-07-19  Tom de Vries  <tom@codesourcery.com>
13808         * config/nvptx/nvptx-modes.def: Add V2DImode.
13809         * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
13810         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
13811         (nvptx_output_mov_insn): Handle lack of mov.b128.
13812         (nvptx_print_operand): Handle 'H' and 'L' codes.
13813         (nvptx_vector_mode_supported): Allow V2DImode.
13814         (nvptx_preferred_simd_mode): New function.
13815         (nvptx_data_alignment): New function.
13816         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
13817         nvptx_preferred_simd_mode.
13818         * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
13819         64 to 128 bits.
13820         (DATA_ALIGNMENT): Define.  Set to nvptx_data_alignment.
13822 2017-07-19  Tom de Vries  <tom@codesourcery.com>
13824         * config/nvptx/nvptx-modes.def: New file.  Add V2SImode.
13825         * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
13826         (nvptx_vector_mode_supported): New function.  Allow V2SImode.
13827         (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
13828         * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
13829         (mov<VECIM>_insn): New define_insn.
13830         (define_expand "mov<VECIM>): New define_expand.
13832 2017-07-19  Tom de Vries  <tom@codesourcery.com>
13834         * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
13836 2017-07-19  Jakub Jelinek  <jakub@redhat.com>
13838         PR tree-optimization/81346
13839         * fold-const.h (fold_div_compare, range_check_type): Declare.
13840         * fold-const.c (range_check_type): New function.
13841         (build_range_check): Use range_check_type.
13842         (fold_div_compare): No longer static, rewritten into
13843         a match.pd helper function.
13844         (fold_comparison): Don't call fold_div_compare here.
13845         * match.pd (X / C1 op C2): New optimization using fold_div_compare
13846         as helper function.
13848 2017-07-19  Nathan Sidwell  <nathan@acm.org>
13850         * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
13851         (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
13852         * tree.c (find_decls_types_r, verify_type): Use
13853         TYPE_{MIN,MAX}_VALUE_RAW.
13854         * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
13855         (hash_tree): Likewise.
13856         * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
13857         Likewise.
13858         * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
13859         Likewise.
13861 2017-07-18  Tom de Vries  <tom@codesourcery.com>
13863         PR middle-end/81464
13864         * omp-expand.c (expand_omp_for_static_chunk): Handle
13865         equal-argument loop exit phi.
13867 2017-07-18  Uros Bizjak  <ubizjak@gmail.com>
13869         PR target/81471
13870         * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
13871         (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
13872         operand 2 predicate.
13873         (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
13874         operand 2 predicate.
13875         (ror,rol -> rorx splitters): Use const_int_operand as
13876         operand 2 predicate.
13878 2017-06-18  Richard Biener  <rguenther@suse.de>
13880         PR tree-optimization/81410
13881         * tree-vect-stmts.c (vectorizable_load): Properly adjust for
13882         the gap in the ! slp_perm SLP case after each group.
13884 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
13886         PR middle-end/81463
13887         * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
13888         again.
13890 2017-07-18  Jan Hubicka  <hubicka@ucw.cz>
13892         PR middle-end/81462
13893         * predict.c (set_even_probabilities): Cleanup; do not affect
13894         probabilities that are already known.
13895         (combine_predictions_for_bb): Call even when count is set.
13897 2017-07-18  Nathan Sidwell  <nathan@acm.org>
13899         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
13900         TYPE_MAX_VALUE.
13902 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
13904         PR target/81408
13905         * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
13906         optimization for loop niter analysis.
13908 2017-07-18  Georg-Johann Lay  <avr@gjlay.de>
13910         PR target/81473
13911         * config/avr/avr.c (avr_optimize_casesi): Don't use
13912         INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
13914 2017-07-18  Robin Dapp  <rdapp@linux.vnet.ibm.com>
13916         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
13917         body_cost_vec from _vect_peel_extended_info.
13918         (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
13919         (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
13920         npeel.
13922 2017-07-18  Bin Cheng  <bin.cheng@arm.com>
13924         * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
13926 2017-07-18  Richard Biener  <rguenther@suse.de>
13928         PR tree-optimization/80620
13929         PR tree-optimization/81403
13930         * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
13931         info when re-using a VN table entry.
13933 2017-07-18  Richard Biener  <rguenther@suse.de>
13935         PR tree-optimization/81418
13936         * tree-vect-loop.c (vectorizable_reduction): Properly compute
13937         vectype_in.  Verify that with lane-reducing reduction operations
13938         we have a single def-use cycle.
13940 2017-07-17  Carl Love  <cel@us.ibm.com>
13942         Revert commit r249424   2017-06-20  Carl Love  <cel@us.ibm.com>
13944         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13945         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
13946         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
13947         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
13948         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
13949         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
13950         VMULOSW): New enum "unspec" values.
13951         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
13952         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
13953         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
13954         altivec_vmulosw): New patterns.
13955         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
13956         VMULOSW): Add definitions.
13957 2017-07-17  Uros Bizjak  <ubizjak@gmail.com>
13959         * config/alpha/alpha.c: Include predict.h.
13961 2017-07-17  Yury Gribov  <tetra2005@gmail.com>
13963         * tree-vrp.c (compare_assert_loc): Fix comparison function
13964         to return predictable results.
13966 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
13968         * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
13969         option.
13970         (subdi3): Likewise.
13971         * config/arc/arc.opt (mexpand-adddi): Deprecate it.
13972         * doc/invoke.texi (mexpand-adddi): Update text.
13974 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
13976         * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
13977         that also clobbers the CC register. The old expand code is moved
13978         to ...
13979         (*arc_clzsi2): ... here.
13980         (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
13981         the CC register. The old expand code is moved to ...
13982         (arc_ctzsi2): ... here.
13984 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
13986         * config/arc/arc.opt (mindexed-loads): Use initial value
13987         TARGET_INDEXED_LOADS_DEFAULT.
13988         (mauto-modify-reg): Use initial value
13989         TARGET_AUTO_MODIFY_REG_DEFAULT.
13990         * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
13991         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
13992         * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
13993         (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
13995 2017-07-17  Martin Liska  <mliska@suse.cz>
13997         PR sanitizer/81302
13998         * opts.c (finish_options): Do not allow -fgnu-tm
13999         w/ -fsanitize={kernel-,}address.  Say sorry.
14001 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
14003         PR target/81369
14004         * tree-loop-distribution.c (classify_partition): Only assert on
14005         numer of iterations.
14006         (merge_dep_scc_partitions): Delete prameter.  Update function call.
14007         (distribute_loop): Remove code handling loop with unknown niters.
14008         (pass_loop_distribution::execute): Skip loop with unknown niters.
14010 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
14012         PR target/81369
14013         * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
14014         function sort_partitions_by_post_order.
14016 2017-07-17  Bin Cheng  <bin.cheng@arm.com>
14018         PR tree-optimization/81374
14019         * tree-loop-distribution.c (pass_loop_distribution::execute): Record
14020         the max index of basic blocks, rather than number of basic blocks.
14022 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
14024         * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
14025         proto.
14026         (arc_legitimate_pic_operand_p): Likewise.
14027         * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
14028         function.
14029         (arc_needs_pcl_p): Likewise.
14030         (arc_legitimate_pc_offset_p): Likewise.
14031         (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
14032         function is also used in constrains.md.
14033         (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
14034         validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
14035         PLUS.  Only return true/false in known cases, otherwise assert.
14036         (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
14037         is already called in arc_legitimate_constant_p.
14038         * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
14039         pic addresses.
14040         (LEGITIMATE_PIC_OPERAND_P): Use
14041         arc_raw_symbolic_reference_mentioned_p function.
14042         * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
14043         function.
14044         (Cal): Likewise.
14045         (C32): Likewise.
14047 2017-07-17  Claudiu Zissulescu  <claziss@synopsys.com>
14048         Andrew Burgess  <andrew.burgess@embecosm.com>
14050         * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
14051         (arc_return_address_register): New function.
14052         * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
14053         (arc_handle_fndecl_attribute): Add naked attribute.
14054         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
14055         (TARGET_WARN_FUNC_RETURN): Likewise.
14056         (arc_allocate_stack_slots_for_args): New function.
14057         (arc_warn_func_return): Likewise.
14058         (machine_function): Change type fn_type.
14059         (arc_compute_function_type): Consider new naked function type,
14060         change function return type.
14061         (arc_must_save_register): Adapt to handle new
14062         arc_compute_function_type's return type.
14063         (arc_expand_prologue): Likewise.
14064         (arc_expand_epilogue): Likewise.
14065         (arc_return_address_regs): Delete.
14066         (arc_return_address_register): New function.
14067         (arc_epilogue_uses): Use above function.
14068         * config/arc/arc.h (arc_return_address_regs): Delete prototype.
14069         (arc_function_type): Change encoding, add naked type.
14070         (ARC_INTERRUPT_P): Change to handle the new encoding.
14071         (ARC_FAST_INTERRUPT_P): Likewise.
14072         (ARC_NORMAL_P): Define.
14073         (ARC_NAKED_P): Likewise.
14074         (arc_compute_function_type): Delete prototype.
14075         * config/arc/arc.md (in_ret_delay_slot): Use
14076         arc_return_address_register function.
14077         (simple_return): Likewise.
14078         (p_return_i): Likewise.
14080 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
14082         PR tree-optimization/81428
14083         * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
14084         can't be built for those types.
14086 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
14088         Remove stuff dead since r239246.
14090         * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
14091         * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
14092         (avr_inform_devices): Remove dead stuff.
14094 2017-07-17  Tamar Christina  <tamar.christina@arm.com>
14096         * config/arm/arm_neon.h: Fix softp typo.
14098 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
14100         PR tree-optimization/81365
14101         * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
14102         aggregate moves onto bb predecessor edges, make sure there are no
14103         loads that could alias the lhs in between the start of bb and the
14104         loads from *phi.
14106 2017-07-17  Georg-Johann Lay  <avr@gjlay.de>
14108         PR 80929
14109         * config/avr/avr.c (avr_mul_highpart_cost): New static function.
14110         (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
14111         [LSHIFTRT, outer_code = TRUNCATE]: Same.
14113 2017-07-17  Jakub Jelinek  <jakub@redhat.com>
14115         PR tree-optimization/81396
14116         * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
14117         (init_symbolic_number): Initialize it to 1.
14118         (perform_symbolic_merge): Add n_ops from both operands into the new
14119         n_ops.
14120         (find_bswap_or_nop): Don't consider n->n == cmpnop computations
14121         without base_addr as useless if they need more than one operation.
14122         (bswap_replace): Handle !bswap case for NULL base_addr.
14124 2017-07-17  Tom de Vries  <tom@codesourcery.com>
14126         PR target/81069
14127         * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
14128         as possible.
14130 2017-07-17  Sebastian Huber  <sebastian.huber@embedded-brains.de>
14132         * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
14133         conditional builtin define __FIX_LEON3FT_B2BST.
14135 2017-07-17  Daniel Cederman  <cederman@gaisler.com>
14137         * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
14138         MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
14139         with -mfix-ut700.
14141 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
14143         PR rtl-optimization/81424
14144         * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
14145         to remove potential trapping from operands if -fnon-call-exceptions.
14147 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
14149         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
14150         profile_proability for scalling.
14151         * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
14153 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
14155         * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
14157 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
14159         * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
14160         fixpoint arithmetics.
14162 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
14164         * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
14165         fixpoint arithmetics.
14167 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
14169         * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
14170         fixpoint arithmetics.
14172 2017-07-16  Jan Hubicka  <hubicka@ucw.cz>
14174         * profile-count.h (profile_probability::from_reg_br_prob_note,
14175         profile_probability::to_reg_br_prob_note): New functions.
14176         * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
14177         * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
14178         * predict.c (probability_reliable_p): Update.
14179         (edge_probability_reliable_p): Update.
14180         (br_prob_note_reliable_p): Update.
14181         (invert_br_probabilities): Update.
14182         (add_reg_br_prob_note): New function.
14183         (combine_predictions_for_insn): Update.
14184         * asan.c (asan_clear_shadow): Update.
14185         * cfgbuild.c (compute_outgoing_frequencies): Update.
14186         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
14187         (update_br_prob_note): Update.
14188         (rtl_verify_edges): Update.
14189         (purge_dead_edges): Update.
14190         (fixup_reorder_chain): Update.
14191         * emit-rtl.c (try_split): Update.
14192         * ifcvt.c (cond_exec_process_insns): Update.
14193         (cond_exec_process_if_block): Update.
14194         (dead_or_predicable): Update.
14195         * internal-fn.c (expand_addsub_overflow): Update.
14196         (expand_neg_overflow): Update.
14197         (expand_mul_overflow): Update.
14198         * loop-doloop.c (doloop_modify): Update.
14199         * loop-unroll.c (compare_and_jump_seq): Update.
14200         * optabs.c (emit_cmp_and_jump_insn_1): Update.
14201         * predict.h: Update.
14202         * reorg.c (mostly_true_jump): Update.
14203         * rtl.h: Update.
14204         * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
14205         * config/alpha/alpha.c (emit_unlikely_jump): Update.
14206         * config/arc/arc.c: (emit_unlikely_jump): Update.
14207         * config/arm/arm.c: (emit_unlikely_jump): Update.
14208         * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
14209         * config/frv/frv.c (frv_print_operand_jump_hint): Update.
14210         * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
14211         (ix86_print_operand): Update.
14212         (ix86_split_fp_branch): Update.
14213         (predict_jump): Update.
14214         * config/ia64/ia64.c (ia64_print_operand): Update.
14215         * config/mmix/mmix.c (mmix_print_operand): Update.
14216         * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
14217         (rs6000_expand_split_stack_prologue): Update.
14218         * config/rs6000/rs6000.c: Update.
14219         * config/s390/s390.c (s390_expand_vec_strlen): Update.
14220         (s390_expand_vec_movstr): Update.
14221         (s390_expand_cs_tdsi): Update.
14222         (s390_expand_split_stack_prologue): Update.
14223         * config/sh/sh.c (sh_print_operand): Update.
14224         (expand_cbranchsi4): Update.
14225         (expand_cbranchdi4): Update.
14226         * config/sparc/sparc.c (output_v9branch): Update.
14227         * config/spu/spu.c (get_branch_target): Update.
14228         (ea_load_store_inline): Update.
14229         * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
14230         * config/tilepro/tilepro.c: Update.
14232 2017-07-16  Eric Botcazou  <ebotcazou@adacore.com>
14234         * gimplify.c (mostly_copy_tree_r): Revert latest change.
14235         (gimplify_save_expr): Likewise.
14237 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
14239         * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
14241 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
14243         * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
14244         TV_IPA_FNSUMMARY.
14245         * timevar.def (TV_IPA_FNSUMMARY): Define.
14247 2017-07-16  Daniel Cederman  <cederman@gaisler.com>
14249         * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
14250         to back store errata sensitive sequence from being generated.
14251         (sqrtdf2_fix): Likewise.
14253 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
14255         * tree-ssa-threadupdate.c (compute_path_counts,
14256         update_joiner_offpath_counts): Use profile_probability.
14258 2017-07-15  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14260         Revert:
14261         2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14263         * config/arm/arm-c.c (arm_cpu_builtins): Define
14264         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
14266 2017-07-14  Kelvin Nilsen  <kelvin@gcc.gnu.org>
14268         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14269         array entries to represent __ieee128 versions of the
14270         scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
14271         scalar_extract_sig, and scalar_insert_exp built-in functions.
14272         (altivec_resolve_overloaded_builtin): Add special case handling
14273         for the __builtin_scalar_insert_exp function, as represented by
14274         the P9V_BUILTIN_VEC_VSIEDP constant.
14275         * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
14276         exponent support for __ieee128 argument.
14277         (VSESQP): Add scalar extract signature support for __ieee128
14278         argument.
14279         (VSTDCNQP): Add scalar test negative support for __ieee128
14280         argument.
14281         (VSIEQP): Add scalar insert exponent support for __int128 argument
14282         with __ieee128 result.
14283         (VSIEQPF): Add scalar insert exponent support for __ieee128
14284         argument with __ieee128 result.
14285         (VSTDCQP): Add scalar test data class support for __ieee128
14286         argument.
14287         (VSTDCNQP): Add overload support for scalar test negative with
14288         __ieee128 argument.
14289         (VSTDCQP): Add overload support for scalar test data class
14290         __ieee128 argument.
14291         * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
14292         UNSPEC_VSX_SXSIGDP.
14293         (UNSPEC_VSX_SIEXPQP): New constant.
14294         (xsxexpqp): New insn for VSX scalar extract exponent quad
14295         precision.
14296         (xsxsigqp): New insn for VSX scalar extract significand quad
14297         precision.
14298         (xsiexpqpf): New insn for VSX scalar insert exponent quad
14299         precision with floating point argument.
14300         (xststdcqp): New expand for VSX scalar test data class quad
14301         precision.
14302         (xststdcnegqp): New expand for VSX scalar test negative quad
14303         precision.
14304         (xststdcqp): New insn to match expansions for VSX scalar test data
14305         class quad precision and VSX scalar test negative quad precision.
14306         * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
14307         special case operand checking to enforce that second operand of
14308         VSX scalar test data class with quad precision argument is a 7-bit
14309         unsigned literal.
14310         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
14311         prototypes and descriptions of __ieee128 versions of
14312         scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
14313         scalar_test_data_class, and scalar_test_neg built-in functions.
14315 2016-07-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14317         PR tree-optimization/81162
14318         * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
14319         replace a negate with an add.
14321 2017-07-14  James Greenhalgh  <james.greenhalgh@arm.com>
14323         * doc/invoke.texi (arm/-mcpu): Document +crypto.
14325 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14327         * config/arm/arm-c.c (arm_cpu_builtins): Define
14328         __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
14330 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14332         * config/arm/arm-cpus.in (cortex-r52): Add new entry.
14333         (armv8-r): Set ARM Cortex-R52 as default CPU.
14334         * config/arm/arm-tables.opt: Regenerate.
14335         * config/arm/arm-tune.md: Regenerate.
14336         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
14337         Cortex-R52.
14338         * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
14339         extension for -mcpu=cortex-r52.
14341 2017-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14343         * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
14344         (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
14345         * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
14346         (fp-armv8): Define it as FP_ARMv8 only.
14347         config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
14348         (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
14349         TARGET_FPU_ARMV8.
14350         config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
14351         TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
14352         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
14353         first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
14354         than TARGET_FPU_ARMV8.
14355         * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
14356         __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
14357         * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
14358         TARGET_FPU_ARMV8.
14359         * config/arm/neon.md (neon_vrint): Likewise.
14360         (neon_vcvt): Likewise.
14361         (neon_<fmaxmin_op><mode>): Likewise.
14362         (<fmaxmin><mode>3): Likewise.
14363         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
14364         * config/arm/predicates.md (arm_cond_move_operator): Check against
14365         TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
14367 2017-07-14  Jackson Woodruff  <jackson.woodruff@arm.com>
14369         * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
14370         to top of function.
14372 2017-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14374         * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
14375         loop in comment with memset.
14377 2017-07-14  Martin Liska  <mliska@suse.cz>
14379         * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
14380         * dwarf2out.c (is_java): Remove the function.
14381         (output_pubname): Remove usage of the function.
14382         (lower_bound_default): Remove usage of DW_LANG_Java.
14383         (gen_compile_unit_die): Likewise.
14384         * gcc.c: Remove compiler defaults for .java and .zip files.
14385         * gimple-expr.c (remove_suffix): Change as there's no longer
14386         extension than 4-letter one.
14387         * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
14388         (gimplify_save_expr): Likewise.
14389         * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
14390         as it's possible even for other languages than Java.
14391         * langhooks.h (struct lang_hooks): Remove Java from a comment.
14392         * lto-opts.c (lto_write_options): Remove reference to Java.
14393         * opts.c (strip_off_ending): Update file extension handling.
14394         * tree-cfg.c (verify_gimple_call): Remove comment with Java.
14395         * tree-eh.c (lower_resx): Likewise.
14396         * tree.c (free_lang_data_in_type): Remove dead code.
14397         (find_decls_types_r): Likewise.
14398         (build_common_builtin_nodes): Remove Java from a comment.
14399         (verify_type): Remove dead code.
14400         * varasm.c (assemble_external): Remove Java from a comment.
14402 2017-07-14  Martin Liska  <mliska@suse.cz>
14404         * opts.c (finish_options): Add quotes.
14405         (common_handle_option): Likewise.
14407 2017-07-14  Martin Liska  <mliska@suse.cz>
14409         * dbxout.c (get_lang_number): Do not handle GNU Pascal.
14410         * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
14411         Remove N_SO_PASCAL.
14412         * dwarf2out.c (lower_bound_default): Do not handle
14413         DW_LANG_Pascal83.
14414         (gen_compile_unit_die): Likewise.
14415         * gcc.c: Remove default extension binding for GNU Pascal.
14416         * stmt.c: Remove Pascal language from a comment.
14417         * xcoffout.c: Likewise.
14419 2017-07-13  David Malcolm  <dmalcolm@redhat.com>
14421         PR c/81405
14422         * diagnostic-show-locus.c (fixit_cmp): New function.
14423         (layout::layout): Sort m_fixit_hints.
14424         (column_range::column_range): Assert that the values are valid.
14425         (struct char_span): New struct.
14426         (correction::overwrite): New method.
14427         (struct source_line): New struct.
14428         (line_corrections::add_hint): Add assertions.  Reimplement memcpy
14429         calls in terms of classes source_line and char_span, and
14430         correction::overwrite.
14431         (selftest::test_overlapped_fixit_printing_2): New function.
14432         (selftest::diagnostic_show_locus_c_tests): Call it.
14434 2017-07-13  Will Schmidt  <will_schmidt@vnet.ibm.com>
14436         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
14437         early if there is no lhs.
14439 2017-07-13  Martin Liska  <mliska@suse.cz>
14441         * dwarf2out.c (gen_pointer_type_die): Remove dead code.
14442         (gen_reference_type_die): Likewise.
14443         * stor-layout.c: Remove Pascal-related comment.
14445 2017-07-13  Martin Liska  <mliska@suse.cz>
14447         * opts.c (finish_options): Add quotes to error messages.
14448         (parse_sanitizer_options): Likewise.
14450 2017-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
14452         * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
14454 2017-07-13  Richard Earnshaw  <rearnsha@arm.com>
14456         * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
14458 2017-07-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
14460         * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
14461         during expansion.
14462         * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
14464 2017-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
14466         PR target/81193
14467         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
14468         provides the hardware capability bits, define the macro
14469         __BUILTIN_CPU_SUPPORTS__.
14470         * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
14471         if GLIBC does not provide the hardware capability bits.  Add a
14472         gcc_unreachable call if the built-in cpu function is neither
14473         __builtin_cpu_is nor __builtin_cpu_supports.
14474         (rs6000_get_function_versions_dispatcher): Change the warning
14475         that an old GLIBC is used which does not export the capability
14476         bits to be an error.
14477         * doc/extend.texi (target_clones attribute): Document the
14478         restriction that GLIBC 2.23 or newer is needed on the PowerPC.
14479         (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
14480         needed by __builtin_cpu_is and __builtin_cpu_supports.  Document
14481         the macros defined by GCC if the newer GLIBC is available.
14483 2017-07-12  Jeff Law  <law@redhat.com>
14485         * config/riscv/riscv.c: Remove unnecessary includes.  Reorder
14486         remaining includes slightly.
14487         * config/riscv/riscv-builtins.c: Include profile-count.h.
14489 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
14491         PR target/79883
14492         * config/avr/avr.c (avr_set_current_function): In diagnostic
14493         messages: Quote keywords and (parts of) identifiers.
14494         [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
14495         "INTERUPT".
14497 2017-07-12  Carl Love  <cel@us.ibm.com>
14499         * config/rs6000/rs6000-c.c: Add support for built-in functions
14500         vector bool char vec_revb (vector bool char);
14501         vector bool short vec_revb (vector short char);
14502         vector bool int vec_revb (vector bool int);
14503         vector bool long long vec_revb (vector bool long long);
14504         * doc/extend.texi: Update the built-in documentation file for the
14505         new built-in functions.
14507 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14509         * config/s390/s390.md: Remove movcc splitter.
14511 2017-07-12  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14513         * config/s390/s390.c (s390_rtx_costs): Return proper costs for
14514         load/store on condition.
14516 2017-07-12  Georg-Johann Lay  <avr@gjlay.de>
14518         PR target/81407
14519         * config/avr/avr.c (avr_encode_section_info)
14520         [progmem && !TREE_READONLY]: Error if progmem object needs
14521         constructing.
14523 2017-07-11  Michael Collison  <michael.collison@arm.com>
14525         * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
14526         New pattern.
14528 2017-07-11  Carl Love  <cel@us.ibm.com>
14530         * config/rs6000/rs6000-c.c: Add support for builtins
14531         vector unsigned int vec_parity_lsbb (vector signed int);
14532         vector unsigned int vec_parity_lsbb (vector unsigned int);
14533         vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
14534         vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
14535         vector unsigned long long vec_parity_lsbb (vector signed long long);
14536         vector unsigned long long vec_parity_lsbb (vector unsigned long long);
14537         * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
14538         * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
14539         * doc/extend.texi: Update the built-in documentation file for the
14540         new built-in functions.
14542 2017-07-11  David Malcolm  <dmalcolm@redhat.com>
14544         * diagnostic-show-locus.c: Include "gcc-rich-location.h".
14545         (layout::m_primary_loc): New field.
14546         (layout::layout): Initialize new field.  Move location filtering
14547         logic from here to...
14548         (layout::maybe_add_location_range): ...this new method.  Add
14549         support for filtering to just the lines already specified by other
14550         locations.
14551         (layout::will_show_line_p): New method.
14552         (gcc_rich_location::add_location_if_nearby): New method.
14553         (selftest::test_add_location_if_nearby): New test function.
14554         (selftest::diagnostic_show_locus_c_tests): Call it.
14555         * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
14556         New method.
14558 2017-07-11  Tom de Vries  <tom@codesourcery.com>
14560         * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
14561         (bb_first_real_insn): New function.
14562         (nvptx_single): Add extra initialization of broadcasted condition
14563         variables.
14565 2017-07-11  Nathan Sidwell  <nathan@acm.org>
14567         * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
14569 2017-07-11  Georg-Johann Lay  <avr@gjlay.de>
14571         * doc/extend.texi (AVR Function Attributes): Remove weblink to
14572         Binutils doc as TEXI will mess them up.
14573         * doc/invoke.texi (AVR Options): Same here.
14575 2017-07-11  Daniel Cederman  <cederman@gaisler.com>
14577         * config/sparc/sparc.opt (mfix-ut700): New option.
14578         (mfix-gr712rc): Likewise.
14579         (sparc_fix_b2bst): New variable.
14580         * doc/invoke.texi (SPARC options): Document them.
14581         (ARM options): Fix warnings.
14582         * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
14583         instructions to prevent sequences that can trigger the store-store
14584         errata for certain LEON3FT processors.
14585         (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
14586         (sparc_option_override): Set sparc_fix_b2bst appropriately.
14587         * config/sparc/sparc.md (fix_b2bst): New attribute.
14588         (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
14590 2017-07-10  Uros Bizjak  <ubizjak@gmail.com>
14592         PR target/81375
14593         * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
14594         (rcpps): Ditto.
14595         (*rsqrtsf2_sse): Ditto.
14596         (rsqrtsf2): Ditto.
14597         (div<mode>3): Macroize insn from divdf3 and divsf3
14598         using MODEF mode iterator.
14600 2017-07-10  Martin Sebor  <msebor@redhat.com>
14602         PR tree-optimization/80397
14603         * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
14604         instead of testing for equality to INTEGER_TYPE.
14606 2017-07-10  Vineet Gupta <vgupta@synopsys.com>
14608         * config.gcc: Remove uclibc from arc target spec.
14610 2017-07-10  Claudiu Zissulescu  <claziss@synopsys.com>
14612         * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
14614 2017-07-07  Jan Hubicka  <hubicka@ucw.cz>
14616         PR lto/80838
14617         * lto-wrapper.c (remove_option): New function.
14618         (merge_and_complain): Merge PIC/PIE options more realistically.
14620 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
14622         Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
14624         PR target/20296
14625         PR target/81268
14626         * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
14627         (HAVE_AS_AVR_MGCCISR_OPTION):  If so, AC_DEFINE it.
14628         * config.in: Regenerate.
14629         * configure: Regenerate.
14630         * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
14631         * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
14632         * config/avr/avr.opt (-mgas-isr-prologues): New option and...
14633         (TARGET_GASISR_PROLOGUES): ...target mask.
14634         * common/config/avr/avr-common.c
14635         (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
14636         Set -mgas-isr-prologues.
14637         * config/avr/avr-passes.def (avr_pass_pre_proep): Add
14638         INSERT_PASS_BEFORE for it.
14639         * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
14640         * config/avr/avr.c (avr_option_override)
14641         [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
14642         (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
14643         (avr_attribute_table) <no_gccisr>: Add new function attribute.
14644         (avr_set_current_function) <is_no_gccisr>: Init machine field.
14645         (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
14646         and rtl_opt_pass.
14647         (make_avr_pass_pre_proep): New function.
14648         (emit_push_sfr) <treg>: Add argument to function and use it
14649         instead of TMP_REG.
14650         (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
14651         and set machine->gasisr.yes.
14652         (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
14653         (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
14654         __gcc_isr.n_pushed to .L__stack_usage.
14655         (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
14656         (avr_asm_final_postscan_insn): ...this new static function.
14657         * config/avr/avr.h (machine_function)
14658         <is_no_gccisr, use_L__stack_usage>: New fields.
14659         <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
14660         * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
14661         (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
14662         (gasisr, *gasisr): New expander and insn.
14663         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
14664         [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
14665         * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
14667 2017-07-10  Richard Earnshaw  <rearnsha@arm.com>
14669         * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
14670         in quoted strings.
14672 2017-07-10  Georg-Johann Lay  <avr@gjlay.de>
14674         Move jump-tables out of .text again.
14676         PR target/81075
14677         * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
14678         (ASM_OUTPUT_ADDR_VEC): New function.
14679         (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
14680         (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
14681         INSN_ADDRESSes as asm comment.
14682         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
14683         (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
14684         (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
14685         * config/avr/avr.md (*tablejump): Adjust comment.
14686         * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
14687         * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
14688         New detail.
14689         * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
14690         (avr_output_addr_vec): New proto.
14691         (avr_log_t) <insn_addresses>: New field.
14693 2017-07-09  H.J. Lu  <hongjiu.lu@intel.com>
14695         PR target/81313
14696         * config/i386/i386.c (ix86_function_arg_advance): Set
14697         outgoing_args_on_stack to true if there are outgoing arguments
14698         on stack.
14699         (ix86_function_arg): Likewise.
14700         (ix86_get_drap_rtx): Use DRAP only if there are outgoing
14701         arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
14702         * config/i386/i386.h (machine_function): Add
14703         outgoing_args_on_stack.
14705 2017-07-09  Krister Walfridsson  <krister.walfridsson@gmail.com>
14707         * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
14708         supporting pthreds.
14709         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
14711 2017-07-08  Richard Sandiford  <richard.sandiford@linaro.org>
14713         * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
14714         (REAL_H): Remove $(MACHMODE_H).
14715         (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
14716         double-int.h.
14717         (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
14718         $(MACHMODE_H) and double-int.h.
14719         (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
14720         $(MACHMODE_H).
14721         (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
14722         double-int.h.
14724 2017-07-07  Andrew Pinski  <apinski@cavium.com>
14726         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
14727         prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
14729 2017-07-07  Michael Meissner  <meissner@linux.vnet.ibm.com>
14731         * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
14732         Add warning if GCC was not configured to link against a GLIBC that
14733         exports the hardware capability bits.
14734         (make_resolver_func): Make resolver function private and not a
14735         COMDAT function.  Create the name with clone_function_name instead
14736         of make_unique_name.
14738         PR target/81348
14739         * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
14740         correct operand in doing the split.
14742 2017-07-07 Carl Love  <cel@us.ibm.com>
14744         * config/rs6000/rs6000-c: Add support for built-in function
14745         vector unsigned short vec_pack_to_short_fp32 (vector float,
14746                                                       vector float).
14747         * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
14748         BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
14749         * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
14750         * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
14751         (convert_4f32_8i16): Add define_expand.
14752         * doc/extend.texi: Update the built-in documentation file for the
14753         new built-in function.
14755 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14757         * config/sparc/m8.md: New file.
14758         * config/sparc/sparc.md: Include m8.md.
14760 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14762         * config/sparc/sparc.opt: New option -mvis4b.
14763         * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
14764         (sparc_option_override): Handle VIS4B.
14765         (enum sparc_builtins): Define
14766         SPARC_BUILTIN_DICTUNPACK{8,16,32},
14767         SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
14768         SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
14769         SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
14770         SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
14771         (check_constant_argument): New function.
14772         (sparc_vis_init_builtins): Define builtins
14773         __builtin_vis_dictunpack{8,16,32},
14774         __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
14775         __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
14776         __builtin_vis_fpcmpde{8,16,32}shl and
14777         __builtin_vis_fpcmpur{8,16,32}shl.
14778         (sparc_expand_builtin): Check that the constant operands to
14779         __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
14780         constant and in range.
14781         * config/sparc/sparc-c.c (sparc_target_macros): Handle
14782         TARGET_VIS4B.
14783         * config/sparc/sparc.h (SPARC_IMM2_P): Define.
14784         (SPARC_IMM5_P): Likewise.
14785         * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
14786         (enabled): Handle vis4b.
14787         (UNSPEC_DICTUNPACK): New unspec.
14788         (UNSPEC_FPCMPSHL): Likewise.
14789         (UNSPEC_FPUCMPSHL): Likewise.
14790         (UNSPEC_FPCMPDESHL): Likewise.
14791         (UNSPEC_FPCMPURSHL): Likewise.
14792         (cpu_feature): New CPU feature `vis4b'.
14793         (dictunpack{8,16,32}): New insns.
14794         (FPCSMODE): New mode iterator.
14795         (fpcscond): New code iterator.
14796         (fpcsucond): Likewise.
14797         (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
14798         (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
14799         (fpcmpde{8,16,32}{si,di}shl): Likewise.
14800         (fpcmpur{8,16,32}{si,di}shl): Likewise.
14801         * config/sparc/constraints.md: Define constraints `q' for unsigned
14802         2-bit integer constants and `t' for unsigned 5-bit integer
14803         constants.
14804         * config/sparc/predicates.md (imm5_operand_dictunpack8): New
14805         predicate.
14806         (imm5_operand_dictunpack16): Likewise.
14807         (imm5_operand_dictunpack32): Likewise.
14808         (imm2_operand): Likewise.
14809         * doc/invoke.texi (SPARC Options): Document -mvis4b.
14810         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
14811         ditunpack* and fpcmp*shl builtins.
14813 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14815         * config.gcc: Handle m8 in --with-{cpu,tune} options.
14816         * config.in: Add HAVE_AS_SPARC6 define.
14817         * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
14818         M8.
14819         * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
14820         TARGET_CPU_m8.
14821         (ASM_CPU32_DEFAUILT_SPEC): Likewise.
14822         (CPP_CPU_SPEC): Handle m8.
14823         (ASM_CPU_SPEC): Likewise.
14824         * config/sparc/sparc-opts.h (enum processor_type): Add
14825         PROCESSOR_M8.
14826         * config/sparc/sparc.c (m8_costs): New struct.
14827         (sparc_option_override): Handle TARGET_CPU_m8.
14828         (sparc32_initialize_trampoline): Likewise.
14829         (sparc64_initialize_trampoline): Likewise.
14830         (sparc_issue_rate): Likewise.
14831         (sparc_register_move_cost): Likewise.
14832         * config/sparc/sparc.h (TARGET_CPU_m8): Define.
14833         (CPP_CPU64_DEFAULT_SPEC): Define for M8.
14834         (ASM_CPU64_DEFAULT_SPEC): Likewise.
14835         (CPP_CPU_SPEC): Handle M8.
14836         (ASM_CPU_SPEC): Likewise.
14837         (AS_M8_FLAG): Define.
14838         * config/sparc/sparc.md: Add m8 to the cpu attribute.
14839         * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
14840         * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
14841         M8 instructions.
14842         * configure: Regenerate.
14843         * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
14844         -mtune=m8.
14846 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14848         * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
14849         subtypes.
14850         * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
14851         ("*movdi_insn_sp32"): Do not set v3pipe.
14852         ("*movsi_insn"): Likewise.
14853         ("*movdi_insn_sp64"): Likewise.
14854         ("*movsf_insn"): Likewise.
14855         ("*movdf_insn_sp32"): Likewise.
14856         ("*movdf_insn_sp64"): Likewise.
14857         ("*zero_extendsidi2_insn_sp64"): Likewise.
14858         ("*sign_extendsidi2_insn"): Likewise.
14859         ("*mov<VM32:mode>_insn"): Likewise.
14860         ("*mov<VM64:mode>_insn_sp64"): Likewise.
14861         ("*mov<VM64:mode>_insn_sp32"): Likewise.
14862         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
14863         ("<vlop:code><VL:mode>3"): Likewise.
14864         ("*not_<vlop:code><VL:mode>3"): Likewise.
14865         ("*nand<VL:mode>_vis"): Likewise.
14866         ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
14867         ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
14868         ("one_cmpl<VL:mode>2"): Likewise.
14869         ("faligndata<VM64:mode>_vis"): Likewise.
14870         ("alignaddrsi_vis"): Likewise.
14871         ("alignaddrdi_vis"): Likweise.
14872         ("alignaddrlsi_vis"): Likewise.
14873         ("alignaddrldi_vis"): Likewise.
14874         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
14875         ("bmaskdi_vis"): Likewise.
14876         ("bmasksi_vis"): Likewise.
14877         ("bshuffle<VM64:mode>_vis"): Likewise.
14878         ("cmask8<P:mode>_vis"): Likewise.
14879         ("cmask16<P:mode>_vis"): Likewise.
14880         ("cmask32<P:mode>_vis"): Likewise.
14881         ("pdistn<P:mode>_vis"): Likewise.
14882         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
14884 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14886         * config/sparc/sparc.md ("subtype"): New insn attribute.
14887         ("*wrgsr_sp64"): Set insn subtype.
14888         ("*rdgsr_sp64"): Likewise.
14889         ("alignaddrsi_vis"): Likewise.
14890         ("alignaddrdi_vis"): Likewise.
14891         ("alignaddrlsi_vis"): Likewise.
14892         ("alignaddrldi_vis"): Likewise.
14893         ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
14894         ("fexpand_vis"): Likewise.
14895         ("fpmerge_vis"): Likewise.
14896         ("faligndata<VM64:mode>_vis"): Likewise.
14897         ("bshuffle<VM64:mode>_vis"): Likewise.
14898         ("cmask8<P:mode>_vis"): Likewise.
14899         ("cmask16<P:mode>_vis"): Likewise.
14900         ("cmask32<P:mode>_vis"): Likewise.
14901         ("fchksm16_vis"): Likewise.
14902         ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
14903         ("fmean16_vis"): Likewise.
14904         ("fp<plusminus_insn>64_vis"): Likewise.
14905         ("<plusminus_insn>v8qi3"): Likewise.
14906         ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
14907         ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
14908         ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
14909         ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
14910         ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
14911         ("*movqi_insn"): Likewise.
14912         ("*movhi_insn"): Likewise.
14913         ("*movsi_insn"): Likewise.
14914         ("movsi_pic_gotdata_op"): Likewise.
14915         ("*movdi_insn_sp32"): Likewise.
14916         ("*movdi_insn_sp64"): Likewise.
14917         ("movdi_pic_gotdata_op"): Likewise.
14918         ("*movsf_insn"): Likewise.
14919         ("*movdf_insn_sp32"): Likewise.
14920         ("*movdf_insn_sp64"): Likewise.
14921         ("*zero_extendhisi2_insn"): Likewise.
14922         ("*zero_extendqihi2_insn"): Likewise.
14923         ("*zero_extendqisi2_insn"): Likewise.
14924         ("*zero_extendqidi2_insn"): Likewise.
14925         ("*zero_extendhidi2_insn"): Likewise.
14926         ("*zero_extendsidi2_insn_sp64"): Likewise.
14927         ("ldfsr"): Likewise.
14928         ("prefetch_64"): Likewise.
14929         ("prefetch_32"): Likewise.
14930         ("tie_ld32"): Likewise.
14931         ("tie_ld64"): Likewise.
14932         ("*tldo_ldub_sp32"): Likewise.
14933         ("*tldo_ldub1_sp32"): Likewise.
14934         ("*tldo_ldub2_sp32"): Likewise.
14935         ("*tldo_ldub_sp64"): Likewise.
14936         ("*tldo_ldub1_sp64"): Likewise.
14937         ("*tldo_ldub2_sp64"): Likewise.
14938         ("*tldo_ldub3_sp64"): Likewise.
14939         ("*tldo_lduh_sp32"): Likewise.
14940         ("*tldo_lduh1_sp32"): Likewise.
14941         ("*tldo_lduh_sp64"): Likewise.
14942         ("*tldo_lduh1_sp64"): Likewise.
14943         ("*tldo_lduh2_sp64"): Likewise.
14944         ("*tldo_lduw_sp32"): Likewise.
14945         ("*tldo_lduw_sp64"): Likewise.
14946         ("*tldo_lduw1_sp64"): Likewise.
14947         ("*tldo_ldx_sp64"): Likewise.
14948         ("*mov<VM32:mode>_insn"): Likewise.
14949         ("*mov<VM64:mode>_insn_sp64"): Likewise.
14950         ("*mov<VM64:mode>_insn_sp32"): Likewise.
14952 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14954         * config/sparc/sparc.md ("type"): New insn type viscmp.
14955         ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
14956         viscmp.
14957         ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
14958         ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
14959         ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
14960         * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
14961         viscmp.
14962         ("n7_vis_logical_11cycle"): Likewise.
14963         * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
14964         * config/sparc/niagara2.md ("niag3_vis": Likewise.
14965         * config/sparc/niagara.md ("niag_vis"): Likewise.
14966         * config/sparc/ultra3.md ("us3_fga"): Likewise.
14967         * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
14969 2017-07-07  Jose E. Marchesi  <jose.marchesi@oracle.com>
14971         * config/sparc/sparc.md: New instruction type `bmask'.
14972         (bmaskdi_vis): Use the `bmask' type.
14973         (bmasksi_vis): Likewise.
14974         * config/sparc/ultra3.md (us3_array): Likewise.
14975         * config/sparc/niagara7.md (n7_array): Likewise.
14976         * config/sparc/niagara4.md (n4_array): Likewise.
14977         * config/sparc/niagara2.md (niag2_vis): Likewise.
14978         (niag3_vis): Likewise.
14979         * config/sparc/niagara.md (niag_vis): Likewise.
14981 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
14983         * ipa-comdats.c: Remove optimize check from gate.
14984         * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
14985         for functions not optimized.
14986         (ipa_fn_summary_read): Skip optimize check.
14987         (ipa_fn_summary_write): Likewise.
14988         * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
14989         is optimized.
14990         * ipa-inline.c (can_inline_edge_p): Not optimized functions are
14991         uninlinable.
14992         (can_inline_edge_p): Check flag_pcc_struct_return for match.
14993         (check_callers): Give up on caller which is not optimized.
14994         (inline_small_functions): Likewise.
14995         (ipa_inline): Do not give up when not optimizing.
14996         * ipa-visbility.c (function_and_variable_visibility): Do not optimize
14997         away unoptimizes cdtors.
14998         (whole_program_function_and_variable_visibility): Do
14999         ipa_discover_readonly_nonaddressable_vars in LTO mode.
15000         * ipa.c (process_references): Do not check optimize.
15001         (symbol_table::remove_unreachable_nodes): Update optimize check.
15002         (set_writeonly_bit): Update optimize check.
15003         (pass_ipa_cdtor_merge::gate): Do not check optimize.
15004         (pass_ipa_single_use::gate): Remove.
15006 2017-07-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
15008         * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
15009         insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
15010         rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
15011         mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
15012         permute_load, permute_store, adjust_extract, adjust_splat,
15013         adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
15014         replace_swap_with_copy, dump_swap_insn_table,
15015         alignment_with_canonical_addr, alignment_mask, find_alignment_op,
15016         recombine_lvx_pattern, recombine_stvx_pattern,
15017         recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
15018         make_pass_analyze_swaps): Move all code related to p8 swap optimizations
15019         to file rs6000-p8swap.c.
15020         * config/rs6000/rs6000-p8swap.c: New file.
15021         * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
15022         * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
15023         and rs6000*-*-* targets.
15025 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
15027         * Makefile.in (selftest): Remove dependency on s-selftest-c++.
15029 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
15031         * lto-wrapper.c (merge_and_complain): Do not merge
15032         fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
15033         fsigned_zeros, ftrapping_math, fwrapv.
15034         (append_compiler_options): Do not track these options.
15035         (append_linker_options): Likewie
15037 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
15039         * cgraphunit.c (cgraph_node::finalize_function): When
15040         !flag_toplevel_reorde set no_reorder flag.
15041         (varpool_node::finalize_decl): Likewise.
15042         (symbol_table::compile): Drop no toplevel reorder path.
15044 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
15046         * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
15047         edges; zero probability is not better than uninitialized.
15049 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
15051         * asan.h (asan_sanitize_allocas_p): Declare.
15052         * asan.c (asan_sanitize_allocas_p): New function.
15053         (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
15054         (handle_builtin_alloca): Likewise.
15055         * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
15056         if !asan_sanitize_allocas_p.
15057         * params.def (asan-instrument-allocas): Add new option.
15058         * params.h (ASAN_PROTECT_ALLOCAS): Define.
15059         * opts.c (common_handle_option): Disable allocas sanitization for
15060         KASan by default.
15062 2017-07-06  Maxim Ostapenko  <m.ostapenko@samsung.com>
15064         * asan.c: Include gimple-fold.h.
15065         (get_last_alloca_addr): New function.
15066         (handle_builtin_stackrestore): Likewise.
15067         (handle_builtin_alloca): Likewise.
15068         (asan_emit_allocas_unpoison): Likewise.
15069         (get_mem_refs_of_builtin_call): Add new parameter, remove const
15070         quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
15071         BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
15072         (instrument_builtin_call): Pass gimple iterator to
15073         get_mem_refs_of_builtin_call.
15074         (last_alloca_addr): New global.
15075         * asan.h (asan_emit_allocas_unpoison): Declare.
15076         * builtins.c (expand_asan_emit_allocas_unpoison): New function.
15077         (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
15078         * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
15079         if function calls alloca.
15080         * gimple-fold.c (replace_call_with_value): Remove static keyword.
15081         * gimple-fold.h (replace_call_with_value): Declare.
15082         * internal-fn.c: Include asan.h.
15083         * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
15084         BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
15086 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
15088         * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
15089         (C_SELFTEST_FLAGS): New.
15090         (CPP_SELFTEST_FLAGS): New.
15091         (SELFTEST_DEPS): New, from deps of s-selftest.
15092         (C_SELFTEST_DEPS): New, from deps of s-selftest.
15093         (CPP_SELFTEST_DEPS): New.
15094         (selftest): Add dependency on s-selftest-c++.
15095         (s-selftest): Rename to...
15096         (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
15097         and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
15098         than SELFTEST_FLAGS.
15099         (selftest-gdb): Rename to...
15100         (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
15101         C_SELFTEST_FLAGS.
15102         (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
15103         (selftest-valgrind): Rename to...
15104         (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
15105         C_SELFTEST_FLAGS.
15106         (selftest-valgrind): Reintroduce as an alias for
15107         selftest-c-valgrind.
15108         (s-selftest-c++): New.
15109         (selftest-c++-gdb): New.
15110         (selftest-c++-valgrind): New.
15112 2017-07-06  Olivier Hainque  <hainque@adacore.com>
15114         * gcc.c (process_command): When deciding if undefined variables
15115         should be ignored when processing specs, accept "gcc -v" as well.
15117 2017-07-06  Jan Hubicka  <hubicka@ucw.cz>
15119         * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
15120         afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
15122 2017-07-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15124         * config/arm/arm-cpus.in (armv8-r): Add new entry.
15125         * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
15126         * config/arm/arm-tables.opt: Regenerate.
15127         * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
15128         enumerator.
15129         * doc/invoke.texi: Mention -march=armv8-r and its extensions.
15131 2017-07-06  Carl Love  <cel@us.ibm.com>
15133         * ChangeLog: Clean up from mid air collision
15135 2017-07-06  Carl Love  <cel@us.ibm.com>
15137         * config/rs6000/rs6000-c.c: Add support for built-in functions
15138         vector signed int vec_subc (vector signed int, vector signed int);
15139         vector signed __int128 vec_subc (vector signed __int128,
15140                                          vector signed __int128);
15141         vector unsigned __int128 vec_subc (vector unsigned __int128,
15142                                            vector unsigned __int128);
15143         vector signed int vec_sube (vector signed int, vector signed int,
15144                                     vector signed int);
15145         vector unsigned int vec_sube (vector unsigned int,
15146                                       vector unsigned int,
15147                                       vector unsigned int);
15148         vector signed __int128 vec_sube (vector signed __int128,
15149                                          vector signed __int128,
15150                                          vector signed__int128);
15151         vector unsigned __int128 vec_sube (vector unsigned __int128,
15152                                            vector unsigned __int128,
15153                                            vector unsigned __int128);
15154         vector signed int vec_subec (vector signed int, vector signed int,
15155                                      vector signed int);
15156         vector unsigned int vec_subec (vector unsigned int,
15157                                        vector unsigned int,
15158                                        vector unsigned int);
15159         vector signed __int128 vec_subec (vector signed __int128,
15160                                           vector signed __int128,
15161                                           vector signed__int128);
15162         vector unsigned __int128 vec_subec (vector unsigned __int128,
15163                                             vector unsigned __int128,
15164                                             vector unsigned __int128);
15165         * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
15166         ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
15167         * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
15168         BU_ALTIVEC_OVERLOAD_X definitions.
15169         * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
15170         * doc/extend.texi: Update the built-in documentation file for the new
15171         built-in functions.
15173 2017-07-06  David Malcolm  <dmalcolm@redhat.com>
15175         PR c++/79300
15176         * diagnostic-show-locus.c (layout::layout): Use start and finish
15177         spelling location for the start and finish of each range.
15178         * genmatch.c (linemap_client_expand_location_to_spelling_point):
15179         Add unused aspect param.
15180         * input.c (expand_location_1): Add "aspect" param, and use it
15181         to access the correct part of the location.
15182         (expand_location): Pass LOCATION_ASPECT_CARET to new param of
15183         expand_location_1.
15184         (expand_location_to_spelling_point): Likewise.
15185         (linemap_client_expand_location_to_spelling_point): Add "aspect"
15186         param, and pass it to expand_location_1.
15188 2017-07-06  Sebastian Peryt  <sebastian.peryt@intel.com>
15190         * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
15191         _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
15192         _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
15193         _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
15194         _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
15195         _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
15196         _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
15197         _mm_maskz_getmant_ss): New intrinsics.
15198         (__builtin_ia32_getexpss128_mask): Changed to ...
15199         __builtin_ia32_getexpss128_round ... this.
15200         (__builtin_ia32_getexpsd128_mask): Changed to ...
15201         __builtin_ia32_getexpsd128_round ... this.
15202         * config/i386/i386-builtin-types.def
15203         ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
15204         (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
15205         * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
15206         __builtin_ia32_getexpss_mask_round,     __builtin_ia32_getmantsd_mask_round,
15207         __builtin_ia32_getmantss_mask_round): New builtins.
15208         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
15209         V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
15210         (CODE_FOR_avx512f_vgetmantv2df_mask_round,
15211         CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
15212         * config/i386/sse.md
15213         (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
15214         avx512f_sgetexp<mode><mask_scalar_name>
15215         <round_saeonly_scalar_name> ... this.
15216         (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
15217         %0, %1, %2<round_saeonly_op3>}): Changed to ...
15218         vgetexp<ssescalarmodesuffix>
15219         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15220         %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
15221         (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
15222         avx512f_vgetmant<mode><mask_scalar_name>
15223         <round_saeonly_scalar_name> ... this.
15224         (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
15225         %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
15226         vgetmant<ssescalarmodesuffix>
15227         \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
15228         %0<mask_scalar_operand4>, %1, %2
15229         <round_saeonly_scalar_mask_op4>, %3} ... this.
15230         * config/i386/subst.md (mask_scalar_operand4,
15231         round_saeonly_scalar_mask_operand4,     round_saeonly_scalar_mask_op4,
15232         round_saeonly_scalar_nimm_predicate): New subst attributes.
15234 2017-07-06  Julia Koval  <julia.koval@intel.com>
15236         * config/i386/i386.c (ix86_erase_embedded_rounding):
15237         Remove code for old rounding pattern.
15239 2017-07-06  Richard Earnshaw  <rearnsha@arm.com>
15241         * config/arm/t-arm (GTM_H): Add arm-cpu.h.
15243 2017-07-06  Christophe Lyon  <christophe.lyon@linaro.org>
15245         * doc/sourcebuild.texi (Test Directives, Variants of
15246         dg-require-support): Add documentation for dg-require-stack-check.
15248 2017-07-05  Sebastian Peryt  <sebastian.peryt@intel.com>
15250         * config/i386/subst.md (mask_scalar, round_scalar,
15251         round_saeonly_scalar): New meta-templates.
15252         (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
15253         round_scalar_mask_operand3, round_scalar_mask_op3,
15254         round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
15255         round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
15256         round_saeonly_scalar_constraint,
15257         round_saeonly_scalar_prefix): New subst attribute.
15258         * config/i386/sse.md
15259         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
15260         <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
15261         <round_scalar_name> ... this.
15262         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
15263         <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
15264         <round_scalar_name> ... this.
15265         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
15266         <sse>_vm<code><mode>3<mask_scalar_name>
15267         <round_saeonly_scalar_name> ... this.
15268         (v<plusminus_mnemonic><ssescalarmodesuffix>
15269         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
15270         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
15271         v<plusminus_mnemonic><ssescalarmodesuffix>
15272         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15273         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
15274         (v<multdiv_mnemonic><ssescalarmodesuffix>
15275         \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
15276         %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
15277         v<multdiv_mnemonic><ssescalarmodesuffix>
15278         \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15279         %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
15280         (v<maxmin_float><ssescalarmodesuffix>
15281         \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
15282         %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
15283         v<maxmin_float><ssescalarmodesuffix>
15284         \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15285         %0<mask_scalar_operand3>, %1, %<iptr>2
15286         <round_saeonly_scalar_mask_op3>} ... this.
15288 2017-07-05  Richard Earnshaw  <rearnsha@arm.com>
15290         * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
15291         (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
15293 2017-07-05  Richard Sandiford  <richard.sandiford@linaro.org>
15294             Alan Hayward  <alan.hayward@arm.com>
15295             David Sherwood  <david.sherwood@arm.com>
15297         * combine.c (simplify_if_then_else): Remove "enum" before
15298         "machine_mode".
15299         * compare-elim.c (can_eliminate_compare): Likewise.
15300         * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
15301         Likewise.
15302         (aarch64_lookup_simd_builtin_type): Likewise.
15303         (aarch64_simd_builtin_type): Likewise.
15304         (aarch64_init_simd_builtin_types): Likewise.
15305         (aarch64_simd_expand_args): Likewise.
15306         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
15307         Likewise.
15308         (aarch64_reverse_mask): Likewise.
15309         (aarch64_simd_emit_reg_reg_move): Likewise.
15310         (aarch64_gen_adjusted_ldpstp): Likewise.
15311         (aarch64_ccmp_mode_to_code): Likewise.
15312         (aarch64_operands_ok_for_ldpstp): Likewise.
15313         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
15314         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
15315         Likewise.
15316         (aarch64_min_divisions_for_recip_mul): Likewise.
15317         (aarch64_reassociation_width): Likewise.
15318         (aarch64_get_condition_code_1): Likewise.
15319         (aarch64_simd_emit_reg_reg_move): Likewise.
15320         (aarch64_simd_attr_length_rglist): Likewise.
15321         (aarch64_reverse_mask): Likewise.
15322         (aarch64_operands_ok_for_ldpstp): Likewise.
15323         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
15324         (aarch64_gen_adjusted_ldpstp): Likewise.
15325         * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
15326         Likewise.
15327         * config/arc/arc.c (legitimate_offset_address_p): Likewise.
15328         * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
15329         (arm_lookup_simd_builtin_type): Likewise.
15330         (arm_simd_builtin_type): Likewise.
15331         (arm_init_simd_builtin_types): Likewise.
15332         (arm_expand_builtin_args): Likewise.
15333         * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
15334         * config/ft32/ft32.c (ft32_libcall_value): Likewise.
15335         (ft32_setup_incoming_varargs): Likewise.
15336         (ft32_function_arg): Likewise.
15337         (ft32_function_arg_advance): Likewise.
15338         (ft32_pass_by_reference): Likewise.
15339         (ft32_arg_partial_bytes): Likewise.
15340         (ft32_valid_pointer_mode): Likewise.
15341         (ft32_addr_space_pointer_mode): Likewise.
15342         (ft32_addr_space_legitimate_address_p): Likewise.
15343         * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
15344         Likewise.
15345         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15346         (ix86_emit_outlined_ms2sysv_restore): Likewise.
15347         (iamcu_alignment): Likewise.
15348         (canonicalize_vector_int_perm): Likewise.
15349         (ix86_noce_conversion_profitable_p): Likewise.
15350         (ix86_mpx_bound_mode): Likewise.
15351         (ix86_operands_ok_for_move_multiple): Likewise.
15352         * config/microblaze/microblaze-protos.h
15353         (microblaze_expand_conditional_branch_reg): Likewise.
15354         * config/microblaze/microblaze.c
15355         (microblaze_expand_conditional_branch_reg): Likewise.
15356         * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
15357         Likewise.
15358         (rs6000_reassociation_width): Likewise.
15359         (rs6000_invalid_binary_op): Likewise.
15360         (fusion_p9_p): Likewise.
15361         (emit_fusion_p9_load): Likewise.
15362         (emit_fusion_p9_store): Likewise.
15363         * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
15364         Likewise.
15365         (riscv_hard_regno_mode_ok_p): Likewise.
15366         (riscv_address_insns): Likewise.
15367         (riscv_split_symbol): Likewise.
15368         (riscv_legitimize_move): Likewise.
15369         (riscv_function_value): Likewise.
15370         (riscv_hard_regno_nregs): Likewise.
15371         (riscv_expand_builtin): Likewise.
15372         * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
15373         (riscv_build_integer): Likewise.
15374         (riscv_split_integer): Likewise.
15375         (riscv_legitimate_constant_p): Likewise.
15376         (riscv_cannot_force_const_mem): Likewise.
15377         (riscv_regno_mode_ok_for_base_p): Likewise.
15378         (riscv_valid_base_register_p): Likewise.
15379         (riscv_valid_offset_p): Likewise.
15380         (riscv_valid_lo_sum_p): Likewise.
15381         (riscv_classify_address): Likewise.
15382         (riscv_legitimate_address_p): Likewise.
15383         (riscv_address_insns): Likewise.
15384         (riscv_load_store_insns): Likewise.
15385         (riscv_force_binary): Likewise.
15386         (riscv_split_symbol): Likewise.
15387         (riscv_force_address): Likewise.
15388         (riscv_legitimize_address): Likewise.
15389         (riscv_move_integer): Likewise.
15390         (riscv_legitimize_const_move): Likewise.
15391         (riscv_legitimize_move): Likewise.
15392         (riscv_address_cost): Likewise.
15393         (riscv_subword): Likewise.
15394         (riscv_output_move): Likewise.
15395         (riscv_canonicalize_int_order_test): Likewise.
15396         (riscv_emit_int_order_test): Likewise.
15397         (riscv_function_arg_boundary): Likewise.
15398         (riscv_pass_mode_in_fpr_p): Likewise.
15399         (riscv_pass_fpr_single): Likewise.
15400         (riscv_pass_fpr_pair): Likewise.
15401         (riscv_get_arg_info): Likewise.
15402         (riscv_function_arg): Likewise.
15403         (riscv_function_arg_advance): Likewise.
15404         (riscv_arg_partial_bytes): Likewise.
15405         (riscv_function_value): Likewise.
15406         (riscv_pass_by_reference): Likewise.
15407         (riscv_setup_incoming_varargs): Likewise.
15408         (riscv_print_operand): Likewise.
15409         (riscv_elf_select_rtx_section): Likewise.
15410         (riscv_save_restore_reg): Likewise.
15411         (riscv_for_each_saved_reg): Likewise.
15412         (riscv_register_move_cost): Likewise.
15413         (riscv_hard_regno_mode_ok_p): Likewise.
15414         (riscv_hard_regno_nregs): Likewise.
15415         (riscv_class_max_nregs): Likewise.
15416         (riscv_memory_move_cost): Likewise.
15417         * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
15418         * config/rl78/rl78.c (rl78_split_movsi): Likewise.
15419         (rl78_addr_space_address_mode): Likewise.
15420         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15421         Likewise.
15422         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
15423         (rs6000_reassociation_width): Likewise.
15424         (rs6000_invalid_binary_op): Likewise.
15425         (fusion_p9_p): Likewise.
15426         (emit_fusion_p9_load): Likewise.
15427         (emit_fusion_p9_store): Likewise.
15428         * config/visium/visium-protos.h (prepare_move_operands): Likewise.
15429         (ok_for_simple_move_operands): Likewise.
15430         (ok_for_simple_move_strict_operands): Likewise.
15431         (ok_for_simple_arith_logic_operands): Likewise.
15432         (visium_legitimize_reload_address): Likewise.
15433         (visium_select_cc_mode): Likewise.
15434         (output_cbranch): Likewise.
15435         (visium_split_double_move): Likewise.
15436         (visium_expand_copysign): Likewise.
15437         (visium_expand_int_cstore): Likewise.
15438         (visium_expand_fp_cstore): Likewise.
15439         * config/visium/visium.c (visium_pass_by_reference): Likewise.
15440         (visium_function_arg): Likewise.
15441         (visium_function_arg_advance): Likewise.
15442         (visium_libcall_value): Likewise.
15443         (visium_setup_incoming_varargs): Likewise.
15444         (visium_legitimate_constant_p): Likewise.
15445         (visium_legitimate_address_p): Likewise.
15446         (visium_legitimize_address): Likewise.
15447         (visium_secondary_reload): Likewise.
15448         (visium_register_move_cost): Likewise.
15449         (visium_memory_move_cost): Likewise.
15450         (prepare_move_operands): Likewise.
15451         (ok_for_simple_move_operands): Likewise.
15452         (ok_for_simple_move_strict_operands): Likewise.
15453         (ok_for_simple_arith_logic_operands): Likewise.
15454         (visium_function_value_1): Likewise.
15455         (rtx_ok_for_offset_p): Likewise.
15456         (visium_legitimize_reload_address): Likewise.
15457         (visium_split_double_move): Likewise.
15458         (visium_expand_copysign): Likewise.
15459         (visium_expand_int_cstore): Likewise.
15460         (visium_expand_fp_cstore): Likewise.
15461         (visium_split_cstore): Likewise.
15462         (visium_select_cc_mode): Likewise.
15463         (visium_split_cbranch): Likewise.
15464         (output_cbranch): Likewise.
15465         (visium_print_operand_address): Likewise.
15466         * expmed.c (flip_storage_order): Likewise.
15467         * expmed.h (emit_cstore): Likewise.
15468         (flip_storage_order): Likewise.
15469         * genrecog.c (validate_pattern): Likewise.
15470         * hsa-gen.c (gen_hsa_addr): Likewise.
15471         * internal-fn.c (expand_arith_overflow): Likewise.
15472         * ira-color.c (allocno_copy_cost_saving): Likewise.
15473         * lra-assigns.c (find_hard_regno_for_1): Likewise.
15474         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
15475         (process_invariant_for_inheritance): Likewise.
15476         * lra-eliminations.c (move_plus_up): Likewise.
15477         * omp-low.c (lower_oacc_reductions): Likewise.
15478         * simplify-rtx.c (simplify_subreg): Likewise.
15479         * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15480         (TARGET_CHKP_BOUND_MODE): Likewise..
15481         * targhooks.c (default_chkp_bound_mode): Likewise.
15482         (default_setup_incoming_vararg_bounds): Likewise.
15483         * targhooks.h (default_chkp_bound_mode): Likewise.
15484         (default_setup_incoming_vararg_bounds): Likewise.
15485         * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
15486         * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
15487         (have_whole_vector_shift): Likewise.
15488         * tree-vect-stmts.c (vectorizable_load): Likewise.
15489         * doc/tm.texi: Regenerate.
15491 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
15493         Graceful degrade if Binutils PR21472 is not available.
15495         PR target/81072
15496         * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
15497         .rodata in flash test fails.
15498         (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
15499         * confgure: Regenerate.
15500         * config.in: Regenerate.
15501         * config/avr/avr.c (avr_asm_named_section)
15502         [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
15503         __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
15504         (avr_asm_init_sections): Same.
15506 2017-07-05  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
15508         * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
15509         (fma<VH:mode>4_intrinsic): Likewise.
15510         (*fmsub<VCVTF:mode>4): Likewise.
15511         (*fmsub<VH:mode>4_intrinsic): Likewise.
15513 2017-07-05  Georg-Johann Lay  <avr@gjlay.de>
15515         PR target/81305
15516         * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
15517         Don't depend on "optimize > 0".
15518         (out_movhi_r_mr, out_movqi_mr_r): Same.
15519         (out_movhi_mr_r, out_movqi_r_mr): Same.
15520         (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
15521         io_address_operand on "optimize > 0".
15523 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15525         * tree-loop-distribution.c: Add general explanantion on the pass.
15526         (generate_loops_for_partition): Mark distributed loop.
15527         (pg_add_dependence_edges): New parameter.  Handle alias data
15528         dependence specially and record it in the parameter if asked.
15529         (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
15530         (init_partition_graph_vertices, add_partition_graph_edge): New.
15531         (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
15532         (free_partition_graph_vdata, build_partition_graph): New.
15533         (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
15534         (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
15535         (data_ref_segment_size, latch_dominated_by_data_ref): New.
15536         (compute_alias_check_pairs, version_loop_by_alias_check): New.
15537         (version_for_distribution_p, finalize_partitions): New.
15538         (distribute_loop): Handle alias data dependence specially.  Factor
15539         out loop fusion code as functions and call these functions.
15541 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15543         * tree-loop-distribution.c (classify_partition): New parameter and
15544         better handle reduction statement.
15545         (rdg_build_partitions): Revise comment.
15546         (distribute_loop): Compute statements in all partitions and pass it
15547         to classify_partition.
15549 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15551         * tree-loop-distribution.c (enum partition_type): New.
15552         (struct partition): New field type.
15553         (partition_merge_into): Add parameter.  Update partition type.
15554         (data_dep_in_cycle_p, update_type_for_merge): New functions.
15555         (build_rdg_partition_for_vertex): Compute partition type.
15556         (rdg_build_partitions): Dump partition type.
15557         (distribute_loop): Update calls to partition_merge_into.
15559 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15561         * tree-loop-distribution.c (struct ddr_hasher): New.
15562         (ddr_hasher::hash, ::equal, get_data_dependence): New function.
15563         (ddrs_table): New.
15564         (classify_partition): Call get_data_dependence.
15565         (pg_add_dependence_edges): Ditto.
15566         (distribute_loop): Release data dependence hash table.
15568 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15570         * tree-loop-distribution.c (ref_base_address): Delete.
15571         (similar_memory_accesses): Rename ...
15572         (share_memory_accesses): ... to this.  Check if partitions access
15573         the same memory reference.
15574         (distribute_loop): Call share_memory_accesses.
15576 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15578         * tree-loop-distribution.c (struct partition): New field recording
15579         its data reference.
15580         (partition_alloc, partition_free): Init and release data refs.
15581         (partition_merge_into): Merge data refs.
15582         (build_rdg_partition_for_vertex): Collect data refs for partition.
15583         (pg_add_dependence_edges): Change parameters from vector to bitmap.
15584         Update uses.
15585         (distribute_loop): Remve data refs from vertice data of partition
15586         graph.
15588 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15590         * tree-loop-distribution.c (params.h): Include header file.
15591         (MAX_DATAREFS_NUM, DR_INDEX): New macro.
15592         (datarefs_vec): New global var.
15593         (create_rdg_vertices): Use datarefs_vec directly.
15594         (free_rdg): Don't free data references.
15595         (build_rdg): Update use.  Don't free data references.
15596         (distribute_loop): Compute global variable for data references.
15597         Bail out if there are too many data references.
15599 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15601         * tree-loop-distribution.c (loop_nest): New global var.
15602         (build_rdg): Use loop directly, rather than loop nest.
15603         (pg_add_dependence_edges): Remove loop nest parameter.  Use global
15604         variable directly.
15605         (distribute_loop): Compute global variable loop nest.  Update use.
15607 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15609         * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
15610         (partition_merge_into): New parameter.  Dump reason for fusion.
15611         (distribute_loop): Update use of partition_merge_into.
15613 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15615         * tree-loop-distribution.c (bb_top_order_index): New.
15616         (bb_top_order_index_size, bb_top_order_cmp): New.
15617         (stmts_from_loop): Use topological order.
15618         (pass_loop_distribution::execute): Compute and release topological
15619         order for basic blocks.
15621 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15623         * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
15624         if no loops.
15626 2017-07-05  Bin Cheng  <bin.cheng@arm.com>
15628         * cfgloop.h (struct loop): Add comment.  New field orig_loop_num.
15629         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
15630         * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
15631         * internal-fn.def (LOOP_DIST_ALIAS): New.
15632         * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
15633         (fold_loop_internal_call): ... this.
15634         (vect_loop_dist_alias_call): New function.
15635         (set_uid_loop_bbs): Call fold_loop_internal_call.
15636         (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
15637         internal calls.
15639 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
15641         PR target/81300
15642         * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
15643         Require dead FLAGS_REG at the beginning of a peephole.
15645 2017-07-04  Uros Bizjak  <ubizjak@gmail.com>
15647         PR target/81294
15648         * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
15649         arguments in the call to __builtin_ia32_sbb_u32.
15650         (_subborrow_u64): Swap _X and _Y arguments in the call to
15651         __builtin_ia32_sbb_u64.
15653 2017-07-04  Jakub Jelinek  <jakub@redhat.com>
15655         PR debug/81278
15656         * tree-vrp.c (compare_assert_loc): Turn into a function template
15657         with stable template parameter.  Only test if a->e is NULL,
15658         !a->e == !b->e has been verified already.  Use e == NULL or
15659         e != NULL instead of e or ! e tests.  If stable is true, don't use
15660         iterative_hash_expr, on the other side allow a or b or both NULL
15661         and sort the NULLs last.
15662         (process_assert_insertions): Sort using compare_assert_loc<false>
15663         instead of compare_assert_loc, later sort using
15664         compare_assert_loc<true> before calling process_assert_insertions_for
15665         in a loop.  Use break instead of continue once seen NULL pointer.
15667 2017-07-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15669         * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
15670         Cortex-R7 and Cortex-R8 processors.
15672 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
15674         * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
15675         uninitialized while src is not.
15677 2017-07-04  Richard Earnshaw  <rearnsha@arm.com>
15679         * common/config/arm/arm-common.c: Adjust include path for
15680         arm-cpu-cdata.h
15681         * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
15682         (arm-cpu.h): Create in build directory.  Adjust dependency rules.
15683         (arm-cpu-data.h): Likewise.
15684         (arm-cpu-cdata.h): Likewise.
15685         * config/arm/arm-cpu.h: Delete.
15686         * config/arm/arm-cpu-cdata.h: Delete.
15687         * config/arm/arm-cpu-data.h: Delete.
15689 2017-07-04  James Greenhalgh  <james.greenhalgh@arm.com>
15691         * config/arm/arm-cpus.in (cortex-a55): New.
15692         (cortex-a75): Likewise.
15693         (cortex-a75.cortex-a55): Likewise.
15694         * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
15695         cortex-a75.
15696         * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
15697         * config/arm/arm-cpu-cdata.h: Regenerate.
15698         * config/arm/arm-cpu-data.h: Regenerate.
15699         * config/arm/arm-cpu.h: Regenerate.
15700         * config/arm/arm-tables.opt: Regenerate.
15701         * config/arm/arm-tune.md: Regenerate.
15703 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
15705         * haifa-sched.c (sched_create_recovery_edges): Update profile.
15707 2017-07-04  Jan Hubicka  <hubicka@ucw.cz>
15709         * bb-reorder.c (better_edge_p): Fix handling of uninitialized
15710         probability.
15712 2017-07-04  Richard Sandiford  <richard.sandiford@linaro.org>
15714         PR tree-optimization/81292
15715         * tree-ssa-strlen.c (handle_builtin_strlen): When setting
15716         full_string_p, also call adjust_related_strinfos if the adjustment
15717         is simple, otherwise invalidate related strinfos.
15719 2017-07-04  Martin Liska  <mliska@suse.cz>
15721         PR sanitizer/81040
15722         * sanopt.c (sanitize_rewrite_addressable_params): Mark the
15723         newly created variable as DECL_IGNORED_P.
15725 2017-07-04  Martin Liska  <mliska@suse.cz>
15727         PR ipa/81293
15728         * ipa-inline.c (inline_small_functions):
15729         Use xstrdup_for_dump.
15731 2017-07-04  Tom de Vries  <tom@codesourcery.com>
15733         * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
15735 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
15737         PR target/81033
15738         * config/darwin.c (darwin_function_switched_text_sections):
15739         Fix spaces.
15741 2017-07-03  Jan Hubicka  <hubicka@ucw.cz>
15743         * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
15745 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
15747         * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
15749 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15751         * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
15752         min_profitable_iters, and th as inclusive lower bounds.
15753         Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
15754         (vect_estimate_min_profitable_iters): Return inclusive lower bounds
15755         for min_profitable_iters and min_profitable_estimate.
15756         (vect_transform_loop): Treat th as an inclusive lower bound.
15757         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
15759 2017-07-03  Dominique d'Humieres  <dominiq@lps.ens.fr>
15761         PR target/81033
15762         * config/darwin.c (darwin_function_switched_text_sections):
15763         Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
15764         in two pieces, and suppress the use of buf.
15766 2017-07-03  Nathan Sidwell  <nathan@acm.org>
15768         * hash-table.h (hash_table_mod1): Fix indentation.
15770 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
15772         PR middle-end/81290
15773         * predict.c (force_edge_cold): Be more careful about propagation
15774         backward.
15775         * profile-count.h (profile_probability::guessed,
15776         profile_probability::fdo, profile_count::guessed, profile_count::fdo):
15777         New.
15778         * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
15780 2017-07-03  James Greenhalgh  <james.greenhalgh@arm.com>
15782         * doc/invoke.texi (rcpc architecture extension): Document it.
15784 2017-07-03  Richard Biener  <rguenther@suse.de>
15786         PR tree-optimization/60510
15787         * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
15788         the scalar reduction PHI and use it.
15789         (vectorizable_reduction): Properly guard the single_defuse_cycle
15790         path for non-SLP reduction chains where we cannot use it.
15791         Rework reduc_def/index and vector type deduction.  Rework
15792         vector operand gathering during reduction op code-gen.
15793         * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
15794         chains dissolve the chain and leave it to non-SLP reduction
15795         handling.
15797 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15799         * tree-data-ref.h (dr_alignment): Declare.
15800         * tree-data-ref.c (dr_alignment): New function.
15801         * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
15802         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
15803         set it.
15804         * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
15806 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15808         * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
15809         and base_misalignment fields.
15810         (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
15811         * tree-data-ref.c: Include builtins.h.
15812         (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
15813         * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
15814         (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
15815         * tree-vect-data-refs.c: Include tree-cfg.h.
15816         (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
15817         fields instead of calculating an alignment here.
15818         (vect_analyze_data_refs): Use dr_analyze_innermost.  Dump the new
15819         innermost_loop_behavior fields.
15821 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15823         * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
15824         field.
15825         (DR_STEP_ALIGNMENT): New macro.
15826         * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
15827         * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
15828         (create_data_ref): Print it.
15829         * tree-vect-stmts.c (vectorizable_load): Use the step alignment
15830         to tell whether the step preserves vector (mis)alignment.
15831         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
15832         Move the check for an integer step and generalise to all INTEGER_CST.
15833         (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
15834         Print the outer step alignment.
15836 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15838         * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
15839         with offset_alignment.
15840         (DR_ALIGNED_TO): Delete.
15841         (DR_OFFSET_ALIGNMENT): New macro.
15842         * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
15843         (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
15844         * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
15845         (create_data_ref): Likewise.
15846         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
15847         (vect_analyze_data_refs): Likewise.
15848         * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
15849         creating dummy innermost behavior.
15851 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15853         * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
15854         with a "innermost_loop_behavior *" and refeence tree.
15855         * tree-data-ref.c (dr_analyze_innermost): Likewise.
15856         (create_data_ref): Update call accordingly.
15857         * tree-predcom.c (find_looparound_phi): Likewise.
15859 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15861         * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
15862         fields with dr_wrt_vec_loop.
15863         (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
15864         (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
15865         (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
15866         (vect_dr_behavior): New function.
15867         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
15868         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
15869         vect_dr_behavior.  Use a step_preserves_misalignment_p boolean to
15870         track whether the step preserves the misalignment.
15871         (vect_create_addr_base_for_vector_ref): Remove loop parameter.
15872         Use vect_dr_behavior.
15873         (vect_setup_realignment): Update call accordingly.
15874         (vect_create_data_ref_ptr): Likewise.  Use vect_dr_behavior.
15875         * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
15876         call to vect_create_addr_base_for_vector_ref.
15877         (vect_create_cond_for_align_checks): Likewise.
15878         * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
15879         STMT_VINFO_DR_WRT_VEC_LOOP as a block.
15880         (vect_recog_mask_conversion_pattern): Likewise.
15881         * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
15882         (new_stmt_vec_info): Remove redundant zeroing.
15884 2017-07-03  Richard Earnshaw  <rearnsha@arm.com>
15886         * common/config/arm/arm-common.c (arm_be8_option): New function.
15887         * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
15888         (ISA_ARMv6): Add isa_bit_be8.
15889         * config/arm/arm.h (arm_be8_option): Add prototype.
15890         (BE8_SPEC_FUNCTION): New define.
15891         (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
15892         * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
15893         (mlittle-endian): Similarly.
15894         (mbe8, mbe32): New options.
15895         * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
15896         * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
15898 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
15900         * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
15902 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
15904         * tree-cfgcleanup.c (want_merge_blocks_p): New function.
15905         (cleanup_tree_cfg_bb): Use it.
15906         * profile-count.h (profile_count::of_for_merging, profile_count::merge):
15907         New functions.
15908         * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
15910 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
15912         PR bootstrap/81285
15913         * loop-doloop.c (add_test): Update profile.
15915 2017-07-03  Martin Liska  <mliska@suse.cz>
15917         PR sanitize/81040
15918         * sanopt.c (rewrite_usage_of_param): New function.
15919         (sanitize_rewrite_addressable_params): Likewise.
15920         (pass_sanopt::execute): Call rewrite_usage_of_param.
15922 2017-07-03  Richard Biener  <rguenther@suse.de>
15924         * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
15925         back to using VIEW_CONVERT_EXPR.
15927 2017-07-03  Martin Liska  <mliska@suse.cz>
15929         PR other/78366
15930         * doc/extend.texi: Document when a resolver function is
15931         generated for target_clones.
15933 2017-07-03  Martin Liska  <mliska@suse.cz>
15935         * asan.c (asan_emit_stack_protection): Unpoison just red zones
15936         and shadow memory of auto variables which are subject of
15937         use-after-scope sanitization.
15938         (asan_expand_mark_ifn): Add do set only when is_poison.
15940 2016-07-03  Richard Biener  <rguenther@suse.de>
15942         * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
15943         reduction PHIs.
15944         (vect_force_simple_reduction): Record reduction def -> phi mapping.
15945         (vectorizable_reduction): Perform reduction PHI creation when
15946         visiting a reduction PHI and adjust and simplify code generation
15947         phase of the reduction op.  Cache dts, use fold_binary, not fold_build2.
15948         (vect_transform_loop): Visit reduction PHIs.
15949         * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
15950         defs into the SLP tree.
15951         (vect_build_slp_tree): Reduction defs terminate the recursion.
15952         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
15953         of reduction defs.
15954         (vect_get_vec_defs_for_stmt_copy): Export.
15955         (vect_get_vec_defs): Likewise.
15956         * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
15957         purpose.
15958         (vect_get_vec_defs_for_stmt_copy): Declare.
15959         (vect_get_vec_defs): Likewise.
15961 2017-07-03  Richard Sandiford  <richard.sandiford@linaro.org>
15963         * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
15964         parameter with a "loop" parameter and use it instead of the
15965         loop containing DR_STMT.  Don't check simple_iv when doing
15966         BB analysis.  Describe the two analysis modes in the comment.
15968 2017-07-03  Tom de Vries  <tom@codesourcery.com>
15970         PR tree-optimization/69468
15971         * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
15972         (find_same_succ_bb): Handle ignore_edge_flags.
15974 2017-07-03  Tom de Vries  <tom@codesourcery.com>
15976         PR tree-optimization/81192
15977         * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
15978         hash.
15979         (same_succ::equal): Don't find bbs to be equal if bb->loop_father
15980         differs.
15981         (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
15983 2017-07-03  Tom de Vries  <tom@codesourcery.com>
15985         PR tree-optimization/81192
15986         * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
15987         BB_SAME_SUCC (bb) == NULL.
15989 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
15991         * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
15992         consistency.
15994 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
15996         * dumpfile.c: Include profile-count.h
15997         * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
15998         update profile.
15999         (insert_cond_bb): Update profile.
16000         * tree-cfg.h (insert_cond_bb): Update prototype.
16001         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
16002         * tree-dump.c: Do not include tree-cfg.
16004 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
16006         * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
16008 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
16010         * expect.c (dw2_build_landing_pads): Update profile of the landing pad
16011         bb.
16013 2017-07-02  Jan Hubicka  <hubicka@ucw.cz>
16015         * tree-complex.c (expand_complex_div_wide): update profile.
16017 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
16018             Alan Hayward  <alan.hayward@arm.com>
16019             David Sherwood  <david.sherwood@arm.com>
16021         * Makefile.in (MACHMODE_H): Remove insn-modes.h
16022         (CORETYPES_H): New define.
16023         (MOSTLYCLEANFILES): Add insn-modes-inline.h.
16024         (insn-modes-inline.h, s-modes-inline-h): New rules.
16025         (generated_files): Add insn-modes-inline.h.
16026         (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
16027         (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
16028         (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
16029         (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
16030         (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
16031         (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
16032         (build/gencodes.o, build/genconditions.o): Likewise.
16033         (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
16034         (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
16035         (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
16036         (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
16037         (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
16038         (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
16039         * coretypes.h: Include everything up to real.h for generators.
16040         Include insn-modes.h first.  Include wide-int-print.h after
16041         wide-int.h.  Include insn-modes-inline.h and then machmode.h.
16042         * machmode.h: Don't include insn-modes.h here.
16043         * function-tests.c: Remove includes of signop.h, machmode.h,
16044         double-int.h and wide-int.h.
16045         * rtl.h: Likewise.
16046         * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
16047         and wide-int.h.
16048         * optc-save-gen.awk: Likewise.
16049         * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
16050         * godump.c: Remove include of wide-int-print.h.
16051         * pretty-print.h: Likewise.
16052         * wide-int-print.cc: Likewise.
16053         * wide-int.cc: Likewise.
16054         * hash-map-tests.c: Remove include of signop.h.
16055         * hash-set-tests.c: Likewise.
16056         * rtl-tests.c: Likewise.
16057         * mkconfig.sh: Remove include of machmode.h.
16058         * genmodes.c (emit_insn_modes_h): Split emission of inline functions
16059         into...
16060         (emit_insn_modes_inline_h): ...this new function.  Emit the code
16061         into an insn-modes-inline.h header file, adding appropriate
16062         include guards and end comments.
16063         (emit_insn_modes_c_header): Remove include of machmode.h.
16064         (emit_min_insn_modes_c_header): Include coretypes.h rather than
16065         machmode.h.
16066         (main): Handle -i flag and call emit_insn_modes_inline_h when
16067         it is passed.
16069 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
16071         * tree-ssa-strlen.c (strinfo): Rename the length field to
16072         nonzero_chars.  Add a full_string_p field.
16073         (compare_nonzero_chars, zero_length_string_p): New functions.
16074         (get_addr_stridx): Add an offset_out parameter.
16075         Use compare_nonzero_chars.
16076         (get_stridx): Update accordingly.  Use compare_nonzero_chars.
16077         (new_strinfo): Update after above changes to strinfo.
16078         (set_endptr_and_length): Set full_string_p.
16079         (get_string_length): Update after above changes to strinfo.
16080         (unshare_strinfo): Update call to new_strinfo.
16081         (maybe_invalidate): Likewise.
16082         (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
16083         Use compare_nonzero_chars and zero_string_p.  Treat nonzero_chars
16084         as a uhwi instead of an shwi.  Update after above changes to
16085         strinfo and new_strinfo.
16086         (zero_length_string): Assert that chainsi contains full strings.
16087         Use zero_length_string_p.  Update call to new_strinfo.
16088         (adjust_related_strinfos): Update after above changes to strinfo.
16089         Copy full_string_p from origsi.
16090         (adjust_last_stmt): Use zero_length_string_p.
16091         (handle_builtin_strlen): Update after above changes to strinfo and
16092         new_strinfo.  Install the lhs as the string length if the previous
16093         entry didn't describe a full string.
16094         (handle_builtin_strchr): Update after above changes to strinfo
16095         and new_strinfo.
16096         (handle_builtin_strcpy): Likewise.
16097         (handle_builtin_strcat): Likewise.
16098         (handle_builtin_malloc): Likewise.
16099         (handle_pointer_plus): Likewise.
16100         (handle_builtin_memcpy): Likewise.  Track nonzero characters
16101         that aren't necessarily followed by a nul terminator.
16102         (handle_char_store): Likewise.
16104 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
16106         PR tree-optimization/80769
16107         * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
16108         for malloc and calloc.  Document the new invariant that all related
16109         strinfos have delayed lengths or none do.
16110         (verify_related_strinfos): Move earlier in file.
16111         (set_endptr_and_length): New function, split out from...
16112         (get_string_length): ...here.  Also set the lengths of related
16113         strinfos.
16114         (zero_length_string): Assert that chainsi has known (rather than
16115         delayed) lengths.
16116         (adjust_related_strinfos): Likewise.
16118 2017-07-02  Richard Sandiford  <richard.sandiford@linaro.org>
16120         PR tree-optimization/81136
16121         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
16122         assert that two references with the same misalignment have the same
16123         compile-time misalignment if those compile-time misalignments
16124         are known.
16126 2017-07-01  Andi Kleen  <ak@linux.intel.com>
16128         * print-tree.c (print_node): Print all attributes.
16130 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
16132         * cfg.c (scale_bbs_frequencies): New function.
16133         * cfg.h (scale_bbs_frequencies): Declare it.
16134         * cfgloopanal.c (single_likely_exit): Cleanup.
16135         * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
16136         as parameter.
16137         (scale_loop_profile): Likewise.
16138         (loop_version): Likewise.
16139         (create_empty_loop_on_edge): Update.
16140         * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
16141         scale_loop_frequencies, scale_loop_profile, loopify,
16142         loop_version): Update prototypes.
16143         * modulo-sched.c (sms_schedule): Update.
16144         * predict.c (unlikely_executed_edge_p): Also check probability.
16145         (probably_never_executed_edge_p): Fix typo.
16146         * tree-if-conv.c (version_loop_for_if_conversion): Update.
16147         * tree-parloops.c (gen_parallel_loop): Update.
16148         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
16149         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
16150         * tree-ssa-loop-split.c (split_loop): Update.
16151         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
16152         * tree-vect-loop-manip.c (vect_do_peeling): Update.
16153         (vect_loop_versioning): Update.
16154         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
16156 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
16158         * trans-mem.c (split_bb_make_tm_edge): Update profile.
16160 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
16162         * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
16163         to keep profile consistent.
16165 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
16167         * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
16168         * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
16169         * profile-count.h (max_safe_multiplier): Make unsigned.
16170         (profile_count::guessed_zero): New.
16172 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
16174         * bb-reorder.c (fix_up_crossing_landing_pad,
16175         fix_crossing_conditional_branches): Use make_single_succ_edge
16176         to keep profile consistent.
16178 2017-07-01  Jan Hubicka  <hubicka@ucw.cz>
16180         * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
16181         to update profile.
16183 2017-07-01  Jakub Jelinek  <jakub@redhat.com>
16185         PR sanitizer/81262
16186         * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
16187         the right scopes, make sure cond_jump isn't preserved between multiple
16188         iterations.  Search for fallthru edge whenever there are 3+ edges and
16189         use find_fallthru_edge for it.
16191 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
16193         Patch by Alexander Monakov <amonakov@ispras.ru>
16194         * sel-sched-ir.c (compute_succs_info): Handle uninitialized
16195         probabilities consistently.
16197 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
16199         * pa.c (pa_expand_compare_and_swap_loop): Update call of
16200         emit_cmp_and_jump_insns.
16202 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
16204         PR ipa/81261
16205         * tree-inline.c (expand_call_inline): Combine profile statuses.
16207 2017-06-30  Andrew Pinski  <apinski@cavium.com>
16209         * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
16210         fold_stmt returned true.
16212 2017-06-30  Nathan Sidwell  <nathan@acm.org>
16214         * ggc.h (empty_string): Delete.
16215         * cfgexpand.c (expand_asm_stmt): Use plain "".
16216         * optabs.c (expand_asm_memory_barrier): Likewise.
16217         * stringpool.c (empty_string): Delete.
16218         (digit_vector, digit_string): Delete.
16219         (ggc_alloc_string): Use plain "", don't optimize single digit
16220         strings.  Use ggc_alloc_atomic.
16222 2017-06-30  Richard Earnshaw  <rearnsha@arm.com>
16224         * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
16225         comparison set and one other set, use the cost of the non-comparison
16226         set.
16228 2017-06-30  Nathan Sidwell  <nathan@acm.org>
16230         * ggc.h: Replace all 'static inline' with plain 'inline'.  Fix
16231         some formatting.
16233 2017-06-30  Peter Bergner  <bergner@vnet.ibm.com>
16235         * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
16236         loops.  Remove now unneeded calls to gimple_switch_set_label() that
16237         just set removed labels to NULL_TREE.
16239 2017-06-30  Aldy Hernandez  <aldyh@redhat.com>
16241         * tree-ssanames.c (set_range_info_raw): Abstract from ...
16242         (set_range_info): ...here.  Only call set_range_info_raw if domain
16243         is useful.
16244         (set_nonzero_bits): Call set_range_info_raw.
16245         * tree-ssanames.h (set_range_info_raw): New.
16247 2017-06-30  Jakub Jelinek  <jakub@redhat.com>
16249         PR target/81225
16250         * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
16251         V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
16252         of nonimmediate_operand and <store_mask_constraint> instead of m
16253         for the input operand.  For V8FI iterator, always split if input
16254         is a MEM.  For V16FI and V8SF_256 iterators, don't test if both
16255         operands are MEM if <mask_applied>.  For VI4F_256 iterator, use
16256         <store_mask_predicate> instead of register_operand and
16257         <store_mask_constraint> instead of v for the input operand.  Make
16258         sure both operands aren't MEMs for if not <mask_applied>.
16260 2017-06-30  Sylvestre Ledru  <sylvestre@debian.org>
16262         * lto-wrapper.c (copy_file) Close both file descriptors before
16263         exiting normally.
16265 2017-06-30  Martin Liska  <mliska@suse.cz>
16267         PR ipa/81214
16268         * multiple_target.c (create_dispatcher_calls): Make ifunc
16269         also for function that don't have calls or are not referenced.
16271 2017-06-30  Richard Biener  <rguenther@suse.de>
16273         * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
16274         analyze the first scalar stmt.  Move vector type computation
16275         for the BB case here from ...
16276         * tree-vect-stmts.c (vect_analyze_stmt): ... here.  Guard
16277         live operation processing in the SLP case properly.
16279 2017-06-30  Richard Biener  <rguenther@suse.de>
16281         * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
16283 2017-06-30  Martin Liska  <mliska@suse.cz>
16285         PR sanitizer/81021
16286         * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
16287         before BUILT_IN_UNWIND_RESUME when ASAN is used.
16289 2017-06-30  Yvan Roux  <yvan.roux@linaro.org>
16291         * doc/invoke.texi (AArch64): Add missing options and remove redundant
16292         ones.
16294 2017-06-30  Richard Biener  <rguenther@suse.de>
16296         PR tree-optimization/81249
16297         * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
16298         condition reduction result to original scalar type.
16300 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16302         * profile-count.h (enum profile_quality): Fix typos and whitespace
16303         issues.
16305 2017-06-30  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16307         * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
16308         type for branch probabilities.
16310 2017-06-29  Julian Brown  <julian@codesourcery.com>
16311             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
16313         * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
16314         * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
16315         (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
16316         (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
16318 2017-06-29  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
16320         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
16321         check for CC usage into AARCH64_FUSE_CMP_BRANCH.
16322         * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
16323         CC usage from generic code to here.
16324         * sched-deps.c (sched_macro_fuse_insns): Move the condition for
16325         CC usage into the target macros.
16327 2017-06-29  Maya Rashish  <coypu@sdf.org>
16329         * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
16330         objects.
16332 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
16334         * arm/arm-builtins.c: Include profile-count.h
16335         * except.c (sjlj_emit_function_enter): Use
16336         profile_probability::unlikely.
16338 2017-06-29  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
16340         * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
16341         and tocrel_offset be pointer args rather than implicitly using
16342         static versions.
16343         (legitimate_constant_pool_address_p, rs6000_emit_move,
16344         const_load_sequence_p, adjust_vperm): Add local tocrel_base and
16345         tocrel_offset and use in toc_relative_expr_p call.
16346         (print_operand, print_operand_address): Use static tocrel_base_oac
16347         and tocrel_offset_oac.
16348         (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
16349         tocrel_offset_oac.
16351 2017-06-29  Maya Rashish  <coypu@sdf.org>
16353         * config/vax/builtins.md (ffssi2_internal): Correct constraint.
16355 2017-06-29  Eric Botcazou  <ebotcazou@adacore.com>
16357         * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
16358         objects, take into account only the alignment of 'op0' and 'mode1' if
16359         'op0' is a MEM.
16361 2017-06-29  Steve Ellcey  <sellcey@cavium.com>
16363         * ccmp.c (ccmp_tree_comparison_p): New function.
16364         (ccmp_candidate_p): Update to use above function.
16365         (get_compare_parts): New function.
16366         (expand_ccmp_next): Update to use new functions.
16367         (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
16368         new functions.
16369         (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
16370         take mode as argument.
16371         * ccmp.h (expand_ccmp_expr): Add mode as argument.
16372         * expr.c (expand_expr_real_1): Pass mode as argument.
16374 2017-06-29  Segher Boessenkool  <segher@kernel.crashing.org>
16376         * combine.c (combine_instructions): Print insns to dump_file, together
16377         with their costs.
16379 2017-06-29  Jan Hubicka  <hubicka@ucw.cz>
16381         * asan.c (asan_emit_stack_protection): Update.
16382         (create_cond_insert_point): Update.
16383         * auto-profile.c (afdo_propagate_circuit): Update.
16384         * basic-block.h (struct edge_def): Turn probability to
16385         profile_probability.
16386         (EDGE_FREQUENCY): Update.
16387         * bb-reorder.c (find_traces_1_round): Update.
16388         (better_edge_p): Update.
16389         (sanitize_hot_paths): Update.
16390         * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
16391         (make_single_succ_edge): Update.
16392         (check_bb_profile): Update.
16393         (dump_edge_info): Update.
16394         (update_bb_profile_for_threading): Update.
16395         * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
16396         probabilitycount to 0.
16397         * cfgbuild.c (compute_outgoing_frequencies): Update.
16398         * cfgcleanup.c (try_forward_edges): Update.
16399         (outgoing_edges_match): Update.
16400         (try_crossjump_to_edge): Update.
16401         * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
16402         (expand_gimple_tailcall): Update.
16403         (construct_init_block): Use make_single_succ_edge.
16404         (construct_exit_block): Use make_single_succ_edge.
16405         * cfghooks.c (verify_flow_info): Update.
16406         (redirect_edge_succ_nodup): Update.
16407         (split_edge): Update.
16408         (account_profile_record): Update.
16409         * cfgloopanal.c (single_likely_exit): Update.
16410         * cfgloopmanip.c (scale_loop_profile): Update.
16411         (set_zero_probability): Remove.
16412         (duplicate_loop_to_header_edge): Update.
16413         * cfgloopmanip.h (loop_version): Update prototype.
16414         * cfgrtl.c (try_redirect_by_replacing_jump): Update.
16415         (force_nonfallthru_and_redirect): Update.
16416         (update_br_prob_note): Update.
16417         (rtl_verify_edges): Update.
16418         (purge_dead_edges): Update.
16419         (rtl_lv_add_condition_to_bb): Update.
16420         * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
16421         * cgraphunit.c (init_lowered_empty_function): Update.
16422         (cgraph_node::expand_thunk): Update.
16423         * cilk-common.c: Include profile-count.h
16424         * dojump.c (inv): Remove.
16425         (jumpifnot): Update.
16426         (jumpifnot_1): Update.
16427         (do_jump_1): Update.
16428         (do_jump): Update.
16429         (do_jump_by_parts_greater_rtx): Update.
16430         (do_compare_rtx_and_jump): Update.
16431         * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
16432         do_jump_1. do_compare_rtx_and_jump): Update prototype.
16433         * dwarf2cfi.c: Include profile-count.h
16434         * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
16435         (sjlj_emit_dispatch_table): Likewise.
16436         * explow.c: Include profile-count.h
16437         * expmed.c (emit_store_flag_force): Update.
16438         (do_cmp_and_jump): Update.
16439         * expr.c (compare_by_pieces_d::generate): Update.
16440         (compare_by_pieces_d::finish_mode): Update.
16441         (emit_block_move_via_loop): Update.
16442         (store_expr_with_bounds): Update.
16443         (store_constructor): Update.
16444         (expand_expr_real_2): Update.
16445         (expand_expr_real_1): Update.
16446         * expr.h (try_casesi, try_tablejump): Update prototypes.
16447         * gimple-pretty-print.c (dump_probability): Update.
16448         (dump_profile): New.
16449         (dump_gimple_label): Update.
16450         (dump_gimple_bb_header): Update.
16451         * graph.c (draw_cfg_node_succ_edges): Update.
16452         * hsa-gen.c (convert_switch_statements): Update.
16453         * ifcvt.c (cheap_bb_rtx_cost_p): Update.
16454         (find_if_case_1): Update.
16455         (find_if_case_2): Update.
16456         * internal-fn.c (expand_arith_overflow_result_store): Update.
16457         (expand_addsub_overflow): Update.
16458         (expand_neg_overflow): Update.
16459         (expand_mul_overflow): Update.
16460         (expand_vector_ubsan_overflow): Update.
16461         * ipa-cp.c (good_cloning_opportunity_p): Update.
16462         * ipa-split.c (split_function): Use make_single_succ_edge.
16463         * ipa-utils.c (ipa_merge_profiles): Update.
16464         * loop-doloop.c (add_test): Update.
16465         (doloop_modify): Update.
16466         * loop-unroll.c (compare_and_jump_seq): Update.
16467         (unroll_loop_runtime_iterations): Update.
16468         * lra-constraints.c (lra_inheritance): Update.
16469         * lto-streamer-in.c (input_cfg): Update.
16470         * lto-streamer-out.c (output_cfg): Update.
16471         * mcf.c (adjust_cfg_counts): Update.
16472         * modulo-sched.c (sms_schedule): Update.
16473         * omp-expand.c (expand_omp_for_init_counts): Update.
16474         (extract_omp_for_update_vars): Update.
16475         (expand_omp_ordered_sink): Update.
16476         (expand_omp_for_ordered_loops): Update.
16477         (expand_omp_for_generic): Update.
16478         (expand_omp_for_static_nochunk): Update.
16479         (expand_omp_for_static_chunk): Update.
16480         (expand_cilk_for): Update.
16481         (expand_omp_simd): Update.
16482         (expand_omp_taskloop_for_outer): Update.
16483         (expand_omp_taskloop_for_inner): Update.
16484         * omp-simd-clone.c (simd_clone_adjust): Update.
16485         * optabs.c (expand_doubleword_shift): Update.
16486         (expand_abs): Update.
16487         (emit_cmp_and_jump_insn_1): Update.
16488         (expand_compare_and_swap_loop): Update.
16489         * optabs.h (emit_cmp_and_jump_insns): Update prototype.
16490         * predict.c (predictable_edge_p): Update.
16491         (edge_probability_reliable_p): Update.
16492         (set_even_probabilities): Update.
16493         (combine_predictions_for_insn): Update.
16494         (combine_predictions_for_bb): Update.
16495         (propagate_freq): Update.
16496         (estimate_bb_frequencies): Update.
16497         (force_edge_cold): Update.
16498         * profile-count.c (profile_count::dump): Add missing space into dump.
16499         (profile_count::debug): Add newline.
16500         (profile_count::differs_from_p): Explicitly convert to unsigned.
16501         (profile_count::stream_in): Update.
16502         (profile_probability::dump): New member function.
16503         (profile_probability::debug): New member function.
16504         (profile_probability::differs_from_p): New member function.
16505         (profile_probability::differs_lot_from_p): New member function.
16506         (profile_probability::stream_in): New member function.
16507         (profile_probability::stream_out): New member function.
16508         * profile-count.h (profile_count_quality): Rename to ...
16509         (profile_quality): ... this one.
16510         (profile_probability): New.
16511         (profile_count): Update.
16512         * profile.c (compute_branch_probabilities): Update.
16513         * recog.c (peep2_attempt): Update.
16514         * sched-ebb.c (schedule_ebbs): Update.
16515         * sched-rgn.c (find_single_block_region): Update.
16516         (compute_dom_prob_ps): Update.
16517         (schedule_region): Update.
16518         * sel-sched-ir.c (compute_succs_info): Update.
16519         * stmt.c (struct case_node): Update.
16520         (do_jump_if_equal): Update.
16521         (get_outgoing_edge_probs): Update.
16522         (conditional_probability): Update.
16523         (emit_case_dispatch_table): Update.
16524         (expand_case): Update.
16525         (expand_sjlj_dispatch_table): Update.
16526         (emit_case_nodes): Update.
16527         * targhooks.c: Update.
16528         * tracer.c (better_p): Update.
16529         (find_best_successor): Update.
16530         * trans-mem.c (expand_transaction): Update.
16531         * tree-call-cdce.c: Update.
16532         * tree-cfg.c (gimple_split_edge): Upate.
16533         (move_sese_region_to_fn): Upate.
16534         * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
16535         * tree-eh.c (lower_resx): Upate.
16536         (cleanup_empty_eh_move_lp): Upate.
16537         * tree-if-conv.c (version_loop_for_if_conversion): Update.
16538         * tree-inline.c (copy_edges_for_bb): Update.
16539         (copy_cfg_body): Update.
16540         * tree-parloops.c (gen_parallel_loop): Update.
16541         * tree-profile.c (gimple_gen_ic_func_profiler): Update.
16542         (gimple_gen_time_profiler): Update.
16543         * tree-ssa-dce.c (remove_dead_stmt): Update.
16544         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
16545         * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
16546         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
16547         (unloop_loops): Update.
16548         (try_peel_loop): Update.
16549         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
16550         * tree-ssa-loop-split.c (connect_loops): Update.
16551         (split_loop): Update.
16552         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
16553         (hoist_guard): Update.
16554         * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
16555         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
16556         (value_replacement): Update.
16557         * tree-ssa-reassoc.c (branch_fixup): Update.
16558         * tree-ssa-tail-merge.c (replace_block_by): Update.
16559         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
16560         (create_edge_and_update_destination_phis): Update.
16561         (compute_path_counts): Update.
16562         (recompute_probabilities): Update.
16563         (update_joiner_offpath_counts): Update.
16564         (freqs_to_counts_path): Update.
16565         (duplicate_thread_path): Update.
16566         * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
16567         (struct switch_conv_info): Update.
16568         (gen_inbound_check): Update.
16569         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
16570         (vect_do_peeling): Update.
16571         (vect_loop_versioning): Update.
16572         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
16573         (optimize_mask_stores): Update.
16574         * ubsan.c (ubsan_expand_null_ifn): Update.
16575         * value-prof.c (gimple_divmod_fixed_value): Update.
16576         (gimple_divmod_fixed_value_transform): Update.
16577         (gimple_mod_pow2): Update.
16578         (gimple_mod_pow2_value_transform): Update.
16579         (gimple_mod_subtract): Update.
16580         (gimple_mod_subtract_transform): Update.
16581         (gimple_ic): Update.
16582         (gimple_stringop_fixed_value): Update.
16583         (gimple_stringops_transform): Update.
16584         * value-prof.h: Update.
16586 2017-06-29  Carl Love  <cel@us.ibm.com>
16588         * config/rs6000/rs6000-c.c: Add support for built-in functions
16589         vector signed int vec_signed (vector float);
16590         vector signed long long vec_signed (vector double);
16591         vector signed int vec_signed2 (vector double, vector double);
16592         vector signed int vec_signede (vector double);
16593         vector signed int vec_signedo (vector double);
16594         * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
16595         instruction generator.
16596         * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
16597         UNSPEC_VSX_VSIGNED2): Add UNSPECS.
16598         (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
16599         Add define_insn.
16600         (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
16601         vunsignede_v2df): Add define_expands.
16602         * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
16603         VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
16604         VEC_UNSIGNEDO): Add definitions.
16605         * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
16606         UNSPEC_VSX_VSIGNED2): Add UNSPECs.
16607         (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
16608         (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
16609         vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
16610         * config/rs6000/altivec.h (vec_signed, vec_signed2,
16611         vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
16612         vec_unsignede, vec_unsignedo): Add builtin defines.
16613         * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
16614         declaration.
16615         * doc/extend.texi: Update the built-in documentation file for the
16616         new built-in functions.
16618 2017-06-29  Richard Biener  <rguenther@suse.de>
16620         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
16621         reduction chains to LOOP_VINFO_REDUCTIONS.
16622         * tree-vect-slp.c (vect_analyze_slp): Continue looking for
16623         SLP reductions after processing reduction chains.
16625 2017-06-29  Nathan Sidwell  <nathan@acm.org>
16627         * builtins.c (fold_builtin_FUNCTION): Use
16628         lang_hooks.decl_printable_name.
16630 2017-06-29  Peter Bergner  <bergner@vnet.ibm.com>
16632         PR middle-end/81194
16633         * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
16634         with only one label.
16635         * stmt.c (expand_case): Assert NCASES is greater than one.
16637 2017-06-29  Richard Biener  <rguenther@suse.de>
16639         * tree-cfg.c (group_case_labels_stmt): Return whether we changed
16640         anything.
16641         (group_case_labels): Likewise.
16642         (find_taken_edge): Push sanity checking on val to workers...
16643         (find_taken_edge_cond_expr): ... here
16644         (find_taken_edge_switch_expr): ... and here, handle cases
16645         with just a default label.
16646         * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
16647         (group_case_labels): Likewise.
16648         * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
16649         group_case_labels does anything cleanup the CFG again.
16651 2017-06-29  Bin Cheng  <bin.cheng@arm.com>
16653         PR tree-optimization/81196
16654         * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
16655         exit condition comparing two IVs.
16657 2017-06-29  Richard Earnshaw  <rearnsha@arm.com>
16659         * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
16660         profile to the dummy entry at the end of the list of architectures.
16661         * config/arm/arm-cpu-cdata.h: Regenerated.
16663 2017-06-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16664             Michael Collison <michael.collison@arm.com>
16666         PR target/70119
16667         * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
16668         New pattern.
16669         (*aarch64_reg_<mode>3_neg_mask2): New pattern.
16670         (*aarch64_reg_<mode>3_minus_mask): New pattern.
16671         (*aarch64_<optab>_reg_di3_mask2): New pattern.
16672         * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
16673         of shift when the shift amount is masked with constant equal to
16674         the size of the mode.
16675         * config/aarch64/predicates.md (subreg_lowpart_operator): New
16676         predicate.
16678 2017-06-29  Martin Liska  <mliska@suse.cz>
16680         * config/i386/i386.opt: Change range from [1,5] to [0,5].
16682 2017-06-29  Yury Gribov  <tetra2005@gmail.com>
16684         PR bootstrap/80565
16685         * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
16686         code.
16687         * ipa-inline.h
16688         (edge_growth_cache_entry::edge_growth_cache_entry): New
16689         function.
16690         (reset_edge_growth_cache): Update to use constructor.
16692 2017-06-28  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
16694         * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
16695         (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
16696         (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
16698 2017-06-28  Sebastian Peryt  <sebastian.peryt@intel.com>
16700         * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
16701         (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
16703 2017-06-28  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16705         * config.gcc (*-linux-musl*): Add t-musl tmake_file.
16706         (*-linux-uclibc*): Add t-uclibc tmake_file.
16707         * config/t-musl: New.
16708         * config/t-uclibc: New.
16710 2017-06-28  Richard Earnshaw  <rearnsha@arm.com>
16712         * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
16713         context.
16714         (gen_comm_data): Emit architectural setting of arch_prof.
16715         * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
16716         profile.
16717         (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
16718         (armv8-m.base, armv8-m.main): Likewise.
16719         * arm-protos.h (arm_build_target): Add profile field.
16720         (arch_option): Likewise.
16721         * config/arm/arm.c (arm_configure_build_target): Copy the profile to
16722         the active target.
16723         * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
16724         arm_active_target.profile.
16726 2017-06-28  Richard Biener  <rguenther@suse.de>
16728         PR middle-end/81227
16729         * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
16730         TYPE_OVERFLOW_WRAPS.
16731         * match.pd (negate_expr_p): Likewise.
16732         * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
16733         fold_build2, not fold_binary.
16735 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
16737         * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
16738         Convert memory address to Pmode.
16739         (aarch64_print_operand): Assert MEM operands are always Pmode.
16741 2017-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
16743         PR target/79665
16744         * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
16745         Remove redundant if.
16746         (aarch_forward_to_shift_is_not_shifted_reg): Remove.
16747         * config/arm/aarch-common-protos.h
16748         (aarch_forward_to_shift_is_not_shifted_re): Remove.
16749         * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
16751 2017-06-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
16753         PR ipa/81238
16754         * multiple_target.c (create_dispatcher_calls): Set the default
16755         clone to be static, not public.
16757 2017-06-28  Richard Biener  <rguenther@suse.de>
16759         * tree-vect-loop.c (vectorizable_reduction): Move special
16760         cond reduction IV var creation ...
16761         (vect_create_epilog_for_reduction): ... here.  Remove induction_index
16762         parameter.  Use STMT_VINFO_VECTYPE.
16763         * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
16764         constant_p.
16766 2017-06-28  Martin Liska  <mliska@suse.cz>
16768         PR ipa/81128
16769         * ipa-visibility.c (non_local_p): Handle visibility.
16771 2017-06-28  Martin Liska  <mliska@suse.cz>
16773         PR driver/79659
16774         * common.opt: Add IntegerRange to various options.
16775         * opt-functions.awk (integer_range_info): New function.
16776         * optc-gen.awk: Add integer_range_info to cl_options struct.
16777         * opts-common.c (decode_cmdline_option): Handle
16778         CL_ERR_INT_RANGE_ARG.
16779         (cmdline_handle_error): Likewise.
16780         * opts.c (print_filtered_help): Show valid interval in
16781         when --help is provided.
16782         * opts.h (struct cl_option): Add range_min and range_max fields.
16783         * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
16785 2017-06-28  Marc Glisse  <marc.glisse@inria.fr>
16787         * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
16788         (x * C EQ/NE y * C): New transformation.
16790 2017-06-28  Christophe Lyon  <christophe.lyon@linaro.org>
16792         * genmultilib (combination_space): Accept '+' in option names.
16794 2017-06-28  Martin Liska  <mliska@suse.cz>
16796         PR sanitizer/81224
16797         * asan.c (instrument_derefs): Bail out inner references
16798         that are hard register variables.
16800 2017-06-28  Jakub Jelinek  <jakub@redhat.com>
16802         PR target/81175
16803         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
16804         rather than def_builtin_pure for __builtin_ia32_gatherpf*.
16806 2017-06-28  Richard Biener  <rguenther@suse.de>
16808         * tree-vectorizer.h (vect_get_vec_defs): Remove.
16809         (vect_get_slp_defs): Adjust.
16810         * tree-vect-loop.c (get_initial_defs_for_reduction): Split
16811         out from ...
16812         * tree-vect-slp.c (vect_get_constant_vectors): ... here and
16813         simplify.
16814         * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
16815         get_initial_defs_for_reduction instead of vect_get_vec_defs.
16816         (vectorizable_reduction): Adjust.
16817         * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
16818         handling.
16819         (vect_get_slp_defs): Likewise.
16820         * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
16821         (vectorizable_bswap): Adjust.
16822         (vectorizable_call): Likewise.
16823         (vectorizable_conversion): Likewise.
16824         (vectorizable_assignment): Likewise.
16825         (vectorizable_shift): Likewise.
16826         (vectorizable_operation): Likewise.
16827         (vectorizable_store): Likewise.
16828         (vectorizable_condition): Likewise.
16829         (vectorizable_comparison): Likewise.
16831 2017-06-28  Michael Collison  <michael.collison@arm.com>
16833         PR target/68535
16834         * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
16835         set of base_reg
16836         (arm_gen_movmemqi): Removed unused variable 'i'.
16837         Convert 'for' loop into 'while' loop.
16838         (arm_expand_prologue): Remove last unnecessary set of insn.
16839         (thumb_pop): Remove unused variable 'pushed_words'.
16840         (thumb_exit): Remove last unnecessary set of regs_to_pop.
16842 2017-06-28  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16844         * config/s390/predicates.md: Use s390_rel_address_ok_p.
16845         * config/s390/s390-protos.h: Add prototype of
16846         s390_rel_address_ok_p.
16847         * config/s390/s390.c (s390_got_symbol): New function.
16848         (s390_rel_address_ok_p): New function.
16849         (legitimize_pic_address): Use s390_rel_address_ok_p.
16850         (s390_load_got): Use s390_got_symbol.
16851         (s390_option_override): Issue error if
16852         -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
16853         * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
16854         New macro.
16855         * config/s390/s390.opt: New option mpic-data-is-text-relative.
16857 2017-06-27  Andrew Pinski  <apinski@cavium.com>
16859         * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
16860         (X * copysign (1.0, X)): New pattern.
16861         (X * copysign (1.0, -X)): New pattern.
16862         (copysign (-1.0, CST)): New pattern.
16864 2017-06-27  Joseph Myers  <joseph@codesourcery.com>
16866         * genmultilib (combination_space): Remove variable.
16867         Validate reuse rules against regular expression for any sequence
16868         of multilib options in any order.
16870 2017-06-27  Michael Collison  <michael.collison@arm.com>
16872         * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
16873         call aarch64_split_simd_combine.
16874         * (aarch64_combine_internal<mode>): Delete pattern.
16875         * config/aarch64/aarch64.c (aarch64_split_simd_combine):
16876         Allow register and subreg operands.
16878 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
16880         * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
16881         specific need, just fallback on defaults.
16882         (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
16884 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
16885             Olivier Hainque  <hainque@adacore.com>
16887         * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
16888         map for 64bits.
16889         (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
16890         targets. Pick a default if no particular attempt applied.
16891         (STACK_CHECK_PROTECT): Double for 64bit targets, which have
16892         larger contexts.
16894 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
16896         * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
16897         (x86_64-wrs-vxworks7): Likewise.
16899 2017-06-27  Marek Polacek  <polacek@redhat.com>
16901         PR sanitizer/81223
16902         * ubsan.c (instrument_null): Check get_base_address's result for null.
16904 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
16906         * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
16908 2017-06-27  Marc Glisse  <marc.glisse@inria.fr>
16910         * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
16911         BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
16912         (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
16913         BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
16914         New function types.
16915         * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
16916         BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
16917         BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
16918         BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
16919         BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
16920         BUILT_IN_FEUPDATEENV): New builtins.
16921         * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
16922         TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
16923         * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
16924         fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
16925         macros.
16926         (builtin_structptr_types): Adjust size.
16927         * tree.c (builtin_structptr_types): Add four entries.
16929 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
16930             Olivier Hainque  <hainque@adacore.com>
16932         * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
16933         (TLS_SYM): New local macro, forcing reference to __tls__ on
16934         link command lines for VxWorks 7 RTPs, triggering initialization
16935         of tlsLib.
16936         (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
16937         OS features TLS support, true for RTPs on VxWorks 7.
16938         * config/vxworks.c (vxworks_override_options): Setup emutls
16939         accordingly.
16941 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
16943         * predict.c (test_prediction_value_range): Use -1U instead of -1
16944         to avoid narrowing conversion warning.
16945         * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
16946         to avoid narrowing conversion warning.
16947         * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
16948         -1.
16949         * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
16951 2017-06-27  Jerome Lambourg  <lambourg@adacore.com>
16953         * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
16954         64bit configurations.
16955         (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
16956         (SIZE_TYPE): Likewise.
16957         * config/vxworks.c (vxworks_emutls_var_fields): Use
16958         long_unsigned_type_node instead of unsigned_type_node as the offset
16959         field type, which is "pointer" mode in emutls.c.
16961 2017-06-27  Jakub Jelinek  <jakub@redhat.com>
16963         PR sanitizer/81209
16964         * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
16966         PR middle-end/81207
16967         * gimple-fold.c (replace_call_with_call_and_fold): Handle
16968         gimple_vuse copying separately from gimple_vdef copying.
16970 2017-06-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16972         * value-prof.c (free_hist): Remove call to memset and the enclosing if
16973         condition.
16975 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
16976             Olivier Hainque  <hainque@adacore.com>
16978         * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
16979         for all vxworks7 targets.
16980         * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
16981         (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
16982         (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
16983         variations for VX6/VX7 and 32/64bits later on in ...
16984         (VXWORKS_LIB_SPEC): Leverage new macros.
16985         (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
16986         as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
16988 2017-06-26  Jerome Lambourg  <lambourg@adacore.com>
16990         * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
16991         _VX_TOOL_FAMILY and _VX_TOOL to gnu.
16993 2017-06-26  Carl Love  <cel@us.ibm.com>
16995         * config/rs6000/rs6000-c.c: Add support for built-in functions
16996         vector bool char vec_reve (vector bool char);
16997         vector signed char vec_reve (vector signed char);
16998         vector unsigned char vec_reve (vector unsigned char);
16999         vector bool int vec_reve (vector bool int);
17000         vector signed int vec_reve (vector signed int);
17001         vector unsigned int vec_reve (vector unsigned int);
17002         vector bool long long vec_reve (vector bool long long);
17003         vector signed long long vec_reve (vector signed long long);
17004         vector unsigned long long vec_reve (vector unsigned long long);
17005         vector bool short vec_reve (vector bool short);
17006         vector signed short vec_reve (vector signed short);
17007         vector double vec_reve (vector double);
17008         vector float vec_reve (vector float);
17009         * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
17010         VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
17011         * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
17012         (altivec_vreve): New pattern.
17013         * config/rs6000/altivec.h (vec_reve): New define.
17014         * doc/extend.texi (vec_rev): Update the built-in documentation file
17015         for the new built-in functions.
17017 2016-06-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17019         PR tree-optimization/71815
17020         * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
17021         function.
17022         (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
17023         has_single_use.
17024         (slsr_process_phi): Likewise.
17025         (replace_uncond_cands_and_profitable_phis): Don't replace a
17026         multiply candidate with a stride of 1 (copy or cast).
17027         (phi_incr_cost): Call uses_consumed_by_stmt rather than
17028         has_single_use.
17029         (lowest_cost_path): Likewise.
17030         (total_savings): Likewise.
17032 2017-06-26  Richard Biener  <rguenther@suse.de>
17034         PR target/81175
17035         * config/i386/i386.c (ix86_init_mmx_sse_builtins):
17036         Use def_builtin_pure for all gather builtins.
17038 2017-06-26  Richard Biener  <rguenther@suse.de>
17040         PR tree-optimization/81203
17041         * tree-tailcall.c (find_tail_calls): Do not move stmts into
17042         non-dominating BBs.
17044 2017-06-26  Marek Polacek  <polacek@redhat.com>
17046         PR c/80116
17047         * doc/invoke.texi: Document -Wmultistatement-macros.
17049 2017-06-26  Christophe Lyon  <christophe.lyon@linaro.org>
17051         * doc/sourcebuild.texi (ARM-specific attributes): Document new
17052         arm_neon_ok_no_float_abi effective target.
17054 2017-06-26  Richard Biener  <rguenther@suse.de>
17056         PR tree-optimization/80928
17057         * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
17058         (copy_bbs): Set BB_DUPLICATED flag early.
17059         (execute_on_growing_pred): Do not execute for BB_DUPLICATED
17060         marked blocks.
17061         (execute_on_shrinking_pred): Likewise.
17062         * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
17063         BB_DUPLICATED blocks.
17064         * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
17065         iterate over all PHIs considering removal of *gsi.
17067 2017-06-23  Jim Wilson  <jim.wilson@linaro.org>
17069         * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
17070         qdf24xx.
17072 2017-06-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
17074         * config/rs6000/rs6000-string.c: (expand_block_clear,
17075         do_load_for_compare, select_block_compare_mode,
17076         compute_current_alignment, expand_block_compare,
17077         expand_strncmp_align_check, expand_strn_compare,
17078         expand_block_move, rs6000_output_load_multiple)
17079         Move functions related to string/block move/compare
17080         to a separate file.
17081         * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
17082         * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
17083         for this function which is now used in two files.
17084         * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
17085         * config.gcc: Add rs6000-string.o to extra_objs for
17086         targets powerpc*-*-* and rs6000*-*-*.
17088 2017-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
17090         PR target/80510
17091         * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
17092         32-bit, since indexed is not valid for DImode.
17093         (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
17094         3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
17095         (define_peephole2 for Altivec d-form load): Add 32-bit support.
17096         (define_peephole2 for Altivec d-form store): Likewise.
17098         PR ipa/81185
17099         * multiple_target.c (create_dispatcher_calls): Only create the
17100         dispatcher call if the function is the default clone of a
17101         versioned function.
17103 2017-06-23  Segher Boessenkool  <segher@kernel.crashing.org>
17105         PR middle-end/80902
17106         * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
17107         a call, force the call to not be a tail call.
17109 2017-06-23  Jeff Law  <law@redhat.com>
17111         * doc/contrib.texi: Add entry for Steven Pemberton's work on
17112         enquire.
17114 2017-06-23  Will Schmidt  <will_schmidt@vnet.ibm.com>
17116         * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
17117         update_call_from_tree().  (rs6000_gimple_fold_builtin): Add
17118         handling for early expansion of vector shifts (sl,sr,sra,rl).
17119         (builtin_function_type): Add vector shift right instructions
17120         to the unsigned argument list.
17122 2017-06-23  Bernd Edlinger  <bernd.edlinger@hotmail.de>
17124         rtl-optimizatoin/79286
17125         * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
17126         * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
17127         trap.  PIC register plus a const unspec without offset can never trap.
17129 2017-06-23  Marc Glisse  <marc.glisse@inria.fr>
17131         * tree.h (builtin_structptr_type): New type.
17132         (builtin_structptr_types): Declare new array.
17133         * tree.c (builtin_structptr_types): New array.
17134         (free_lang_data, build_common_tree_nodes): Use it.
17136 2017-06-23  Jonathan Wakely  <jwakely@redhat.com>
17138         PR c++/81187
17139         * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
17140         -Wnoexcept.
17142 2017-06-22  Matt Turner  <mattst88@gmail.com>
17144         * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
17145         Lake models to skylake case.  Assume skylake for unknown
17146         models with clflushopt.
17148 2017-06-22  Jeff Law  <law@redhat.com>
17150         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
17151         frame sizes that do not satisfy aarch64_uimm12_shift.
17153 2017-06-22  Jan Hubicka <hubicka@ucw.cz>
17155         * profile-count.h (apply_probability,
17156         apply_scale, probability_in): Fix checks for zero.
17158 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17160         * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
17161         * doc/cppdiropts.texi (-I @var{dir}): Document it.
17163 2016-06-22  Richard Biener  <rguenther@suse.de>
17165         * tree-vect-loop.c (vect_model_reduction_cost): Handle
17166         COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
17167         REDUC_MAX_EXPR support.
17168         (vectorizable_reduction): Likewise.
17169         (vect_create_epilog_for_reduction): Likewise.
17171 2017-06-22  James Greenhalgh  <james.greenhalgh@arm.com>
17173         * match.pd (A / (1 << B) -> A >> B): New.
17174         * generic-match-head.c: Include optabs-tree.h.
17175         * gimple-match-head.c: Likewise.
17176         * optabs-tree.h (target_supports_op_p): New.
17177         * optabs-tree.c (target_supports_op_p): New.
17179 2017-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17181         * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
17182         $gcc_cv_ld --help output.
17183         (gcc_cv_ld_demangle): Likewise.
17184         (gcc_cv_ld_eh_frame_hdr): Likewise.
17185         (gcc_cv_ld_pie): Likewise.
17186         (gcc_cv_ld_as_needed): Likewise.  Prefer native forms unless $gnu_ld.
17187         (gcc_cv_ld_buildid): Likewise.
17188         (gcc_cv_ld_sysroot): Likewise.
17189         (ld_bndplt_support): Likewise.
17190         (ld_pushpopstate_support): Likewise.
17191         * configure: Regenerate.
17192         * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
17194 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
17196         PR target/81151
17197         * config/i386/sse.md (round<mode>2): Renumber match_dup and
17198         operands indexes to avoid gap between operands and match_dups.
17200 2017-06-21  Andrew Pinski  <apinski@cavium.com>
17202         * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17203         Increment Arith_shift and Arith_shift_reg by 1.
17204         * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
17205         New tuning flag.
17206         * config/aarch64/aarch64.c (thunderx_tunings): Enable
17207         AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
17208         (aarch64_strip_extend): Add new argument and test for it.
17209         (aarch64_cheap_mult_shift_p): New function.
17210         (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
17211         add a cost if it is true.
17212         Update calls to aarch64_strip_extend.
17213         (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
17215 2017-06-21  Andrew Pinski  <apinski@cavium.com>
17217         * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
17218         tunings.
17219         (thunderxt88): Likewise.
17220         * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
17221         (thunderx_prefetch_tune): New variable.
17222         (thunderx2t99_prefetch_tune): Update for the correct values.
17223         (thunderxt88_tunings): New variable.
17224         (thunderx_tunings): Use thunderx_prefetch_tune instead of
17225         generic_prefetch_tune.
17226         (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
17228 2017-06-21  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17230         * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
17231         SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
17232         (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
17233         (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
17234         (aarch64_atomic_cas<mode>, GPI): Likewise.
17236 2017-06-21  Martin Liska  <mliska@suse.cz>
17238         * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
17239         statements on cold and hot labels.
17240         * predict.c (tree_estimate_probability_bb): Remove the
17241         prediction from this place.
17243 2017-06-21  Martin Liska  <mliska@suse.cz>
17245         PR tree-optimization/79489
17246         * gimplify.c (maybe_add_early_return_predict_stmt): New
17247         function.
17248         (gimplify_return_expr): Call the function.
17249         * predict.c (tree_estimate_probability_bb): Remove handling
17250         of early return.
17251         * predict.def: Update comment about early return predictor.
17252         * gimple-predict.h (is_gimple_predict): New function.
17253         * predict.def: Change default value of early return to 66.
17254         * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
17255         statements.
17256         * passes.def: Put pass_strip_predict_hints to the beginning of
17257         IPA passes.
17259 2017-06-21  Pierre-Marie de Rodat  <derodat@adacore.com>
17261         * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
17262         FUNCTION_DECL declarations.
17263         (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
17264         declarations.
17265         (dwaf2out_decl): Likewise.
17266         * godump.c (go_early_global_decl): Skip call to the real debug hook
17267         for FUNCTION_DECL declarations.
17268         * passes.c (rest_of_decl_compilation): Skip call to the
17269         early_global_decl debug hook for FUNCTION_DECL declarations, unless
17270         -fdump-go-spec is passed.
17272 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
17274         * config/i386/i386.c (struct builtin_isa): New field pure_p.
17275         Reorder for compactness.
17276         (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
17277         (def_builtin_pure, def_builtin_pure2): New functions.
17278         (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
17280 2017-06-21  Marc Glisse  <marc.glisse@inria.fr>
17282         * match.pd (nop_convert): New predicate.
17283         ((A +- CST1) +- CST2): Allow some NOP conversions.
17285 2017-06-21  Jakub Jelinek  <jakub@redhat.com>
17287         PR c++/81130
17288         * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
17289         with ctors/dtors if GOVD_SHARED is set.
17291 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
17293         * config/aarch64/aarch64.md (movti_aarch64):
17294         Emit mov rather than orr.
17295         (movtf_aarch64): Likewise.
17296         * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
17297         Emit mov rather than orr.
17299 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
17301         * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
17302         Swap alternatives, make integer dup more expensive.
17304 2017-06-21  Wilco Dijkstra  <wdijkstr@arm.com>
17306         * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
17307         Return true for non-tls symbols.
17309 2017-06-21  James Greenhalgh  <james.greenhalgh@arm.com>
17311         * config/aarch64/aarch64-cores.def (cortex-a55): New.
17312         (cortex-a75): Likewise.
17313         (cortex-a75.cortex-a55): Likewise.
17314         * config/aarch64/aarch64-tune.md: Regenerate.
17315         * doc/invoke.texi (-mtune): Document new values for -mtune.
17317 2017-06-21  Tom de Vries  <tom@codesourcery.com>
17319         * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
17320         stack_size feature.
17321         (Effective-Target Keywords, Other attributes): Suggest using
17322         dg-add-options stack_size feature to get stack limit in stack_size
17323         effective target documentation.
17325 2017-06-21  Julian Brown  <julian@codesourcery.com>
17326             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
17328         * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
17329         (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
17330         * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
17331         reservation.
17332         * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
17333         attribute type list for neon_multiply.
17334         * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
17335         attribute type list for neon_multiply.
17336         * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
17337         * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
17338         attribute type list for neon_multiply.
17339         * config/arm/types.md (crypto_pmull): Add.
17340         * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
17341         attribute type list.
17343 2017-06-20  Andreas Tobler  <andreast@gcc.gnu.org>
17345         * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
17346         arm1176jzf-s.
17348 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
17350         * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
17351         to make sure not to dereference a NULL cost_classes_ptr pointer.
17353 2017-06-20  Carl Love  <cel@us.ibm.com>
17355         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17356         ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
17357         ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
17358         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
17359         builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
17360         * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
17361         VMULOSW): New enum "unspec" values.
17362         (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
17363         vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
17364         altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
17365         altivec_vmulosw): New patterns.
17366         * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
17367         VMULOSW): Add definitions.
17369 2017-06-20  Julia Koval  <julia.koval@intel.com>
17371         * config/i386/i386.c: Fix rounding expand for new pattern.
17372         * config/i386/subst.md: Fix pattern (parallel -> unspec).
17374 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
17376         * config/aarch64/aarch64-option-extensions.def (rcpc): New.
17377         * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
17379 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
17381         * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
17382         feature string.
17384 2017-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
17386         * config/aarch64/aarch64-cores.def: Rearrange to sort by
17387         architecture, then by implementer ID.
17388         * config/aarch64/aarch64-tune.md: Regenerate.
17390 2017-06-20  Richard Biener  <rguenther@suse.de>
17392         PR middle-end/81097
17393         * fold-const.c (split_tree): Fold to type before negating.
17395 2017-06-20  David Malcolm  <dmalcolm@redhat.com>
17397         * diagnostic-show-locus.c
17398         (selftest::test_fixit_deletion_affecting_newline): New function.
17399         (selftest::diagnostic_show_locus_c_tests): Call it.
17401 2017-06-20  Andreas Schwab  <schwab@suse.de>
17403         PR target/80970
17404         * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
17405         instead of "+d".
17407 2017-06-20  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
17409         * config/arm/arm-c.c (arm_cpu_builtins): New block to define
17410         __ARM_FEATURE_COPROC according to support.
17412 2017-06-20  Jakub Jelinek  <jakub@redhat.com>
17414         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
17415         Rewritten to avoid overflow for > 32-bit pointers.
17417         PR sanitizer/81125
17418         * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
17419         by removing enum keyword.
17420         (ubsan_type_descriptor): Likewise.  Formatting fix.
17422         PR target/81121
17423         * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
17424         splitter): Require TARGET_SSE2 in the condition.
17426 2017-06-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
17428         PR target/79799
17429         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
17430         for doing vector set of SFmode on ISA 3.0.
17431         * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
17432         (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
17433         element.
17434         (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
17435         SFmode value into a V4SF variable that was extracted from another
17436         V4SF variable without converting the element to double precision
17437         and back to single precision vector format.
17438         (vsx_insert_extract_v4sf_p9_2): Likewise.
17440 2017-06-19  Jakub Jelinek  <jakub@redhat.com>
17442         * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
17443         in UWHI to avoid undefined overflow.
17445         PR sanitizer/81125
17446         * ubsan.h (enum ubsan_encode_value_phase): New.
17447         (ubsan_encode_value): Change second argument to
17448         enum ubsan_encode_value_phase with default value of
17449         UBSAN_ENCODE_VALUE_GENERIC.
17450         * ubsan.c (ubsan_encode_value): Change second argument to
17451         enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
17452         adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
17453         create_tmp_var_raw instead of create_tmp_var and use a
17454         TARGET_EXPR.
17455         (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
17456         instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
17457         ubsan_encode_value callers.
17459         PR sanitizer/81111
17460         * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
17461         use create_tmp_var_raw instead of create_tmp_var, mark it addressable
17462         just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
17464 2017-06-19  Richard Biener  <rguenther@suse.de>
17466         PR middle-end/81118
17467         * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
17468         estimates if we changed anything.
17470 2017-06-19  Richard Biener  <rguenther@suse.de>
17472         PR tree-optimization/80887
17473         * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
17474         (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
17475         simplified lookups, then reset mprts_hook.
17476         (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
17477         simplifying.
17478         (try_to_simplify): Likewise.
17480 2017-06-19  Martin Liska  <mliska@suse.cz>
17482         PR sanitizer/80879
17483         * gimplify.c (gimplify_switch_expr):
17484         Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
17486 2017-06-19  Martin Liska  <mliska@suse.cz>
17488         * doc/install.texi: Document that PGO runs in 4 stages.
17490 2017-06-19  Martin Liska  <mliska@suse.cz>
17492         PR ipa/80732
17493         * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
17494         to dispatcher function name.
17495         * multiple_target.c (replace_function_decl): New function.
17496         (create_dispatcher_calls): Redirect both edges and references.
17498 2017-06-19  Jan Hubicka <hubicka@ucw.cz>
17500         * profile-count.c (profile_count::dump): Dump quality.
17501         (profile_count::differs_from_p): Update for unsigned val.
17502         * profile-count.h (profile_count_quality): New enum.
17503         (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
17505 2017-06-19  Richard Biener  <rguenther@suse.de>
17507         * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
17508         struct function as arg.
17509         (estimate_numbers_of_iterations): Export overload with loop arg.
17510         (free_numbers_of_iterations_estimates_loop): Use an overload of
17511         free_numbers_of_iterations_estimates instead.
17512         * tree-cfg.c (remove_bb): Adjust.
17513         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
17514         * tree-parloops.c (gen_parallel_loop): Likewise.
17515         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
17516         Likewise.
17517         (tree_unroll_loops_completely): Likewise.
17518         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
17519         Use an overload instead and export.
17520         (estimated_loop_iterations): Adjust.
17521         (max_loop_iterations): Likewise.
17522         (likely_max_loop_iterations): Likewise.
17523         (estimate_numbers_of_iterations): Take struct function as arg
17524         and adjust.
17525         (loop_exits_before_overflow): Adjust.
17526         (free_numbers_of_iterations_estimates_loop): Use an overload.
17527         * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
17528         * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
17530 2017-06-19  Richard Biener  <rguenther@suse.de>
17532         PR ipa/81112
17533         * ipa-prop.c (find_constructor_constant_at_offset): Handle
17534         RANGE_EXPR conservatively.
17536 2017-06-16  Carl Love  <cel@us.ibm.com>
17538         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17539         definitions for vec_float, vec_float2, vec_floato,
17540         vec_floate built-ins.
17541         * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
17542         for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
17543         floate.
17544         * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
17545         FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
17546         UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
17547         * config/altivec.md (define_insn "p8_vmrgew_<mode>",
17548         define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
17549         * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
17550         vec_floato): Add builtin defines.
17551         * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
17552         Update the built-in documentation file for the new built-in
17553         functions.
17555 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17557         * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
17558         (mthumb): Mark as the negative of -marm.
17560 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17562         * doc/invoke.texi (ARM Options, -mcpu): Document supported
17563         extension options.
17564         (ARM Options, -mtune): Document that this accepts the same
17565         extension options as -mcpu.
17566         (ARM Options, -mfpu): Document addition of -mfpu=auto.
17568 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17570         * doc/invoke.texi (ARM Options, -march=): Document new syntax and
17571         permitted extensions.
17573 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17575         * config/arm/arm-cpus.in (armv7): Add extension +nofp.
17576         (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
17577         (armv8-m.main): Add option +nodsp.
17578         * config/arm/arm-cpu-cdata.h: Regenerated.
17580 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17582         * config/arm/t-fuchsia: New file.
17583         * config.gcc (arm*-*-fuchsia*): Use it.
17585 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17587         * config/arm/t-symbian: Rewrite for new option infrastructure.
17589 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17591         * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
17592         (MULTILIB_REQUIRED): Likewise.
17594 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17596         * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
17597         (MULTILIB_RESUE): Likewise.
17598         (MULTILIB_MATCHES): Likewise.
17599         (MULTLIB_REQUIRED): Likewise.
17601 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17603         * config/arm/t-rtems: Rewrite for new option framework.
17605 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17607         * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
17608         (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
17609         (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
17610         (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
17611         * config/arm/t-multilib: ... here.
17612         (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
17613         (MULTILIB_MATCHES): Use armv7 libraries for armv7-r.  Also use for
17614         armv7-a and armv8*-a when A-profile libraries have not been built.
17615         * config/arm/t-rmprofile: Rewrite.
17617 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17619         * genmultilib (multilib_reuse): Allow an explicit period to be escaped
17620         with a backslash.  Remove the backslash after substituting unescaped
17621         periods.
17622         * doc/fragments.texi (MULTILIB_REUSE): Document it.
17624 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17626         * config.gcc: (arm*-*-*): When building a-profile libraries, force
17627         the driver to pass through the default setting of -mfloat-abi.
17628         * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
17629         rather than NULL.
17630         * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
17631         (all_feat_combs): New rule.
17632         (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories.  Rework
17633         default libraries.
17634         * config/arm/t-aprofile: Rewrite.
17636 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17638         * config/arm/arm.h (FPUTYPE_AUTO): Define.
17639         * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
17640         fpu is not specified by the user/command-line.
17641         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
17642         * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
17643         * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
17644         * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
17645         * common/config/arm/arm-common.c (arm_canon_arch_option): Use
17646         FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
17648 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17650         * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
17651         * config/arm/t-arm-elf: Rewritten.
17653 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17655         * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
17656         have some floating-point instructions.
17657         (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
17658         (TARGET_MAYBE_HARD_FLOAT): New macro.
17659         * config/arm/arm-builtins.c (arm_init_builtins): Use
17660         TARGET_MAYBE_HARD_FLOAT.
17661         * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
17663 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17665         * common/config/arm/arm-common.c: Define INCLUDE_LIST.
17666         (configargs.h): Include it.
17667         (arm_print_hint_for_fpu_option): New function.
17668         (arm_parse_fpu_option): New function.
17669         (candidate_extension): New class.
17670         (arm_canon_for_multilib): New function.
17671         * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
17672         (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
17673         (ARCH_CANONICAL_SPECS): New macro.
17674         (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
17676 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17678         * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
17679         are set after handling multilib fragments.  Set target_cpu_default2
17680         from with_cpu.
17682 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17684         * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
17685         cpu name.
17686         (arm*-*-*): Set target_cpu_default2 to a quoted string.
17687         * config/arm/parsecpu.awk (check_cpu): Validate any extension
17688         options.
17689         (check_arch): Likewise.
17690         * config/arm/arm.c (arm_configure_build_target): Handle
17691         TARGET_CPU_DEFAULT being a string constant.  Scan any feature
17692         options in the default.
17694 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17696         * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
17697         when an option is an alias of another.
17698         * config/arm/parsecpu.awk (optalias): New parser token.
17699         (gen_comm_data): Mark non-alias options as such.  Emit entries
17700         for extension aliases.
17701         * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
17702         (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
17703         (armv6kz, armv6zk, armv6t2): Likewise.
17704         (armv7): Make vfpv3-d16 an alias.
17705         (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases.  Sort in
17706         canonical order.
17707         (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
17708         Sort in canonical order.
17709         (armv8-a): Sort in canonical order.
17710         (armv8.1-a, armv8.2-a):  Likewise.
17711         (generic-armv7-a): Make neon and neon-vfpv3 aliases.  Sort in
17712         canonical order.
17713         (cortex-a9): Sort in canonical order.
17714         * config/arm/arm.c (selftests.h): Include it.
17715         (arm_test_cpu_arch_data): New function.
17716         (arm_run_self_tests): New function.
17717         (TARGET_RUN_TARGET_SELFTESTS): Redefine.
17718         (targetm): Move declaration to the end of the file.
17719         * arm-cpu-cdata.h: Regenerated.
17721 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17723         * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
17724         call to target_mode_check describing the type of option passed.
17725         * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
17726         (arm_target_thumb_only): Use arm_parse_arch_option_name or
17727         arm_parse_cpu_option_name to match parameters against list of
17728         available targets.
17729         * config/arm/parsecpu.awk (gen_comm_data): Don't generate
17730         arm_arch_core_flags data structure.
17731         * config/arm/arm-cpu_cdata.h: Regenerated.
17733 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17735         * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
17736         config/arm/arm.c.
17737         (arm_print_hint_for_cpu_option): Likewise.
17738         (arm_print_hint_for_arch_option): Likewise.
17739         (arm_parse_cpu_option_name): Likewise.
17740         (arm_parse_arch_option_name): Likewise.
17741         * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
17742         of entries in the all_fpus list.
17743         * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
17744         (arm_parse_cpu_option_name): Declare.
17745         (arm_parse_arch_option_name): Declare.
17746         (arm_parse_option_features): Declare.
17747         (arm_intialize_isa): Declare.
17748         * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
17749         data tables to ...
17750         (gen_comm_data): ... here.  Make definitions non-static.
17751         * config/arm/arm-cpu-data.h: Regenerated.
17752         * config/arm/arm-cpu-cdata.h: Regenerated.
17754 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17756         * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
17757         (cpu_arch_extension): New structure.
17758         (cpu_arch_option, arch_option, cpu_option): New structures.
17759         * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
17760         architecture types.
17761         (gen_data): Generate new format data tables.
17762         * config/arm/arm.c (cpu_tune): New structure.
17763         (cpu_option, processors): Delete.
17764         (arm_print_hint_for_core_or_arch): Delete.  Replace with ...
17765         (arm_print_hint_for_cpu_option): ... this and ...
17766         (arm_print_hint_for_arch_option): ... this.
17767         (arm_parse_arch_cpu_name): Delete.  Replace with ...
17768         (arm_parse_cpu_option_name): ... this and ...
17769         (arm_parse_arch_option_name): ... this.
17770         (arm_unrecognized_feature): Change type of target parameter to
17771         cpu_arch_option.
17772         (arm_parse_arch_cpu_features): Delete.  Replace with ...
17773         (arm_parse_option_features): ... this.
17774         (arm_configure_build_target): Rework to use new configuration data
17775         tables.
17776         (arm_print_tune_info): Rework for new configuration data tables.
17777         * config/arm/arm-cpu-data.h: Regenerated.
17778         * config/arm/arm-cpu.h: Regenerated.
17780 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17782         * Makefile.in (OBJS): Move sbitmap.o from here ...
17783         (OBJS-libcommon): ... to here.
17785 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17787         * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
17788         (ISA_ALL_CRYPTO): New macro.
17789         (ISA_ALL_SIMD): New macro
17790         (ISA_ALL_FP): New macro.
17791         * config/arm/arm.c (fpu_bitlist): Update initializer.
17792         * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
17793         simd or fp.
17794         (arm9e): Add fpu.  Add option for nofp
17795         (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
17796         (arm926ej-s, arm1026ej-s): Likewise.
17797         (generic-armv7-a): Add fpu.  Add options for simd, vfpv3, vfpv3-d16,
17798         vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
17799         neon-fp16, neon-vfpv4, nofp and nosimd.
17800         (cortex-a5, cortex-a7): Add fpu.  Add options for nosimd and nofp.
17801         (cortex-a8): Add fpu.  Add option for nofp.
17802         (cortex-a9): Add fpu.  Add options for nosimd and nofp.
17803         (cortex-a12, cortex-a15, cortex-a17): Add fpu.  Add option for nofp.
17804         (cortex-r4f): Add fpu.
17805         (cortex-r5): Add fpu.  Add options for nofp.dp and nofp.
17806         (cortex-r7): Use idiv option from architecture.  Add fpu.  Add option
17807         for nofp.
17808         (cortex-r8): Likewise.
17809         (cortex-m4): Add fpu.  Add option for nofp.
17810         (cortex-a15.cortex-a7): Add fpu.  Add option for nofp.
17811         (cortex-a17.cortex-a7): Likewise.
17812         (cortex-a32): Add fpu.  Add options for crypto and nofp.
17813         (cortex-a35, cortex-a53): Likewise.
17814         (cortex-a57): Add fpu.  Add option for crypto.
17815         (cortex-a72, cortex-a73): Likewise.
17816         (exynos-m1): Likewise.
17817         (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
17818         (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
17819         (cortex-m33): Add fpu.  Add option for nofp.
17820         * config/arm/arm-cpu-cdata.h: Regenerated
17821         * config/arm/arm-cpu-data.h: Regenerated.
17823 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17825         * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
17826         (armv5te, armv5tej): Likewise.
17827         (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
17828         (armv7): Add options fp and vfpv3-d16.
17829         (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
17830         vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
17831         nofp and nosimd.
17832         (armv7ve): Likewise.
17833         (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
17834         (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
17835         (armv8-a): Add nocrypto option.
17836         (armv8.1-a, armv8.2-a): Likewise.
17837         (armv8-m.main): add options fp, fp.dp and nofp.
17839 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17841         * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
17842         nofp.
17843         (armv8-a+crc): Delete.
17844         (armv8.1-a): Add options simd, crypto and nofp.
17845         (armv8.2-a): Add options fp16, simd, crypto and nofp.
17846         (armv8.2-a+fp16): Delete.
17847         (armv8-m.main): Add option dsp.
17848         (armv8-m.main+dsp): Delete.
17849         (cortex-a8): Add fpu.  Add nofp option.
17850         (cortex-a9): Add fpu.  Add nofp and nosimd options.
17851         * config/arm/parsecpu.awk (gen_data): Generate option tables and
17852         link to main cpu and architecture data structures.
17853         (gen_comm_data): Only put isa attributes from the main architecture
17854         in common tables.
17855         (option): New statement for architecture and CPU entries.
17856         * arm.c (struct cpu_option): New structure.
17857         (struct processors): Add entry for options.
17858         (arm_unrecognized_feature): New function.
17859         (arm_parse_arch_cpu_name): Ignore any characters after the first
17860         '+' character.
17861         (arm_parse_arch_cpu_feature): New function.
17862         (arm_configure_build_target): Separate out any CPU and architecture
17863         features and parse separately.  Don't error out if -mfpu=auto is
17864         used with only an architecture string.
17865         (arm_print_asm_arch_directives): New function.
17866         (arm_file_start): Call it.
17867         * config/arm/arm-cpu-cdata.h: Regenerated.
17868         * config/arm/arm-cpu-data.h: Likewise.
17869         * config/arm/arm-tables.opt: Likewise.
17871 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17873         * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
17874         assembler when it is not -mfpu=auto.
17876 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17878         * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
17879         (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
17880         (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
17881         (ASM_CPU_SPEC): Rewrite.
17882         (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
17883         (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef.  Use
17884         MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS.  Remove
17885         reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
17886         * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
17887         copied string is NUL-terminated.  Also strip any characters prefixed
17888         by '+'.
17889         (arm_rewrite_selected_arch): New function.
17890         (arm_rewrite_march): New function.
17892 2017-06-16  Richard Earnshaw  <rearnsha@arm.com>
17894         * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
17895         (x_arm_cpu_string, x_arm_tune_string): Likewise.
17896         (march, mcpu, mtune): Convert to string-based options.
17897         * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
17898         (arm_parse_arch_cpu_name): New function.
17899         (arm_configure_build_target): Use arm_parse_arch_cpu_name to
17900         identify selected architecture or CPU.
17901         (arm_option_save): New function.
17902         (TARGET_OPTION_SAVE): Redefine.
17903         (arm_option_restore): Restore string options.
17904         (arm_option_print): Print string options.
17906 2017-06-16  Martin Sebor  <msebor@redhat.com>
17908         PR tree-optimization/80933
17909         PR tree-optimization/80934
17910         * builtins.c (fold_builtin_3): Do not handle bcmp here.
17911         * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
17912         (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
17913         (gimple_fold_builtin): Call them.
17915 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
17917         * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
17918         as unlikely; update profile.
17920 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
17922         * predict.c (force_edge_cold): Handle declaring edges impossible
17923         more aggresively.
17925 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
17927         * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
17928         profile.
17929         (try_unroll_loop_completely): Fix reporting.
17931 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
17933         * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
17935 2017-06-16  James Greenhalgh  <james.greenhalgh@arm.com>
17937         PR target/71778
17938         * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
17939         if given a non-constant argument for an intrinsic which requires a
17940         constant.
17942 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
17944         * profile.c (compare_freqs): New function.
17945         (branch_prob): Sort edge list.
17946         (find_spanning_tree): Assume that the list is priority sorted.
17948 2017-06-16  Richard Biener  <rguenther@suse.de>
17950         PR tree-optimization/81090
17951         * passes.def (pass_record_bounds): Remove.
17952         * tree-pass.h (make_pass_record_bounds): Likewise.
17953         * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
17954         make_pass_record_bounds): Likewise.
17955         * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
17956         not free niter estimates at the beginning but at the end.
17957         * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
17959 2017-06-16  Richard Biener  <rguenther@suse.de>
17961         * tree-switch-conversion.c (emit_case_bit_tests): Adjust
17962         initializer to workaround ICE in host GCC 4.8.
17964 2017-06-16  Jan Hubicka  <hubicka@ucw.cz>
17966         * ipa-inline-transform.c (update_noncloned_frequencies): Update also
17967         counts.
17968         (clone_inlined_nodes): Update.
17970 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17972         * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
17973         prefetch settings, and enable prefetching by default at -O3.
17975 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17977         * config/aarch64/aarch64.c (aarch64_override_options_internal):
17978         Set flag_prefetch_loop_arrays according to tuning data.
17980 2017-06-16  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
17982         * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
17983         New tune structure.
17984         (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
17985         [Unrelated to main purpose of the patch] Place the pointer field last
17986         to enable type checking errors when tune structure are wrongly merged.
17987         * config/aarch64/aarch64.c (generic_prefetch_tune,)
17988         (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
17989         (thunderx2t99_prefetch_tune): New tune constants.
17990         (tune_params *_tunings): Update all tunings (no functional change).
17991         (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
17992         PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
17993         from tunings structures.
17995 2017-06-16  Jakub Jelinek  <jakub@redhat.com>
17997         PR sanitizer/81094
17998         * ubsan.c (instrument_null): Add T argument, use it instead
17999         of computing it based on IS_LHS.
18000         (instrument_object_size): Likewise.
18001         (pass_ubsan::execute): Adjust instrument_null and
18002         instrument_object_size callers to pass gimple_get_lhs or
18003         gimple_assign_rhs1 result to it.  Use instrument_null instead of
18004         calling get_base_address and instrument_mem_ref.  Handle
18005         aggregate call arguments for object-size sanitization.
18007 2017-06-16  Yury Gribov  <tetra2005@gmail.com>
18009         PR tree-optimization/81089
18010         * tree-vrp.c (is_masked_range_test): Validate operands of
18011         subexpression.
18013 2017-06-15  Martin Sebor  <msebor@redhat.com>
18015         PR c++/80560
18016         * dumpfile.c (dump_register): Avoid calling memset to initialize
18017         a class with a default ctor.
18018         * gcc.c (struct compiler): Remove const qualification.
18019         * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
18020         * hash-table.h: Ditto.
18021         * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
18022           assignment.
18023         * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
18024         * omp-low.c (lower_omp_ordered_clauses): Replace memset with
18025         default ctor.
18026         * params.h (struct param_info): Make struct members non-const.
18027         * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
18028         with default initialization.
18029         * vec.h (vec_copy_construct, vec_default_construct): New helper
18030         functions.
18031         (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
18032         with vec_copy_construct.
18033         (vect<T>::quick_grow_cleared): Replace memset with default ctor.
18034         (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
18035         * doc/invoke.texi (-Wclass-memaccess): Document.
18037 2017-06-15  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18039         * emit-rtl.h (is_leaf): Update comment about local
18040         register allocator.
18042 2017-06-15  Jozef Lawrynowicz   <jozef.l@somniumtech.com>
18044         PR target/78818
18045         * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
18046         for a variable to have a section before checking if the section has a
18047         name.
18048         Set section to.persistent if persistent attribute is set.
18049         Warn if .persistent attribute is used on an automatic variable.
18051 2017-06-15  Eric Botcazou  <ebotcazou@adacore.com>
18053         PR rtl-optimization/80474
18054         * reorg.c (update_block): Do not ignore instructions in a delay slot.
18056 2017-06-15  Segher Boessenkool  <segher@kernel.crashing.org>
18058         * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
18059         of REGNO.
18061 2017-06-14  Maciej W. Rozycki  <macro@imgtec.com>
18063         * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
18064         (casesi): Emit bounds checking as RTL.
18065         (casesi_internal_mips16_<mode>): Remove bounds checking.
18067 2017-06-14  Max Filippov  <jcmvbkbc@gmail.com>
18069         * config/xtensa/xtensa.c (xtensa_option_override): Append
18070         MASK_CONST16 to target_flags in the absence of TARGET_L32R.
18071         (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
18072          xtensa_doloop_hooks): Define unconditionally.
18073         (xtensa_reorg_loops): Only call reorg_loops in the presence of
18074         TARGET_LOOPS.
18075         * config/xtensa/xtensa.h (TARGET_L32R): New definition.
18076         (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
18077         for it in xtensa_option_override.
18078         (HARD_FRAME_POINTER_IS_FRAME_POINTER,
18079          HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
18081 2017-06-14  Boris Kolpackov  <boris@codesynthesis.com>
18083         * doc/cppopts.texi: Document '-' special value to -MF.
18085 2017-06-14  Wilco Dijkstra  <wdijkstr@arm.com>
18087         * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
18088         (cortex_a53_fconst): Likewise.
18089         (cortex_a53_fpmul): Likewise.
18090         (cortex_a53_f_load_64): Likewise.
18091         (cortex_a53_f_load_many): Likewise.
18092         (cortex_a53_advsimd_alu): Likewise.
18093         (cortex_a53_advsimd_alu_q): Likewise.
18094         (cortex_a53_advsimd_mul): Likewise.
18095         (cortex_a53_advsimd_mul_q): Likewise.
18096         (fpmac bypass): Add new bypass for fpmac-fpmac case.
18097         Add missing fmul, r2f_cvt and fconst cases.
18099 2017-06-14  Richard Biener  <rguenther@suse.de>
18101         PR middle-end/81088
18102         * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
18103         literal constants.
18104         (fold_binary_loc): When associating do not treat pre-existing
18105         TREE_OVERFLOW on literal constants as a reason to allow
18106         TREE_OVERFLOW on associated literal constants.
18108 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
18110         * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
18111         (MASK_FEATURES): New macro.
18112         * config/sparc/sparc.c (sparc_option_override): Remove the special
18113         handling of -mfpu and generalize it to all MASK_FEATURES switches.
18115 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
18117         * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
18118         a division of 0 if non-call exceptions are enabled.
18120 2017-06-14  Andrew Pinski  <apinski@cavium.com>
18121             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
18123         PR target/71663
18124         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
18125         Improve vector initialization code gen for only variable case.
18127 2017-06-14  Eric Botcazou  <ebotcazou@adacore.com>
18129         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
18131 2017-06-14  Richard Biener  <rguenther@suse.de>
18133         PR tree-optimization/81083
18134         * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
18135         as values.
18137 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18139         * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
18140         (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
18141         * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
18142         * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete.  Adjust former use.
18143         * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
18144         * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
18146 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18148         * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
18149         * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
18151 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18153         * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
18155 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18157         * config/rs6000/t-rtems: Don't handle SPE.
18159 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18161         * config/rs6000/t-linux: Don't handle SPE.
18163 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18165         * config/rs6000/eabispe.h: Delete file.
18167 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18169         * config/rs6000/t-spe: Delete file.
18171 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18173         * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
18174         (rs6000_legitimate_offset_address_p): Return false for anything in
18175         V2SImode or V2SFmode.
18177 2017-06-13  Segher Boessenkool  <segher@kernel.crashing.org>
18179         * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
18180         except V2SF and V2SI.  Rearrange the vector modes, and add comments.
18181         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
18182         and V4HImode.
18183         (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
18184         (rs6000_legitimate_offset_address_p): Ditto.
18185         (rs6000_emit_move): Ditto.
18186         (rs6000_init_builtins): Remove V4HI_type_node.
18188 2017-06-13  Martin Liska  <mliska@suse.cz>
18190         PR sanitize/78204
18191         * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
18192         (gate_asan): Likewise.
18193         * asan.h (asan_no_sanitize_address_p): Remove the function.
18194         (sanitize_flags_p): New function.
18195         * builtins.def: Fix coding style.
18196         * common.opt: Use renamed enum value.
18197         * convert.c (convert_to_integer_1): Use sanitize_flags_p.
18198         * doc/extend.texi: Document no_sanitize attribute.
18199         * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
18200         to SANITIZE_UNDEFINED_NONDEFAULT.
18201         * gcc.c (sanitize_spec_function): Use the renamed enum value.
18202         * gimple-fold.c (optimize_atomic_compare_exchange_p):
18203         Use sanitize_flags_p.
18204         * gimplify.c (gimplify_function_tree): Likewise.
18205         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
18206         * opts.c (parse_no_sanitize_attribute): New function.
18207         (common_handle_option): Use renamed enum value.
18208         * opts.h (parse_no_sanitize_attribute): Declare.
18209         * tree.c (sanitize_flags_p): New function.
18210         * tree.h: Declared here.
18211         * tsan.c: Use sanitize_flags_p.
18212         * ubsan.c (ubsan_expand_null_ifn): Likewise.
18213         (instrument_mem_ref): Likewise.
18214         (instrument_bool_enum_load): Likewise.
18215         (do_ubsan_in_current_function): Remove the function.
18216         (pass_ubsan::execute): Use sanitize_flags_p.
18217         * ubsan.h: Remove do_ubsan_in_current_function
18218         * tree-cfg.c (print_no_sanitize_attr_value): New function.
18219         (dump_function_to_file): Use it here.
18221 2017-06-13  Martin Jambor  <mjambor@suse.cz>
18223         PR tree-optimization/80803
18224         PR tree-optimization/81063
18225         * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
18226         (propagate_subaccesses_across_link): Enqueue subtree whenever
18227         necessary instead of relying on the caller.
18229 2017-06-13  Martin Jambor  <mjambor@suse.cz>
18231         * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
18232         that have a first_link.
18233         (sort_and_splice_var_accesses): Do not check first_link before
18234         enquing.
18235         (subtree_mark_written_and_enqueue): Likewise.
18236         (propagate_all_subaccesses): Likewise and do not stop at first
18237         parent with a first_link.
18239 2017-06-13  Martin Jambor  <mjambor@suse.cz>
18241         * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
18242         instead of f.
18244 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
18246         * match.pd: New pattern.
18248 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
18250         * tree-vrp.c (is_masked_range_test): New function.
18251         (register_edge_assert_for): Determine ranges for
18252         some bit tests.
18254 2017-06-13  Yury Gribov  <tetra2005@gmail.com>
18256         PR tree-optimization/67328
18257         * fold-const.c (maskable_range_p): New function.
18258         (build_range_check): Generate bittests if possible.
18260 2017-06-13  Martin Liska  <mliska@suse.cz>
18262         * gimple-pretty-print.c (dump_probability): Add new argument.
18263         (dump_edge_probability): Dump both probability and count.
18264         (dump_gimple_label): Likewise.
18265         (dump_gimple_bb_header): Likewise.
18267 2017-06-13  Georg-Johann Lay  <avr@gjlay.de>
18269         PR target/81072
18270         * config/avr/avr-devices.c: Fix indentation.
18271         * config/avr/gen-avr-mmcu-specs.c: Dito.
18273 2017-06-13  Richard Biener  <rguenther@suse.de>
18275         * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
18276         instead get vector type from stmt_info.
18277         (vectorizable_reduction): Adjust.  Remove dead code.
18279 2017-06-13  Richard Biener  <rguenther@suse.de>
18281         PR middle-end/81065
18282         * fold-const.c (extract_muldiv_1): Remove bogus distribution
18283         case of C * (x * C2 + C3).
18284         (fold_addr_of_array_ref_difference): Properly fold index difference.
18286 2017-06-12  David S. Miller  <davem@davemloft.net>
18288         PR target/80968
18289         * config/sparc/sparc.md (return expander): Emit frame blockage if
18290         function uses alloca.
18292 2017-06-12  Richard Sandiford  <richard.sandiford@linaro.org>
18294         * combine.c (make_field_assignment): Check len rather than the mode
18295         precision when calling force_to_mode.
18297 2017-06-12  Georg-Johann Lay  <avr@gjlay.de>
18299         Support multilibs and devices that see flash in RAM address range.
18301         PR target/81072
18302         * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
18303         (avr_mcu_t) <flash_pm_offset>: New field.
18304         (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
18305         * config/avr/avr.h (AVR_SHORT_CALLS): New define.
18306         (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
18307         (AVR_TINY_PM_OFFSET): Remove macro.
18308         * config/avr/avr.opt (-mshort-calls): New option.
18309         * config/avr/gen-avr-mmcu-specs.c (print_mcu)
18310         [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
18311         * config/avr/avr-c.c (avr_cpu_cpp_builtins)
18312         <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
18313         <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
18314         instead of avr_arch->have_jmp_call.
18315         <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
18316         [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
18317         avr_arch->flash_pm_offset to define.
18318         * config/avr/avr-devices.c (avr_arch_types): Add initializers for
18319         new field flash_pm_offset.  Add entry for avrxmega3.
18320         (avr_texinfo): Add entry for avrxmega3.
18321         * config/avr/avr-mcus.def: Add entries for: avrxmega3,
18322         attiny212, attiny214,
18323         attiny412, attiny414, attiny416, attiny417,
18324         attiny814, attiny816, attiny817,
18325         attiny1614, attiny1616, attiny1617,
18326         attiny3214, attiny3216, attiny3217.
18327         * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
18328         avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
18329         (avr_print_operand_address) [AVR_TINY]: Same.
18330         (avr_asm_init_sections) <readonly_data_section>: Only patch
18331         callback if avr_arch->flash_pm_offset = 0.
18332         (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
18333         for rodata if avr_arch->flash_pm_offset != 0.
18334         (avr_encode_section_info) [AVR_TINY]: Adjust comment.
18335         * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
18336         (opts) [AVR_ISA_RCALL]: Append opt_rcall.
18337         (m_options): Append opt_rcall.
18338         (m_dirnames): Append dir_rcall.
18339         * config/avr/t-multilib: Regenerate.
18341         * configure.ac [target=avr]: Check whether avrxmega3 default
18342         linker description file works as needed.
18343         * configure: Regenerate.
18344         * doc/avr-mmcu.texi: Regenerate.
18345         * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
18346         <__AVR_ARCH__>: Document avrxmega3 and 103.
18347         <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
18348         <__AVR_SHORT_CALLS__>: Document it.
18349         <__AVR_PM_BASE_ADDRESS__>: Document it.
18350         * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
18351         (AVR Variable Attributes) <progmem>: Document this is
18352         not needed for avrxmega3.
18353         (AVR Named Address Spaces) <__flash>: Dito.
18355 2017-06-12  Jan Hubicka  <hubicka@ucw.cz>
18357         * cgraph.c (cgraph_node::dump): Complain about profile insanities.
18359 2017-06-12  Doug Rupp  <rupp@adacore.com>
18361         * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
18362         Append vxworks-stdint.h to the tm_file list.
18363         * config/vxworks-stdint.h: New file.
18365 2017-06-12  Martin Liska  <mliska@suse.cz>
18367         PR tree-optimization/81041
18368         * tree-profile.c (gimple_gen_ic_func_profiler):
18369         Create an extra BB in profile-generate
18370         (gimple_gen_time_profiler): Likewise.
18372 2017-06-12  Jakub Jelinek  <jakub@redhat.com>
18374         PR tree-optimization/81003
18375         * tree-ssa-reassoc.c (force_into_ssa_name): New function.
18376         (update_range_test): Use it instead of force_gimple_operand_gsi.
18378 2017-06-12  Richard Biener  <rguenther@suse.de>
18380         PR tree-optimization/81053
18381         * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
18382         with backedge value not defined in loop.  Simplify def stmt
18383         compute.
18385 2017-06-11  Tom de Vries  <tom@codesourcery.com>
18387         PR target/79939
18388         * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
18389         Return true.
18390         (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
18391         nvptx_cannot_force_const_mem.
18393 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
18395         * opts.c (finish_options): Move test for flag_split_stack after
18396         it has been initialized.
18398 2017-06-11  Jason Merrill  <jason@redhat.com>
18400         * tree.h (id_equal): New.
18401         * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
18402         omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
18403         instead of strcmp of IDENTIFIER_POINTER.
18405 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
18407         * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
18408         (mark_all_inlined_calls_cdtor): Fix formating.
18409         (inline_transform): Rescale profile before inlining.
18411 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
18413         * cgraph.h (cgraph_edge::clone): Update prototype.
18414         * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
18415         (cgraph_node::create_clone): Update.
18416         (cgraph_node::create_version_clone): Update.
18417         * tree-inline.c (copy_bb): Update.
18418         (expand_call_inline): Update.
18420 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
18422         * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
18423         factored out from ...
18424         (rs6000_emit_prologue): ... here.
18426 2017-06-10  Segher Boessenkool  <segher@kernel.crashing.org>
18428         * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
18429         factored out from ...
18430         (rs6000_emit_prologue): ... here.
18432 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
18434         * predict.c (drop_profile): Also drop individual bb/edge and cgraph
18435         edge counts.
18436         (handle_missing_profiles): Fix computation of tp_first_run.
18437         (counts_to_freqs): Do not touch freqs when count is 0.
18439 2017-06-10  Jan Hubicka  <hubicka@ucw.cz>
18441         * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
18442         profile.
18444 2017-06-10  Tom de Vries  <tom@codesourcery.com>
18446         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
18447         attributes): Document signal effective target.
18449 2017-06-10  Tom de Vries  <tom@codesourcery.com>
18451         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
18452         Document effective target stack_size.
18454 2017-06-09  David Malcolm  <dmalcolm@redhat.com>
18456         * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
18457         to the edit_context if they can be auto-applied.
18459 2017-06-9  Ian Lance Taylor  <iant@golang.org>
18461         * opts.c (finish_options): If -fsplit-stack, disable implicit
18462         -forder-blocks-and-partition.
18463         * doc/invoke.texi (Optimize Options): Document that when using
18464         -fsplit-stack -forder-blocks-and-partition is not implicitly
18465         enabled.
18467 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
18469         * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
18470         ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
18471         ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
18472         * builtins.def (abort, trap, unreachable): Declare cold.
18473         * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
18474         * tree-core.h (ECF_COLD): New.
18475         * tree.c (set_call_expr_flags): Handle ECF_COLD.
18476         (build_common_builtin_nodes): Mark unreachable and abort as cold.
18478 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
18480         * predict.c (unlikely_executed_stmt_p): Cleanup.
18482 2017-06-09  Richard Biener  <rguenther@suse.de>
18484         * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
18485         model if the ref is always written to.
18487 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
18489         * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
18491 2017-06-09  Tamar Christina  <tamar.christina@arm.com>
18493         * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
18494         than udiv.
18496 2017-06-09  Tom de Vries  <tom@codesourcery.com>
18498         PR target/80855
18499         * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
18500         "target cannot support label values" when encountering LABEL_REF.
18502 2017-06-09  Martin Liska  <mliska@suse.cz>
18504         * tree-profile.c (gimple_gen_ic_profiler): Update comment.
18505         (gimple_gen_ic_func_profiler): Emit direct comparison
18506         of __gcov_indirect_call_callee with NULL.
18507         (gimple_gen_time_profiler): Change probability from
18508         PROB_VERY_UNLIKELY to PROB_UNLIKELY.
18510 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
18512         * profile.c (edge_gcov_counts): Turn to pointer.
18513         (compute_branch_probabilities, compute_branch_probabilities): Update.
18514         (branch_prob): Do not clear edge_gcov_count.
18515         * profile.h (edge_gcov_counts): Turn to pointer.
18516         (edge_gcov_count): Update.
18518 2017-06-09  Jan Hubicka  <hubicka@ucw.cz>
18520         * gimple.h (gimple_check_failed): Mark cold.
18522 2017-06-09  Richard Biener  <rguenther@suse.de>
18524         PR tree-optimization/66623
18525         * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
18526         refactor check_reduction into two parts, properly computing
18527         whether we have to check reduction validity for outer loop
18528         vectorization.
18530 2017-06-09  Richard Biener  <rguenther@suse.de>
18532         PR tree-optimization/79483
18533         * graphite-scop-detection.c (order): New global.
18534         (get_order): Compute bb to order mapping that satisfies code
18535         generation constraints.
18536         (cmp_pbbs): New helper.
18537         (build_scops): Start domwalk at entry block, sort generated
18538         pbbs.
18540 2017-06-09  Richard Biener  <rguenther@suse.de>
18542         PR middle-end/81007
18543         * ipa-polymorphic-call.c
18544         (ipa_polymorphic_call_context::restrict_to_inner_class):
18545         Skip FIELD_DECLs with error_mark_node type.
18546         * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
18547         last again.
18549 2017-06-09  Martin Liska  <mliska@suse.cz>
18551         * predict.c (struct branch_predictor): New struct.
18552         (test_prediction_value_range): New test.
18553         (predict_c_tests): New function.
18554         * selftest-run-tests.c (selftest::run_tests): Run the function.
18555         * selftest.h: Declare new tests.
18557 2017-06-09  Segher Boessenkool  <segher@kernel.crashing.org>
18559         PR target/80966
18560         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
18561         gen_add3_insn did not fail.
18562         * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
18563         r0, construct that number in a temporary reg and add that reg to r0.
18564         If asked to put the result in r0 as well, fail.
18566 2017-06-08  Will Schmidt  <will_schmidt@vnet.ibm.com>
18568         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
18569         for early expansion of vec_eqv.
18571 2017-06-08  Jakub Jelinek  <jakub@redhat.com>
18573         PR middle-end/81005
18574         * ubsan.c (instrument_null): Avoid pointless code temporary.
18575         (pass_ubsan::execute): Instrument aggregate arguments of calls.
18577 2017-06-08  Uros Bizjak  <ubizjak@gmail.com>
18579         PR target/81015
18580         Revert:
18581         2016-12-14  Uros Bizjak  <ubizjak@gmail.com>
18583         PR target/59874
18584         * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
18585         (*clzhi2): Ditto.
18587 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
18589         * predict.c (unlikely_executed_edge_p): Move ahead.
18590         (probably_never_executed_edge_p): Use it.
18592 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18594         PR middle-end/79988
18595         * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
18596         gimple_call_builtin_p call.
18598 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
18600         * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
18601         * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
18602         rtl_check_failed_type2, rtl_check_failed_code1,
18603         rtl_check_failed_code2, rtl_check_failed_code_mode,
18604         rtl_check_failed_block_symbol, cwi_check_failed_bounds,
18605         rtvec_check_failed_bounds, rtl_check_failed_flag,
18606         _fatal_insn_not_found, _fatal_insn): Likewise.
18607         * tree.h (tree_contains_struct_check_failed,
18608         tree_check_failed, tree_not_check_failed,
18609         tree_class_check_failed, tree_range_check_failed,
18610         tree_not_class_check_failed, tree_int_cst_elt_check_failed,
18611         tree_vec_elt_check_failed, phi_node_elt_check_failed,
18612         tree_operand_check_failed, omp_clause_check_failed,
18613         omp_clause_operand_check_failed, omp_clause_range_check_failed):
18614         Likewise.
18616 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
18618         * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
18619         flag_branch_probabilities.
18620         * ipa-inline.c (edge_badness): Likewise.
18621         * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
18622         * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
18623         * predict.c (maybe_hot_frequency_p): Likewise.
18624         (probably_never_executed): Likewise.
18625         * sched-ebb.c (schedule_ebbs): Likewise.
18626         * sched-rgn.c (find_single_block_region): Likewise.
18627         * tracer.c (tail_duplicate): Likewise.
18629 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
18631         * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
18632         longer requires x_flag_profile_use.
18634 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
18636         * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
18637         instead of flag_reorder_blocks_and_partition.
18638         * dbxout.c (dbxout_function_end): Likewise.
18639         * dwarf2out.c (gen_subprogram_die): Likewise.
18640         * haifa-sched.c (sched_create_recovery_edges): Likewise.
18641         * hw-doloop.c (reorg_loops): Likewise.
18642         * varasm.c (assemble_start_function,
18643         assemble_end_function): Likewise.
18644         (decide_function_section): Do not check for
18645         flag_reorder_blocks_and_partition.
18647 2017-06-08  Alexander Ivchenko  <alexander.ivchenko@intel.com>
18649         * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
18650         New function.
18651         (chkp_get_hard_register_fake_addr_expr): Ditto.
18652         (chkp_build_addr_expr): Add check for hard reg case.
18653         (chkp_parse_array_and_component_ref): Ditto.
18654         (chkp_find_bounds_1): Ditto.
18655         (chkp_process_stmt): Don't generate bounds store for
18656         hard reg case.
18658 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
18660         * predict.c (maybe_hot_bb_p): Do not check profile status.
18661         (maybe_hot_edge_p): Likewise.
18662         (probably_never_executed): Check for zero counts even if profile
18663         is not read.
18664         (unlikely_executed_edge_p): New function.
18665         (unlikely_executed_stmt_p): New function.
18666         (unlikely_executed_bb_p): New function.
18667         (set_even_probabilities): Use unlikely predicates.
18668         (combine_predictions_for_bb): Likewise.
18669         (predict_paths_for_bb): Likewise.
18670         (predict_paths_leading_to_edge): Likewise.
18671         (determine_unlikely_bbs): New function.
18672         (estimate_bb_frequencies): Use it.
18673         (compute_function_frequency): Use zero counts even if profile is
18674         not read.
18675         * profile-count.h: Fix typo.
18677 2017-08-08  Julia Koval  <julia.koval@intel.com>
18679         * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
18680         _mm512_mask_cvtsepi16_storeu_epi8,
18681         _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
18682         * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
18683         _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
18684         _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
18685         _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
18686         * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
18687         (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
18688         VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
18689         * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
18690         __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
18691         __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
18692         __builtin_ia32_pmovuswb256mem_mask,
18693         __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
18694         __builtin_ia32_pmovwb512mem_mask): New builtins.
18696 2017-08-08  Julia Koval  <julia.koval@intel.com>
18698         PR target/73350,80862
18699         * config/i386/subst.md (round): Fix round pattern.
18700         * config/i386/i386.c (ix86_erase_embedded_rounding):
18701         Fix erasing rounding for the fixed pattern.
18703 2017-06-08  Jan Hubicka  <hubicka@ucw.cz>
18705         * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
18707 2017-06-08  Martin Liska  <mliska@suse.cz>
18709         PR gcov-profile/80911
18710         * gcov.c (block_info::block_info): New constructor.
18712 2017-06-07  Carl Love  <cel@us.ibm.com>
18714         * config/rs6000/rs6000-c: The return type of the following
18715         built-in functions was implemented as int not long long.  Fix sign
18716         of return value for the unsigned version of vec_mulo and vec_mule.
18717         vector unsigned long long vec_bperm (vector unsigned long long,
18718                                              vector unsigned char)
18719         vector signed long long vec_mule (vector signed int,
18720                                           vector signed int)
18721         vector unsigned long long vec_mule (vector unsigned int,
18722                                             vector unsigned int)
18723         vector signed long long vec_mulo (vector signed int,
18724                                           vector signed int)
18725         vector unsigned long long vec_mulo (vector unsigned int,
18726                                             vector unsigned int)
18727         * doc/extend.texi: Fix the documentation for the built-in
18728         functions.
18730 2017-06-07  Carl Love  <cel@us.ibm.com>
18732         PR target/80982
18733         * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
18734         for BE.
18736 2017-06-07  Carl Love  <cel@us.ibm.com>
18738         * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
18739         support, Generate       doublehv for signed int/float for BE case only.
18741 2017-06-07  Alexander Monakov  <amonakov@ispras.ru>
18743         * doc/invoke.texi (mcx16): Rewrite.
18745 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18747         * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
18748         * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
18749         *mov<mode>_softfloat, and an anonymous splitter): Use
18750         nonimmediate_operand instead of rs6000_nonimmediate_operand.
18752 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18754         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
18755         SPEFSCR registers.
18756         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
18757         (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
18758         (rs6000_debug_reg_global): Adjust.
18759         (rs6000_init_hard_regno_mode_ok): Adjust.
18760         (rs6000_dbx_register_number): Adjust.
18761         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
18762         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18763         Remove SPE_ACC and SPEFSCR.
18764         (REG_ALLOC_ORDER): Ditto.
18765         (FRAME_POINTER_REGNUM): Change to 111.
18766         (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
18767         (REG_CLASS_NAMES): Ditto.
18768         (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
18769         (REGISTER_NAMES): Ditto.
18770         (ADDITIONAL_REG_NAMES): Ditto.
18771         (rs6000_reg_names): Ditto.
18772         * config/rs6000/rs6000.md: Renumber some register number
18773         define_constants.
18775 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18777         * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
18778         registers.
18779         * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
18780         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
18781         to 117.
18782         (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
18783         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18784         Delete the SPE high registers.
18785         (REG_ALLOC_ORDER): Ditto.
18786         (enum reg_class): Remove SPE_HIGH_REGS.
18787         (REG_CLASS_NAMES): Ditto.
18788         (REG_CLASS_CONTENTS): Delete the SPE high registers.
18789         (REGISTER_NAMES): Ditto.
18790         (rs6000_reg_names): Ditto.
18791         * doc/tm.texi.in: Remove SPE as example.
18792         * doc/tm.texi: Regenerate.
18794 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18796         * config/rs6000/8540.md (ppc8540_brinc): Delete.
18797         * config/rs6000/e500mc.md (e500mc_brinc): Delete.
18798         * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
18799         * config/rs6000/rs6000.md (type): Remove "brinc".
18801 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18803         * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
18804         (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
18805         * config/rs6000/linuxspe.h: Delete file.
18806         * config/rs6000/rs6000.md: Don't include spe.md.
18807         * config/rs6000/spe.h: Delete file.
18808         * config/rs6000/spe.md: Delete file.
18809         * config/rs6000/t-rs6000: Remove spe.md.
18811 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18813         * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
18814         (reg_or_none500mem_operand): Delete.
18815         * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
18816         instead of reg_or_none500mem_operand.
18818 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18820         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
18821         handling of SPE flags.
18822         * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
18824 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18826         * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
18827         SPE ABI handling.
18828         * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
18829         (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
18830         paired_divv2sf3): Similar.
18831         * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
18832         SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
18833         * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
18834         RS6000_BUILTIN_S.
18835         Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
18836         Rename the paired_* instruction patterns.
18837         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
18838         define __SPE__.
18839         * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
18840         * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
18841         (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
18842         spe_padding_size, and spe_64bit_regs_used.  Replace TARGET_SPE and
18843         TARGET_SPE_ABI with 0, simplify.  Replace SPE_VECTOR_MODE with
18844         PAIRED_VECTOR_MODE.
18845         (struct machine_function): Delete field spe_insn_chain_scanned_p.
18846         (spe_func_has_64bit_regs_p): Delete.
18847         (spe_expand_predicate_builtin): Delete.
18848         (spe_expand_evsel_builtin): Delete.
18849         (TARGET_DWARF_REGISTER_SPAN): Do not define.
18850         (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
18851         (invalid_e500_subreg): Delete.
18852         (rs6000_legitimize_address): Always force_reg op2 as well, for
18853         paired single memory accesses.
18854         (rs6000_member_type_forces_blk): Delete.
18855         (rs6000_spe_function_arg): Delete.
18856         (rs6000_expand_unop_builtin): Delete SPE handling.
18857         (rs6000_expand_binop_builtin): Ditto.
18858         (spe_expand_stv_builtin): Delete.
18859         (bdesc_2arg_spe): Delete.
18860         (spe_expand_builtin): Delete.
18861         (spe_expand_predicate_builtin): Delete.
18862         (spe_expand_evsel_builtin): Delete.
18863         (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
18864         (spe_init_builtins): Delete.
18865         (spe_func_has_64bit_regs_p): Delete.
18866         (savres_routine_name): Delete "info" parameter.  Adjust callers.
18867         (rs6000_emit_stack_reset): Ditto.
18868         (rs6000_dwarf_register_span): Delete.
18869         * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
18870         UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
18871         SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
18872         Delete.
18873         * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
18874         Delete.
18875         * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
18876         * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
18877         * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
18878         mulv2sf3, divv2sf3): Delete expanders.
18880 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18882         config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
18884 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18886         * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
18887         * config/rs6000/rs6000.c: Ditto.
18889 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18891         * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
18892         * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
18893         comparison_operator.
18895 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18897         * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
18898         * config/rs6000/rs6000.opt: Ditto.
18899         * config/rs6000/t-rtems: Ditto.
18901 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18903         * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
18904         TARGET_E500_SINGLE by 0, simplify.
18905         * config/rs6000/rs6000.c: Ditto.
18906         (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
18907         (spe_build_register_parallel): Delete.
18908         * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
18909         TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
18910         * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
18911         TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
18912         (E500_CONVERT): Delete.
18913         * config/rs6000/spe.md: Remove many patterns and all define_constants.
18915 2017-06-07  Segher Boessenkool  <segher@kernel.crashing.org>
18917         * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
18918         * config/rs6000/dfp.md: Ditto.
18919         (negdd2, *negdd2_fpr): Merge.
18920         (absdd2, *absdd2_fpr): Merge.
18921         (negtd2, *negtd2_fpr): Merge.
18922         (abstd2, *abstd2_fpr): Merge.
18923         * config/rs6000/e500.h: Delete file.
18924         * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
18925         TARGET_FPRS by 1 and simplify.
18926         * config/rs6000/rs6000-c.c: Ditto.
18927         * config/rs6000/rs6000.c: Ditto.  Also replace TARGET_SF_SPE and
18928         TARGET_DF_SPE by 0.
18929         * config/rs6000/rs6000.h: Ditto.  Delete TARGET_SF_SPE and
18930         TARGET_DF_SPE.
18931         * config/rs6000/rs6000.md: Ditto.
18932         (floatdidf2, *floatdidf2_fpr): Merge.
18933         (move_from_CR_gt_bit): Delete.
18934         * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
18935         (E500_CR_IOR_COMPARE): Delete.
18936         (All patterns that require !TARGET_FPRS): Delete.
18937         * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
18939 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18941         * passes.def (pass_iv_canon): Move before pass_loop_distribution.
18943 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18945         * graphds.c (add_edge): Intitialize edge's attached data.
18946         (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
18947         pointer parameter.  Call pointed function on each edge during
18948         graph traversing.  Skip traversing the edge when the function
18949         returns true.
18950         (graphds_dfs, graphds_scc): Ditto.
18951         (for_each_edge): New parameter.  Pass the new parameter to callback
18952         function.
18953         * graphds.h (skip_edge_callback): New function pointer type.
18954         (graphds_dfs, graphds_scc): New function pointer parameter.
18955         (graphds_edge_callback, for_each_edge): New parameter.
18957 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18959         * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
18960         out code checking if runtime alias check is possible to below ...
18961         Call the new function.
18962         * tree-data-ref.c (runtime_alias_check_p): ... to new function.
18963         * tree-data-ref.h (runtime_alias_check_p): New decalaration.
18965 2017-06-07  Marek Polacek  <polacek@redhat.com>
18967         PR sanitizer/80932
18968         * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
18969         TYPE_OVERFLOW_WRAPS check.
18971 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18973         * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
18974         if versioning is required.
18975         * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
18976         peeling with the check for versioning.
18978 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18980         * tree-vectorizer.h (vect_build_loop_niters): New parameter.
18981         * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
18982         Set true to new parameter if new ssa variable is defined.
18983         (vect_gen_vector_loop_niters): Refactor.  Set range information
18984         for the new vector loop bound variable.
18985         (vect_do_peeling): Ditto.
18987 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18989         * tree-affine.c (ssa.h): Include header file.
18990         (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
18991         has wrapping overflow behavior.
18993 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18995         * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
18997 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
18999         (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
19000         (tree_to_aff_combination): ... here.
19002 2017-06-07  Bin Cheng  <bin.cheng@arm.com>
19004         * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
19005         reg_pressure model function.
19006         (ivopts_global_cost_for_size): Delete.
19007         (determine_set_costs, iv_ca_recount_cost): Call new model function
19008         ivopts_estimate_reg_pressure.
19010 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
19012         * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
19013         expensive than udiv.  Remove floating point cases from mod.
19015 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
19017         * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
19018         Increase idiv cost.
19020 2017-06-07  Tamar Christina  <tamar.christina@arm.com>
19022         * config/aarch64/aarch64.md
19023         (copysignsf3): Fix mask generation.
19025 2017-06-07  Jakub Jelinek  <jakub@redhat.com>
19027         * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
19028         TDI_gimple.
19029         (class dump_manager): Add register_dumps method.
19030         * dumpfile.c: Include langhooks.h.
19031         (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
19032         (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
19033         (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
19034         (dump_manager::dump_register): Start with 512 entries instead of 32.
19035         (dump_manager::register_dumps): New method.
19036         * toplev.c (general_init): Instead of invoking register_dumps
19037         langhook, invoke register_dumps method on the dump manager.
19038         * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
19039         TDI_generic.
19041 2017-06-07  Richard Sandiford  <richard.sandiford@linaro.org>
19043         * doc/md.texi: Clarify the restrictions on a define_insn condition.
19044         Say that # requires an associated define_split to exist, and that
19045         the define_split must be suitable for use after register allocation.
19047 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
19049         * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
19050         (compute_outgoing_frequencies): Also initialize zero counts.
19051         (find_many_sub_basic_blocks): Do not produce uninitialized profile
19052         around loops; preserve more of profile when nothing changes.
19054 2017-06-06  Jim Wilson  <jim.wilson@linaro.org>
19056         * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
19057         here.
19058         * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
19059         * config/arm/arm-cpu-cdata.h: Regenerate.
19060         * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
19061         * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
19062         * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
19063         * config/arm/arm.c (arm_qdf24xx_tune): Delete.
19064         * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
19065         support.
19066         * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
19067         support.
19068         * config/arm/t-rmprofile: Likewise.
19069         * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
19071 2017-06-06  David S. Miller  <davem@davemloft.net>
19073         PR target/80968
19074         * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
19075         blockage if function uses alloca.
19077 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19079         * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
19080         New "uid" fields to hold pretty-print IDs of group and ref.
19081         Memory references are now identified as <group_id>:<ref_id>
19082         instead of using [random] addresses.
19083         (dump_mem_details): Simplify, no functional change.
19084         (dump_mem_ref): Simplify and make output more concise.
19085         Replace couple of fprintf's throughout code with calls to dump_mem_ref.
19086         (find_or_create_group): Initialize group uid.
19087         (record_ref): Initialize ref uid.  Improve debug output.
19088         (prune_group_by_reuse, should_issue_prefetch_p,)
19089         (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
19090         (mark_nontemporal_store, determine_loop_nest_reuse):
19091         Improve debug output.
19093 2017-06-06  Maxim Kuvyrkov  <maxim.kuvyrkov@linaro.org>
19095         * dbgcnt.def (prefetch): New debug counter.
19096         * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
19097         (schedule_prefetches): Stop issueing prefetches if debug counter
19098         tripped.
19100 2017-06-06  Tom de Vries  <tom@codesourcery.com>
19102         * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
19103         gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
19105 2017-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19107         * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
19108         Use aarch64_reg_or_zero predicate for operand 4.
19109         (aarch64_compare_and_swap<mode> define_insn_and_split):
19110         Use aarch64_reg_or_zero predicate for operand 3.  Add 'Z' constraint.
19111         (aarch64_store_exclusive<mode>): Likewise for operand 2.
19113 2017-06-06  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19115         * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
19116         (arm_compute_save_core_reg_mask): This.
19117         (thumb1_compute_save_reg_mask): Rename into ...
19118         (thumb1_compute_save_core_reg_mask): This.
19119         (arm_compute_save_reg0_reg12_mask): Adapt comment.
19120         (arm_compute_frame_layout): Likewise.
19122 2017-06-06  Richard Biener  <rguenther@suse.de>
19124         PR tree-optimization/80974
19125         * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
19126         keep or clear leaders SSA info.
19128 2017-06-06  Tom de Vries  <tom@codesourcery.com>
19130         * config/nvptx/nvptx.c (split_mode_p): New function.
19131         (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
19133 2017-06-06  Tom de Vries  <tom@codesourcery.com>
19135         * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
19137 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
19139         PR bootstrap/80978
19140         * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
19141         profile.
19143 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
19145         * shrink-wrap.c (handle_simple_exit): Update profile.
19146         (try_shrink_wrapping): Upate profile.
19148 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
19150         * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
19151         (tree_guess_outgoing_edge_probabilities): New.
19152         * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
19153         * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
19155 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
19157         * ipa-split.c (split_function): Initialize return bb profile.
19159 2017-06-06  Jan Hubicka  <hubicka@ucw.cz>
19161         * profile.c (compute_branch_probabilities): Also initialize
19162         EXIT_BLOCK profile.
19164 2017-06-06  Richard Biener  <rguenther@suse.de>
19166         PR tree-optimization/80928
19167         * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
19168         (vect_analyze_loop_operations): Properly guard analysis for
19169         pure SLP case.
19170         (vect_transform_loop): Likewise.
19171         (vect_analyze_loop_2): Also reset SLP type on PHIs.
19172         (vect_model_induction_cost): Do not cost for pure SLP.
19173         (vectorizable_induction): Pass in SLP node, implement SLP vectorization
19174         of induction in inner loop vectorization.
19175         * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
19176         (vect_get_and_check_slp_defs): Handle vect_induction_def.
19177         (vect_build_slp_tree): Likewise.  Handle PHIs as terminating the
19178         recursion.
19179         (vect_analyze_slp_cost_1): Cost induction.
19180         (vect_detect_hybrid_slp_stmts): Handle PHIs.
19181         (vect_get_slp_vect_defs): Likewise.
19182         * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
19183         (vect_transform_stmt): Handle SLP reductions.
19184         * tree-vectorizer.h (vectorizable_induction): Adjust.
19186 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
19188         * config/rs6000/rs6000.c (make_resolver_func): Update
19189         init_lowered_empty_function call.
19191 2017-06-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19193         * doc/invoke.texi: Document the -fprofile-abs-path option.
19194         * common.opt (fprofile-abs-path): New option.
19195         * gcov-io.h (gcov_write_filename): Declare.
19196         * gcov-io.c (gcov_write_filename): New function.
19197         * coverage.c (coverage_begin_function): Use gcov_write_filename.
19198         * profile.c (output_location): Likewise.
19200 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
19202         * shring-wrap.c: Revert accidental commit.
19204 2017-06-05  Volker Reichelt  <v.reichelt@netcologne.de>
19206         * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
19208 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
19210         * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
19211         new edge.
19212         * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
19213         profile in callgraph edge.
19214         * profile-count.h (apply_probability): If THIS is 0, then result is 0
19215         (apply_scale): Likewise.
19216         * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
19217         Also scale profile when inlining function with zero profile.
19218         (initialize_cfun): Update exit block profile even when it is zero.
19219         * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
19220         when profile is read.
19222 2017-06-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
19224         * config/rs6000/rs6000.c (toplevel): Include attribs.h.
19225         (CLONE_*): New constants to define the processors we can generate
19226         code for with the target_clone attribute.
19227         (rs6000_clone_map): New array to identify which clone processors
19228         the current program is running on.
19229         (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
19230         target_clone attribute.
19231         (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
19232         (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
19233         (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
19234         (cpu_expand_builtin): Add support for target_clone attribute.
19235         (rs6000_valid_attribute_p): Allow "default" attribute.
19236         (get_decl_name): New debug function to simplify printing the
19237         current function name in debugging statements.
19238         (rs6000_clone_priority): New functions to support the target_clone
19239         attribute, and be able to generate code to switch between ISA 2.05
19240         through ISA 3.0 (power6 through power9).
19241         (rs6000_compare_version_priority): Likewise.
19242         (rs6000_get_function_versions_dispatcher): Likewise.
19243         (make_resolver_func): Likewise.
19244         (add_condition_to_bb): Likewise.
19245         (dispatch_function_versions): Likewise.
19246         (rs6000_generate_version_dispatcher_body): Likewise.
19247         (rs6000_can_inline_p): Call get_decl_name for debugging usage.
19248         (fusion_gpr_load_p): Fix a spacing issue.
19249         * doc/extend.texi (Common Function Attributes): Document that the
19250         PowerPC supports the target_clone attribute.
19252 2017-06-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
19254         * config/arm/arm.h: explain F symbol found in description of ARM
19255         register allocation in its legend.
19257 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
19259         * config/mips/frame-header-opt.c: Include profile-count.h.
19260         * config/riscv/riscv.c: Include profile-count.h
19262 2017-06-05  Jan Hubicka  <hubicka@ucw.cz>
19264         * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
19265         update profile.
19266         (sm_set_flag_if_changed): Add bbs field.
19267         (execute_sm_if_changed_flag_set): Pass BBS.
19268         (execute_sm): Update.
19270 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19272         * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
19273         New pattern.
19275 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19277         * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
19278         (peephole2): New peephole2 to emit the above.
19279         * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
19281 2017-06-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19283         * config/aarch64/aarch64.c (define_peephole2 above
19284         *sub_<shift>_<mode>): New peephole.
19286 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
19288         * config/i386/i386.c (make_resolver_func): Update.
19289         * Makefile.in: Add profile-count.h and profile-count.o
19290         * auto-profile.c (afdo_indirect_call): Update to new API.
19291         (afdo_set_bb_count): Update.
19292         (afdo_propagate_edge): Update.
19293         (afdo_propagate_circuit): Update.
19294         (afdo_calculate_branch_prob): Update.
19295         (afdo_annotate_cfg): Update.
19296         * basic-block.h: Include profile-count.h
19297         (struct edge_def): Turn count to profile_count.
19298         (struct basic_block_def): Likewie.
19299         (REG_BR_PROB_BASE): Move to profile-count.h
19300         (RDIV): Move to profile-count.h
19301         * bb-reorder.c (max_entry_count): Turn to profile_count.
19302         (find_traces): Update.
19303         (rotate_loop):Update.
19304         (connect_traces):Update.
19305         (sanitize_hot_paths):Update.
19306         * bt-load.c (migrate_btr_defs): Update.
19307         * cfg.c (RDIV): Remove.
19308         (init_flow): Use alloc_block.
19309         (alloc_block): Uninitialize count.
19310         (unchecked_make_edge): Uninitialize count.
19311         (check_bb_profile): Update.
19312         (dump_edge_info): Update.
19313         (dump_bb_info): Update.
19314         (update_bb_profile_for_threading): Update.
19315         (scale_bbs_frequencies_int): Update.
19316         (scale_bbs_frequencies_gcov_type): Update.
19317         (scale_bbs_frequencies_profile_count): New.
19318         * cfg.h (update_bb_profile_for_threading): Update.
19319         (scale_bbs_frequencies_profile_count): Declare.
19320         * cfgbuild.c (compute_outgoing_frequencies): Update.
19321         (find_many_sub_basic_blocks): Update.
19322         * cfgcleanup.c (try_forward_edges): Update.
19323         (try_crossjump_to_edge): Update.
19324         * cfgexpand.c (expand_gimple_tailcall): Update.
19325         (construct_exit_block): Update.
19326         * cfghooks.c (verify_flow_info): Update.
19327         (dump_bb_for_graph): Update.
19328         (split_edge): Update.
19329         (make_forwarder_block): Update.
19330         (duplicate_block): Update.
19331         (account_profile_record): Update.
19332         * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
19333         (get_estimated_loop_iterations): Update.
19334         * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
19335         (single_likely_exit): Update.
19336         * cfgloopmanip.c (scale_loop_profile): Update.
19337         (loopify): Update.
19338         (set_zero_probability): Update.
19339         (lv_adjust_loop_entry_edge): Update.
19340         * cfgrtl.c (force_nonfallthru_and_redirect): Update.
19341         (purge_dead_edges): Update.
19342         (rtl_account_profile_record): Update.
19343         * cgraph.c (cgraph_node::create): Uninitialize count.
19344         (symbol_table::create_edge): Uninitialize count.
19345         (cgraph_update_edges_for_call_stmt_node): Update.
19346         (cgraph_edge::dump_edge_flags): Update.
19347         (cgraph_node::dump): Update.
19348         (cgraph_edge::maybe_hot_p): Update.
19349         * cgraph.h: Include profile-count.h
19350         (create_clone), create_edge, create_indirect_edge): Update.
19351         (cgraph_node): Turn count to profile_count.
19352         (cgraph_edge0: Likewise.
19353         (make_speculative, clone): Update.
19354         (create_edge): Update.
19355         (init_lowered_empty_function): Update.
19356         * cgraphclones.c (cgraph_edge::clone): Update.
19357         (duplicate_thunk_for_node): Update.
19358         (cgraph_node::create_clone): Update.
19359         * cgraphunit.c (cgraph_node::analyze): Update.
19360         (cgraph_node::expand_thunk): Update.
19361         * final.c (dump_basic_block_info): Update.
19362         * gimple-streamer-in.c (input_bb): Update.
19363         * gimple-streamer-out.c (output_bb): Update.
19364         * graphite.c (print_global_statistics): Update.
19365         (print_graphite_scop_statistics): Update.
19366         * hsa-brig.c: Include basic-block.h.
19367         * hsa-dump.c: Include basic-block.h.
19368         * hsa-gen.c (T sum_slice): Update.
19369         (convert_switch_statements):Update.
19370         * hsa-regalloc.c: Include basic-block.h.
19371         * ipa-chkp.c (chkp_produce_thunks): Update.
19372         * ipa-cp.c (struct caller_statistics): Update.
19373         (init_caller_stats): Update.
19374         (gather_caller_stats): Update.
19375         (ipcp_cloning_candidate_p): Update.
19376         (good_cloning_opportunity_p): Update.
19377         (get_info_about_necessary_edges): Update.
19378         (dump_profile_updates): Update.
19379         (update_profiling_info): Update.
19380         (update_specialized_profile): Update.
19381         (perhaps_add_new_callers): Update.
19382         (decide_about_value): Update.
19383         (ipa_cp_c_finalize): Update.
19384         * ipa-devirt.c (struct odr_type_warn_count): Update.
19385         (struct decl_warn_count): Update.
19386         (struct final_warning_record): Update.
19387         (possible_polymorphic_call_targets): Update.
19388         (ipa_devirt): Update.
19389         * ipa-fnsummary.c (redirect_to_unreachable): Update.
19390         * ipa-icf.c (sem_function::merge): Update.
19391         * ipa-inline-analysis.c (do_estimate_edge_time): Update.
19392         * ipa-inline.c (compute_uninlined_call_time): Update.
19393         (compute_inlined_call_time): Update.
19394         (want_inline_small_function_p): Update.
19395         (want_inline_self_recursive_call_p): Update.
19396         (edge_badness): Update.
19397         (lookup_recursive_calls): Update.
19398         (recursive_inlining): Update.
19399         (inline_small_functions): Update.
19400         (dump_overall_stats): Update.
19401         (dump_inline_stats): Update.
19402         * ipa-profile.c (ipa_profile_generate_summary): Update.
19403         (ipa_propagate_frequency): Update.
19404         (ipa_profile): Update.
19405         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
19406         * ipa-utils.c (ipa_merge_profiles): Update.
19407         * loop-doloop.c (doloop_modify): Update.
19408         * loop-unroll.c (report_unroll): Update.
19409         (unroll_loop_runtime_iterations): Update.
19410         * lto-cgraph.c (lto_output_edge): Update.
19411         (lto_output_node): Update.
19412         (input_node): Update.
19413         (input_edge): Update.
19414         (merge_profile_summaries): Update.
19415         * lto-streamer-in.c (input_cfg): Update.
19416         * lto-streamer-out.c (output_cfg): Update.
19417         * mcf.c (create_fixup_graph): Update.
19418         (adjust_cfg_counts): Update.
19419         (sum_edge_counts): Update.
19420         * modulo-sched.c (sms_schedule): Update.
19421         * postreload-gcse.c (eliminate_partially_redundant_load): Update.
19422         * predict.c (maybe_hot_count_p): Update.
19423         (probably_never_executed): Update.
19424         (dump_prediction): Update.
19425         (combine_predictions_for_bb): Update.
19426         (propagate_freq): Update.
19427         (handle_missing_profiles): Update.
19428         (counts_to_freqs): Update.
19429         (rebuild_frequencies): Update.
19430         (force_edge_cold): Update.
19431         * predict.h: Include profile-count.h
19432         (maybe_hot_count_p, counts_to_freqs): UPdate.
19433         * print-rtl-function.c: Do not include cfg.h
19434         * print-rtl.c: Include basic-block.h
19435         * profile-count.c: New file.
19436         * profile-count.h: New file.
19437         * profile.c (is_edge_inconsistent): Update.
19438         (correct_negative_edge_counts): Update.
19439         (is_inconsistent): Update.
19440         (set_bb_counts): Update.
19441         (read_profile_edge_counts): Update.
19442         (compute_frequency_overlap): Update.
19443         (compute_branch_probabilities): Update; Initialize and deinitialize
19444         gcov_count tables.
19445         (branch_prob): Update.
19446         * profile.h (bb_gcov_counts, edge_gcov_counts): New.
19447         (edge_gcov_count): New.
19448         (bb_gcov_count): New.
19449         * shrink-wrap.c (try_shrink_wrapping): Update.
19450         * tracer.c (better_p): Update.
19451         * trans-mem.c (expand_transaction): Update.
19452         (ipa_tm_insert_irr_call): Update.
19453         (ipa_tm_insert_gettmclone_call): Update.
19454         * tree-call-cdce.c: Update.
19455         * tree-cfg.c (gimple_duplicate_sese_region): Update.
19456         (gimple_duplicate_sese_tail): Update.
19457         (gimple_account_profile_record): Update.
19458         (execute_fixup_cfg): Update.
19459         * tree-inline.c (copy_bb): Update.
19460         (copy_edges_for_bb): Update.
19461         (initialize_cfun): Update.
19462         (freqs_to_counts): Update.
19463         (copy_cfg_body): Update.
19464         (expand_call_inline): Update.
19465         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
19466         * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
19467         (try_unroll_loop_completely): Update.
19468         (try_peel_loop): Update.
19469         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
19470         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
19471         * tree-ssa-loop-split.c (connect_loops): Update.
19472         * tree-ssa-loop-unswitch.c (hoist_guard): Update.
19473         * tree-ssa-reassoc.c (branch_fixup): Update.
19474         * tree-ssa-tail-merge.c (replace_block_by): Update.
19475         * tree-ssa-threadupdate.c (create_block_for_threading): Update.
19476         (compute_path_counts): Update.
19477         (update_profile): Update.
19478         (recompute_probabilities): Update.
19479         (update_joiner_offpath_counts): Update.
19480         (estimated_freqs_path): Update.
19481         (freqs_to_counts_path): Update.
19482         (clear_counts_path): Update.
19483         (ssa_fix_duplicate_block_edges): Update.
19484         (duplicate_thread_path): Update.
19485         * tree-switch-conversion.c (case_bit_test_cmp): Update.
19486         (struct switch_conv_info): Update.
19487         * tree-tailcall.c (decrease_profile): Update.
19488         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
19489         * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
19490         * value-prof.c (check_counter): Update.
19491         (gimple_divmod_fixed_value): Update.
19492         (gimple_mod_pow2): Update.
19493         (gimple_mod_subtract): Update.
19494         (gimple_ic_transform): Update.
19495         (gimple_stringop_fixed_value): Update.
19496         * value-prof.h (gimple_ic): Update.
19498 2017-06-02  Carl Love  <cel@us.ibm.com>
19500         * config/rs6000/rs6000-c: Add support for built-in functions
19501         vector double vec_doublee (vector signed int);
19502         vector double vec_doublee (vector unsigned int);
19503         vector double vec_doublee (vector float);
19504         vector double vec_doubleh (vector signed int);
19505         vector double vec_doubleh (vector unsigned int);
19506         vector double vec_doubleh (vector float);
19507         vector double vec_doublel (vector signed int);
19508         vector double vec_doublel (vector unsigned int);
19509         vector double vec_doublel (vector float);
19510         vector double vec_doubleo (vector signed int);
19511         vector double vec_doubleo (vector unsigned int);
19512         vector double vec_doubleo (vector float);.
19513         * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
19514         DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
19515         UNS_DOUBLEL.
19516         * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
19517         unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
19518         unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
19519         VS_sxwsp.
19520         * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
19521         vec_doublel, vec_doubleh.
19522         * doc/extend.texi: Update the built-in documentation file for the
19523         new built-in functions.
19525 2017-06-02  David Malcolm  <dmalcolm@redhat.com>
19527         PR jit/80954
19528         * ipa-inline-analysis.c (free_growth_caches): Set
19529         edge_removal_hook_holder to NULL after removing it.
19531 2017-06-02  Sudakshina Das  <sudi.das@arm.com>
19533         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
19534         comparision with zero.
19536 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
19537         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
19538         for early expansion of vec_min and vec_max builtins.
19539         (builtin_function_type): Add min/max unsigned variants to those
19540         identified as having unsigned arguments.
19542 2017-06-02  Olivier Hainque  <hainque@adacore.com>
19544         * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
19546 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19548         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
19549         Use VALL_F16 iterator rather than VALL.
19551 2017-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19553         * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
19554         Emit CBNZ inside loop when doing a strong exchange and comparing
19555         against zero.  Generate the CC flags after the loop.
19557 2017-06-02  David Edelsohn  <dje.gcc@gmail.com>
19559         * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
19560         (dl_section_ref): New.
19561         (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
19562         On AIX, append an expression to subtract the size of the
19563         section length to dl_section_ref.
19565 2017-06-02  Will Schmidt  <will_schmidt@vnet.ibm.com>
19567         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
19568         for early expansion of vector absolute builtins.
19570 2017-06-02  Richard Biener  <rguenther@suse.de>
19572         * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
19573         what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
19575 2017-06-02  Richard Biener  <rguenther@suse.de>
19577         PR tree-optimization/80948
19578         * tree-tailcall.c (find_tail_calls): Track stmts to move in
19579         stmt order as well.
19581 2017-06-02  Richard Biener  <rguenther@suse.de>
19583         * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
19584         PHIs are ok.
19585         * tree-vect-stmts.c (process_use): Do not mark backedge defs
19586         for inductions as relevant.
19588 2017-06-02  Richard Biener  <rguenther@suse.de>
19590         * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
19591         (vectorizable_induction): ... this.  Remove dead code.
19593 2017-06-02  Eric Botcazou  <ebotcazou@adacore.com>
19595         * builtins. (expand_builtin_alloca): Remove second parameter and
19596         infer its value from the first parameter instead.
19597         (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
19599 2017-06-02  Jakub Jelinek  <jakub@redhat.com>
19601         PR rtl-optimization/80903
19602         * loop-doloop.c (add_test): Unshare sequence.
19604 2017-06-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19606         * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
19608 2017-06-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
19610         * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
19611         static.
19612         (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
19613         xlogue_layout::get_instance, logue_layout::xlogue_layout,
19614         sp_valid_at, fp_valid_at, choose_basereg): Formatting.
19615         (xlogue_layout::get_stub_rtx): Make static.
19616         (xlogue_layout::get_stub_name): Avoid const-cast, make static.
19617         (xlogue_layout::compute_stub_managed_regs): Rename to...
19618         (xlogue_layout::count_stub_managed_regs): ...this.
19619         (xlogue_layout::is_stub_managed_reg): New function.
19620         (xlogue_layout::m_stub_names): Rename to...
19621         (xlogue_layout::s_stub_names): ...this, make static.
19622         (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
19623         xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
19624         xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
19625         xlogue_layout::s_stub_names): Instantiate statics.
19626         (stub_managed_regs): Remove.
19627         (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
19628         (disable_call_ms2sysv_xlogues): Rename to...
19629         (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
19630         (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
19631         warning logic.
19632         (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
19633         change after reload_completed.
19634         (ix86_can_use_return_insn_p): Use the ix86_frame data structure
19635         directly.
19636         (ix86_expand_prologue): Likewise.
19637         (ix86_expand_epilogue): Likewise.
19638         (ix86_expand_split_stack_prologue): Likewise.
19639         (ix86_compute_frame_layout): Remove frame parameter ...
19640         (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
19641         (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
19642         only if necessary.
19643         (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
19644         (ix86_frame): Move from here ...
19645         * config/i386/i386.h (ix86_frame): ... to here.
19646         (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
19647         complete ix86_frame data structure instead.  Remove some_ld_name.
19649 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
19651         * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
19652         symbols that hold a DECL_VALUE_EXPR.
19654 2017-06-01  Martin Jambor  <mjambor@suse.cz>
19656         PR tree-optimization/80898
19657         * tree-sra.c (process_subtree_disqualification): Removed.
19658         (disqualify_candidate): Do not acll
19659         process_subtree_disqualification.
19660         (subtree_mark_written_and_enqueue): New function.
19661         (propagate_all_subaccesses): Set grp_write of LHS subtree if the
19662         RHS has been disqualified and re-queue LHS if necessary.  Apart
19663         from that, ignore disqualified RHS.
19665 2017-06-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19667         * config/s390/s390.c (s390_emit_epilogue): Disable early return
19668         address fetch for z10 or later.
19670 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19672         * config/arc/arc.md (tst_movb): Add guard when splitting.
19674 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19676         * config/arc/arc.c (arc_can_eliminate): Test against
19677         arc_frame_pointer_needed.
19679 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19681         * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
19682         to prevent store reordering.
19683         * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
19684         (type): Add block type.
19685         (stack_tie): Define special instruction to be used in
19686         expand_prologue.
19688 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19690         * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
19691         constraint. It is not valid for the pattern.
19692         (noncommutative_binary_comparison): Likewise.
19694 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19696         * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
19697         scaled addresses.
19699 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19701         * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
19702         be used by the reg-alloc.
19704 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19706         * config/arc/arc.md (mulsi3): Avoid use of hard registers before
19707         reg-alloc when having mul64 or mul32x16 instructions.
19708         (mulsidi3): Likewise.
19709         (umulsidi3): Likewise.
19710         (mulsi32x16): New pattern.
19711         (mulsi64): Likewise.
19712         (mulsidi64): Likewise.
19713         (umulsidi64): Likewise.
19714         (MUL32x16_REG): Define.
19715         (mul64_600): Use MUL32x16_REG.
19716         (mac64_600): Likewise.
19717         (umul64_600): Likewise.
19718         (umac64_600): Likewise.
19720 2017-06-01  Claudiu Zissulescu  <claziss@synopsys.com>
19722         * config/arc/arc.md (mulsi3_700): Make it commutative.
19724 2017-06-01  Jose E. Marchesi  <jose.marchesi@oracle.com>
19726         * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
19727         type for movstouw.
19728         (*sign_extendsidi2_insn): Likewise for movstosw.
19730 2017-06-01  Pierre-Marie de Rodat  <derodat@adacore.com>
19732         * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
19733         the type of the input discriminant value.  Convert the
19734         discriminant value of signedness vary.
19736 2017-06-01  Volker Reichelt  <v.reichelt@netcologne.de>
19738         * doc/invoke.texi (-Wcatch-value): Document new shortcut.
19739         Add to -Wall section.
19741 2017-06-01  Richard Biener  <rguenther@suse.de>
19743         PR middle-end/66313
19744         * fold-const.c (fold_plusminus_mult_expr): If the factored
19745         factor may be zero use a wrapping type for the inner operation.
19746         * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
19747         and handle moved defs.
19748         (process_assignment): Properly guard the unary op case.  Return a
19749         tri-state indicating that moving the stmt before the call may allow
19750         to continue.  Pass through to_move.
19751         (find_tail_calls): Handle moving unrelated defs before
19752         the call.
19754 2017-05-31  Segher Boessenkool  <segher@kernel.crashing.org>
19756         PR target/80618
19757         * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
19758         splitter result in the canonical way.
19760 2017-05-31  Uros Bizjak  <ubizjak@gmail.com>
19762         * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
19763         also for 32bit target.  Update insn attributes.
19764         (zero-extendsidi2 splitter): Allow all registers for operand 1.
19766 2017-05-31  Sebastian Peryt  <sebastian.peryt@intel.com>
19768         * config/i386/avx512fintrin.h (_mm_mask_max_sd)
19769         (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
19770         (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
19771         (_mm_maskz_min_ss): New intrinsics.
19773 2017-05-31  Martin Liska  <mliska@suse.cz>
19775         * tree-vect-loop.c (vect_create_epilog_for_reduction):
19776         Change comment style to one we normally use.
19777         (vectorizable_reduction): Likewise.
19778         (vectorizable_induction): Likewise.
19779         * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
19780         (vectorizable_call): Likewise.
19781         (vectorizable_simd_clone_call): Likewise.
19782         (vectorizable_conversion): Likewise.
19783         (vectorizable_assignment): Likewise.
19784         (vectorizable_shift): Likewise.
19785         (vectorizable_operation): Likewise.
19786         (vectorizable_store): Likewise.
19787         (vectorizable_load): Likewise.
19788         * tree-vectorizer.h: Likewise.
19790 2017-05-31  Alexander Monakov  <amonakov@ispras.ru>
19792         * passes.c (emergency_dump_function): New.
19793         * tree-pass.h (emergency_dump_function): Declare.
19794         * plugin.c (plugins_internal_error_function): Remove.
19795         * plugin.h (plugins_internal_error_function): Remove declaration.
19796         * toplev.c (internal_error_function): New static function.  Use it...
19797         (general_init): ...here.
19799 2017-05-31  Graham Markall  <graham.markall@embecosm.com>
19801         * config/arc/arc.c (arc_print_operand): Handle constant operands.
19802         (arc_rtx_costs): Add costs for new patterns.
19803         * config/arc/arc.md: Additional *add_n and *sub_n patterns.
19804         * config/arc/predicates.md: Add _1_2_3_operand predicate.
19806 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
19808         * tree-ssa-strlen.c (get_next_strinfo): New function.
19809         (get_stridx_plus_constant): Use it.
19810         (zero_length_string): Likewise.
19811         (adjust_related_strinfos): Likewise.
19812         (adjust_last_stmt): Likewise.
19814 2017-05-31  Richard Biener  <rguenther@suse.de>
19816         PR target/80880
19817         * config/i386/i386.c (ix86_expand_builtin): Remove assert
19818         for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
19820 2017-05-31  Richard Sandiford  <richard.sandiford@linaro.org>
19822         * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
19823         loop_vinfo argument and use of dependence distance vectors.
19824         Check instead whether the two references differ only in their
19825         initial value and assume that they have the same alignment if the
19826         difference is a multiple of the vector alignment.
19827         (vect_analyze_data_refs_alignment): Update call accordingly.
19829 2017-05-31  Martin Liska  <mliska@suse.cz>
19831         PR target/79155
19832         * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
19834 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
19836         * tree-vect-loop-manip.c (create_intersect_range_checks_index)
19837         (create_intersect_range_checks): Move from ...
19838         * tree-data-ref.c (create_intersect_range_checks_index)
19839         (create_intersect_range_checks): ... to here.
19840         (create_runtime_alias_checks): New function factored from ...
19841         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
19842         here.  Call above function.
19843         * tree-data-ref.h (create_runtime_alias_checks): New function.
19845 2017-05-31  Bin Cheng  <bin.cheng@arm.com>
19847         * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
19848         segment length for dr_b and compute it in wide_int.
19850 2017-05-31  Richard Biener  <rguenther@suse.de>
19852         PR tree-optimization/80906
19853         * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
19854         and pass through iv_map.
19855         (copy_bb_and_scalar_dependences): Adjust.
19856         (translate_pending_phi_nodes): Likewise.
19857         (copy_loop_close_phi_args): Handle code-generating IVs instead
19858         of ICEing.
19860 2017-05-30  David Malcolm  <dmalcolm@redhat.com>
19862         * diagnostic-color.c (color_dict): Add "type-diff".
19863         (parse_gcc_colors): Update comment.
19864         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19865         -fdiagnostics-show-template-tree and -fno-elide-type.
19866         (GCC_COLORS): Add type-diff to example.
19867         (type-diff=): New.
19868         (-fdiagnostics-show-template-tree): New.
19869         (-fno-elide-type): New.
19870         * pretty-print.c (pp_format): Pass quote and formatters[argno] to
19871         the pp_format_decoder callback.  Call any m_format_postprocessor's
19872         "handle" method.
19873         (pretty_printer::pretty_printer): Initialize
19874         m_format_postprocessor.
19875         (pretty_printer::~pretty_printer): Delete any
19876         m_format_postprocessor.
19877         * pretty-print.h (printer_fn): Add bool and const char ** parameters.
19878         (class format_postprocessor): New class.
19879         (struct pretty_printer::format_decoder): Document the new parameters.
19880         (struct pretty_printer::m_format_postprocessor): New field.
19881         * tree-diagnostic.c (default_tree_printer): Update for new
19882         bool and const char ** params.
19883         * tree-diagnostic.h (default_tree_printer): Likewise.
19885 2017-05-30  Segher Boessenkool  <segher@kernel.crashing.org>
19887         * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
19888         (lwa_operand): Delete rs6000_gen_cell_microcode test.
19889         * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
19890         rs6000_gen_cell_microcode code.
19891         (rs6000_final_prescan_insn): Delete.
19892         (rs6000_opt_vars): Delete the "gen-cell-microcode" and
19893         "warn-cell-microcode" entries.
19894         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
19895         * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
19896         throughout.  Change cc_reg_not_micro_cr0_operand to
19897         cc_reg_not_cr0_operand throughout.
19898         (*extendhi<mode>2_noload): Delete.
19899         * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
19900         (mwarn-cell-microcode): Delete.
19901         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
19902         -mgen-cell-microcode and -mwarn-cell-microcode.
19904 2017-05-30  Uros Bizjak  <ubizjak@gmail.com>
19906         PR target/80833
19907         * config/i386/constraints.md (Yd): New constraint.
19908         (Ye): Ditto.
19909         * config/i386/i386.md (*movti_internal): Add (?r, Ye)
19910         and (?Yd, r) alternatives.  Update insn attributes.
19911         * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
19912         and (?*Yd, r) alternatives.  Update insn attributes.
19913         (double-mode inter-unit splitters): Add new GR<->XMM splitters.
19915 2017-05-30  Pierre-Marie de Rodat  <derodat@adacore.com>
19917         * gimplify.c (gimplify_modify_expr): Don't create a
19918         DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
19919         function.
19921 2017-05-30  Wilco Dijkstra  <wdijkstr@arm.com>
19923         * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
19925 2017-05-30  Richard Biener  <rguenther@suse.de>
19927         * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
19928         and reduc_def fields.
19929         (STMT_VINFO_REDUC_TYPE): New define.
19930         (STMT_VINFO_REDUC_DEF): Likewise.
19931         (vect_force_simple_reduction): Adjust prototype.
19932         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
19933         (vect_is_simple_reduction): Remove check_reduction argument.
19934         (vect_force_simple_reduction): Adjust and set
19935         STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
19936         (vectorizable_reduction): Do not re-do reduction analysis
19937         but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
19938         * tree-parloops.c (gather_scalar_reductions): Adjust.
19940 2017-05-30  Richard Biener  <rguenther@suse.de>
19942         PR middle-end/80901
19943         * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
19944         split_edge code.
19946 2017-05-24  Robin Dapp  <rdapp@linux.vnet.ibm.com>
19948         * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
19949         Introduce unknown_misalignment parameter and remove vf.
19950         (vect_peeling_hash_get_lowest_cost):
19951         Pass unknown_misalignment parameter.
19952         (vect_enhance_data_refs_alignment):
19953         Fix unsupportable data ref treatment.
19955 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
19957         * tree-vect-data-refs.c (vect_get_data_access_cost):
19958         Workaround for SLP handling.
19959         (vect_enhance_data_refs_alignment):
19960         Compute costs for doing no peeling at all, compare to the best
19961         peeling costs so far and avoid peeling if cheaper.
19963 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
19965         * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
19966         Return peeling info and set costs to zero for unlimited cost
19967         model.
19968         (vect_enhance_data_refs_alignment): Also inspect all datarefs
19969         with unknown misalignment. Compute and costs for unknown
19970         misalignment, compare them to the costs for known misalignment
19971         and choose the cheapest for peeling.
19973 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
19975         * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
19976         (vect_get_peeling_costs_all_drs): Create function.
19977         (vect_peeling_hash_get_lowest_cost):
19978         Use vect_get_peeling_costs_all_drs.
19979         (vect_peeling_supportable): Create function.
19980         (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
19982 2017-05-30  Robin Dapp  <rdapp@linux.vnet.ibm.com>
19984         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
19985         DR_HAS_NEGATIVE_STEP.
19986         (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
19987         (vect_enhance_data_refs_alignment): Use.
19988         (vect_duplicate_ssa_name_ptr_info): Use.
19989         * tree-vectorizer.h (dr_misalignment): Use.
19990         (known_alignment_for_access_p): Use.
19992 2017-05-30  Jozef Lawrynowicz  <jozef.l@somniumtech.com>
19994         PR target/78838
19995         * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
19996         .lowtext.
19997         (has_section_name): New function.
19999 2017-05-30  Martin Liska  <mliska@suse.cz>
20001         PR other/80909
20002         * auto-profile.c (get_function_decl_from_block): Fix
20003         parenthesis.
20005 2017-05-30  Richard Biener  <rguenther@suse.de>
20007         PR middle-end/80876
20008         * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
20010 2017-05-30  Martin Liska  <mliska@suse.cz>
20012         * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
20013         * dumpfile.h (struct dump_file_info): Remove ctors.
20015 2017-05-30  Martin Liska  <mliska@suse.cz>
20017         * predict.def: Fix GNU coding style.
20019 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
20021         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
20022         Mark 'to' argument with ATTRIBUTE_UNUSED.
20024 2017-05-29  Max Filippov  <jcmvbkbc@gmail.com>
20026         * config/xtensa/xtensa.c (xtensa_emit_call): Use
20027         HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
20028         (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
20029         format string.
20031 2017-05-29  Eric Botcazou  <ebotcazou@adacore.com>
20033         * doc/install.texi (Options specification): Restore entry of
20034         --enable-sjlj-exceptions.
20036 2017-05-27  Michael Eager  <eager@eagercon.com>
20038         Revert:
20039         2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
20041         See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
20043         * config/microblaze/microblaze.h
20044         (FIXED_REGISTERS): Update in macro.
20045         (CALL_USED_REGISTERS): Update in macro.
20047 2017-05-27  François-Xavier Coudett  <fxcoudert@gcc.gnu.org>
20049         * doc/install.texi: Add links to macOS binary distributions.
20051 2017-05-27  Jakub Jelinek  <jakub@redhat.com>
20053         PR bootstrap/80887
20054         Revert:
20055         2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
20057         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
20059 2017-05-26  Martin Liska  <mliska@suse.cz>
20061         * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
20063 2017-05-26  Martin Liska  <mliska@suse.cz>
20065         * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
20066         always leading ';; '.
20067         (dump_bb_info): Likewise.
20068         (brief_dump_cfg): Likewise.
20069         * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
20070         * dumpfile.c: Remove usage of TDF_VERBOSE.
20071         * dumpfile.h (enum dump_kind): Likewise.
20072         (dump_gimple_bb_header): Do not use TDF_COMMENT.
20073         * print-tree.c (debug_verbose): Remove.
20074         * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
20075         (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
20076         * tree-diagnostic.c (default_tree_printer): Replace
20077         TDF_DIAGNOSTIC with TDF_SLIM.
20079 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
20081         * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
20082         in parameter loop, rather than loop_vinfo.
20083         (create_intersect_range_checks): Ditto.
20084         (vect_create_cond_for_alias_checks): Update call to above functions.
20086 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
20088         PR tree-optimization/80815
20089         * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
20090         for merging runtime alias checks.  Handle negative DR_STEPs.
20092 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
20094         * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
20095         Move from ...
20096         * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
20097         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
20098         out code pruning runtime alias checks.
20099         * tree-data-ref.c (prune_runtime_alias_test_list): New function
20100         factored out from above.
20101         * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
20102         Move from ...
20103         * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
20104         ... to here.
20105         (prune_runtime_alias_test_list): New decalaration.
20107 2017-05-26  Bin Cheng  <bin.cheng@arm.com>
20109         * tree-vect-data-refs.c (compare_tree): Rename and move ...
20110         * tree-data-ref.c (data_ref_compare_tree): ... to here.
20111         * tree-data-ref.h (data_ref_compare_tree): New decalaration.
20112         * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
20113         (operator==, comp_dr_with_seg_len_pair): Ditto.
20114         (vect_prune_runtime_alias_test_list): Ditto.
20116 2017-05-26  Martin Liska  <mliska@suse.cz>
20118         PR ipa/80663
20119         * params.def: Bound partial-inlining-entry-probability param.
20121 2017-05-26  Marek Polacek  <polacek@redhat.com>
20123         PR sanitizer/80875
20124         * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
20125         can be negated.
20127 2017-05-26  Richard Biener  <rguenther@suse.de>
20129         PR tree-optimization/80842
20130         * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
20131         value.
20133 2017-05-26  Richard Biener  <rguenther@suse.de>
20135         PR tree-optimization/80844
20136         * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
20138 2017-05-25  Sebastian Peryt  <sebastian.peryt@intel.com>
20140         * doc/md.texi (Machine Constraints): Update x86 family
20141         machine constraints section to match 'config/i386/constraints.md'.
20143 2017-05-25  Volker Reichelt  <v.reichelt@netcologne.de>
20145         * doc/invoke.texi (-Wcatch-value=): Document new warning option.
20147 2017-05-25  Nathan Sidwell  <nathan@acm.org>
20149         * doc/invoke.texi (--enable-languages): Update documentation.
20151 2017-05-25  Martin Liska  <mliska@suse.cz>
20153         * dumpfile.c: Add TDF_FOLDING.
20154         * dumpfile.h (enum dump_kind): Likewise.
20155         * genmatch.c (dt_simplify::gen_1): Use it.
20157 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
20159         * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
20161 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
20163         * match.pd ((A +- CST1) +- CST2): Allow some conversions.
20164         * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
20166 2017-05-25  Marc Glisse  <marc.glisse@inria.fr>
20168         * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
20169         * match.pd (X == C): Rewrite it here.
20170         (with_possible_nonzero_bits, with_possible_nonzero_bits2,
20171         with_certain_nonzero_bits2): New predicates.
20172         * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
20174 2017-05-24  Nathan Sidwell  <nathan@acm.org>
20176         * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
20177         avoid warning.
20179         * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
20180         warning.
20182 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
20184         * config/powerpcspe: New port.  Files are copied from the rs6000
20185         port, with "rs6000" in filenames replaced by "powerpcspe".
20187 2017-05-24  Wilco Dijkstra  <wdijkstr@arm.com>
20189         PR rtl-optimization/80754
20190         * lra-remat.c (do_remat): Add overlap checks for dst_regno.
20192 2017-05-24  Sheldon Lobo  <smlobo@sheldon.us.oracle.com>
20194         * config/sparc/sparc.md (length): Return the correct value for -mflat
20195         sibcalls to match output_sibcall.
20197 2017-05-24  Segher Boessenkool  <segher@kernel.crashing.org>
20199         PR bootstrap/80860
20200         PR bootstrap/80843
20201         * config/rs6000/rs6000.c (struct machine_function): Add new field
20202         n_components.
20203         (rs6000_get_separate_components): Init that field, use it.
20204         (rs6000_components_for_bb): Use the field.
20206 2017-05-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20208         * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
20210 2017-05-24  Peter Bergner  <bergner@vnet.ibm.com>
20212         PR middle-end/80823
20213         * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
20215 2017-05-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20217         PR target/80725
20218         * config/s390/s390.c (s390_check_qrst_address): Check incoming
20219         address against address_operand predicate.
20220         * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
20222 2017-05-24  Eric Botcazou  <ebotcazou@adacore.com>
20224         * var-tracking.c (track_expr_p): Do not return 0 for tracked record
20225         parameters passed indirectly.
20227 2017-05-23  Uros Bizjak  <ubizjak@gmail.com>
20229         * config/i386/i386.md (*movdi_internal): Remove SSE4
20230         alternative 18 (?r, *v).  Update insn attributes.
20231         (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
20232         Update insn attributes.
20233         (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
20234         Update insn attributes.
20235         * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
20236         alternative 1 (r, v). Remove isa attribute.
20237         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20238         Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
20239         and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
20241 2017-05-23  Tom de Vries  <tom@codesourcery.com>
20243         * doc/sourcebuild.texi (Directives, Verify compiler message): Document
20244         dg-line directive.
20246 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
20248         * cgraphunit.c (symbol_table::process_new_functions): Update.
20249         * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
20250         (inline_generate_summary): Rename to ...
20251         (ipa_fn_summary_generate): ... this one.
20252         (inline_read_summary): Rename to ...
20253         (ipa_fn_summary_read): ... this one.
20254         (inline_write_summary): Rename to ...
20255         (ipa_fn_summary_write): ... this one.
20256         (inline_free_summary): Rename to ...
20257         (ipa_free_fn_summary): ... this one.
20258         (pass_data_local_fn_summary, pass_local_fn_summary,
20259         make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
20260         pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
20261         pass_data_ipa_fn_summary, pass_ipa_fn_summary,
20262         make_pass_ipa_fn_summary): New.
20263         * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
20264         inline_write_summary, inline_free_summary): Remove.
20265         (ipa_free_fn_summary) : New.
20266         * ipa-inline.c (ipa_inline): Update.
20267         (pass_ipa_inline): Do not generate summaries.
20268         * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
20269         Remove.
20270         * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
20271         and add pass_ipa_fn_summary.
20272         * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
20273         New.
20274         (make_pass_inline_parameters): Remove.
20276 2017-05-23  Thomas Schwinge  <thomas@codesourcery.com>
20278         * omp-low.c (struct omp_context): Remove "default_kind" member.
20279         Adjust all users.
20281         * omp-offload.c (execute_oacc_device_lower): Remove the
20282         parallelism dimensions function attributes for unparallelized
20283         OpenACC kernels constructs.
20285 2017-05-23  Martin Liska  <mliska@suse.cz>
20287         * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
20288         functions.
20289         (cgraph_edge::make_speculative): Likewise.
20290         (cgraph_edge::resolve_speculation): Likewise.
20291         (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
20292         (cgraph_node::dump): Likewise.
20293         * cgraph.h: Likewise.
20294         * cgraphunit.c (analyze_functions): Likewise.
20295         (symbol_table::compile): Likewise.
20296         * ipa-cp.c (print_all_lattices): Likewise.
20297         (determine_versionability): Likewise.
20298         (initialize_node_lattices): Likewise.
20299         (ipcp_verify_propagated_values): Likewise.
20300         (estimate_local_effects): Likewise.
20301         (update_profiling_info): Likewise.
20302         (create_specialized_node): Likewise.
20303         (perhaps_add_new_callers): Likewise.
20304         (decide_about_value): Likewise.
20305         (decide_whether_version_node): Likewise.
20306         (identify_dead_nodes): Likewise.
20307         (ipcp_store_bits_results): Likewise.
20308         * ipa-devirt.c (dump_targets): Likewise.
20309         (ipa_devirt): Likewise.
20310         * ipa-icf.c (sem_item::dump): Likewise.
20311         (sem_function::equals): Likewise.
20312         (sem_variable::equals): Likewise.
20313         (sem_item_optimizer::read_section): Likewise.
20314         (sem_item_optimizer::execute): Likewise.
20315         (congruence_class::dump): Likewise.
20316         * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
20317         (dump_inline_summary): Likewise.
20318         (estimate_node_size_and_time): Likewise.
20319         (inline_analyze_function): Likewise.
20320         * ipa-inline-transform.c (inline_call): Likewise.
20321         * ipa-inline.c (report_inline_failed_reason): Likewise.
20322         (want_early_inline_function_p): Likewise.
20323         (edge_badness): Likewise.
20324         (update_edge_key): Likewise.
20325         (inline_small_functions): Likewise.
20326         * ipa-profile.c (ipa_profile): Likewise.
20327         * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
20328         (ipa_make_edge_direct_to_target): Likewise.
20329         (remove_described_reference): Likewise.
20330         (ipa_impossible_devirt_target): Likewise.
20331         (propagate_controlled_uses): Likewise.
20332         (ipa_print_node_params): Likewise.
20333         (ipcp_transform_function): Likewise.
20334         * ipa-pure-const.c (pure_const_read_summary): Likewise.
20335         (propagate_pure_const): Likewise.
20336         * ipa-reference.c (generate_summary): Likewise.
20337         (read_write_all_from_decl): Likewise.
20338         (propagate): Likewise.
20339         (ipa_reference_read_optimization_summary): Likewise.
20340         * ipa-utils.c (ipa_merge_profiles): Likewise.
20341         * ipa.c (walk_polymorphic_call_targets): Likewise.
20342         (symbol_table::remove_unreachable_nodes): Likewise.
20343         (ipa_single_use): Likewise.
20344         * passes.c (execute_todo): Likewise.
20345         * predict.c (drop_profile): Likewise.
20346         * symtab.c (symtab_node::get_dump_name): New function.
20347         (symtab_node::dump_name): Likewise.
20348         (symtab_node::dump_asm_name): Likewise.
20349         (symtab_node::dump_references): Likewise.
20350         (symtab_node::dump_referring): Likewise.
20351         (symtab_node::dump_base): Likewise.
20352         (symtab_node::debug_symtab): Likewise.
20353         * tree-sra.c (convert_callers_for_node): Likewise.
20354         * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
20355         * value-prof.c (init_node_map): Likewise.
20357 2017-05-23  Martin Liska  <mliska@suse.cz>
20359         * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
20360         and symtab_node::debug_symtab to symbol_table::debug.
20361         * cgraphunit.c (analyze_functions): Use the renamed function.
20362         (symbol_table::compile): Likewise.
20363         * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
20364         * ipa-icf.c (sem_item_optimizer::execute): Likewise.
20365         * passes.c (execute_todo): Likewise.
20366         * symtab.c (symbol_table::dump): New function.
20367         * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
20369 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
20371         * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
20372         that nonconst implies exec.
20374 2017-05-23  Jan Hubicka  <hubicka@ucw.cz>
20376         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
20377         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
20378         (inline_edge_summary_vec): Turn into ...
20379         (ipa_call_summaries): ... this one.
20380         (redirect_to_unreachable, edge_set_predicate,
20381         evaluate_properties_for_edge, inline_summary_alloc,
20382         reset_ipa_call_summary, reset_inline_summary,
20383         inline_summary_t::duplicate): Update.
20384         (inline_edge_duplication_hook): Turn to ...
20385         (ipa_call_summary_t::duplicate): ... this one.
20386         (inline_edge_removal_hook): Turn to ...
20387         (ipa_call_summary_t::remove): ... this one.
20388         (dump_inline_edge_summary): Turn to ...
20389         (dump_ipa_call_summary): ... this one.
20390         (estimate_function_body_sizes): Update.
20391         (inline_update_callee_summaries): Update.
20392         (remap_edge_change_prob): Update.
20393         (remap_edge_summaries): Update.
20394         (inline_merge_summary): Update.
20395         (do_estimate_edge_time): Update.
20396         (inline_generate_summary): Update.
20397         (inline_read_section): Update.
20398         (inline_read_summary): Update.
20399         (inline_free_summary): Update.
20400         * ipa-inline.c (can_inline_edge_p): Update.
20401         (compute_inlined_call_time): Update.
20402         (want_inline_small_function_p): Update.
20403         (edge_badness): Update.
20404         (early_inliner): Update.
20405         * ipa-inline.h (inline_edge_summary): Turn to ...
20406         (ipa_call_summary): ... this one.
20407         (ipa_call_summary_t): New class.
20408         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
20409         (ipa_call_summaries): New.
20410         (inline_edge_summary): Remove.
20411         (estimate_edge_growth): Update.
20412         * ipa-profile.c (ipa_propagate_frequency_1): Update.
20413         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
20414         * ipa-split.c (execute_split_functions): Update.
20415         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
20417 2017-05-23  Tom de Vries  <tom@codesourcery.com>
20419         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
20420         attributes): Document rdrand effective target.
20422 2017-05-23  Tom de Vries  <tom@codesourcery.com>
20424         * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
20425         attributes): Sort alphabetically.
20427 2017-05-23  Georg-Johann Lay  <avr@gjlay.de>
20429         * config/avr/genmultilib.awk: Use gsub instead of gensub.
20431 2017-05-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
20433         PR target/80718
20434         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
20435         V2DF/V2DI splat into two separate patterns, one that handles
20436         registers, and the other that only handles memory.  Drop support
20437         for splatting from a GPR on ISA 2.07 and then splitting the
20438         splat into direct move and splat.
20439         (vsx_splat_<mode>_reg): Likewise.
20440         (vsx_splat_<mode>_mem): Likewise.
20442 2017-05-22  Segher Boessenkool  <segher@kernel.crashing.org>
20444         * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
20446 2017-05-22  Jakub Jelinek  <jakub@redhat.com>
20448         PR middle-end/80809
20449         * omp-low.c (finish_taskreg_remap): New function.
20450         (finish_taskreg_scan): If unit size of ctx->record_type
20451         is non-constant, unshare the size expression and replace
20452         decls in it with possible outer var refs.
20454         PR middle-end/80809
20455         * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
20456         GOVD_SHARED rather than GOVD_PRIVATE with it.
20457         (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
20458         GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
20460         PR middle-end/80853
20461         * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
20462         as last argument to build_outer_var_ref for pointer bases of array
20463         section reductions.
20465 2017-05-19  Martin Sebor  <msebor@redhat.com>
20467         * print-tree.c (print_node): Print DECL_READ_P flag.
20469 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
20471         * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
20472         * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
20473         * cgraph.c: Likewise.
20474         * cgraphunit.c: Likewise.
20475         * gengtype.c: Likewise.
20476         * ipa-cp.c: Likewise.
20477         * ipa-devirt.c: Likewise.
20478         * ipa-icf.c: Likewise.
20479         * ipa-predicate.c: Likewise.
20480         * ipa-profile.c: Likewise.
20481         * ipa-prop.c: Likewise.
20482         * ipa-split.c: Likewise.
20483         * ipa.c: Likewise.
20484         * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
20485         edge_predicate_pool, dump_inline_hints,
20486         inline_summary::account_size_time, redirect_to_unreachable,
20487         edge_set_predicate, set_hint_predicate,
20488         evaluate_conditions_for_known_args, evaluate_properties_for_edge,
20489         inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
20490         inline_summary_t::remove, remap_hint_predicate_after_duplication,
20491         inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
20492         ipa_call_summary_t::remove, initialize_growth_caches,
20493         free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
20494         debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
20495         mark_modified, unmodified_parm_1, unmodified_parm,
20496         unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
20497         set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
20498         compute_bb_predicates, will_be_nonconstant_expr_predicate,
20499         will_be_nonconstant_predicate, record_modified_bb_info,
20500         get_minimal_bb, record_modified, param_change_prob,
20501         phi_result_unknown_predicate, predicate_for_phi_result,
20502         array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
20503         estimate_function_body_sizes, compute_inline_parameters,
20504         compute_inline_parameters_for_curren, pass_data_inline_parameters,
20505         estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
20506         inline_update_callee_summaries, remap_edge_change_prob,
20507         remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
20508         inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
20509         inline_analyze_function, inline_summary_t::insert,
20510         inline_generate_summary, read_ipa_call_summary, inline_read_section,
20511         inline_read_summary, write_ipa_call_summary, inline_write_summary,
20512         inline_free_summary): Move to ipa-fnsummary.h
20513         (predicate_t): Remove.
20514         * ipa-fnsummary.c: New file.
20515         * ipa-inline.h:  Do not include sreal.h and ipa-predicate.h
20516         (enum inline_hints_vals, inline_hints, agg_position_info,
20517         INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
20518         inline_summaries, ipa_call_summary, ipa_call_summary_t,
20519         ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
20520         dump_inline_summary, dump_inline_hints, inline_generate_summary,
20521         inline_read_summary, inline_write_summary, inline_free_summary,
20522         inline_analyze_function, initialize_inline_failed,
20523         inline_merge_summary, inline_update_overall_summary,
20524         compute_inline_parameters): Move to ipa-fnsummary.h
20525         * ipa-fnsummary.h: New file.
20526         * ipa-inline-transform.h: Include ipa-inline.h.
20527         * ipa-inline.c: LIkewise.
20529 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
20531         * ipa-inline.c (edge_badness): Use inlined_time instead of
20532         inline_summaries->get.
20534 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
20536         * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
20538 2017-05-22  Nathan Sidwell  <nathan@acm.org>
20540         * doc/invoke.texi (fdump-translation-unit): Delete documentation.
20541         (fdump-lang): Document 'raw' option.
20542         * dumpfile.h (TDI_tu): Delete.
20543         * dumpfile.c (dump_files): Remove translation-unit.
20544         (FIRST_AUTO_NUMBERED_DUMP): Decrement.
20546 2017-05-22  Georg-Johann Lay  <avr@gjlay.de>
20548         * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
20549         command option from $(AWK) call.
20550         * config/avr/genmultilib.awk: Simplify and rewrite so that it
20551         generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
20552         [FORMAT]: Remove handling of variable.
20553         * config/avr/t-multilib: Regenerate.
20555 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
20557         * ipa-inline-analysis.c (inline_summary::reset): Do not reset
20558         self_time.
20559         (dump_inline_summary): Do not print self_time.
20560         (estimate_function_body_sizes): Do not set self_time.
20561         (compute_inline_parameters): Likewise.
20562         (inline_read_section, inline_write_summary): Do not stream self_time.
20563         * ipa-inline.h (inline_summary): Drop self_time.
20565 2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
20567         * ipa-inline-analysis.c (account_size_time): Rename to ...
20568         (inline_summary::account_size_time): ... this one.
20569         (reset_ipa_call_summary): Turn to ...
20570         (ipa_call_summary::reset): ... this one.
20571         (reset_inline_summary): Turn to ...
20572         (inline_summary::reset): ... this one.
20573         (inline_summary_t::remove): Update.
20574         (inline_summary_t::duplicate): Update.
20575         (ipa_call_summary_t::remove): Update.
20576         (dump_inline_summary): Update.
20577         (estimate_function_body_sizes): Update.
20578         (compute_inline_parameters): Update.
20579         (estimate_node_size_and_time): Update.
20580         (inline_merge_summary): Update.
20581         (inline_update_overall_summary): Update.
20582         (inline_read_section): Update.
20583         (inline_write_summary): Update.
20584         * ipa-inline.h (inline_summary): Rename entry to size_time_table;
20585         add account_size_time and reset member functions.
20586         (ipa_call_summary): Add reset function.
20587         * ipa-predicate.h (predicate::operator &): Constify.
20589 2017-05-22  Richard Biener  <rguenther@suse.de>
20591         * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
20593 2017-05-19  Jason Merrill  <jason@redhat.com>
20595         * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
20597 2017-05-19  Marek Polacek  <polacek@redhat.com>
20599         PR sanitizer/80800
20600         * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
20601         TYPE_OVERFLOW_WRAPS checks.
20603 2017-05-19  Thomas Schwinge  <thomas@codesourcery.com>
20605         * tree-core.h (enum omp_clause_default_kind): Add
20606         "OMP_CLAUSE_DEFAULT_PRESENT".
20607         * tree-pretty-print.c (dump_omp_clause): Handle it.
20608         * gimplify.c (enum gimplify_omp_var_data): Add
20609         "GOVD_MAP_FORCE_PRESENT".
20610         (gimplify_adjust_omp_clauses_1): Map it to
20611         "GOMP_MAP_FORCE_PRESENT".
20612         (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
20614         * gimplify.c (oacc_default_clause): Clarify.
20616 2017-05-19  Nathan Sidwell  <nathan@acm.org>
20618         LANG_HOOK_REGISTER_DUMPS
20619         * toplev.c (general_init): Call register dump lang hook.
20620         * doc/invoke.texi: Document -fdump-lang option family.
20621         * dumpfile.c (dump_files): Remove class dump here.
20622         (FIRST_AUTO_NUMBERED_DUMP): Adjust.
20623         * dumpfile.h (tree_dump_index): Remove TDI_class.
20624         * langhooks-def.h (lhd_register_dumps): Declare.
20625         (LANG_HOOKS_REGISTER_DUMPS): Define.
20626         (LANG_HOOKS_INITIALIZER): Add it.
20627         * langhooks.c (lhd_register_dumps): Define.
20628         * langhooks.h (struct lang_hooks): Add register_dumps.
20630 2017-05-19  Nathan Sidwell  <nathan@acm.org>
20632         * context.h (context::set_passes): New.
20633         * context.c (context::context): Do not create pass manager.
20634         * toplev.c (general_init): Create pass manager here.
20636 2017-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
20638         * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
20639         use this splitter if two add or or instructions would also work for
20640         the constant we want to generate.
20642 2017-05-19  Richard Biener  <rguenther@suse.de>
20644         PR build/80821
20645         * genmatch.c (dt_node::gen_kids_1): Add missing scope around
20646         predicate evaluation.
20648 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
20650         * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
20651         add ctor.
20652         * ipa-inline.c (want_inline_small_function_p): Do not cast to
20653         unsigned.
20655 2017-05-19  Jan Hubicka  <hubicka@ucw.cz>
20657         * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
20658         inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
20659         (inline_edge_summary_vec): Turn into ...
20660         (ipa_call_summaries): ... this one.
20661         (redirect_to_unreachable, edge_set_predicate,
20662         evaluate_properties_for_edge, inline_summary_alloc,
20663         reset_ipa_call_summary, reset_inline_summary,
20664         inline_summary_t::duplicate): Update.
20665         (inline_edge_duplication_hook): Turn to ...
20666         (ipa_call_summary_t::duplicate): ... this one.
20667         (inline_edge_removal_hook): Turn to ...
20668         (ipa_call_summary_t::remove): ... this one.
20669         (dump_inline_edge_summary): Turn to ...
20670         (dump_ipa_call_summary): ... this one.
20671         (estimate_function_body_sizes): Update.
20672         (inline_update_callee_summaries): Update.
20673         (remap_edge_change_prob): Update.
20674         (remap_edge_summaries): Update.
20675         (inline_merge_summary): Update.
20676         (do_estimate_edge_time): Update.
20677         (inline_generate_summary): Update.
20678         (inline_read_section): Update.
20679         (inline_read_summary): Update.
20680         (inline_free_summary): Update.
20681         * ipa-inline.c (can_inline_edge_p): Update.
20682         (compute_inlined_call_time): Update.
20683         (want_inline_small_function_p): Update.
20684         (edge_badness): Update.
20685         (early_inliner): Update.
20686         * ipa-inline.h (inline_edge_summary): Turn to ...
20687         (ipa_call_summary): ... this one.
20688         (ipa_call_summary_t): New class.
20689         (inline_edge_summary_t, inline_edge_summary_vec): Remove.
20690         (ipa_call_summaries): New.
20691         (inline_edge_summary): Remove.
20692         (estimate_edge_growth): Update.
20693         * ipa-profile.c (ipa_propagate_frequency_1): Update.
20694         * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
20695         * ipa-split.c (execute_split_functions): Update.
20696         * ipa.c (symbol_table::remove_unreachable_nodes): Update.
20698 2017-05-19  Richard Biener  <rguenther@suse.de>
20700         PR middle-end/80764
20701         * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
20703 2017-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
20705         * config/rs6000/rs6000.c (struct machine_function): Add field
20706         fpr_is_wrapped_separately.
20707         (rs6000_get_separate_components): Use 64 components.  Handle the
20708         new FPR components.
20709         (rs6000_components_for_bb): Handle the FPR components.
20710         (rs6000_emit_prologue_components): Handle the FPR components.
20711         (rs6000_emit_epilogue_components): Handle the FPR components.
20712         (rs6000_set_handled_components): Handle the FPR components.
20713         (rs6000_emit_prologue): Don't output prologue code for those FPRs
20714         that are already separately shrink-wrapped.
20715         (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
20716         that are already separately shrink-wrapped.
20718 2017-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
20720         PR target/80510
20721         * config/rs6000/predicates.md (simple_offsettable_mem_operand):
20722         New predicate.
20724         * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
20725         (define_peephole2 for Altivec d-form load): Add peepholes to catch
20726         cases where the register allocator uses a move and an offsettable
20727         memory operation to/from a FPR register on ISA 2.06/2.07.
20728         (define_peephole2 for Altivec d-form store): Likewise.
20730 2017-05-18  Uros Bizjak  <ubizjak@gmail.com>
20732         PR target/80799
20733         * config/i386/mmx.md (*mov<mode>_internal): Enable
20734         alternatives 11, 12, 13 and 14 also for 32bit targets.
20735         Remove alternatives 15, 16, 17 and 18.
20736         * config/i386/sse.md (vec_concatv2di): Change
20737         alternative (!x, *y) to (x, ?!*Yn).
20739 2017-05-18  Paolo Carlini  <paolo.carlini@oracle.com>
20741         * dumpfile.h (enum dump_kind): Remove stray comma.
20743 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
20745         * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
20746         * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
20747         predicate::num_conditions
20748         (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
20749         (CHANGED): turn into predicate::changed.
20750         (agg_position_info): Move to ipa-predicate.h
20751         (add_condition, predicate::add_clause, predicate::operator &=,
20752         predicate::or_with, predicate::evaluate, predicate::probability,
20753         dump_condition, dump_clause, predicate::dump,
20754         predicate::remap_after_duplication, predicate::remap_after_inlining,
20755         predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
20756         (evaluate_conditions_for_known_args): Update.
20757         (set_cond_stmt_execution_predicate): Update.
20758         * ipa-inline.h: Include ipa-predicate.h
20759         (condition, inline_param_summary, conditions, agg_position_info,
20760         predicate): Move to ipa-predicate.h
20761         * ipa-predicate.c: New file.
20762         * ipa-predicate.h: New file.
20764 2017-05-18  Wilco Dijkstra  <wdijkstr@arm.com>
20766         * final.c (leaf_function_p): Check we are not in a sequence.
20768 2017-05-18  Martin Liska  <mliska@suse.cz>
20770         * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
20771         * dumpfile.c (dump_register): Use new enum dump_kind.
20772         (get_dump_file_name): Likewise.
20773         (dump_enable_all): Likewise.
20774         (dump_switch_p_1): Likewise.
20775         (enable_rtl_dump_file): Remove usage of TDF_RTL.
20776         * dumpfile.h (enum dump_kind): New enum type.
20777         (struct dump_file_info): Create constructor and
20778         format fields and comments.
20779         * passes.c (pass_manager::register_one_dump_file):
20780         Use num dump_kind.
20781         * statistics.c (statistics_early_init): Likewise.
20782         * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
20783         TDF_TREE with TDF_SLIM.
20784         (gather_memory_references_ref): Likewise.
20786 2017-05-18  Martin Liska  <mliska@suse.cz>
20788         * vec.h (struct vnull): Use it.
20790 2017-05-18  Jan Hubicka  <hubicka@ucw.cz>
20792         * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
20793         (true_predicate, false_predicate, true_predicate_p,
20794         false_predicate_p): Remove.
20795         (single_cond_predicate, not_inlined_predicate): Turn to member function
20796         in ipa-inline.h
20797         (add_condition): Update.
20798         (add_clause): Turn to...
20799         (predicate::add_clause): ... this one; update; allow passing NULL
20800         as parameter.
20801         (and_predicates): Turn to ...
20802         (predicate::operator &=): ... this one.
20803         (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
20804         (or_predicates): Turn to ...
20805         (predicate::or_with): ... this one.
20806         (evaluate_predicate): Turn to ...
20807         (predicate::evaluate): ... this one.
20808         (predicate_probability): Turn to ...
20809         (predicate::probability): ... this one.
20810         (dump_condition): Update.
20811         (dump_predicate): Turn to ...
20812         (predicate::dump): ... this one.
20813         (account_size_time): Update.
20814         (edge_set_predicate): Update.
20815         (set_hint_predicate): UPdate.
20816         (evaluate_conditions_for_known_args): Update.
20817         (evaluate_properties_for_edge): Update.
20818         (remap_predicate_after_duplication): Turn to...
20819         (predicate::remap_after_duplication): ... this one.
20820         (remap_hint_predicate_after_duplication): Update.
20821         (inline_summary_t::duplicate): UPdate.
20822         (dump_inline_edge_summary): Update.
20823         (dump_inline_summary): Update.
20824         (set_cond_stmt_execution_predicate): Update.
20825         (set_switch_stmt_execution_predicate): Update.
20826         (compute_bb_predicates): Update.
20827         (will_be_nonconstant_expr_predicate): Update.
20828         (will_be_nonconstant_predicate): Update.
20829         (phi_result_unknown_predicate): Update.
20830         (predicate_for_phi_result): Update.
20831         (array_index_predicate): Update.
20832         (estimate_function_body_sizes): Update.
20833         (estimate_node_size_and_time): Update.
20834         (estimate_ipcp_clone_size_and_time): Update.
20835         (remap_predicate): Rename to ...
20836         (predicate::remap_after_inlining): ... this one.
20837         (remap_hint_predicate): Update.
20838         (inline_merge_summary): Update.
20839         (inline_update_overall_summary): Update.
20840         (estimate_size_after_inlining): Update.
20841         (read_predicate): Rename to ...
20842         (predicate::stream_in): ... this one.
20843         (read_inline_edge_summary): Update.
20844         (write_predicate): Rename to ...
20845         (predicate::stream_out): ... this one.
20846         (write_inline_edge_summary): Update.
20847         * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
20848         (clause_t): Turn to uint32_t
20849         (predicate): Turn to class; implement constructor and operators
20850         ==, !=, &
20851         (size_time_entry): Update.
20852         (inline_summary): Update.
20853         (inline_edge_summary): Update.
20855 2017-05-18  Marc Glisse  <marc.glisse@inria.fr>
20857         * fold-const.c (fold_binary_loc): Move transformation...
20858         * match.pd (C - X CMP X): ... here.
20860 2017-05-18  Sheldon Lobo  <sheldon.lobo@oracle.com>
20862         * config/sparc/sparc.c (sparc_option_override): Set function
20863         alignment for -mcpu=niagara7 to 64 to match the I$ line.
20864         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
20865         latency to 1.
20866         * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
20867         latency to 2.
20868         * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
20870 2017-05-18  Marek Polacek  <polacek@redhat.com>
20872         PR sanitizer/80797
20873         * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
20874         (pass_ubsan::execute): Call gimple_assign_single_p instead of
20875         gimple_assign_load_p.
20877 2017-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
20879         PR middle-end/80692
20880         * real.c (do_compare): Give decimal_do_compare preference over
20881         comparing just the signs.
20883 2017-05-17  Uros Bizjak  <ubizjak@gmail.com>
20885         * doc/md.texi (Canonicalization of Instructions): Describe the
20886         canonical form of instructions that inherently set a condition
20887         code register.
20889 2017-05-17  Peter Bergner  <bergner@vnet.ibm.com>
20891         PR middle-end/80775
20892         * tree-cfg.c: Move deletion of unreachable case statements to after
20893         the merging of consecutive case labels.
20895 2017-05-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
20897         * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
20898         readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
20899         restoring of callee-saved registers.
20901 2017-05-17  Eric Botcazou  <ebotcazou@adacore.com>
20903         * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
20904         * config/visium/visium.c (single_set_and_flags): Likewise.
20905         * config/visium/visium.md (Substitutions): Likewise.
20907 2017-05-17  Martin Liska  <mliska@suse.cz>
20909         * cfg.c: Introduce dump_flags_t type and
20910         use it instead of int type.
20911         * cfg.h: Likewise.
20912         * cfghooks.c: Likewise.
20913         * cfghooks.h (struct cfg_hooks): Likewise.
20914         * cfgrtl.c: Likewise.
20915         * cfgrtl.h: Likewise.
20916         * cgraph.c (cgraph_node::get_body): Likewise.
20917         * coretypes.h: Likewise.
20918         * domwalk.c: Likewise.
20919         * domwalk.h: Likewise.
20920         * dumpfile.c (struct dump_option_value_info): Likewise.
20921         (dump_enable_all): Likewise.
20922         (dump_switch_p_1): Likewise.
20923         (opt_info_switch_p): Likewise.
20924         * dumpfile.h (enum tree_dump_index): Likewise.
20925         (struct dump_file_info): Likewise.
20926         * genemit.c: Likewise.
20927         * generic-match-head.c: Likewise.
20928         * gengtype.c (open_base_files): Likewise.
20929         * gimple-pretty-print.c: Likewise.
20930         * gimple-pretty-print.h: Likewise.
20931         * graph.c (print_graph_cfg): Likewise.
20932         * graphite-scop-detection.c (dot_all_sese): Likewise.
20933         * ipa-devirt.c (build_type_inheritance_graph): Likewise.
20934         * loop-unroll.c (report_unroll): Likewise.
20935         * passes.c (pass_manager::register_one_dump_file): Likewise.
20936         * print-tree.c: Likewise.
20937         * statistics.c: Likewise.
20938         * tree-cfg.c: Likewise.
20939         * tree-cfg.h: Likewise.
20940         * tree-dfa.c: Likewise.
20941         * tree-dfa.h: Likewise.
20942         * tree-dump.c (dump_function): Likewise.
20943         * tree-dump.h (struct dump_info): Likewise.
20944         * tree-pretty-print.c: Likewise.
20945         * tree-pretty-print.h: Likewise.
20946         * tree-ssa-live.c: Likewise.
20947         * tree-ssa-live.h: Likewise.
20948         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
20949         * tree-vect-loop.c: Likewise.
20950         * tree-vect-slp.c: Likewise.
20952 2017-05-16  James Greenhalgh  <james.greenhalgh@arm.com>
20953             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
20955         PR tree-optimization/80457
20956         * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
20957         of all arguments to a statement as scalar_to_vec operations.
20958         (vectorizable_call): Adjust call to vect_model_simple_cost for
20959         new parameter.
20960         (vectorizable_conversion): Likewise.
20961         (vectorizable_assignment): Likewise.
20962         (vectorizable_shift): Likewise.
20963         (vectorizable_operation): Likewise.
20964         (vectorizable_comparison): Likewise.
20965         (vect_is_simple_cond): Record the def types for operands.
20966         (vectorizable_condition): Likewise, call vect_model_simple_cost.
20967         * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
20968         for statement argument count.
20970 2017-05-16  Carl Love  <cel@us.ibm.com>
20972         * config/rs6000/rs6000-c: Add support for built-in functions
20973         vector unsigned long long vec_bperm (vector unsigned long long,
20974                                              vector unsigned char)
20975         vector signed long long vec_mule (vector signed int,
20976                                           vector signed int)
20977         vector unsigned long long vec_mule (vector unsigned int,
20978                                             vector unsigned int)
20979         vector signed long long vec_mulo (vector signed int,
20980                                           vector signed int)
20981         vector unsigned long long vec_mulo (vector unsigned int,
20982                                             vector unsigned int)
20983         vector signed char vec_sldw (vector signed char,
20984                                      vector signed char,
20985                                      const int)
20986         vector unsigned char vec_sldw (vector unsigned char,
20987                                        vector unsigned char,
20988                                        const int)
20989         vector signed short vec_sldw (vector signed short,
20990                                       vector signed short,
20991                                       const int)
20992         vector unsigned short vec_sldw (vector unsigned short,
20993                                         vector unsigned short,
20994                                         const int)
20995         vector signed int vec_sldw (vector signed int,
20996                                     vector signed int,
20997                                     const int)
20998         vector unsigned int vec_sldw (vector unsigned int,
20999                                       vector unsigned int,
21000                                       const int)
21001         vector signed long long vec_sldw (vector signed long long,
21002                                           vector signed long long,
21003                                           const int)
21004         vector unsigned long long vec_sldw (vector unsigned long long,
21005                                             vector unsigned long long,
21006                                             const int)
21007         * config/rs6000/rs6000-c: Add support for built-in functions
21008         * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
21009         * config/rs6000/altivec.h: Add defintion for vec_sldw.
21010         * doc/extend.texi: Update the built-in documentation for the
21011         new built-in functions.
21013 2017-05-16  Marek Polacek  <polacek@redhat.com>
21015         PR sanitizer/80536
21016         PR sanitizer/80386
21017         * tree.c (save_expr): Don't fold the expression.
21019 2017-05-16  Uros Bizjak  <ubizjak@gmail.com>
21021         * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
21022         to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
21023         and (?*y,m).  Update insn attributes.
21025 2017-05-16  Martin Liska  <mliska@suse.cz>
21027         * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
21028         flags argument of print_gimple_stmt, print_gimple_expr,
21029         print_generic_stmt and print_generic_expr.
21030         * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
21031         * coretypes.h: Likewise.
21032         * except.c (dump_eh_tree): Likewise.
21033         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
21034         * gimple-pretty-print.h: Likewise.
21035         * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
21036         (backprop::push_to_worklist): Likewise.
21037         (backprop::pop_from_worklist): Likewise.
21038         (backprop::process_use): Likewise.
21039         (backprop::intersect_uses): Likewise.
21040         (note_replacement): Likewise.
21041         * gimple-ssa-store-merging.c
21042         (pass_store_merging::terminate_all_aliasing_chains): Likewise.
21043         (imm_store_chain_info::coalesce_immediate_stores): Likewise.
21044         (pass_store_merging::execute): Likewise.
21045         * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
21046         (ssa_base_cand_dump_callback): Likewise.
21047         (dump_incr_vec): Likewise.
21048         (replace_refs): Likewise.
21049         (replace_mult_candidate): Likewise.
21050         (create_add_on_incoming_edge): Likewise.
21051         (create_phi_basis): Likewise.
21052         (insert_initializers): Likewise.
21053         (all_phi_incrs_profitable): Likewise.
21054         (introduce_cast_before_cand): Likewise.
21055         (replace_one_candidate): Likewise.
21056         * gimplify.c (gimplify_expr): Likewise.
21057         * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
21058         (set_rename): Likewise.
21059         (rename_uses): Likewise.
21060         (copy_loop_phi_nodes): Likewise.
21061         (add_close_phis_to_merge_points): Likewise.
21062         (copy_loop_close_phi_args): Likewise.
21063         (copy_cond_phi_args): Likewise.
21064         (graphite_copy_stmts_from_block): Likewise.
21065         (translate_pending_phi_nodes): Likewise.
21066         * graphite-poly.c (print_pdr): Likewise.
21067         (dump_gbb_cases): Likewise.
21068         (dump_gbb_conditions): Likewise.
21069         (print_scop_params): Likewise.
21070         * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
21071         (build_cross_bb_scalars_use): Likewise.
21072         (gather_bbs::before_dom_children): Likewise.
21073         * hsa-dump.c (dump_hsa_immed): Likewise.
21074         * ipa-cp.c (print_ipcp_constant_value): Likewise.
21075         (get_replacement_map): Likewise.
21076         * ipa-inline-analysis.c (dump_condition): Likewise.
21077         (estimate_function_body_sizes): Likewise.
21078         * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
21079         (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
21080         * ipa-prop.c (ipa_dump_param): Likewise.
21081         (ipa_print_node_jump_functions_for_edge): Likewise.
21082         (ipa_modify_call_arguments): Likewise.
21083         (ipa_modify_expr): Likewise.
21084         (ipa_dump_param_adjustments): Likewise.
21085         (ipa_dump_agg_replacement_values): Likewise.
21086         (ipcp_modif_dom_walker::before_dom_children): Likewise.
21087         * ipa-pure-const.c (check_stmt): Likewise.
21088         (pass_nothrow::execute): Likewise.
21089         * ipa-split.c (execute_split_functions): Likewise.
21090         * omp-offload.c (dump_oacc_loop_part): Likewise.
21091         (dump_oacc_loop): Likewise.
21092         * trans-mem.c (tm_log_emit): Likewise.
21093         (tm_memopt_accumulate_memops): Likewise.
21094         (dump_tm_memopt_set): Likewise.
21095         (dump_tm_memopt_transform): Likewise.
21096         * tree-cfg.c (gimple_verify_flow_info): Likewise.
21097         (print_loop): Likewise.
21098         * tree-chkp-opt.c (chkp_print_addr): Likewise.
21099         (chkp_gather_checks_info): Likewise.
21100         (chkp_get_check_result): Likewise.
21101         (chkp_remove_check_if_pass): Likewise.
21102         (chkp_use_outer_bounds_if_possible): Likewise.
21103         (chkp_reduce_bounds_lifetime): Likewise.
21104         * tree-chkp.c (chkp_register_addr_bounds): Likewise.
21105         (chkp_mark_completed_bounds): Likewise.
21106         (chkp_register_incomplete_bounds): Likewise.
21107         (chkp_mark_invalid_bounds): Likewise.
21108         (chkp_maybe_copy_and_register_bounds): Likewise.
21109         (chkp_build_returned_bound): Likewise.
21110         (chkp_get_bound_for_parm): Likewise.
21111         (chkp_build_bndldx): Likewise.
21112         (chkp_get_bounds_by_definition): Likewise.
21113         (chkp_generate_extern_var_bounds): Likewise.
21114         (chkp_get_bounds_for_decl_addr): Likewise.
21115         * tree-chrec.c (chrec_apply): Likewise.
21116         * tree-data-ref.c (dump_data_reference): Likewise.
21117         (dump_subscript): Likewise.
21118         (dump_data_dependence_relation): Likewise.
21119         (analyze_overlapping_iterations): Likewise.
21120         * tree-inline.c (expand_call_inline): Likewise.
21121         (tree_function_versioning): Likewise.
21122         * tree-into-ssa.c (dump_defs_stack): Likewise.
21123         (dump_currdefs): Likewise.
21124         (dump_names_replaced_by): Likewise.
21125         (dump_update_ssa): Likewise.
21126         (update_ssa): Likewise.
21127         * tree-object-size.c (pass_object_sizes::execute): Likewise.
21128         * tree-parloops.c (build_new_reduction): Likewise.
21129         (try_create_reduction_list): Likewise.
21130         (ref_conflicts_with_region): Likewise.
21131         (oacc_entry_exit_ok_1): Likewise.
21132         (oacc_entry_exit_single_gang): Likewise.
21133         * tree-pretty-print.h: Likewise.
21134         * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
21135         (get_scalar_evolution): Likewise.
21136         (add_to_evolution): Likewise.
21137         (get_loop_exit_condition): Likewise.
21138         (analyze_evolution_in_loop): Likewise.
21139         (analyze_initial_condition): Likewise.
21140         (analyze_scalar_evolution): Likewise.
21141         (instantiate_scev): Likewise.
21142         (number_of_latch_executions): Likewise.
21143         (gather_chrec_stats): Likewise.
21144         (final_value_replacement_loop): Likewise.
21145         (scev_const_prop): Likewise.
21146         * tree-sra.c (dump_access): Likewise.
21147         (disqualify_candidate): Likewise.
21148         (create_access): Likewise.
21149         (reject): Likewise.
21150         (maybe_add_sra_candidate): Likewise.
21151         (create_access_replacement): Likewise.
21152         (analyze_access_subtree): Likewise.
21153         (analyze_all_variable_accesses): Likewise.
21154         (sra_modify_assign): Likewise.
21155         (initialize_constant_pool_replacements): Likewise.
21156         (find_param_candidates): Likewise.
21157         (decide_one_param_reduction): Likewise.
21158         (replace_removed_params_ssa_names): Likewise.
21159         * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
21160         * tree-ssa-copy.c (dump_copy_of): Likewise.
21161         (copy_prop_visit_cond_stmt): Likewise.
21162         * tree-ssa-dce.c (mark_operand_necessary): Likewise.
21163         * tree-ssa-dom.c (pass_dominator::execute): Likewise.
21164         (record_equivalences_from_stmt): Likewise.
21165         * tree-ssa-dse.c (compute_trims): Likewise.
21166         (delete_dead_call): Likewise.
21167         (delete_dead_assignment): Likewise.
21168         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
21169         (forward_propagate_into_cond): Likewise.
21170         (pass_forwprop::execute): Likewise.
21171         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21172         * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
21173         Likewise.
21174         (move_computations_worker): Likewise.
21175         (execute_sm): Likewise.
21176         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
21177         (remove_exits_and_undefined_stmts): Likewise.
21178         (remove_redundant_iv_tests): Likewise.
21179         * tree-ssa-loop-ivopts.c (dump_use): Likewise.
21180         (adjust_iv_update_pos): Likewise.
21181         * tree-ssa-math-opts.c (bswap_replace): Likewise.
21182         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
21183         (value_replacement): Likewise.
21184         * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
21185         * tree-ssa-pre.c (print_pre_expr): Likewise.
21186         (get_representative_for): Likewise.
21187         (create_expression_by_pieces): Likewise.
21188         (insert_into_preds_of_block): Likewise.
21189         (eliminate_insert): Likewise.
21190         (eliminate_dom_walker::before_dom_children): Likewise.
21191         (eliminate): Likewise.
21192         (remove_dead_inserted_code): Likewise.
21193         * tree-ssa-propagate.c (substitute_and_fold): Likewise.
21194         * tree-ssa-reassoc.c (get_rank): Likewise.
21195         (eliminate_duplicate_pair): Likewise.
21196         (eliminate_plus_minus_pair): Likewise.
21197         (eliminate_not_pairs): Likewise.
21198         (undistribute_ops_list): Likewise.
21199         (eliminate_redundant_comparison): Likewise.
21200         (update_range_test): Likewise.
21201         (optimize_range_tests_var_bound): Likewise.
21202         (optimize_vec_cond_expr): Likewise.
21203         (rewrite_expr_tree): Likewise.
21204         (rewrite_expr_tree_parallel): Likewise.
21205         (linearize_expr): Likewise.
21206         (break_up_subtract): Likewise.
21207         (linearize_expr_tree): Likewise.
21208         (attempt_builtin_powi): Likewise.
21209         (attempt_builtin_copysign): Likewise.
21210         (transform_stmt_to_copy): Likewise.
21211         (transform_stmt_to_multiply): Likewise.
21212         (dump_ops_vector): Likewise.
21213         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
21214         (print_scc): Likewise.
21215         (set_ssa_val_to): Likewise.
21216         (visit_reference_op_store): Likewise.
21217         (visit_use): Likewise.
21218         (sccvn_dom_walker::before_dom_children): Likewise.
21219         (run_scc_vn): Likewise.
21220         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21221         Likewise.
21222         (expr_hash_elt::print): Likewise.
21223         (const_and_copies::pop_to_marker): Likewise.
21224         (const_and_copies::record_const_or_copy_raw): Likewise.
21225         * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
21226         * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
21227         (dump_predicates): Likewise.
21228         (find_uninit_use): Likewise.
21229         (warn_uninitialized_phi): Likewise.
21230         (pass_late_warn_uninitialized::execute): Likewise.
21231         * tree-ssa.c (verify_vssa): Likewise.
21232         (verify_ssa): Likewise.
21233         (maybe_optimize_var): Likewise.
21234         * tree-vrp.c (dump_value_range): Likewise.
21235         (dump_all_value_ranges): Likewise.
21236         (dump_asserts_for): Likewise.
21237         (register_edge_assert_for_2): Likewise.
21238         (vrp_visit_cond_stmt): Likewise.
21239         (vrp_visit_switch_stmt): Likewise.
21240         (vrp_visit_stmt): Likewise.
21241         (vrp_visit_phi_node): Likewise.
21242         (simplify_cond_using_ranges_1): Likewise.
21243         (fold_predicate_in): Likewise.
21244         (evrp_dom_walker::before_dom_children): Likewise.
21245         (evrp_dom_walker::push_value_range): Likewise.
21246         (evrp_dom_walker::pop_value_range): Likewise.
21247         (execute_early_vrp): Likewise.
21249 2017-05-16  Richard Biener  <rguenther@suse.de>
21251         * dwarf2out.c (loc_list_from_tree_1): Do not create
21252         DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
21254 2017-05-16  Richard Biener  <rguenther@suse.de>
21256         * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
21257         just generated.
21258         (note_variable_value_in_expr): If we resolved the decl ref
21259         do not push to the stack.
21261 2017-05-16  Matthew Wahab  <matthew.wahab@arm.com>
21263         * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
21264         operations in fast-math mode.
21265         (vaddq_f16): Likewise.
21266         (vmul_f16): Likewise.
21267         (vmulq_f16): Likewise.
21268         (vsub_f16): Likewise.
21269         (vsubq_f16): Likewise.
21270         * config/arm/neon.md (add<mode>3): New.
21271         (sub<mode>3): New.
21272         (fma:<VH:mode>3): New.  Also remove outdated comment.
21273         (mul<mode>3): New.
21275 2017-05-16  Martin Liska  <mliska@suse.cz>
21277         PR ipa/79849.
21278         PR ipa/79850.
21279         * ipa-devirt.c (warn_types_mismatch): Fix typo.
21280         (odr_types_equivalent_p): Likewise.
21282 2017-05-15  Sylvestre Ledru  <sylvestre@debian.org>
21284         * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
21286 2017-05-15  Uros Bizjak  <ubizjak@gmail.com>
21288         PR target/80425
21289         * config/i386.i386.md (*zero_extendsidi2): Do not penalize
21290         non-interunit SSE move alternatives with '?'.
21291         (zero-extendsidi peephole2): New peephole to skip intermediate
21292         general register in SSE zero-extend sequence.
21294 2017-05-15  Jeff Law  <law@redhat.com>
21296         * reorg.c (relax_delay_slots): Create a new variable to hold
21297         the temporary target rather than clobbering TARGET_LABEL.
21299         * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
21300         missing argument to extract_bit_field call.
21301         * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
21303 2017-05-15  Martin Liska  <mliska@suse.cz>
21305         PR driver/31468
21306         * gcc.c (process_command): Do not allow empty argument of -o option.
21308 2017-05-15  Renlin Li  <renlin.li@arm.com>
21310         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
21311         * config/aarch64/aarch64.c (aarch64_expand_call): Define.
21312         * config/aarch64/constraints.md (Usf): Add long call check.
21313         * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
21314         (call_value): Likewise.
21315         (sibcall): Likewise.
21316         (sibcall_value): Likewise.
21317         (call_insn): New.
21318         (call_value_insn): New.
21319         (sibcall_insn): Update rtx pattern.
21320         (sibcall_value_insn): Likewise.
21321         (call_internal): Remove.
21322         (call_value_internal): Likewise.
21323         (sibcall_internal): Likewise.
21324         (sibcall_value_internal): Likewise.
21325         (call_reg): Likewise.
21326         (call_symbol): Likewise.
21327         (call_value_reg): Likewise.
21328         (call_value_symbol): Likewise.
21330 2017-05-14  Krister Walfridsson  <krister.walfridsson@gmail.com>
21332         PR target/80600
21333         * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
21335 2017-05-14  Uros Bizjak  <ubizjak@gmail.com>
21337         * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
21338         compatible with CCGOCmode and with CCZmode.
21340 2017-05-14  Martin Sebor  <msebor@redhat.com>
21342         PR middle-end/77671
21343         * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
21344         (gimple_fold_builtin_snprintf): Same.
21345         * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
21346         (gimple_fold_builtin_snprintf): Same.
21347         * gimple-ssa-sprintf.c (get_format_string): Correct the detection
21348         of character types.
21349         (is_call_safe): New function.
21350         (try_substitute_return_value): Call it.
21351         (try_simplify_call): New function.
21352         (pass_sprintf_length::handle_gimple_call): Call it.
21354 2017-05-14  Martin Sebor  <msebor@redhat.com>
21356         PR middle-end/80669
21357         * builtins.c (expand_builtin_stpncpy): Simplify.
21359 2017-05-14  Daniel Santos  <daniel.santos@pobox.com>
21361         * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
21362         * config/i386/i386.h
21363         (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
21364         (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
21365         (struct machine_function): Add new members call_ms2sysv,
21366         call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
21367         (struct machine_frame_state): New fields sp_realigned and
21368         sp_realigned_offset.
21369         * config/i386/i386.c
21370         (enum xlogue_stub): New enum.
21371         (enum xlogue_stub_sets): New enum.
21372         (class xlogue_layout): New class.
21373         (struct ix86_frame): New fields stack_realign_allocate_offset,
21374         stack_realign_offset and outlined_save_offset.  Modify comments to
21375         detail stack layout when using out-of-line stubs.
21376         (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
21377         (ix86_option_override_internal): Add sorry() for TARGET_SEH and
21378         -mcall-ms2sysv-xlogues.
21379         (stub_managed_regs): New static variable.
21380         (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
21381         registers managed by out-of-line stub.
21382         (disable_call_ms2sysv_xlogues): New function.
21383         (ix86_compute_frame_layout): Modify re-alignment calculations, disable
21384         m->call_ms2sysv when appropriate and compute frame layout for
21385         out-of-line stubs.
21386         (sp_valid_at, fp_valid_at): New inline functions.
21387         (choose_basereg): New function.
21388         (choose_baseaddr): Add align parameter, use choose_basereg and modify
21389         all callers.
21390         (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
21391         Use align parameter of choose_baseaddr to generated aligned SSE movs
21392         when possible.
21393         (pro_epilogue_adjust_stack): Modify to track
21394         machine_frame_state::sp_realigned.
21395         (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
21396         (ix86_nsaved_sseregs): Likewise.
21397         (ix86_emit_save_regs): Likewise.
21398         (ix86_emit_save_regs_using_mov): Likewise.
21399         (ix86_emit_save_sse_regs_using_mov): Likewise.
21400         (get_scratch_register_on_entry): Likewise.
21401         (gen_frame_set): New function.
21402         (gen_frame_load): Likewise.
21403         (gen_frame_store): Likewise.
21404         (emit_outlined_ms2sysv_save): Likewise.
21405         (emit_outlined_ms2sysv_restore): Likewise.
21406         (ix86_expand_prologue): Modify stack re-alignment code and call
21407         emit_outlined_ms2sysv_save when appropriate.
21408         (ix86_emit_leave): Clear machine_frame_state::sp_realigned.  Add
21409         parameter rtx_insn *insn, which allows the function to be used to only
21410         generate the notes.
21411         (ix86_expand_epilogue): Modify validity checks of frame and stack
21412         pointers, and call emit_outlined_ms2sysv_restore when appropriate.
21413         (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
21414         * config/i386/predicates.md
21415         (save_multiple): New predicate.
21416         (restore_multiple): Likewise.
21417         * config/i386/sse.md
21418         (save_multiple<mode>): New pattern.
21419         (save_multiple_realign<mode>): Likewise.
21420         (restore_multiple<mode>): Likewise.
21421         (restore_multiple_and_return<mode>): Likewise.
21422         (restore_multiple_leave_return<mode>): Likewise.
21423         * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
21425 2017-05-14  Julia Koval  <julia.koval@intel.com>
21427         * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
21428         * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
21429         (__builtin_ia32_xsetbv): New builtins.
21430         * config/i386/i386.c (ix86_expand_special_args_builtin):
21431         Process new types.
21432         (ix86_expand_builtin): Special expand for new intrinsics.
21433         * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
21434         (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
21435         * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
21437 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21439         * cfganal.c (inverted_post_order_compute): Change argument type
21440         to vec *.
21441         * cfganal.h (inverted_post_order_compute): Adjust prototype.
21442         * df-core.c (rest_of_handle_df_initialize): Adjust.
21443         (rest_of_handle_df_finish): Likewise.
21444         (df_analyze_1): Likewise.
21445         (df_analyze): Likewise.
21446         (loop_inverted_post_order_compute): Change argument to be a vec *.
21447         (df_analyze_loop): Adjust.
21448         (df_get_n_blocks): Likewise.
21449         (df_get_postorder): Likewise.
21450         * df.h (struct df_d): Change field to be a vec.
21451         * lcm.c (compute_laterin): Adjust.
21452         (compute_available): Likewise.
21453         * lra-lives.c (lra_create_live_ranges_1): Likewise.
21454         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
21455         * tree-ssa-pre.c (compute_antic): Likewise.
21457 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21459         * cfganal.c (connect_infinite_loops_to_exit): Adjust.
21460         (depth_first_search::depth_first_search): Change structure init
21461         function to this constructor.
21462         (depth_first_search::add_bb): Rename function to this member.
21463         (depth_first_search::execute): Likewise.
21464         (flow_dfs_compute_reverse_finish): Adjust.
21466 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21468         * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
21469         (longest_simple_path): Likewise.
21470         * shrink-wrap.c (spread_components): Likewise.
21471         (disqualify_problematic_components): Likewise.
21472         (emit_common_heads_for_components): Likewise.
21473         (emit_common_tails_for_components): Likewise.
21474         (insert_prologue_epilogue_for_components): Likewise.
21476 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21478         * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
21479         auto_sbitmap.
21481 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21483         * df-core.c (df_set_blocks): Start using auto_bitmap.
21484         (df_compact_blocks): Likewise.
21485         * df-problems.c (df_rd_confluence_n): Likewise.
21486         * df-scan.c (df_insn_rescan_all): Likewise.
21487         (df_process_deferred_rescans): Likewise.
21488         (df_update_entry_block_defs): Likewise.
21489         (df_update_exit_block_uses): Likewise.
21490         (df_entry_block_bitmap_verify): Likewise.
21491         (df_exit_block_bitmap_verify): Likewise.
21492         (df_scan_verify): Likewise.
21493         * lra-constraints.c (lra_constraints): Likewise.
21494         (undo_optional_reloads): Likewise.
21495         (lra_undo_inheritance): Likewise.
21496         * lra-remat.c (calculate_gen_cands): Likewise.
21497         (do_remat): Likewise.
21498         * lra-spills.c (assign_spill_hard_regs): Likewise.
21499         (spill_pseudos): Likewise.
21500         * tree-ssa-pre.c (bitmap_set_and): Likewise.
21501         (bitmap_set_subtract_values): Likewise.
21503 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21505         * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
21506         management with auto_bitmap.
21507         (fix_inter_tick): Likewise.
21508         (fix_recovery_deps): Likewise.
21509         * ira.c (add_store_equivs): Likewise.
21510         (find_moveable_pseudos): Likewise.
21511         (split_live_ranges_for_shrink_wrap): Likewise.
21512         * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
21513         (rtx_reuse_manager::seen_def_p): Likewise.
21514         (rtx_reuse_manager::set_seen_def): Likewise.
21515         * print-rtl.h (class rtx_reuse_manager): Likewise.
21517 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21519         * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
21520         lifetime.
21521         (migrate_btr_def): Likewise.
21522         * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
21523         * df-core.c (loop_post_order_compute): Likewise.
21524         (loop_inverted_post_order_compute): Likewise.
21525         * hsa-common.h: Likewise.
21526         * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
21527         * init-regs.c (initialize_uninitialized_regs): Likewise.
21528         * ipa-inline.c (resolve_noninline_speculation): Likewise.
21529         (inline_small_functions): Likewise.
21530         * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
21531         * ira.c (combine_and_move_insns): Likewise.
21532         (build_insn_chain): Likewise.
21533         * loop-invariant.c (find_invariants): Likewise.
21534         * lower-subreg.c (propagate_pseudo_copies): Likewise.
21535         * predict.c (tree_predict_by_opcode): Likewise.
21536         (predict_paths_leading_to): Likewise.
21537         (predict_paths_leading_to_edge): Likewise.
21538         (estimate_loops_at_level): Likewise.
21539         (estimate_loops): Likewise.
21540         * shrink-wrap.c (try_shrink_wrapping): Likewise.
21541         (spread_components): Likewise.
21542         * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
21543         * tree-loop-distribution.c (rdg_build_partitions): Likewise.
21544         * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
21545         * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
21546         * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
21547         * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
21548         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
21549         * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
21550         (mark_threaded_blocks): Likewise.
21551         (thread_through_all_blocks): Likewise.
21552         * tree-ssa.c (verify_ssa): Likewise.
21553         (execute_update_addresses_taken): Likewise.
21554         * tree-ssanames.c (verify_ssaname_freelists): Likewise.
21556 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21558         * cfganal.c (mark_dfs_back_edges): Replace manual stack with
21559         auto_vec.
21560         (post_order_compute): Likewise.
21561         (inverted_post_order_compute): Likewise.
21562         (pre_and_rev_post_order_compute_fn): Likewise.
21564 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21566         * genrecog.c (int_set::int_set): Explicitly construct our
21567         auto_vec base class.
21568         * vec.h (auto_vec::auto_vec): New constructor.
21570 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21572         * bitmap.h (class auto_bitmap): New constructor taking
21573         bitmap_obstack * argument.
21575 2017-05-13  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
21577         * bitmap.h (class auto_bitmap): Change type of m_bits to
21578         bitmap_head, and adjust ctor / dtor and member operators.
21580 2017-05-13  Uros Bizjak  <ubizjak@gmail.com>
21582         * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
21583         when returned register mode doesn't match original mode.
21585 2017-05-12  Jeff Law  <law@redhat.com>
21586             Jakub Jelinek  <jakub@redhat.com>
21588         * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
21589         we look for cc setter after the compare-elim changes.
21590         * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
21591         within the vector to match what compare-elim now expects.
21592         (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
21593         (xorsi3_flags, one_cmplsi2_flags): Likewise.
21595         * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
21596         after the compare-elim changes.
21597         * config/rx/rx.md (abssi2_flags): Fix order of patterns within
21598         the vector to match what compare-elim now expects.
21599         (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
21600         (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
21601         (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
21602         (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
21603         (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
21605         * config/visium/visium.c (single_set_and_flags): Fix where
21606         we look for cc setter after the compare-elim changes.
21607         * config/visium/visium.md (flags_subst_logic): Fix order of patterns
21608         with the vector to match what compare-elim now expects.
21609         (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
21610         (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
21611         (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
21612         (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
21613         (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
21614         (neg<mode>2_insn_set_overflow): Likewise.
21616 2017-05-12  Jim Wilson  <jim.wilson@linaro.org>
21618         PR middle-end/79794
21619         * expmed.c (extract_bit_field_1): Add alt_rtl argument.  Before
21620         maybe_expand_insn call, set ops[0].target.  If still set after call,
21621         set alt_rtl.  Add extra arg to recursive calls.
21622         (extract_bit_field): Add alt_rtl argument.  Pass to
21623         extract_bit_field.
21624         * expmed.h (extract_bit_field): Fix prototype.
21625         * expr.c (emit_group_load_1, copy_blkmode_from_reg)
21626         (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
21627         to extract_bit_field_calls.
21628         (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
21629         Pass alt_rtl to extract_bit_field calls.
21630         * calls.c (store_unaligned_arguments_into_psuedos)
21631         load_register_parameters): Pass extra NULL to extract_bit_field calls.
21632         * optabs.c (maybe_legitimize_operand): Clear op->target when call
21633         gen_reg_rtx.
21634         * optabs.h (struct expand_operand): Add target bitfield.
21636 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
21638         * compare-elim.c (try_eliminate_compare): Canonicalize
21639         operation with embedded compare to
21640         [(set (reg:CCM) (compare:CCM (operation) (immediate)))
21641          (set (reg) (operation)].
21643         * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
21645 2017-05-12  Uros Bizjak  <ubizjak@gmail.com>
21647         PR target/80723
21648         * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
21649         cost of adding a carry flag for ADC instruction.
21650         [case MINUS]: Ignore the cost of subtracting a carry flag
21651         for SBB instruction.
21653 2017-05-12  Steven Munroe  <munroesj@gcc.gnu.org>
21655         * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
21656         and x86intrin.h
21657         * config/rs6000/bmiintrin.h: New file.
21658         * config/rs6000/bmi2intrin.h: New file.
21659         * config/rs6000/x86intrin.h: New file.
21661 2017-05-12  Jeff Law  <law@redhat.com>
21663         * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
21664         markers.
21666 2017-05-12  Peter Bergner  <bergner@vnet.ibm.com>
21668         PR middle-end/80707
21669         * tree-cfg.c: Remove cfg edges of unreachable case statements.
21671 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
21673         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
21674         early expansion of vector divide builtins.
21675         (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
21676         builtins identified as having unsigned arguments.
21678 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
21680         * config/rs6000/rs6000.c (gimple-fold.h): New #include.
21681         (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
21682         expansion of vector logical operations (and, andc, or, xor,
21683         nor, orc, nand).
21685 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
21687         * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
21688         * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
21690 2017-05-12  Will Schmidt  <will_schmidt@vnet.ibm.com>
21692         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
21693         early GIMPLE expansion of vector multiplies.
21695 2017-05-12  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
21697         * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
21698         TARGET_HAVE_MOVT conditional.
21699         (movt splitter): Likewise.
21701 2017-05-12  Richard Biener  <rguenther@suse.de>
21703         * tree-ssa-sccvn.h (has_VN_INFO): Declare.
21704         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21705         Fold all stmts not inplace.
21707 2017-05-12  Richard Biener  <rguenther@suse.de>
21709         PR tree-optimization/80713
21710         * tree-ssa-pre.c (remove_dead_inserted_code): Clear
21711         inserted_exprs bit for not removed stmts.
21713 2017-05-12  Thomas Schwinge  <thomas@codesourcery.com>
21715         PR middle-end/69921
21716         * tree-parloops.c (create_parallel_loop): Set "oacc kernels
21717         parallelized" attribute for parallelized OpenACC kernels.
21718         * omp-offload.c (execute_oacc_device_lower): Use it.
21720         * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
21721         Set "oacc kernels" attribute.
21722         * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
21723         parameter.  Adjust all users.
21724         (oacc_fn_attrib_kernels_p): Remove function.
21725         * omp-offload.c (execute_oacc_device_lower): Look for "oacc
21726         kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
21727         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21728         * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
21729         assert "oacc kernels" attribute is set.
21731 2017-05-11  Carl Love  <cel@us.ibm.com>
21733         * config/rs6000/rs6000-c: Add support for built-in functions
21734         vector unsigned char vec_popcnt (vector signed char)
21735         vector unsigned char vec_popcnt (vector unsigned char)
21736         vector unsigned short vec_popcnt (vector signed short)
21737         vector unsigned short vec_popcnt (vector unsigned short)
21738         vector unsigned int vec_popcnt (vector signed int)
21739         vector unsigned int vec_popcnt (vector unsigned int)
21740         vector unsigned long long vec_popcnt (vector signed long long)
21741         vector unsigned long long vec_popcnt (vector unsigned long long)
21742         vector signed long long vec_slo (vector signed long long,
21743                                          vector signed char)
21744         vector signed long long vec_slo (vector signed long long,
21745                                          vector unsigned char)
21746         vector unsigned long long vec_slo (vector unsigned long long,
21747                                            vector signed char)
21748         vector unsigned long long vec_slo (vector unsigned long long,
21749                                            vector unsigned char)
21750         * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
21751         VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
21752         * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
21753         vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
21754         * doc/extend.texi: Update the built-in documentation file for the
21755         new built-in functions.
21757 2017-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
21759         * attribs.h (sorted_attr_string): Move machine independent
21760         functions for target clone support from the i386 port to common
21761         code.  Rename ix86_function_versions to common_function_versions.
21762         Rename make_name to make_unique_name.
21763         (common_function_versions): Likewise.
21764         (make_unique_name): Likewise.
21765         (make_dispatcher_decl): Likewise.
21766         (is_function_default_version): Likewise.
21767         * attribs.c (attr_strcmp): Likewise.
21768         (sorted_attr_string): Likewise.
21769         (common_function_versions): Likewise.
21770         (make_unique_name): Likewise.
21771         (make_dispatcher_decl): Likewise.
21772         (is_function_default_version): Likewise.
21773         * config/i386/i386.c (attr_strcmp): Likewise.
21774         (sorted_attr_string): Likewise.
21775         (ix86_function_versions): Likewise.
21776         (make_name): Likewise.
21777         (make_dispatcher_decl): Likewise.
21778         (is_function_default_version): Likewise.
21779         (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
21781 2017-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21783         PR target/80695
21784         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
21785         Account for direct move costs for vec_construct of integer
21786         vectors.
21788 2017-05-11  Uros Bizjak  <ubizjak@gmail.com>
21790         PR target/80706
21791         * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
21792         (UNSPEC_STX_ATOMIC): Ditto.
21793         (loaddi_via_sse): New insn.
21794         (storedi_via_sse): Ditto.
21795         (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
21796         Update corresponding peephole2 patterns.
21797         (atomic_storedi_fpu): Ditto.
21799 2017-05-11  Julia Koval  <julia.koval@intel.com>
21801         * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
21802         (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
21803         New intrinsics.
21804         * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
21805         (__builtin_ia32_rsqrt14ss_mask): New builtins.
21806         * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
21808 2017-05-11  Nathan Sidwell  <nathan@acm.org>
21810         * graphite-poly.c: Include dumpfile.h.
21812         * dumpfle.h (dump_function): Declare here ...
21813         * tree-dump.h (dump_function): ... not here.
21814         * dumpfile.c: #include tree-cfg.h.
21815         (dump_function): Move here from ...
21816         * tree-dump.c (dump_function): ... here.
21817         * gimplify.c: #include splay-tree.h, not tree-dump.h.
21818         * graphite-poly.c: Don't include tree-dump.h.
21819         * cgraphclones.c: Include dumpfile.h not tree-dump.h.
21820         * print-tree.c: Likewise.
21821         * stor-layout.c: Likewise.
21822         * tree-nested.c: Likewise.
21824         * dumpfile.c (dump_start): Use TDF_FLAGS.
21825         (dump_enable_all): Fix TDF_KIND check thinko.
21827 2017-05-11  Kelvin Nilsen  <kelvin@gcc.gnu.org>
21829         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21830         array entries to represent two legal parameterizations of the
21831         overloaded __builtin_cmpb function, as represented by the
21832         P6_OV_BUILTIN_CMPB constant.
21833         (altivec_resolve_overloaded_builtin): Add special case handling
21834         for the __builtin_cmpb function, as represented by the
21835         P6_OV_BUILTIN_CMPB constant.
21836         * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
21837         (BU_P6_64BIT_2): New macro.
21838         (BU_P6_OVERLOAD_2): New macro
21839         (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
21840         (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
21841         (CMPB): Add overload support to represent both 32-bit and 64-bit
21842         compare-bytes function.
21843         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21844         support for TARGET_CMPB.
21845         * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
21846         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
21847         documentation of the __builtin_cmpb overloaded built-in function.
21849 2017-05-11  Richard Biener  <rguenther@suse.de>
21851         PR tree-optimization/80705
21852         * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
21853         bases are not vectorizable.
21855 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21857         * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
21858         when counting register pressure.
21860 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21862         * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
21863         (iv_ca_more_deps): Renamed to ...
21864         (iv_ca_compare_deps): ... this.
21865         (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
21867 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21869         * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
21870         to ...
21871         (determine_group_iv_costs): ... here.
21872         (find_inv_vars_cb): Record inv var if it's not recorded before.
21874 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21876         * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
21877         (get_shiftadd_cost): Ditto.
21879 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21881         * tree-ssa-address.c: Include header file.
21882         (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
21883         address.
21884         (add_to_parts): Refactor.
21885         (addr_to_parts): New parameter.  Update use of move_hint_to_base.
21886         (create_mem_ref): Update use of addr_to_parts.  Re-associate addr
21887         in new order.
21889 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21891         PR tree-optimization/53090
21892         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
21893         COMP_IV_EXPR_2.
21894         (extract_cond_operands): Detect condition with IV on both sides
21895         and return COMP_IV_EXPR_2.
21896         (find_interesting_uses_cond): Add iv_use for both IVs in condition.
21897         (rewrite_use_compare): Simplify by removing call to function
21898         extract_cond_operands.
21900 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21902         * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
21903         (extract_cond_operands): Detect condition comparing against non-
21904         invariant bound and return appropriate enum value.
21905         (find_interesting_uses_cond): Update use of extract_cond_operands.
21906         Handle its return value accordingly.
21907         (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
21909 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21911         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
21912         nonlinear iv_use computation in loop invariant sensitive way.
21914 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21916         * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
21917         (find_iv_candidates): Call relate_compare_use_with_all_cands.
21919 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21921         * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
21922         (dump_cand): Support iv_cand.inv_exprs.
21923         (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
21924         for candidates.
21925         (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
21926         iv_cand.inv_exprs.
21928 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21930         * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
21931         from ...
21932         * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
21933         as local function.  Include necessary header files.
21934         * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
21936 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21938         * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
21940 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21942         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
21943         operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
21944         RSHIFT_EXPR and BIT_NOT_EXPR.
21946 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21948         * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
21949         (adjust_setup_cost): New parameter supporting round up adjustment.
21950         (struct address_cost_data): Delete.
21951         (force_expr_to_var_cost): Don't bound cost with spill_cost.
21952         (split_address_cost, ptr_difference_cost): Delete.
21953         (difference_cost, compare_aff_trees, record_inv_expr): Delete.
21954         (struct ainc_cost_data): New struct.
21955         (get_address_cost_ainc): New function.
21956         (get_address_cost, get_computation_cost): Reimplement.
21957         (determine_group_iv_cost_address): Record inv_expr for all uses of
21958         a group.
21959         (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
21960         (iv_ca_has_deps): Reimplemented to ...
21961         (iv_ca_more_deps): ... this.  Check if NEW_CP introduces more deps
21962         than OLD_CP.
21963         (iv_ca_extend): Call iv_ca_more_deps.
21965 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21967         * tree-ssa-address.c (struct mem_address): Move to header file.
21968         (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
21969         * tree-ssa-address.h (struct mem_address): Move from C file.
21970         (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
21972 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21974         * tree-affine.h (aff_combination_type): New interface.
21975         (aff_combination_zero_p): Remove static.
21976         (aff_combination_const_p): New interface.
21977         (aff_combination_singleton_var_p): New interfaces.
21979 2017-05-11  Richard Biener  <rguenther@suse.de>
21981         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21982         Skip unreachable blocks and destinations.
21983         (eliminate): Move stmt removal and fixup ...
21984         (fini_eliminate): ... here.  Skip inserted exprs.
21985         (pass_pre::execute): Move fini_pre after fini_eliminate.
21986         * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
21987         (tail_merge_optimize): Run cleanup_tree_cfg if requested by
21988         PRE to get rid of dead code that has invalid SSA form and
21989         split critical edges again.
21991 2017-05-11  Bin Cheng  <bin.cheng@arm.com>
21993         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
21995 2017-05-11  Richard Biener  <rguenther@suse.de>
21997         * passes.c (execute_function_todo): Verify loops if they are
21998         said to be up-to-date.
21999         * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
22000         * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
22002 2017-05-10  John David Anglin  <danglin@gcc.gnu.org>
22004         PR target/80090
22005         * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
22006         handle calling assemble_external ourself.
22008         PR target/79027
22009         * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
22010         modes with zero size.  Enhance comment.
22012 2017-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22014         * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
22015         built-ins for vec_xl and vec_xst with short and char pointer
22016         arguments.
22018 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
22020         * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
22021         (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
22022         (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
22023         (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
22024         (_mm_maskz_min_round_ss): New intrinsics.
22025         * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
22026         (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
22027         * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
22028         (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
22029         (__builtin_ia32_minss_mask_round): New builtins.
22030         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
22031         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
22032         * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
22033         Rename to ...
22034         (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
22035         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
22036         Change to ...
22037         (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
22038         ... this.
22040 2017-05-10  Sebastian Peryt  <sebastian.peryt@intel.com>
22042         * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
22043         (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
22044         (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
22045         (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
22046         (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
22047         (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
22048         (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
22049         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
22050         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
22051         * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
22052         (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
22053         (__builtin_ia32_mulss_mask_round): New builtins.
22054         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
22055         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
22056         * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
22057         Rename to ...
22058         (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
22059         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
22060         Change to ...
22061         (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
22062         ... this.
22064 2017-05-10  Julia Koval  <julia.koval@intel.com>
22066         * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
22067         (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
22068         (_mm256_setr_m128i): New intrinsics.
22070 2017-05-10  Julia Koval  <julia.koval@intel.com>
22072         * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
22073         (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
22074         (_mm_maskz_rcp14_ss): New intrinsics.
22075         * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
22076         (__builtin_ia32_rcp14ss_mask): New builtins.
22077         * config/i386/sse.md (srcp14<mode>_mask): New pattern.
22079 2017-05-10  Peter Bergner  <bergner@vnet.ibm.com>
22081         PR tree-optimization/51513
22082         * tree-cfg.c (gimple_seq_unreachable_p): New function.
22083         (assert_unreachable_fallthru_edge_p): Use it.
22084         (group_case_labels_stmt): Likewise.
22085         * tree-cfg.h: Prototype it.
22086         * stmt.c: Include cfghooks.h and tree-cfg.h.
22087         (emit_case_dispatch_table) <gap_label>: New local variable.
22088         Use it to fill dispatch table gaps.
22089         Test for default_label before updating probabilities.
22090         (expand_case) <default_label>: Remove unneeded initialization.
22091         Test for unreachable default case statement and remove its edge.
22092         Set default_label accordingly.
22093         * tree-ssa-ccp.c (optimize_unreachable): Update comment.
22095 2017-05-10  Carl Love  <cel@us.ibm.com>
22097         * config/rs6000/rs6000-c: Add support for built-in functions
22098         vector signed char      vec_neg (vector signed char)
22099         vector signed short int vec_neg (vector short int)
22100         vector signed int       vec_neg (vector signed int)
22101         vector signed long long vec_neg (vector signed long long)
22102         vector float            vec_neg (vector float)
22103         vector double           vec_neg (vector double)
22104         * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
22105         overload.
22106         * config/rs6000/altivec.h: Add define for vec_neg
22107         * doc/extend.texi: Update the built-in documentation for the
22108         new built-in functions.
22110 2017-05-10  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22112         PR tree-optimization/77644
22113         * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
22115 2017-05-10  Nathan Sidwell  <nathan@acm.org>
22117         * dumpfile.h (TDI_lang_all): New.
22118         (TDF_KIND): New. Renumber others
22119         (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
22120         than bits.
22121         * dumpfile.c (dump_files): Mark language dumps as TDF_LANG.  add
22122         lang-all.
22123         (get_dump_file_name): Adjust suffix generation.
22124         (dump_enable_all): Use TDF_KIND.
22125         * doc/invoke.texi (-fdump-lang-all): Document.
22127         * dumpfile.h: Tabify.
22129 2017-05-10  Wilco Dijkstra  <wdijkstr@arm.com>
22131         PR target/80671
22132         * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
22133         Move member access before delete.
22135 2017-05-10  Alexandre Oliva <aoliva@redhat.com>
22137         * tree-inline.c (expand_call_inline): Split block at stmt
22138         before the call.
22140 2017-05-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22142         PR target/68163
22143         * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
22144         are now unused after splitting mov{sf,sd}_hardfloat.
22145         (f32_lr2): Likewise.
22146         (f32_lm): Likewise.
22147         (f32_lm2): Likewise.
22148         (f32_li): Likewise.
22149         (f32_li2): Likewise.
22150         (f32_lv): Likewise.
22151         (f32_sr): Likewise.
22152         (f32_sr2): Likewise.
22153         (f32_sm): Likewise.
22154         (f32_sm2): Likewise.
22155         (f32_si): Likewise.
22156         (f32_si2): Likewise.
22157         (f32_sv): Likewise.
22158         (f32_dm): Likewise.
22159         (f32_vsx): Likewise.
22160         (f32_av): Likewise.
22161         (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
22162         For movsf, order stores so the VSX stores occur before the GPR
22163         store which encourages the register allocator to use a traditional
22164         FPR instead of a GPR.  For movsd, order the stores so that the GPR
22165         store comes before the VSX stores to allow the power6 to work.
22166         This is due to the power6 not having a 32-bit integer store
22167         instruction from a FPR.
22168         (movsf_hardfloat): Likewise.
22169         (movsd_hardfloat): Likewise.
22171 2017-05-09  Martin Sebor  <msebor@redhat.com>
22173         PR translation/80280
22174         * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
22175         added in r247778.
22177         PR translation/80280
22178         * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
22179         data member added in r247778.
22180         (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
22182 2017-05-09  Nathan Sidwell  <nathan@acm.org>
22184         * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
22186         * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
22187         typedefs.
22189 2017-05-09  Marek Polacek  <polacek@redhat.com>
22191         * doc/invoke.texi: Fix typo.
22193 2017-05-09  Richard Biener  <rguenther@suse.de>
22195         * tree-vrp.c (vrp_val_is_max): Adjust comment.
22196         (vrp_val_is_min): Likewise.
22197         (set_value_range_to_value): Likewise.
22198         (set_value_range_to_nonnegative): Likewise.
22199         (gimple_assign_nonzero_p): Likewise.
22200         (gimple_stmt_nonzero_p): Likewise.
22201         (vrp_int_const_binop): Likewise.  Remove unreachable case.
22202         (adjust_range_with_scev): Adjust comments.
22203         (compare_range_with_value): Likewise.
22204         (extract_range_from_phi_node): Likewise.
22205         (test_for_singularity): Likewise.
22207 2017-05-09  Richard Biener  <rguenther@suse.de>
22209         * tree-vrp.c (get_single_symbol): Add assert that we don't
22210         get overflowed constants as invariant part.
22211         (compare_values_warnv): Add comment before the TREE_NO_WARNING
22212         checks.  Use wi::cmp instead of recursing for integer constants.
22213         (compare_values): Just ignore whether we assumed undefined
22214         overflow instead of failing the compare.
22215         (extract_range_for_var_from_comparison_expr): Add comment before the
22216         TREE_NO_WARNING sets.
22217         (test_for_singularity): Likewise.
22218         (extract_range_from_comparison): Do not disable optimization
22219         when we assumed undefined overflow.
22220         (extract_range_basic): Remove init of unused var.
22222 2017-05-09  Richard Biener  <rguenther@suse.de>
22224         * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
22225         (extract_range_from_multiplicative_op_1): Adjust.
22226         (extract_range_from_binary_expr_1): Use int_const_binop.
22228 2017-05-08  Kelvin Nilsen  <kelvin@gcc.gnu.org>
22230         PR target/80101
22231         * config/rs6000/power6.md: Replace store_data_bypass_p calls with
22232         rs6000_store_data_bypass_p in seven define_bypass directives and
22233         in several comments.
22234         * config/rs6000/rs6000-protos.h: Add prototype for
22235         rs6000_store_data_bypass_p function.
22236         * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
22237         function implements slightly different (rs6000-specific) semantics
22238         than store_data_bypass_p, returning false rather than aborting
22239         with assertion error when arguments do not satisfy the
22240         requirements of store data bypass.
22241         (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
22242         rs6000_store_data_bypass_p.
22244 2017-05-08  Max Filippov  <jcmvbkbc@gmail.com>
22246         * config/xtensa/xtensa-protos.h
22247         (xtensa_initial_elimination_offset): New declaration.
22248         * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
22249         New function. Move its body from the INITIAL_ELIMINATION_OFFSET
22250         macro definition, add case for FRAME_POINTER_REGNUM when
22251         FRAME_GROWS_DOWNWARD.
22252         * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
22253         (INITIAL_ELIMINATION_OFFSET): Replace body with call to
22254         xtensa_initial_elimination_offset.
22256 2017-05-08  Nathan Sidwell  <nathan@acm.org>
22258         * doc/invoke.texi: Alphabetize -fdump options.
22260 2017-05-08  Martin Sebor  <msebor@redhat.com>
22262         PR translation/80280
22263         * config/sol2-c.c (solaris_pragma_align): Correct quoting.
22265 2017-05-08  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22267         * target.def (compute_frame_layout): New optional target hook.
22268         * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
22269         * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
22270         * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
22271         target hook.
22272         * reload1.c (verify_initial_elim_offsets): Likewise.
22273         * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
22274         (use_simple_return_p): Call arm_compute_frame_layout if needed.
22275         (arm_get_frame_offsets): Split up into this ...
22276         (arm_compute_frame_layout): ... and this function.
22278 2017-05-08  Richard Sandiford  <richard.sandiford@arm.com>
22280         * config/aarch64/constraints.md (Usa): New constraint.
22281         * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
22283 2017-05-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22285         * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
22286         with_multilib_list after it has been checked.
22288 2017-05-08  Richard Biener  <rguenther@suse.de>
22290         * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
22291         (bitmap_set_subtract_values): Likewise.
22293 2017-05-08  Richard Biener  <rguenther@suse.de>
22295         * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
22296         (gimple_assign_nonzero): ... this and remove strict_overflow_p
22297         argument.
22298         (gimple_stmt_nonzero_warnv_p): Rename to ...
22299         (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
22300         argument.
22301         (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
22302         (extract_range_basic): Adjust, do not disable propagation on
22303         strict overflow sensitive simplification.
22304         (vrp_visit_cond_stmt): Likewise.
22306 2017-05-05  Jan Hubicka  <hubicka@ucw.cz>
22308         * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
22309         body size unconditionally.
22311 2017-05-07  Jeff Law  <law@redhat.com>
22313         Revert:
22314         2017-05-06  Jeff Law  <law@redhat.com>
22315         PR tree-optimization/78496
22316         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
22317         code.
22319         PR tree-optimization/78496
22320         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
22321         (simplify_stmt_using_ranges): Call it.
22322         (vrp_dom_walker::before_dom_children): Extract equivalences
22323         from an ASSERT_EXPR with an equality comparison against a
22324         constant.
22326 2017-05-06  Jeff Law  <law@redhat.com>
22328         PR tree-optimization/78496
22329         * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
22330         code.
22332         PR tree-optimization/78496
22333         * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
22334         (simplify_stmt_using_ranges): Call it.
22335         (vrp_dom_walker::before_dom_children): Extract equivalences
22336         from an ASSERT_EXPR with an equality comparison against a
22337         constant.
22339 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
22341         * lra-constraints.c (lra_copy_reg_equiv): New function.
22342         (split_reg): Use it to copy equivalence information from the
22343         original register to the spill register.
22345 2017-05-06  Richard Sandiford  <richard.sandiford@linaro.org>
22347         PR rtl-optimization/75964
22348         * simplify-rtx.c (simplify_const_relational_operation): Remove
22349         invalid handling of comparisons of integer ABS.
22351 2017-05-06  Uros Bizjak  <ubizjak@gmail.com>
22353         * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
22354         initialize to zero.
22355         (init_regs): Remove declaration.
22356         (function_arg_advance_32): Initialize error_p as boolean variable.
22358 2017-05-05  Nathan Sidwell  <nathan@acm.org>
22360         * store-motion.c (remove_reachable_equiv_notes): Reformat long
22361         lines.  Use for (;;).
22363 2017-05-05  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
22365         * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
22366         (rs6000_init_cost): Initialize rs6000_vect_nonmem.
22367         (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
22368         (rs6000_finish_cost): Avoid vectorizing simple copy loops with
22369         VF=2 that require versioning.
22371 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
22373         * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
22374         int.
22376 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
22378         * diagnostic.h (diagnostic_override_option_index): Convert from
22379         macro to inline function.
22381 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
22383         * diagnostic.c (last_module_changed_p): New function.
22384         (set_last_module): New function.
22385         (diagnostic_report_current_module): Convert macro usage to
22386         the above functions.
22387         * diagnostic.h (diagnostic_context::last_module): Strengthen
22388         from const line_map * to const line_map_ordinary *.
22389         (diagnostic_last_module_changed): Delete macro.
22390         (diagnostic_set_last_module): Delete macro.
22392 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
22394         * diagnostic.c (diagnostic_impl): Replace report_diagnostic
22395         with diagnostic_report_diagnostic.
22396         (diagnostic_n_impl_richloc): Likewise.
22397         * diagnostic.h (report_diagnostic): Delete macro.
22398         * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
22399         with diagnostic_report_diagnostic.
22400         * substring-locations.c (format_warning_va): Likewise.
22402 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
22404         * diagnostic.c (diagnostic_report_diagnostic): Eliminate
22405         save/restor of format_spec.  Move option-printing code to...
22406         (print_option_information): ...this new function, and
22407         reimplement by simply printing to the pretty_printer,
22408         rather than appending to the format string.
22410 2017-05-05  David Malcolm  <dmalcolm@redhat.com>
22412         * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
22413         handling logic into...
22414         (update_effective_level_from_pragmas): ...this new function.
22416 2017-05-04  Andrew Waterman  <andrew@sifive.com>
22418         * config/riscv/riscv.opt (mstrict-align): New option.
22419         * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it.  Update comment.
22420         (SLOW_UNALIGNED_ACCESS): Define.
22421         (riscv_slow_unaligned_access): Declare.
22422         * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
22423         field.
22424         (riscv_slow_unaligned_access): New variable.
22425         (rocket_tune_info): Set slow_unaligned_access to true.
22426         (optimize_size_tune_info): Set slow_unaligned_access to false.
22427         (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
22428         (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
22429         (riscv_option_override): Set riscv_slow_unaligned_access.
22430         * doc/invoke.texi: Add -mstrict-align to RISC-V.
22432 2017-05-04  Kito Cheng  <kito.cheng@gmail.com>
22434         * config/riscv/riscv.md: Unify indentation.
22436 2017-05-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
22438         PR target/79038
22439         PR target/79202
22440         PR target/79203
22441         * config/rs6000/rs6000.md (u code attribute): Add FIX and
22442         UNSIGNED_FIX.
22443         (extendsi<mode>2): Add support for doing sign extension via
22444         VUPKHSW and XXPERMDI if the value is in Altivec registers and we
22445         don't have ISA 3.0 instructions.
22446         (extendsi<mode>2 splitter): Likewise.
22447         (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
22448         generate the normal insns since SImode can now go in vector
22449         registers.  Disallow the special UNSPECs needed for previous
22450         machines to hide SImode being used.  Add new insns
22451         fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
22452         (fix_trunc<mode>si2_stfiwx): Likewise.
22453         (fix_trunc<mode>si2_internal): Likewise.
22454         (fixuns_trunc<mode>si2): Likewise.
22455         (fixuns_trunc<mode>si2_stfiwx): Likewise.
22456         (fctiw<u>z_<mode>_smallint): Likewise.
22457         (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
22458         of floating point to 32-bit integer from doing a direct move to
22459         the GPR registers to do a store.
22460         (fctiwz_<mode>): Break long line.
22462 2017-05-05  Bin Cheng  <bin.cheng@arm.com>
22464         * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
22465         * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
22466         (addr_list, addr_offset_valid_p): New.
22467         (split_address_groups): Check offset validity with above function.
22468         (gt-tree-ssa-loop-ivopts.h): Include header file.
22470 2017-05-05  Nathan Sidwell  <nathan@acm.org>
22472         * config.gcc (arm*-*-*): Add missing 'fi'.
22474 2017-05-05  Steve Ellcey  <sellcey@cavium.com>
22476         * doc/invoke.texi (-fopt-info): Explicitly say order of options
22477         included in -fopt-info does not matter.
22478         * doc/optinfo.texi (-fopt-info): Fix description of default
22479         behavour. Explicitly say order of options included in -fopt-info
22480         does not matter.
22482 2017-05-05  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22484         * config.gcc: Allow combinations of aprofile and rmprofile values for
22485         --with-multilib-list.
22486         * config/arm/t-multilib: New file.
22487         * config/arm/t-aprofile: Remove initialization of MULTILIB_*
22488         variables.  Remove setting of ISA and floating-point ABI in
22489         MULTILIB_OPTIONS and MULTILIB_DIRNAMES.  Set architecture and FPU in
22490         MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
22491         and MULTILIB_DIRNAMES respectively.  Add comment to introduce all
22492         matches.  Add architecture matches for marvel-pj4 and generic-armv7-a
22493         CPU options.
22494         * config/arm/t-rmprofile: Likewise except for the matches changes.
22495         * doc/install.texi (--with-multilib-list): Document the combination of
22496         aprofile and rmprofile values and warn about pitfalls in doing that.
22498 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
22500         * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
22501         (movdi_aarch64): Likewise.
22503 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
22505         PR tree-optimization/80632
22506         * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
22507         field.
22508         (build_arrays): Initialize it for virtual phis.
22509         (fix_phi_nodes): Use it for virtual phis.
22511         PR tree-optimization/80558
22512         * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
22513         [x, y] op z into [x op, y op z] for op & or | if conditions
22514         are met.
22516 2017-05-05  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22517             Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
22519         PR target/71607
22520         * config/arm/arm.md (use_literal_pool): Remove.
22521         (64-bit immediate split): No longer takes cost into consideration
22522         if arm_disable_literal_pool is enabled.
22523         * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
22524         used when arm_disable_literal_pool is enabled.
22525         (arm_max_const_double_inline_cost): Remove use of
22526         arm_disable_literal_pool.
22527         (push_minipool_fix): Add assert.
22528         (arm_reorg): Add return if arm_disable_literal_pool is enabled.
22529         * config/arm/vfp.md (no_literal_pool_df_immediate): New.
22530         (no_literal_pool_sf_immediate): New.
22532 2017-05-05  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
22534         PR tree-optimization/80613
22535         * tree-ssa-dce.c (propagate_necessity): Remove cases for
22536         BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
22538 2017-05-05  Richard Biener  <rguenther@suse.de>
22540         * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
22542 2017-05-05  Georg-Johann Lay  <avr@gjlay.de>
22544         * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
22545         of this flag from insn conditions due to removal from r247495.
22547 2017-05-05  Wilco Dijkstra  <wdijkstr@arm.com>
22549         * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
22550         New function.
22551         (arm_early_store_addr_dep_ptr): Likewise.
22552         * config/arm/aarch-common-protos.h
22553         (arm_early_load_addr_dep_ptr): Add prototype.
22554         (arm_early_store_addr_dep_ptr): Likewise.
22555         * config/arm/cortex-a53.md: Add new bypasses.
22557 2017-05-05  Jakub Jelinek  <jakub@redhat.com>
22559         * tree.c (next_type_uid): Change type to unsigned.
22560         (type_hash_canon): Decrement back next_type_uid if
22561         freeing a type node with the highest TYPE_UID.  For INTEGER_TYPEs
22562         also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
22563         if possible.
22565 2017-05-04  Martin Sebor  <msebor@redhat.com>
22567         * builtins.c: Fix a trivial typo in a comment.
22569         PR middle-end/79234
22570         * builtins.c (check_sizes): Adjust to handle reading past the end.
22571         Avoid printing excessive upper bound of ranges.  Use %E to print
22572         tree nodes instead of converting them to %wu.
22573         (expand_builtin_memchr): New function.
22574         (compute_dest_size): Rename...
22575         (compute_objsize): ...to this.
22576         (expand_builtin_memcpy): Adjust.
22577         (expand_builtin_mempcpy): Adjust.
22578         (expand_builtin_strcat): Adjust.
22579         (expand_builtin_strcpy): Adjust.
22580         (check_strncat_sizes): Adjust.
22581         (expand_builtin_strncat): Adjust.
22582         (expand_builtin_strncpy): Adjust and simplify.
22583         (expand_builtin_memset): Adjust.
22584         (expand_builtin_bzero): Adjust.
22585         (expand_builtin_memcmp): Adjust.
22586         (expand_builtin): Handle memcmp.
22587         (maybe_emit_chk_warning): Check strncat just once.
22589 2017-05-04  Martin Sebor  <msebor@redhat.com>
22591         PR preprocessor/79214
22592         PR middle-end/79222
22593         PR middle-end/79223
22594         * builtins.c (check_sizes): Add inlining context and issue
22595         warnings even when -Wno-system-headers is set.
22596         (check_strncat_sizes): Same.
22597         (expand_builtin_strncat): Same.
22598         (expand_builtin_memmove): New function.
22599         (expand_builtin_stpncpy): Same.
22600         (expand_builtin): Handle memmove and stpncpy.
22602 2017-05-04  Bin Cheng  <bin.cheng@arm.com>
22604         * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
22605         which is not used any more.
22607 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
22609         * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
22611 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
22613         * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
22614         (cortexa53_tunings): Likewise.
22615         (cortexa57_tunings): Likewise.
22616         (cortexa72_tunings): Likewise.
22617         (cortexa73_tunings): Likewise.
22619 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
22621         * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
22622         Set loop alignment to 8.
22624 2017-05-04  Martin Sebor  <msebor@redhat.com>
22626         PR translation/80280
22627         * builtins.c (expand_builtin_object_size): Add missing quoting to
22628         %D and like directives.
22629         * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
22630         (hsa_type_for_tree_type): Same.
22631         (verify_function_arguments): Same.
22632         * symtab.c (symbol_table::change_decl_assembler_name): Same.
22633         * varasm.c (get_section): Same.
22634         (mark_weak): Same.
22636 2017-05-04  Martin Sebor  <msebor@redhat.com>
22638         PR translation/80280
22639         * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
22641 2017-05-04  Wilco Dijkstra  <wdijkstr@arm.com>
22643         * config/aarch64/aarch64.c (generic_addrcost_table):
22644         Change HI/TI mode setting.
22646 2017-05-04  Martin Jambor  <mjambor@suse.cz>
22648         PR tree-optimization/80622
22649         * tree-sra.c (comes_initialized_p): New function.
22650         (build_accesses_from_assign): Only set write lazily when
22651         comes_initialized_p is false.
22652         (analyze_access_subtree): Use comes_initialized_p.
22653         (propagate_subaccesses_across_link): Assert !comes_initialized_p
22654         instead of testing for PARM_DECL.
22656 2017-05-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22658         * config/aarch64/aarch64.md (prefetch); Adjust predicate and
22659         constraint on operand 0 to allow more general addressing modes.
22660         Adjust output template.
22661         * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
22662         New function.
22663         * config/aarch64/aarch64-protos.h
22664         (aarch64_address_valid_for_prefetch_p): Declare prototype.
22665         * config/aarch64/constraints.md (Dp): New address constraint.
22666         * config/aarch64/predicates.md (aarch64_prefetch_operand): New
22667         predicate.
22669 2017-05-04  Jan Hubicka  <hubicka@ucw.cz>
22671         * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
22672         update use of estimate_ipcp_clone_size_and_time.
22673         (estimate_local_effects): Update use of
22674         estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
22675         * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
22676         * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
22677         Return nonspecialized time.
22679 2017-05-04  Richard Biener  <rguenther@suse.de>
22681         * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
22682         for the last VUSE which def dominates the PHI.  Directly call
22683         maybe_skip_until.
22684         (get_continuation_for_phi_1): Remove.
22686 2017-05-04  Richard Sandiford  <richard.sandiford@linaro.org>
22688         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
22689         to explain the use of truncating division.  Cap the number of
22690         iterations to the maximum given by nb_iterations_upper_bound,
22691         if defined.
22693 2017-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22695         * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
22696         * configure: Regenerate.
22697         * config.in: Regenerate.
22698         * config/i386/driver-mingw32.c: new file.
22699         * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
22700         * config.host: Link driver-mingw32.o on MinGW host.
22701         * doc/install.texi: Document new --enable-mingw-wildcard configure
22702         option.
22704 2017-05-04  Marek Polacek  <polacek@redhat.com>
22706         PR tree-optimization/80612
22707         * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
22709 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
22710             Andre Simoes Dias Vieira  <andre.simoesdiasvieira@arm.com>
22712         * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
22713         (movt splitter): Likewise.
22714         * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
22715         to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
22716         (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
22717         block for Thumb-1 with MOVT.
22718         (thumb2_legitimate_address_p): Move code block ...
22719         (can_avoid_literal_pool_for_label_p): ... into this new function.
22720         (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
22721         literal pool.
22722         (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
22723         * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
22724         "M-profile targets with the MOVT instruction".
22726 2017-05-04  Prakhar Bahuguna  <prakhar.bahuguna@arm.com>
22728         * config/arm/arm-builtins.c (arm_init_builtins): Rename
22729         __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
22730         __builtin_arm_stfscr to __builtin_arm_set_fpscr.
22732 2017-05-04  Martin Liska  <mliska@suse.cz>
22734         * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
22735         variable cond_code.
22737 2017-05-04  Richard Biener  <rguenther@suse.de>
22739         * tree.c (array_at_struct_end_p): Handle arrays at struct
22740         end with flexarrays more conservatively.  Refactor and treat
22741         arrays of arrays or aggregates more strict.  Fix
22742         VIEW_CONVERT_EXPR handling.  Remove allow_compref argument.
22743         * tree.c (array_at_struct_end_p): Adjust prototype.
22744         * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
22745         * gimple-fold.c (get_range_strlen): Likewise.
22746         * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
22748 2017-05-04  Richard Biener  <rguenther@suse.de>
22750         PR tree-optimization/31130
22751         * tree-vrp.c (needs_overflow_infinity): Remove as always returning
22752         false.
22753         (supports_overflow_infinity): Likewise.
22754         (is_negative_overflow_infinity): Likewise.
22755         (is_positive_overflow_infinity): Likewise.
22756         (is_overflow_infinity): Likewise.
22757         (stmt_overflow_infinity): Likewise.
22758         (overflow_infinity_range_p): Likewise.
22759         (usable_range_p): Remove as always returning true.
22760         (make_overflow_infinity): Remove.
22761         (negative_overflow_infinity): Likewise.
22762         (positive_overflow_infinity): Likewise.
22763         (avoid_overflow_infinity): Likewise.
22764         (set_value_range): Adjust accordingly.
22765         (set_value_range_to_nonnegative): Likewise, remove now unused
22766         overflow_infinity arg.
22767         (vrp_operand_equal_p): Adjust.
22768         (update_value_range): Likewise.
22769         (range_int_cst_singleton_p): Likewise.
22770         (operand_less_p): Likewise.
22771         (compare_values_warnv): Likewise.
22772         (extract_range_for_var_from_comparison_expr): Likewise.
22773         (vrp_int_const_binop): Likewise.
22774         (zero_nonzero_bits_from_vr): Likewise.
22775         (extract_range_from_multiplicative_op_1): Likewise.
22776         (extract_range_from_binary_expr_1): Likewise.
22777         (extract_range_from_unary_expr): Likewise.
22778         (extract_range_from_comparison): Likewise.
22779         (extract_range_basic): Likewise.
22780         (adjust_range_with_scev): Likewise.
22781         (compare_ranges): Likewise.
22782         (compare_range_with_value): Likewise.
22783         (dump_value_range): Likewise.
22784         (test_for_singularity): Likewise, remove strict_overflow_p parameter
22785         never used.
22786         (simplify_cond_using_ranges): Adjust.
22788 2017-05-04  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
22790         * brig-builtins.def: Added a builtin for class_f64.
22791         * builtin-types.def: Added a builtin type needed by class_f64.
22793 2017-05-03  Jason Merrill  <jason@redhat.com>
22795         * timevar.def: Add TV_CONSTEXPR.
22797 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
22799         * common.opt (fdiagnostics-parseable-fixits): Fix typo.
22801 2017-05-03  Martin Jambor  <mjambor@suse.cz>
22803         * ipa-prop.c (ipa_update_after_lto_read): Removed.
22804         * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
22805         * ipa-cp.c (ipcp_propagate_stage): Do not call
22806         ipa_update_after_lto_read.
22807         * ipa-inline.c (ipa_inline): Likewise.
22809 2017-05-03  Martin Jambor  <mjambor@suse.cz>
22811         * ipa-prop.h (ipa_edge_args): Make a class.  Mark with for_user GTY
22812         tag.  Added a default constructor and a destructor.
22813         (ipa_edge_args_sum_t): New class;
22814         (ipa_edge_args_sum): Declare.
22815         (ipa_edge_args_vector): Remove declaration.
22816         (IPA_EDGE_REF): Use ipa_edge_args_sum.
22817         (ipa_free_edge_args_substructures): Remove declaration.
22818         (ipa_check_create_edge_args): Use ipa_edge_args_sum.
22819         (ipa_edge_args_info_available_for_edge_p): Likewise.
22820         * ipa-prop.c (ipa_edge_args_vector): Removed.
22821         (edge_removal_hook_holder): Likewise.
22822         (edge_duplication_hook_holder): Likewise.
22823         (ipa_edge_args_sum): New variable.
22824         (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
22825         ipa_edge_args_vector.
22826         (ipa_free_edge_args_substructures): Likewise.
22827         (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
22828         ipa_edge_args_vector.
22829         (ipa_edge_removal_hook): Turned into method
22830         ipa_edge_args_sum_t::remove.
22831         (ipa_edge_duplication_hook): Turned into method
22832         ipa_edge_args_sum_t::duplicate.
22833         (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
22834         registering edge hooks.
22835         (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
22836         * ipa-inline-analysis.c (estimate_function_body_sizes): Test
22837         ipa_edge_args_sum instead of ipa_edge_args_vector.
22838         * ipa-profile.c (ipa_profile): Likewise.
22840 2017-05-03  Martin Jambor  <mjambor@suse.cz>
22842         * symbol-summary.h (function_summary): New method exists.
22843         (function_summary::symtab_removal): Deallocate through release.
22844         (call_summary): New class.
22845         (gt_ggc_mx): New overload.
22846         (gt_pch_nx): Likewise.
22847         (gt_pch_nx): Likewise.
22849 2017-05-03  Jeff Law  <law@redhat.com>
22851         PR tree-optimization/78496
22852         * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
22853         from simplify_cond_using_ranges.  Split off code to walk
22854         backwards through casts into ...
22855         (simplify_cond_using_ranges_2): New function.
22856         (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
22857         (execute_vrp): After identifying jump threads, call
22858         simplify_cond_using_ranges_2.
22860 2017-05-03  Jan Hubicka  <hubicka@ucw.cz>
22862         PR bootstrap/80609
22863         * ipa-inline.h (inline_summary): Add ctor.
22864         (create_ggc): Do not use ggc_cleared_alloc.
22866 2017-05-03  Jeff Downs  <heydowns@somuchpressure.net>
22867             Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22869         * gcc.c (handle_braces): Support escaping in switch matching
22870         text.
22871         * doc/invoke.texi (Spec Files): Document it.
22872         Remove superfluous @code markup in items.
22874 2017-05-03  David Malcolm  <dmalcolm@redhat.com>
22876         * diagnostic-show-locus.c (struct column_range): New struct.
22877         (get_affected_columns): New function.
22878         (get_printed_columns): New function.
22879         (struct correction): New struct.
22880         (correction::ensure_capacity): New function.
22881         (correction::ensure_terminated): New function.
22882         (struct line_corrections): New struct.
22883         (line_corrections::~line_corrections): New dtor.
22884         (line_corrections::add_hint): New function.
22885         (layout::print_trailing_fixits): Reimplement in terms of the new
22886         classes.
22887         (selftest::test_overlapped_fixit_printing): New function.
22888         (selftest::diagnostic_show_locus_c_tests): Call it.
22890 2017-05-03  Nathan Sidwell  <nathan@acm.org>
22892         Canonicalize canonical type hashing
22893         * tree.h (type_hash_canon_hash): Declare.
22894         * tree.c (type_hash_list, attribute_hash_list): Move into
22895         type_hash_canon_hash.
22896         (build_type_attribute_qual_variant): Break out hash code calc into
22897         type_hash_canon_hash.
22898         (type_hash_canon_hash): New.  Generic type hash computation.
22899         (build_range_type_1, build_array_type_1, build_function_type,
22900         build_method_type_directly, build_offset_type, build_complex_type,
22901         make_vector_type): Call it.
22903 2017-05-03  Richard Biener  <rguenther@suse.de>
22905         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22906         When all DRs have unknown misaligned do not always peel
22907         when there is a store but apply the same costing model as if
22908         there were only loads.
22910 2017-05-03  Richard Biener  <rguenther@suse.de>
22912         Revert
22913         PR tree-optimization/80492
22914         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
22915         compare_base_decls returning dont-know properly.
22917 2017-05-03  Thomas Preud'homme  <thomas.preudhomme@arm.com>
22919         * config/arm/iterators.md (CCSI): New mode iterator.
22920         (arch): New mode attribute.
22921         * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
22922         (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
22923         (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This.  Use CCSI
22924         code iterator for success result mode.
22925         * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
22926         the corresponding new insn generators.
22928 2017-05-03  Bin Cheng  <bin.cheng@arm.com>
22930         Revert r247509
22931         2017-05-02  Bin Cheng  <bin.cheng@arm.com>
22932         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
22934 2017-05-03  Richard Sandiford  <richard.sandiford@linaro.org>
22936         * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
22937         (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
22938         (DDR_A): Wrap DDR argument in brackets.
22939         (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
22940         (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
22941         (DDR_REVERSED_P): Likewise.
22943 2017-05-03  Jakub Jelinek  <jakub@redhat.com>
22945         PR tree-optimization/79472
22946         * tree-switch-conversion.c (struct switch_conv_info): Add
22947         contiguous_range and default_case_nonstandard fields.
22948         (collect_switch_conv_info): Compute contiguous_range and
22949         default_case_nonstandard fields, don't clear final_bb if
22950         contiguous_range and only the default case doesn't have the required
22951         structure.
22952         (check_all_empty_except_final): Set default_case_nonstandard instead
22953         of failing if contiguous_range and the default case doesn't have empty
22954         block.
22955         (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
22956         and only the default case doesn't have the required constants.  Skip
22957         virtual phis.
22958         (gather_default_values): Skip virtual phis.  Allow non-NULL CASE_LOW
22959         if default_case_nonstandard.
22960         (build_constructors): Build constant 1 just once.  Assert that default
22961         values aren't inserted in between cases if contiguous_range.  Skip
22962         virtual phis.
22963         (build_arrays): Skip virtual phis.
22964         (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
22965         (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
22966         Handle virtual phis.
22967         (gen_inbound_check): Handle default_case_nonstandard case.
22968         (process_switch): Adjust check_final_bb caller.  Call
22969         gather_default_values with the first non-default case instead of
22970         default case if default_case_nonstandard.
22972 2017-05-02  Nathan Sidwell  <nathan@acm.org>
22974         * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
22975         check.  Fix formatting.
22977 2017-05-02  Jan Hubicka  <hubicka@ucw.cz>
22979         * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
22980         errors when comparing specialized and unspecialized times.
22982 2017-05-02  David Malcolm  <dmalcolm@redhat.com>
22984         * diagnostic-show-locus.c
22985         (layout::should_print_annotation_line_p): Make private.
22986         (layout::print_annotation_line): Make private.
22987         (layout::annotation_line_showed_range_p): Make private.
22988         (layout::show_ruler): Make private.
22989         (layout::print_source_line): Make private.  Pass in line and
22990         line_width, rather than calling location_get_source_line.  Drop
22991         returned value.
22992         (layout::print_leading_fixits): New method.
22993         (layout::print_any_fixits): Rename to...
22994         (layout::print_trailing_fixits): ...this, and make private.
22995         Don't print newline fixits.
22996         (diagnostic_show_locus): Move logic for printing one row into...
22997         (layout::print_line): ...this new function.  Move the
22998         location_get_source_line call and error-handling from
22999         print_source_line to here.  Call print_leading_fixits, and rename
23000         print_any_fixits to print_trailing_fixits.
23001         (selftest::test_fixit_insert_containing_newline): Update now that
23002         newlines are partially supported.
23003         (selftest::test_fixit_insert_containing_newline_2): New test.
23004         (selftest::test_fixit_replace_containing_newline): Update comments.
23005         (selftest::diagnostic_show_locus_c_tests): Call the new test.
23006         * edit-context.c (class added_line): New class.
23007         (class edited_line): Describe newline handling in comment.
23008         (edited_line::actually_edited_p): New method.
23009         (edited_line::print_content): Delete redundant decl.
23010         (edited_line::m_predecessors): New field.
23011         (edited_file::print_content): Call edited_line::print_content.
23012         (edited_file::print_diff): Update to support newlines.
23013         (edited_file::print_diff_hunk): Likewise.
23014         (edited_file::print_run_of_changed_lines): New function.
23015         (edited_file::print_diff_line): Convert to...
23016         (print_diff_line): ...this.
23017         (edited_file::get_effective_line_count): New function.
23018         (edited_line::edited_line): Initialize new field m_predecessors.
23019         (edited_line::~edited_line): Clean up m_predecessors.
23020         (edited_line::apply_fixit): Handle newlines.
23021         (edited_line::get_effective_line_count): New function.
23022         (edited_line::print_content): New function.
23023         (edited_line::print_diff_lines): New function.
23024         (selftest::test_applying_fixits_insert_containing_newline): New
23025         test.
23026         (selftest::test_applying_fixits_replace_containing_newline): New
23027         test.
23028         (selftest::insert_line): New function.
23029         (selftest::test_applying_fixits_multiple_lines): Add example of
23030         inserting a line.
23031         (selftest::edit_context_c_tests): Call the new tests.
23033 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23035         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
23036         parameter cand.  Update dump information.
23037         (get_computation_cost): Update uses.
23039 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23041         * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
23042         (get_computation_aff): Reorder parameters.  Use get_computation_aff_1.
23043         (get_computation_at, rewrite_use_address): Update use of
23044         get_computation_aff.
23046 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23048         * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
23049         (get_computation): Delete.
23050         (get_computation_cost): Implement like get_computation_cost_at.
23051         Use get_computation_at.
23052         (get_computation_cost_at): Delete.
23053         (rewrite_use_nonlinear_expr): Use get_computation_at.
23054         (rewrite_use_compare, remove_unused_ivs): Ditto.
23056 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23058         * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
23060 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23062         * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
23063         (ivopts_global_cost_for_size): Rename parameter and update uses.
23064         (iv_ca_recount_cost): Update uses.
23065         (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
23066         candidates seperately in n_invs and n_cands.
23067         (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
23069 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23071         * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
23072         (find_inv_vars_cb): New.
23073         (find_depends): Renamed to ...
23074         (find_inv_vars): ... this.
23075         (add_candidate_1, force_var_cost): Call find_inv_vars.
23076         (split_address_cost, determine_group_iv_cost_cond): Ditto.
23078 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23080         * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
23081         inv_vars.  Add inv_exprs.
23082         (struct iv_cand): Rename depends_on to inv_vars.
23083         (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
23084         max_inv_var_id/n_inv_var_uses.  Move max_inv_expr_id around.
23085         Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
23086         (dump_cand): Dump inv_vars.
23087         (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
23088         (record_invariant, find_depends, add_candidate_1): Ditto.
23089         (set_group_iv_cost, force_var_cost): Ditto.
23090         (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
23091         (get_computation_cost_at, get_computation_cost): Ditto.
23092         (determine_group_iv_cost_generic): Ditto.
23093         (determine_group_iv_cost_address): Ditto.
23094         (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
23095         (determine_group_iv_costs): Ditto.
23096         (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
23097         (iv_ca_set_remove_invariants): Renamed to ...
23098         (iv_ca_set_remove_invs): ... this.  Support inv_vars and inv_exprs.
23099         (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
23100         (iv_ca_set_add_invariants):  Renamed to ...
23101         (iv_ca_set_add_invs): ... this.  Support inv_vars and inv_exprs.
23102         (iv_ca_set_cp): Use iv_ca_set_add_invs.
23103         (iv_ca_has_deps): Support inv_vars and inv_exprs.
23104         (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
23105         (create_new_ivs): Remove useless dump.
23107 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23109         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
23110         iv_cand code.
23111         (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
23112         (iv_ca_set_no_cp, create_new_iv): Ditto.
23114 2017-05-02  Bin Cheng  <bin.cheng@arm.com>
23116         * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
23118 2017-05-02  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
23120         * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
23121         function tree_check2.
23123 2017-05-02  Martin Liska  <mliska@suse.cz>
23125         * doc/gcov.texi: Add missing preposition.
23126         * gcov.c (function_info::function_info): Properly fill up
23127         all member variables.
23129 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
23131         * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
23133 2017-05-02  Tamar Christina  <tamar.christina@arm.com>
23135         * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
23137 2017-05-02  Martin Liska  <mliska@suse.cz>
23139         PR lto/77954.
23140         * lto-streamer-in.c (lto_read_tree_1): Remove
23141         LTO_STREAMER_DEBUG.
23142         * lto-streamer.c (struct tree_hash_entry): Likewise.
23143         (struct tree_entry_hasher): Likewise.
23144         (tree_entry_hasher::hash): Likewise.
23145         (tree_entry_hasher::equal): Likewise.
23146         (lto_streamer_init): Likewise.
23147         (lto_orig_address_map): Likewise.
23148         (lto_orig_address_get): Likewise.
23149         (lto_orig_address_remove): Likewise.
23150         * lto-streamer.h: Likewise.
23151         * tree-streamer-in.c (streamer_alloc_tree): Likewise.
23152         * tree-streamer-out.c (streamer_write_tree_header): Likewise.
23154 2017-05-02  Sebastian Peryt  <sebastian.peryt@intel.com>
23156         * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
23157         (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
23158         (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
23159         (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
23160         (mm_maskz_sub_round_ss, _mm_mask_add_sd)
23161         (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
23162         (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
23163         (mm_maskz_sub_ss): New intrinsics.
23164         * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
23165         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
23166         * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
23167         (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
23168         (__builtin_ia32_subss_mask_round): New builtins.
23169         * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
23170         (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
23171         * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
23172         Renamed to ...
23173         (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
23174         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
23175         Changed to ...
23176         (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
23177         ... this.
23179 2017-05-02  Martin Jambor  <mjambor@suse.cz>
23181         PR tree-optimization/78687
23182         * tree-sra.c (access): New field parent.
23183         (process_subtree_disqualification): New function.
23184         (disqualify_candidate): Call it.
23185         (build_accesses_from_assign): Reset write flag if creating an
23186         assighnment link.
23187         (build_access_subtree): Fill in parent field and also prpagate
23188         down grp_write flag.
23189         (create_artificial_child_access): New parameter set_grp_write, set
23190         grp_write to its value.
23191         (propagate_subaccesses_across_link): Also propagate grp_write flag
23192         values.
23193         (propagate_all_subaccesses): Push the closest parent back to work
23194         queue if add_access_to_work_queue returned true.
23196 2017-05-02  Richard Biener  <rguenther@suse.de>
23198         * common.opt (fstrict-overflow): Alias negative to fwrapv.
23199         * doc/invoke.texi (fstrict-overflow): Remove all traces of
23200         -fstrict-overflow documentation.
23201         * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
23202         (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
23203         flag_strict_overflow.
23204         * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
23205         * lto-opts.c (lto_write_options): Do not stream it.
23206         * lto-wrapper.c (merge_and_complain): Do not handle it.
23207         * opts.c (default_options_table): Do not set -fstrict-overflow.
23208         (finish_options): Likewise do not clear it when sanitizing.
23209         * simplify-rtx.c (simplify_const_relational_operation): Do not
23210         test flag_strict_overflow.
23212 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
23214         * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
23215         using enabled attribute.
23216         (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
23217         (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
23218         (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
23219         (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
23220         (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
23221         (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
23222         (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
23223         (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
23224         (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
23225         (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
23227 2017-05-02  Uros Bizjak  <ubizjak@gmail.com>
23229         * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
23231 2017-05-02  Richard Biener  <rguenther@suse.de>
23233         PR tree-optimization/80591
23234         Revert
23235         2017-04-10  Richard Biener  <rguenther@suse.de>
23237         * tree-ssa-structalias.c (find_func_aliases): Properly handle
23238         asm inputs.
23240 2017-05-02  Richard Biener  <rguenther@suse.de>
23242         PR tree-optimization/80549
23243         * tree-cfgcleanup.c (mfb_keep_latches): New helper.
23244         (cleanup_tree_cfg_noloop): Create forwarders to known loop
23245         headers if they do not have a preheader.
23247 2017-05-02  Martin Liska  <mliska@suse.cz>
23249         PR other/80589
23250         * common.opt: Fix typo.
23251         * doc/invoke.texi: Likewise.
23253 2017-05-01  Jan Beulich  <jbeulich@suse.com>
23255         * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
23256         swapping, add (x,x,m,x,n) alternative.
23258 2017-05-01  Nathan Sidwell  <nathan@acm.org>
23260         * calls.c (combine_pending_stack_adjustment_and_call): Remove
23261         unnecessary unadjusted_alignment check.
23263 2017-05-01  Xi Ruoyao  <ryxi@stu.xidian.edu.cn>
23265         PR c++/80038
23266         * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
23267         operations here.
23268         * gimplify.c (gimplify_cilk_detach): New function.
23269         (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
23270         * tree-core.h: Document EXPR_CILK_SPAWN.
23271         * tree.h (EXPR_CILK_SPAWN): Define.
23273 2017-05-01  David Malcolm  <dmalcolm@redhat.com>
23275         * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
23276         to use new fixit_hint representation, using the "replace" logic.
23277         (get_line_span_for_fixit_hint): Likewise.
23278         (layout::print_any_fixits): Likewise.
23279         (selftest::test_one_liner_many_fixits): Rename to...
23280         (selftest::test_one_liner_many_fixits_1): ...this, and update
23281         comment and expected output to reflect that the multiple fix-it
23282         hints are now consolidated into one insertion.
23283         (selftest::test_one_liner_many_fixits_2): New test.
23284         (selftest::test_diagnostic_show_locus_one_liner): Update for
23285         above.
23286         (selftest::test_fixit_consolidation): Update for fix-it API
23287         change.
23288         * diagnostic.c (print_parseable_fixits): Likewise.
23289         * edit-context.c (edited_line::m_line_events): Convert from
23290         auto_vec <line_event *> to auto_vec <line_event>.
23291         (class line_event): Convert from abstract base class to a concrete
23292         class, taking over the role of replace_event.
23293         (class insert_event): Delete.
23294         (class replace_event): Rename to class line_event.  Convert to
23295         half-open range.
23296         (edit_context::add_fixits): Reimplement.
23297         (edit_context::apply_insert): Delete.
23298         (edit_context::apply_replace): Rename to...
23299         (edit_context::apply_fixit): ...this.  Convert to half-open range.
23300         (edited_file::apply_insert): Delete.
23301         (edited_file::apply_replace): Rename to...
23302         (edited_file::apply_fixit): ...this.
23303         (edited_line::~edited_line): Drop deletion of events.
23304         (edited_line::apply_insert): Delete.
23305         (edited_line::apply_replace): Rename to...
23306         (edited_line::apply_fixit): ...this.  Convert to half-open range.
23307         Update for change to type of m_line_events.
23308         * edit-context.h (edit_context::apply_insert): Delete.
23309         (edit_context::apply_replace): Rename to...
23310         (edit_context::apply_fixit): ...this.
23312 2017-05-01  Martin Sebor  <msebor@redhat.com>
23314         * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
23315         known.
23317 2017-05-01  Uros Bizjak  <ubizjak@gmail.com>
23319         PR target/68491
23320         * config/i386/cpuid.h (__get_cpuid): Always return 0 when
23321         __get_cpuid_max returns 0.
23322         (__get_cpuid_count): Ditto.
23324 2017-05-01  Eric Botcazou  <ebotcazou@adacore.com>
23326         * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
23327         replacement expression is another instance of one of its arguments.
23329 2017-05-01  Jakub Jelinek  <jakub@redhat.com>
23331         PR target/79430
23332         * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
23333         check for stack push/pop autoinc.
23334         * config/i386/i386.c (ix86_agi_dependent): Return false
23335         if the only reason why modified_in_p returned true is that
23336         addr is SP based and set_insn is a push or pop.
23338 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
23340         * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
23341         overflow check.
23343 2017-04-29  Jan Hubicka  <hubicka@ucw.cz>
23345         PR ipa/79224
23346         * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
23347         (account_size_time): Use two predicates - exec_pred and
23348         nonconst_pred_ptr.
23349         (evaluate_conditions_for_known_args): Compute both clause and
23350         nonspec_clause.
23351         (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
23352         (inline_summary_t::duplicate): Update.
23353         (estimate_function_body_sizes): Caluculate exec and nonconst predicates
23354         separately.
23355         (compute_inline_parameters): Likewise.
23356         (estimate_edge_size_and_time): Update caluclation of time.
23357         (estimate_node_size_and_time): Compute both time and nonspecialized
23358         time.
23359         (estimate_ipcp_clone_size_and_time): Update.
23360         (inline_merge_summary): Update.
23361         (do_estimate_edge_time): Update.
23362         (do_estimate_edge_size): Update.
23363         (do_estimate_edge_hints): Update.
23364         (inline_read_section, inline_write_summary): Stream both new predicates.
23365         * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
23366         as argument.
23367         (compute_inlined_call_time): Cleanup.
23368         (big_speedup_p): Update.
23369         (edge_badness): Update.
23370         * ipa-inline.h (INLINE_TIME_SCALE): Remove.
23371         (size_time_entry): Replace predicate by exec_predicate and
23372         nonconst_predicate.
23373         (edge_growth_cache_entry): Cache both time nad nonspecialized time.
23374         (estimate_edge_time): Return also nonspec_time.
23375         (reset_edge_growth_cache): Update.
23377 2017-04-29  Jakub Jelinek  <jakub@redhat.com>
23379         PR rtl-optimization/80491
23380         * ifcvt.c (noce_process_if_block): When looking for x setter
23381         with missing else_bb, don't check only the insn right before
23382         cond_earliest, but look for the last insn that x is modified in
23383         within the same bb.
23385         PR rtl-optimization/80491
23386         * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
23388 2017-04-29  Marc Glisse  <marc.glisse@inria.fr>
23390         PR tree-optimization/80487
23391         * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
23393 2017-04-29  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
23395         PR tree-optimization/79697
23396         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
23397         is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
23398         (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
23399         BUILT_IN_STRNDUP.
23400         * gimple-fold.c (gimple_fold_builtin_realloc): New function.
23401         (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
23403 2017-04-28  Martin Sebor  <msebor@redhat.com>
23405         PR tree-optimization/80523
23406         * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
23407         (init_target_to_host_charmap, target_to_host, target_strtol10): New
23408         functions.
23409         (maybe_warn, format_directive, parse_directive): Use new functions.
23410         (pass_sprintf_length::execute): Call init_target_to_host_charmap.
23412 2017-04-28  Marc Glisse  <marc.glisse@inria.fr>
23414         * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
23416 2017-04-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23418         * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
23419         target_header_dir): Set correctly.
23420         * configure: Regenerated.
23421         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
23422         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
23423         instead of SYSTEM_HEADER_DIR.
23425 2017-04-28  Jan Hubicka  <hubicka@ucw.cz>
23427         * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
23428         (estimate_local_effects): Likewise.
23429         * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
23430         edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
23431         * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
23432         estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
23433         do_estimate_edge_time, estimate_edge_time): Likewise.
23434         * ipa-inline-analysis.c (estimate_node_size_and_time,
23435         estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
23436         (estimate_time_after_inlining): Remove.
23438 2017-04-28  Martin Liska  <mliska@suse.cz>
23440         * doc/gcov.texi: Enhance documentation of gcov.
23442 2017-04-28  Martin Liska  <mliska@suse.cz>
23444         * doc/gcov.texi: Sort options in alphabetic order.
23445         * doc/gcov-dump.texi: Likewise.
23446         * doc/gcov-tool.texi: Likewise.
23447         * gcov.c (print_usage): Likewise.
23448         * gcov-dump.c (print_usage): Likewise.
23449         * gcov-tool.c (print_merge_usage_message): Likewise.
23450         (print_rewrite_usage_message): Likewise.
23451         (print_overlap_usage_message): Likewise.
23453 2017-04-28  Martin Liska  <mliska@suse.cz>
23455         PR gcov-profile/53915
23456         * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
23458 2017-04-28  Martin Liska  <mliska@suse.cz>
23460         PR gcov-profile/79891
23461         * gcov.c (add_line_counts): Assign BBs to lines just if the BB
23462         is marked by compiler as living on a line.
23463         (get_cycles_count): Remove usage of the union.
23464         (output_intermediate_file): Likewise.
23465         (find_source): Fix GNU coding style.
23466         (accumulate_line_counts): Remove old non-all block mode.
23467         (output_lines): Remove usage of the union.
23468         * profile.c (output_location): Include all BBs, even if
23469         belonging to a same line (and file) as a previous BB.
23471 2017-04-28  Martin Liska  <mliska@suse.cz>
23473         * gcov.c (process_args): Handle new argument 'w'.
23474         (read_graph_file): Assign ID to BBs.
23475         (output_branch_count): Display BB # if verbose flag is set.
23476         (output_lines): Likewise for arcs.
23477         (print_usage): Add '--verbose' option help.
23478         * doc/gcov.texi: Document --verbose (-w) option.
23480 2017-04-28  Martin Liska  <mliska@suse.cz>
23482         * gcov.c (struct block_location_info): New struct.
23483         (process_file): Fill up the new structure.
23484         (read_graph_file): Replace usage of encoding by the newly added
23485         struct.
23486         (add_line_counts): Likewise.
23487         (accumulate_line_counts): Remove usage of the union.
23488         (function_info::function_info): New function.
23489         (function_info::~function_info): Likewise.
23490         (process_file): Call delete instead of release_function.
23491         (release_function): Release the function.
23492         (release_structures): Call delete instead of release_function.
23493         (solve_flow_graph): Replace usage of num_blocks.
23494         (find_exception_blocks): Likewise.
23495         (output_lines): Fix GNU coding style.
23497 2017-04-28  Martin Liska  <mliska@suse.cz>
23499         PR driver/56469
23500         * coverage.c (coverage_remove_note_file): New function.
23501         * coverage.h: Declare the function.
23502         * toplev.c (finalize): Clean if an error has been seen.
23504 2017-04-28  Martin Liska  <mliska@suse.cz>
23506         PR gcov-profile/80031
23507         * gcov-dump.c (tag_blocks): Just print number of basic blocks.
23508         * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
23509         * gcov.c (read_graph_file): Read just number of blocks.
23510         * profile.c (branch_prob): Do not stream 0 flags per a basic
23511         block.
23513 2017-04-28  Martin Liska  <mliska@suse.cz>
23515         * gcov-dump.c (tag_*): Add new argument to declarations.
23516         (dump_gcov_file): Likewise.
23517         (tag_blocks): Add and use new argument depth.
23518         (tag_arcs): Likewise.
23519         (tag_lines): Likewise.
23520         (tag_counters): Likewise.
23521         (tag_summary): Likewise.
23522         (dump_working_sets): Use depth to do a proper indentation.
23524 2017-04-28  Jakub Jelinek  <jakub@redhat.com>
23526         PR bootstrap/80531
23527         * cgraph.h (symtab_node::debug_symtab): No longer inline.
23528         * symtab.c (symtab_node::debug_symtab): Move definition here.
23530 2017-04-28  Richard Biener  <rguenther@suse.de>
23532         * lto-streamer.h (LTO_major_version): Bump to 7.
23534 2017-04-28  Richard Biener  <rguenther@suse.de>
23536         * tree-vrp.c (assert_info): New struct.
23537         (add_assert_info): New helper.
23538         (register_edge_assert_for_2): Refactor to add asserts to a vector
23539         of assert_info.
23540         (register_edge_assert_for_1): Likewise.
23541         (register_edge_assert_for): Likewise.
23542         (finish_register_edge_assert_for): New helper actually registering
23543         asserts where live on edge.
23544         (find_conditional_asserts): Adjust.
23545         (find_switch_asserts): Likewise.
23546         (evrp_dom_walker::try_find_new_range): Generalize.
23547         (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
23549 2017-04-27  Marek Polacek  <polacek@redhat.com>
23551         PR sanitizer/80349
23552         * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
23553         arg10 and arg11 to itype.
23555 2017-04-27  Jonathan Wakely  <jwakely@redhat.com>
23557         * doc/extend.texi (Object Size Checking): Improve grammar.
23559 2017-04-27  Richard Earnshaw  <rearnsha@arm.com>
23561         PR target/80530
23562         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
23563         that the logic for permitting reciprocal estimates matches that
23564         in use_rsqrt_p.
23566 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
23568         PR c++/80534
23569         * tree.c (type_cache_hasher::equal): Only compare
23570         TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
23571         (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
23572         non-aggregate element types.
23573         * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
23574         about the flag on ARRAY_TYPEs in the comment, formatting fix.
23576 2017-04-27  Richard Biener  <rguenther@suse.de>
23578         PR middle-end/80533
23579         * emit-rtl.c (set_mem_attributes_minus_bitpos): When
23580         stripping ARRAY_REFs from MEM_EXPR make sure we're not
23581         keeping a reference to a trailing array.
23583 2017-04-27  Richard Biener  <rguenther@suse.de>
23585         PR middle-end/80539
23586         * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
23587         being in loop-closed SSA form conservatively.
23588         (chrec_fold_multiply_poly_poly): Likewise.
23590 2017-04-27  Tamar Christina  <tamar.christina@arm.com>
23592         PR middle-end/79665
23593         * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
23594         CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
23596 2017-04-27  Jakub Jelinek  <jakub@redhat.com>
23598         PR target/77728
23599         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
23600         (aarch64_function_arg_alignment): Return unsigned int again, but still
23601         ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
23602         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
23603         Don't emit -Wpsabi note.
23604         (aarch64_function_arg_boundary): Likewise.
23605         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
23606         caller.
23608 2017-04-26  Nathan Sidwell  <nathan@acm.org>
23610         * tree.h (crc32_unsigned_n): Declare.
23611         (crc32_unsigned, crc32_unsigned): Make inline.
23612         * tree.c (crc32_unsigned_bits): Replace with ...
23613         (crc32_unsigned_n): ... this.
23614         (crc32_unsigned, crc32_byte): Remove.
23615         (crc32_string): Remove unnecessary braces.
23617 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
23619         * ipa-cp.c (estimate_local_effects): Convert sreal to int.
23620         * ipa-inline-analysis.c (MAX_TIME): Remove.
23621         (account_size_time): Use sreal for time.
23622         (dump_inline_summary): Update.
23623         (estimate_function_body_sizes): Update.
23624         (estimate_edge_size_and_time): Update.
23625         (estimate_calls_size_and_time): Update.
23626         (estimate_node_size_and_time): Update.
23627         (inline_merge_summary): Update.
23628         (inline_update_overall_summary): Update.
23629         (estimate_time_after_inlining): Update.
23630         (inline_read_section): Update.
23631         (inline_write_summary): Update.
23632         * ipa-inline.c (compute_uninlined_call_time): Update.
23633         (compute_inlined_call_time): Update.
23634         (recursive_inlining): Update.
23635         (inline_small_functions): Update.
23636         (dump_overall_stats): Update.
23637         * ipa-inline.h: Include sreal.h.
23638         (size_time_entry): Turn time to sreal.
23639         (inline_summary): Turn self_time nad time to sreal.
23641 2017-04-25  Jan Hubicka  <hubicka@ucw.cz>
23643         * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
23644         data-streamer.h
23645         (sreal::stream_out, sreal::stream_in): New.
23646         * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
23648 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
23650         * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
23651         environment.
23653 2017-04-25  Uros Bizjak  <ubizjak@gmail.com>
23655         PR target/70799
23656         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
23657         Handle ASHIFTRT.
23658         (dimode_scalar_chain::compute_convert_gain): Ditto.
23659         (dimode_scalar_chain::make_vector_copies): Ditto.
23660         (dimode_scalar_chain::convert_reg): Ditto.
23661         (dimode_scalar_chain::convert_insn): Ditto.
23662         * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
23663         (VI248_AVX512BW_1): New mode iterator.
23664         (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
23665         <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
23666         mode iterator.
23668 2017-04-25  Martin Sebor  <msebor@redhat.com>
23670         PR tree-optimization/80497
23671         * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
23672         constants are representable in HOST_WIDE_INT.
23673         (parse_directive): Ditto.
23675 2017-04-25  Martin Sebor  <msebor@redhat.com>
23677         PR bootstrap/80486
23678         * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
23679         (new_zero_array): Adjust signature.
23680         (dom_info::dom_init): Used unsigned rather that size_t.
23681         (dom_info::dom_info): Same.
23683 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23684             Jakub Jelinek  <jakub@redhat.com>
23686         PR target/77728
23687         * config/arm/arm.c: Include gimple.h.
23688         (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
23689         returns negative, increment ncrn only if it returned positive.
23690         (arm_needs_doubleword_align): Return int instead of bool,
23691         ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
23692         members, but if there is any such non-FIELD_DECL
23693         > PARM_BOUNDARY aligned decl, return -1 instead of false.
23694         (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
23695         returns negative, increment nregs only if it returned positive.
23696         (arm_setup_incoming_varargs): Likewise.
23697         (arm_function_arg_boundary): Emit -Wpsabi note if
23698         arm_needs_doubleword_align returns negative, return
23699         DOUBLEWORD_ALIGNMENT only if it returned positive.
23701 2017-04-25  Marek Polacek  <polacek@redhat.com>
23703         PR sanitizer/80349
23704         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
23705         first argument to type.
23707 2017-04-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
23709         PR target/80482
23710         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
23711         type checks to test for compatibility instead of equality.
23713 2017-04-25  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23714             Jakub Jelinek  <jakub@redhat.com>
23716         PR target/77728
23717         * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
23718         type.
23719         (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
23720         struct.  Ignore DECL_ALIGN of decls other than FIELD_DECL for
23721         the alignment computation, but return their maximum in warn_alignment.
23722         (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
23723         Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
23724         is smaller.
23725         (aarch64_function_arg_boundary): Likewise.  Simplify using MIN/MAX.
23726         (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
23727         caller.
23729 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23731         * config/arc/simdext.md (dmpyh): Fix typo.
23733 2017-04-25  Richard Biener  <rguenther@suse.de>
23735         PR tree-optimization/80492
23736         * alias.c (compare_base_decls): Handle registers with asm
23737         specification conservatively.
23738         * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
23739         compare_base_decls returning dont-know properly.
23741 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23743         * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
23744         (legitimate_offset_address_p): New function.
23745         (arc_legitimate_address_p): Use above function.
23747 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23749         * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
23751 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23753         * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
23754         ACCH registers whenever they are available.
23756 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23758         * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
23759         double regs fix when not used.
23761 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23763         * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
23764         core registers.
23765         (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
23766         (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
23768 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23770         * config/arc/arc.c (arc_output_addsi): Check for h-register class
23771         when emitting short ADD instructions.
23773 2017-04-25  Claudiu Zissulescu  <claziss@synopsys.com>
23775         * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
23776         constraint.
23777         (cmpsi_cc_c_insn): Likewise.
23778         (cbranchsi4_scratch): Compute proper instruction length using
23779         compact_hreg_operand.
23780         * config/arc/predicates.md (compact_hreg_operand): New predicate.
23782 2017-04-25  Richard Biener  <rguenther@suse.de>
23784         PR middle-end/80509
23785         * passes.c (pass_manager::pass_manager): Initialize
23786         m_name_to_pass_map.
23788 2017-04-25  Richard Biener  <rguenther@suse.de>
23790         PR tree-optimization/79201
23791         * tree-ssa-sink.c (statement_sink_location): Handle calls.
23793 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23795         PR target/80464
23796         * config/s390/vector.md: Split MEM->GPR vector moves for
23797         non-s_operand addresses.
23799 2017-04-25  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
23801         PR target/79895
23802         * config/s390/predicates.md (reload_const_wide_int_operand): New
23803         predicate.
23804         * config/s390/s390.md ("movti"): Remove d/P alternative.
23805         ("movti_bigconst"): New pattern definition.
23807 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23809         PR target/80080
23810         * s390-protos.h (s390_expand_cs_hqi): Removed.
23811         (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
23812         * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
23813         modes as well as CCZ1mode and CCZmode.
23814         (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
23815         signature of s390_emit_compare_and_swap.
23816         (s390_expand_cs_hqi): Likewise, make static.
23817         (s390_expand_cs_tdsi): Generate an explicit compare before trying
23818         compare-and-swap, in some cases.
23819         (s390_expand_cs): Wrapper function.
23820         (s390_expand_atomic_exchange_tdsi): New backend specific expander for
23821         atomic_exchange.
23822         (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
23823         * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
23824         patterns for small and large integers.  Forbid symref memory operands.
23825         Move expander to s390.c.  Require cc register.
23826         ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
23827         ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
23828         ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
23829         ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
23830         symref memory operands.  Remove CC mode and call s390_match_ccmode
23831         instead.
23832         ("atomic_exchange<mode>"): Allow and implement all integer modes.
23834 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23836         * config/s390/s390.md (define_peephole2): New peephole to help
23837         combining the load-and-test pattern with volatile memory.
23839 2017-04-25  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23841         * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
23842         with CCZmode for TARGET_Z196.
23844 2017-04-25  Jakub Jelinek  <jakub@redhat.com>
23846         PR rtl-optimization/80501
23847         * combine.c (make_compound_operation_int): Set subreg_code to SET
23848         even for AND with mask of the sign bit of mode.
23850         PR rtl-optimization/80500
23851         * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
23852         sum's initial value.
23854 2017-04-25  Julian Brown  <julian@codesourcery.com>
23855             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
23857         * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
23859 2017-04-25  Marc Glisse  <marc.glisse@inria.fr>
23861         * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
23863 2017-04-25  Julian Brown  <julian@codesourcery.com>
23864             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
23866         * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
23867         (thunderx2t99_sha): New Reservation.
23869 2017-04-25  Julian Brown  <julian@codesourcery.com>
23870             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
23872         * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
23873         type for 1-element load.
23875 2017-04-24  Marc Glisse  <marc.glisse@inria.fr>
23877         * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
23879 2017-04-24  Martin Jambor  <mjambor@suse.cz>
23881         PR tree-optimization/80293
23882         * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
23883         char arrays not totally scalarizable if it is false.
23884         (analyze_all_variable_accesses): Pass correct value in the new
23885         parameter.  Add a statistics counter.
23887 2017-04-24  Jan Hubicka  <hubicka@ucw.cz>
23889         PR middle-end/79931
23890         * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
23892 2017-04-24  Richard Biener  <rguenther@suse.de>
23894         PR tree-optimization/80494
23895         * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
23896         out for complex types.
23898 2017-04-24  Richard Biener  <rguenther@suse.de>
23900         * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
23901         * tree-ssa-sccvn.c (print_scc): Print SCC size.
23902         (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
23903         (DFS): Adjust and never fail.
23904         (sccvn_dom_walker::fail): Remove.
23905         (sccvn_dom_walker::before_dom_children): Adjust.
23906         (run_scc_vn): Likewise and never fail.
23907         * tree-ssa-pre.c (pass_pre::execute): Adjust.
23908         (pass_fre::execute): Likewise.
23910 2017-04-24  Richard Biener  <rguenther@suse.de>
23912         PR tree-optimization/79725
23913         * tree-ssa-sink.c (statement_sink_location): Return whether
23914         failure reason was zero uses.  Move that check later.
23915         (sink_code_in_bb): Deal with zero uses by removing the stmt
23916         if possible.
23918 2017-04-24  Richard Biener  <rguenther@suse.de>
23920         PR c++/2972
23921         * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
23922         pointer-based references.
23924 2017-04-24  Richard Biener  <rguenther@suse.de>
23926         PR bootstrap/79814
23927         * pass_manager.h (pass_manager::operator new): Remove.
23928         (pass_manager::operator delete): Likewise.
23929         * passes.c (pass_manager::operator new): Remove.
23930         (pass_manager::operator delete): Likewise.
23931         (pass_manager::pass_manager): Zero individual pass members.
23933 2017-04-23  Uros Bizjak  <ubizjak@gmail.com>
23935         PR target/70799
23936         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
23937         <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
23938         Check "XEXP (src, 1)" operand here.
23939         <case PLUS, case MINUS, case IOR, case XOR, case AND>:
23940         Check "XEXP (src, 1)" operand here.
23941         (dimode_scalar_chain::make_vector_copies): Detect count register
23942         of a shift instruction.  Zero extend count register from QImode
23943         to DImode to satisfy vector shift pattern count operand predicate.
23944         Substitute vector shift count operand with a DImode copy.
23945         (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
23946         vector register.
23948 2017-04-21  Uros Bizjak  <ubizjak@gmail.com>
23950         * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
23951         Remove UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
23952         (*insvqi_1_mem_rex64): Move above insv<mode>_1.  Remove
23953         UNSPEC_NOREX_MEM tag.  Update corresponding peephole2 pattern.
23954         (UNSPEC_NOREX_MEM): Remove definition.
23956 2017-04-21  Richard Biener  <rguenther@suse.de>
23958         PR tree-optimization/79547
23959         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23960         Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
23961         bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
23962         without any constraints.
23964 2017-04-21  Richard Biener  <rguenther@suse.de>
23966         PR tree-optimization/78847
23967         * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
23969 2017-04-21  Richard Biener  <rguenther@suse.de>
23971         * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
23972         (build_distinct_type_copy): Likewise.
23973         (build_variant_type_copy): Likewise.
23974         * tree.c (build_qualified_type): Pass down mem-stat info.
23975         (build_distinct_type_copy): Likewise.
23976         (build_variant_type_copy): Likewise.
23978 2017-04-21  Richard Biener  <rguenther@suse.de>
23980         PR tree-optimization/80237
23981         * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
23982         defaulted to NULL.
23983         (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
23984         for a simplified result.
23986 2016-04-21  Richard Biener  <rguenther@suse.de>
23988         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
23989         sth as strict as a simple_iv but a chrec without symbols and an
23990         operand defined in the loop we are peeling (and not some subloop).
23991         (propagate_constants_for_unrolling): Propagate all constants.
23993 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
23995         PR target/79804
23996         * config/i386/i386.c (print_reg): Remove assert for disalowed
23997         regno values, call output_operand_lossage instead.
23999 2017-04-20  Uros Bizjak  <ubizjak@gmail.com>
24001         PR target/78090
24002         * config/i386/constraints.md (Yc): New register constraint.
24003         * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
24004         Use Yc constraint for alternative 2 of operand 0.  Remove
24005         preferred_for_speed attribute.
24007 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
24009         * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
24010         lastprivate clauses in SIMT case.
24012 2017-04-20  Volker Reichelt  <v.reichelt@netcologne.de>
24014         * doc/invoke.texi (-Wextra-semi): Document new warning option.
24016 2017-04-20  Richard Biener  <rguenther@suse.de>
24018         PR tree-optimization/57796
24019         * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
24020         as N scalar stores.
24021         (vect_model_load_cost): Cost gathers as N scalar loads.
24023 2017-04-20  Richard Biener  <rguenther@suse.de>
24025         * ggc-page.c (ggc_allocated_p): Rename to ...
24026         (safe_lookup_page_table_entry): ... this and return the lookup
24027         result.
24028         (gt_ggc_m_S): Use safe_lookup_page_table_entry.
24030 2017-04-20  Richard Biener  <rguenther@suse.de>
24032         PR tree-optimization/80453
24033         * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
24034         * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
24035         from the conditions.
24036         (vn_phi_eq): Pass them down.
24037         (vn_phi_lookup): Record them.
24038         (vn_phi_insert): Likewise.
24040 2017-04-20  Matthew Fortune  <matthew.fortune@imgtec.com>
24042         * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
24043         uninitialized variable warning to avoid buffer overrun.
24045 2017-04-20  Alexander Monakov  <amonakov@ispras.ru>
24047         PR other/71250
24048         * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
24049         is suppressed for '{ 0 }' in C.
24051 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
24053         * BASE-VER: Set to 8.0.0.
24055 2017-04-20  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24057         * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
24058         priority .init_array and .fini_array section with SECTION_NOTYPE
24059         flag.
24061 2017-04-20  Jakub Jelinek  <jakub@redhat.com>
24063         PR middle-end/80423
24064         * tree.h (build_array_type): Add typeless_storage default argument.
24065         * tree.c (type_cache_hasher::equal): Also compare
24066         TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
24067         (build_array_type): Add typeless_storage argument, set
24068         TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
24069         recursive call.
24070         (build_nonshared_array_type): Adjust build_array_type_1 caller.
24071         (build_array_type): Likewise.  Add typeless_storage argument.
24073 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24074             Jakub Jelinek  <jakub@redhat.com>
24076         PR tree-optimization/80426
24077         * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
24078         operation on symbolic operands, also compute the overflow for the
24079         invariant part when the operation degenerates into a negation.
24081 2017-04-19  Jakub Jelinek  <jakub@redhat.com>
24083         PR debug/80461
24084         * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
24085         Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
24087         PR debug/80436
24088         * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
24090 2017-04-19  Georg-Johann Lay  <avr@gjlay.de>
24092         PR target/80462
24093         * config/avr/avr.c (tree.h): Include it.
24094         (cgraph.h): Include it.
24095         (avr_encode_section_info): Don't warn for uninitialized progmem
24096         variable if it's just an alias.
24098 2017-04-19  Richard Biener  <rguenther@suse.de>
24100         PR ipa/65972
24101         * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
24102         when needed by AutoPGO.
24104 2017-04-19  Paulo J. Matos  <paulo@matos-sorge.com>
24106         PR lto/50345
24107         * doc/lto.texi: Remove an extra 'that'.
24109 2017-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
24111         PR rtl-optimization/80429
24112         * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
24113         are only used in debug insns.
24115 2017-04-19  Eric Botcazou  <ebotcazou@adacore.com>
24116             Vladimir Makarov  <vmakarov@redhat.com>
24118         * config/sparc/predicates.md (input_operand): Add comment.  Return
24119         true for any memory operand when LRA is in progress.
24120         * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
24122 2017-04-18  Jeff Law  <law@redhat.com>
24124         PR target/74563
24125         * mips.md ({return,simple_return}_internal): Do not overwrite
24126         operands[0].
24128 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
24130         PR tree-optimization/80443
24131         * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
24132         instead of adding 1, subtract -1 and similarly instead of subtracting
24133         1 add -1.
24135 2017-04-18  Richard Sandiford  <richard.sandiford@arm.com>
24137         PR rtl-optimization/80357
24138         * haifa-sched.c (tmp_bitmap): New variable.
24139         (model_recompute): Handle duplicate use records.
24140         (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
24141         (free_global_sched_pressure_data): Free it.
24143 2017-04-18  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24145         Revert:
24146         2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24147         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
24148         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
24149         instead of SYSTEM_HEADER_DIR.
24151 2017-04-18  Jeff Law  <law@redhat.com>
24153         PR middle-end/80422
24154         * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
24155         predecessors after walking up the insn chain.
24157 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
24159         PR debug/80263
24160         * dwarf2out.c (modified_type_die): Try harder not to emit internal
24161         sizetype type into debug info.
24163 2017-04-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
24165         PR target/80099
24166         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
24167         unneeded test for TARGET_UPPER_REGS_SF.
24168         * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
24170 2017-04-18  Jakub Jelinek  <jakub@redhat.com>
24172         PR sanitizer/80444
24173         * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
24174         instead of gsi_after_labels.
24176 2017-04-18  Jeff Law  <law@redhat.com>
24178         * regcprop.c (maybe_mode_change): Avoid creating copies of the
24179         stack pointer.
24181         Revert:
24182         2017-04-13  Jeff Law  <law@redhat.com>
24183         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
24184         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
24186 2017-04-18  Georg-Johann Lay  <avr@gjlay.de>
24188         PR target/79453
24189         * config/avr/avr.c (intl.h): Include it.
24190         (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
24192 2017-04-18  Martin Liska  <mliska@suse.cz>
24194         PR gcov-profile/78783
24195         * gcov-tool.c (gcov_output_files): Validate that destination
24196         file is either removed by the tool or by a user.
24198 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
24199             Guy Benyei  <guybe@mellanox.com>
24201         * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
24202         block, and do not negate it, the stored id is already negative.
24204 2017-04-14  Andrew Burgess  <andrew.burgess@embecosm.com>
24206         * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
24208 2017-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24210         PR target/80098
24211         * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
24212         masks of options that should be turned off if the VSX vector
24213         options are turned off.
24214         (OTHER_P8_VECTOR_MASKS): Likewise.
24215         (OTHER_VSX_VECTOR_MASKS): Likewise.
24216         * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
24217         rs6000_disable_incompatible_switches to validate no type switches
24218         like -mvsx.
24219         (rs6000_incompatible_switch): New function to disallow turning on
24220         other vector options if -mno-vsx, -mno-power8-vector, or
24221         -mno-power9-vector are specified.
24223 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
24225         * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
24227 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
24229         * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
24230         * config/arc/arc.c (arc_decl_pretend_args): Likewise.
24231         * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
24232         (ARG_POINTER_CFA_OFFSET): Likewise.
24234 2017-04-14  Claudiu Zissulescu  <claziss@synopsys.com>
24236         * config/arc/arc.c (arc_mode_dependent_address_p): Relax
24237         conditions to take advantage of various optimizations.
24239 2017-04-13  Jeff Law  <law@redhat.com>
24241         * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
24242         in operands[1] if it is a MEM and TARGET_MIPS16 is active.
24243         (zero_extendsidi2_dext): Likewise.
24245 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
24247         PR sanitizer/80403
24248         * fold-const.c (fold_ternary_loc): Revert
24249         use op0 instead of fold_convert_loc (loc, type, arg0) part of
24250         2017-04-12 change.
24252 2017-04-13  Vladimir Makarov  <vmakarov@redhat.com>
24254         PR rtl-optimization/80343
24255         * lra-remat.c (update_scratch_ops): Assign original hard reg to
24256         new scratch pseudo.
24258 2017-04-13  Denis Khalikov <d.khalikov@partner.samsung.com>
24260         PR sanitizer/80414
24261         * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
24262         to ubsan_encode_value.
24264 2017-04-13  Jeff Law  <law@redhat.com>
24266         * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
24267         appearing in DEBUG_INSNs.
24269 2017-04-13  Martin Liska  <mliska@suse.cz>
24271         PR gcov-profile/80413
24272         * gcov-io.c (gcov_write_string): Copy to buffer just when
24273         allocated size is greater than zero.
24275 2017-04-13  Jakub Jelinek  <jakub@redhat.com>
24277         PR debug/80321
24278         * dwarf2out.c (decls_for_scope): Ignore declarations of
24279         current_function_decl in BLOCK_NONLOCALIZED_VARS.
24281 2017-04-12  Jan Hubicka  <hubicka@ucw.cz>
24283         PR lto/69953
24284         * ipa-visibility.c (non_local_p): Fix typos.
24285         (localize_node): When localizing symbol in same comdat group,
24286         dissolve the group only when we know external symbols are going
24287         to be privatized.
24288         (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
24290 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
24292         PR tree-optimization/79390
24293         * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
24294         order does not result in usable sequence, retry with reversed operand
24295         order.
24297         PR sanitizer/80403
24298         PR sanitizer/80404
24299         PR sanitizer/80405
24300         * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
24301         to fold_build2_loc.  Convert TREE_OPERAND (tem, 0) to type.  Use
24302         op0 instead of fold_convert_loc (loc, type, arg0).
24304 2017-04-12  Jeff Law  <law@redhat.com>
24306         * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
24307         has a delay slot in the generated code.
24309         * config/cris/cris.md (cris_preferred_reload_class): Return
24310         GENNONACR_REGS rather than GENERAL_REGS.
24312 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
24314         PR c/80163
24315         * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
24316         vs. ZERO_EXTEND based on signedness of treeop0's type rather than
24317         signedness of the result type.
24319 2017-04-12  Richard Biener  <rguenther@suse.de>
24320             Jeff Law  <law@redhat.com>
24322         PR tree-optimization/80359
24323         * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
24324         trim stores to TARGET_MEM_REFs.
24326 2017-04-12  Richard Biener  <rguenther@suse.de>
24328         PR tree-optimization/79390
24329         * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
24330         threading case even more.
24332 2017-04-12  Segher Boessenkool  <segher@kernel.crashing.org>
24334         PR target/80382
24335         * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
24336         for quad_address_p for TImode, instead of just not indexed_address.
24338 2017-04-12  Richard Biener  <rguenther@suse.de>
24339             Bernd Edlinger  <bernd.edlinger@hotmail.de>
24341         PR middle-end/79671
24342         * alias.c (component_uses_parent_alias_set_from): Handle
24343         TYPE_TYPELESS_STORAGE.
24344         (get_alias_set): Likewise.
24345         * tree-core.h (tree_type_common): Add typeless_storage flag.
24346         * tree.h (TYPE_TYPELESS_STORAGE): New macro.
24347         * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
24348         for types containing members with TYPE_TYPELESS_STORAGE.
24349         (place_field): Likewise.
24350         (layout_type): Likewise for ARRAY_TYPE.
24351         * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
24352         * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
24353         TYPE_TYPELESS_STORAGE.
24354         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
24356 2017-04-12  Jakub Jelinek  <jakub@redhat.com>
24358         PR sanitizer/80349
24359         * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
24360         first argument to type.
24362 2017-04-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24364         PR target/80376
24365         PR target/80315
24366         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
24367         CONST0_RTX (mode) rather than const0_rtx where appropriate.
24368         (rs6000_expand_binop_builtin): Likewise.
24369         (rs6000_expand_ternop_builtin): Likewise; also add missing
24370         vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
24371         vshasigma built-ins.
24372         * doc/extend.texi: Document that vec_xxpermdi's third argument
24373         must be a constant.
24375 2017-04-11  Uros Bizjak  <ubizjak@gmail.com>
24377         * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
24378         Use shift_const cost parameter when calculating gain of STV shifts.
24380 2017-04-11  Vladimir Makarov  <vmakarov@redhat.com>
24382         PR rtl-optimization/70478
24383         * lra-constraints.c (process_alt_operands): Check memory for
24384         disfavoring memory insn operand.
24386 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
24388         PR middle-end/80100
24389         * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
24390         left shift in unsigned HOST_WIDE_INT type.
24392         PR rtl-optimization/80385
24393         * simplify-rtx.c (simplify_unary_operation_1): Don't transform
24394         (not (neg X)) into (plus X -1) for complex or non-integral modes.
24396         PR libgomp/80394
24397         * omp-low.c (scan_omp_task): Don't optimize away empty tasks
24398         if they have any depend clauses.
24400 2017-04-11  Martin Liska  <mliska@suse.cz>
24402         PR ipa/80212
24403         * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
24404         * ipa-split.c (split_function): Create a local comdat symbol
24405         if caller is in a comdat group.
24407 2017-04-11  Martin Liska  <mliska@suse.cz>
24409         PR ipa/80212
24410         * ipa-cp.c (determine_versionability): Handle calls_comdat_local
24411         flags.
24413 2017-04-11  Martin Sebor  <msebor@redhat.com>
24415         PR middle-end/80364
24416         * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
24417         always use the int type.  Use INTEGRAL_TYPE_P() rather than testing
24418         for INTEGER_TYPE.
24419         (directive::set_width, directive::set_precision, format_character):
24420         Adjust.
24421         (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
24422         INTEGER_TYPE.
24424 2017-04-11  Richard Earnshaw  <rearnsha@arm.com>
24426         PR target/80389
24427         * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
24428         conflict, set target->arch_name instead of target->cpu_name.
24430 2017-04-11  Richard Biener  <rguenther@suse.de>
24432         PR tree-optimization/80374
24433         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
24434         build_zero_cst, remove fold_convertible_p check again.
24436 2017-04-11  Martin Liska  <mliska@suse.cz>
24438         PR sanitizer/70878
24439         * ubsan.c (instrument_object_size): Do not instrument register
24440         variables.
24442 2017-04-11  Jakub Jelinek  <jakub@redhat.com>
24444         PR target/80381
24445         * config/i386/i386-builtin-types.def
24446         (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
24447         V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
24448         V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
24449         V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
24450         V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
24451         V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
24452         V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
24453         V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
24454         V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
24455         V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
24456         V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
24457         V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
24458         V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
24459         V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
24460         V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
24461         V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
24462         V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
24463         V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
24464         * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
24465         __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
24466         __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
24467         __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
24468         __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
24469         __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
24470         __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
24471         __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
24472         __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
24473         __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
24474         __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
24475         __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
24476         __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
24477         __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
24478         __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
24479         __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
24480         __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
24481         __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
24482         __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
24483         __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
24484         __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
24485         __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
24486         __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
24487         __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
24488         __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
24489         __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
24490         __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
24491         __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
24492         aliases.
24493         * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
24494         flag to second_arg_count, handle 4 argument function type _COUNT
24495         aliases, handle second_arg_count on second argument rather than last.
24497 2017-04-10  Jeff Law  <law@redhat.com>
24499         PR tree-optimization/80374
24500         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
24501         record anything if we can not convert integer_zero_node to the
24502         desired type.
24504 2017-04-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
24506         PR target/80108
24507         * config/rs6000/rs6000.c (rs6000_option_override_internal):
24508         Enhance special handling given to the TARGET_P9_MINMAX option in
24509         relation to certain other options.
24511 2017-04-10  Bin Cheng  <bin.cheng@arm.com>
24513         PR tree-optimization/80153
24514         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
24515         remove POINTER_PLUS_EXPR's base part directly, rather than through
24516         aff_tree.
24518 2017-04-10  Richard Biener  <rguenther@suse.de>
24519             Bin Cheng  <bin.cheng@arm.com>
24521         PR tree-optimization/80153
24522         * tree-affine.c (aff_combination_to_tree): Get base pointer from
24523         the first element of pointer type aff_tree.  Build result expr in
24524         aff_tree's type.
24525         (add_elt_to_tree): Convert to type unconditionally.  Remove other
24526         fold_convert calls.
24527         * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
24528         (rewrite_use_nonlinear_expr): Check invariant using iv information.
24530 2017-04-10  Richard Biener  <rguenther@suse.de>
24532         * tree-ssa-structalias.c (find_func_aliases): Properly handle
24533         asm inputs.
24535 2017-04-10  Vladimir Makarov  <vmakarov@redhat.com>
24537         PR rtl-optimization/70478
24538         * lra-constraints.c (curr_small_class_check): New.
24539         (update_and_check_small_class_inputs): New.
24540         (process_alt_operands): Update curr_small_class_check.  Disfavor
24541         alternative insn memory operands.  Check available regs for small
24542         class operands.
24544 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
24546         PR target/80057
24547         * config/mips/mips.opt (-mvirt): Update description.
24548         * doc/invoke.texi (-mvirt): Likewise.
24550 2017-04-10  Richard Biener  <rguenther@suse.de>
24552         PR middle-end/80362
24553         * fold-const.c (fold_binary_loc): Look at unstripped ops when
24554         looking for NEGATE_EXPR in -A / -B to A / B folding.
24556 2017-04-10  Martin Liska  <mliska@suse.cz>
24558         PR gcov-profile/80224
24559         * gcov.c (print_usage): Fix usage string.
24560         (get_gcov_intermediate_filename): Remove.
24561         (output_gcov_file): Use both for normal and intermediate format.
24562         (generate_results): Do not initialize special file for
24563         intermediate format.
24565 2017-04-10  Richard Biener  <rguenther@suse.de>
24567         PR tree-optimization/80304
24568         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
24569         for safelen.
24571 2017-04-10  Nathan Sidwell  <nathan@acm.org>
24573         PR target/79905
24574         * config/rs6000/rs6000.c (rs6000_vector_type): New.
24575         (rs6000_init_builtins): Use it.
24577 2016-04-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24579         * config/arm/arm.md (<mrc>): Add mode to SET source.
24580         (<mrrc>): Likewise.
24582 2017-04-10  Richard Biener  <rguenther@suse.de>
24584         PR middle-end/80344
24585         * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
24587 2017-04-10  Jakub Jelinek  <jakub@redhat.com>
24589         PR target/80324
24590         * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
24591         _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
24592         _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
24593         _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
24594         _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
24595         _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
24596         _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
24597         _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
24598         _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
24599         _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
24600         _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
24601         _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
24602         _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
24603         _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
24604         _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
24605         _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
24606         _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
24607         _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
24608         _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
24609         _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
24610         _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
24611         _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
24612         _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
24614 2017-04-08  Vladimir Makarov  <vmakarov@redhat.com>
24616         PR rtl-optimization/70478
24617         * lra-constraints.c: Reverse the last patch.
24619 2017-04-08  Andreas Tobler  <andreast@gcc.gnu.org>
24621         * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
24622         Add comment for WCHAR_T.
24624 2017-04-08  Martin Liska  <mliska@suse.cz>
24626         Revert:
24627         2017-04-07  Martin Liska  <mliska@suse.cz>
24629         PR ipa/80212
24630         * ipa-split.c (split_function): Add function part to a same comdat
24631         group.
24633 2017-04-08  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
24635         PR target/80358
24636         * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
24638 2017-04-07  Pat Haugen  <pthaugen@us.ibm.com>
24640         * rs6000/rs6000.c (vec_load_pendulum): Rename...
24641         (vec_pairing): ...to this.
24642         (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
24643         (rs6000_sched_init): Adjust for name change.
24644         (struct rs6000_sched_context): Likewise.
24645         (rs6000_init_sched_context): Likewise.
24646         (rs6000_set_sched_context): Likewise.
24648 2017-04-07  Jakub Jelinek  <jakub@redhat.com>
24650         PR target/80322
24651         PR target/80323
24652         PR target/80325
24653         PR target/80326
24654         * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
24655         intrinsics.
24656         * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
24657         _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
24658         _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
24660 2017-04-07  Andreas Tobler  <andreast@gcc.gnu.org>
24662         * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
24664 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
24666         PR rtl-optimization/70703
24667         * ira-color.c (update_conflict_hard_regno_costs): Use
24668         int64_t instead of HOST_WIDE_INT.
24670 2017-04-07  Vladimir Makarov  <vmakarov@redhat.com>
24672         PR rtl-optimization/70478
24673         * lra-constraints.c (process_alt_operands): Disfavor alternative
24674         insn memory operands.
24676 2017-04-07  Jeff Law  <law@redhat.com>
24678         * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
24679         CALL and NOTE_INSN_CALL_ARG_LOCATION.
24681 2017-04-07  Martin Liska  <mliska@suse.cz>
24683         PR target/79889
24684         * config/aarch64/aarch64.c (aarch64_process_target_attr):
24685         Show error message instead of an ICE.
24687 2017-04-07  Martin Liska  <mliska@suse.cz>
24689         PR ipa/80212
24690         * ipa-split.c (split_function): Add function part to a same comdat
24691         group.
24693 2017-04-07  Richard Biener  <rguenther@suse.de>
24695         PR middle-end/80341
24696         * tree.c (get_unwidened): Also handle ! for_type case for
24697         INTEGER_CSTs.
24698         * convert.c (do_narrow): Split out from ...
24699         (convert_to_integer_1): ... here.  Do not pass final truncation
24700         type to get_unwidened for TRUNC_DIV_EXPR.
24702 2017-04-07  Richard Biener  <rguenther@suse.de>
24704         * tree-affine.c (wide_int_ext_for_comb): Take type rather
24705         than aff_tree.
24706         (aff_combination_const): Adjust.
24707         (aff_combination_scale): Likewise.
24708         (aff_combination_add_elt): Likewise.
24709         (aff_combination_add_cst): Likewise.
24710         (aff_combination_convert): Likewise.
24711         (add_elt_to_tree): Likewise.  Remove unused argument.
24712         (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
24714 2017-04-07  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24716         * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
24717         definition.
24718         * config/arm/arm.c (arm_default_short_enums): Use
24719         ARM_DEFAULT_SHORT_ENUMS.
24720         * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
24722 2017-04-06  Jakub Jelinek  <jakub@redhat.com>
24724         PR debug/80234
24725         * dwarf2out.c (gen_member_die): Handle C++17 inline static data
24726         members with redundant out-of-class redeclaration.
24728 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
24730         PR target/80286
24731         * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
24732         * config/i386/i386.md (*zero_extendsidi2):
24733         Add (?*x,*x) and (?*v,*v) alternatives.
24735 2017-04-06  Uros Bizjak  <ubizjak@gmail.com>
24737         PR target/79733
24738         * config/i386/i386.c (ix86_expand_builtin)
24739         <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
24740         mode from insn data. Convert operands to insn operand mode.
24741         Copy operands that don't satisfy insn predicate to a register.
24743 2017-04-06  Sam Thursfield  <sam.thursfield@codethink.co.uk>
24745         * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
24746         Update comments.
24748 2017-04-06  Richard Biener  <rguenther@suse.de>
24750         PR tree-optimization/80334
24751         * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
24752         preserve alignment of accesses.
24754 2017-04-06  Richard Biener  <rguenther@suse.de>
24756         PR tree-optimization/80262
24757         * tree-sra.c (build_ref_for_offset): Preserve address-space
24758         information.
24759         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
24760         Drop useless address-space information on MEM_REF offsets.
24762 2017-04-05  Andreas Schwab  <schwab@linux-m68k.org>
24764         * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
24766 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
24768         PR rtl-optimization/70703
24769         * ira-color.c (update_conflict_hard_regno_costs): Use
24770         HOST_WIDE_INT instead of long.
24772 2017-04-05  Uros Bizjak  <ubizjak@gmail.com>
24774         PR target/80298
24775         * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
24776         not defined for x86_64 target.  Add -mmmx target option when __SSE2__
24777         is not defined.
24778         * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
24779         for x86_64 target.  Handle -m3dnowa option.
24781 2017-04-05  Vladimir Makarov  <vmakarov@redhat.com>
24783         PR rtl-optimization/70703
24784         * ira-color.c (update_costs_from_allocno): Use the smallest mode.
24785         (update_conflict_hard_regno_costs): Use long instead of unsigned
24786         arithmetic for cost calculation.
24788 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
24789             Bernd Edlinger  <bernd.edlinger@hotmail.de>
24791         PR sanitizer/80308
24792         * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
24793         for big endian.
24795 2017-04-05  Eric Botcazou  <ebotcazou@adacore.com>
24797         PR target/78002
24798         * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
24799         ptr_mode with Pmode throughout.
24800         * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
24801         into probe_stack_range and use DImode.
24803 2017-04-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24805         PR target/79890
24806         * config/s390/s390.c (s390_register_info_gprtofpr): Return if
24807         call_eh_return is true.
24809 2017-04-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
24811         * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
24812         Initialize last_match_fntype_index.
24814 2017-04-05  Jakub Jelinek  <jakub@redhat.com>
24816         PR target/80310
24817         * tree-nvr.c: Include internal-fn.h.
24818         (pass_return_slot::execute): Ignore internal calls without
24819         direct optab.
24821 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
24822             Richard Biener  <rguenther@suse.de>
24824         PR c++/80297
24825         * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
24826         captures used multiple times, except for the last use.
24827         * generic-match-head.c: Include gimplify.h.
24829 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
24831         PR tree-optimization/79390
24832         * target.h (struct noce_if_info): Declare.
24833         * targhooks.h (default_noce_conversion_profitable_p): Declare.
24834         * target.def (noce_conversion_profitable_p): New target hook.
24835         * ifcvt.h (struct noce_if_info): New type, moved from ...
24836         * ifcvt.c (struct noce_if_info): ... here.
24837         (noce_conversion_profitable_p): Renamed to ...
24838         (default_noce_conversion_profitable_p): ... this.  No longer
24839         static nor inline.
24840         (noce_try_store_flag_constants, noce_try_addcc,
24841         noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
24842         noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
24843         instead of noce_conversion_profitable_p.
24844         * config/i386/i386.c: Include ifcvt.h.
24845         (ix86_option_override_internal): Don't override
24846         PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
24847         (ix86_noce_conversion_profitable_p): New function.
24848         (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
24849         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
24850         * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
24851         * doc/tm.texi: Regenerated.
24853 2017-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24855         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
24856         correction.
24858 2017-04-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24860         PR target/80307
24861         * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
24862         instructions for small multiply cores.
24864 2017-04-04  Jeff Law  <law@redhat.com>
24866         * config/mips/mips.c (mips_multi_add): Zero initialize the newly
24867         added member.
24868         (mips_expand_vec_perm_const): Initialize elements in orig_perm
24869         that are not set by the loop over the elements.
24871 2017-04-04  Jakub Jelinek  <jakub@redhat.com>
24873         PR target/80286
24874         * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
24875         int mode, convert_modes it to mode as unsigned, otherwise use
24876         lowpart_subreg to mode rather than SImode.
24877         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
24878         ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
24879         Use DImode instead of SImode for the shift count operand.
24880         * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
24881         Likewise.
24883 2017-04-04  Richard Biener  <rguenther@suse.de>
24885         PR middle-end/80281
24886         * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
24887         arithmetic done for the negate or the plus.  Simplify.
24888         (A - (-B) -> A + B): Likewise.
24889         * fold-const.c (split_tree): Make sure to not negate pointers.
24891 2017-04-04  Segher Boessenkool  <segher@kernel.crashing.org>
24893         PR rtl-optimization/60818
24894         * simplify-rtx.c (simplify_binary_operation_1): Do not replace
24895         a compare of comparisons with the thing compared if this results
24896         in a different machine mode.
24898 2017-04-03  Jonathan Wakely  <jwakely@redhat.com>
24900         * alias.c (base_alias_check): Fix typo in comment.
24901         * cgraph.h (class ipa_polymorphic_call_context): Likewise.
24902         * cgraphunit.c (symbol_table::compile): Likewise.
24903         * collect2.c (maybe_run_lto_and_relink): Likewise.
24904         * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
24905         * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
24906         * config/avr/avr.c (avr_map_op_t): Likewise.
24907         * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
24908         * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
24909         * config/epiphany/epiphany.md (movcc): Likewise.
24910         * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
24911         * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
24912         Likewise.
24913         * config/mips/mips.c (mips_save_restore_reg): Likewise.
24914         * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
24915         * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
24916         * config/sh/sh.c (sh_rtx_costs): Likewise.
24917         * fold-const.c (fold_truth_andor): Likewise.
24918         * genautomata.c (collapse_flag): Likewise.
24919         * gengtype.h (struct type::u::s): Likewise.
24920         * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
24921         * input.c (FORMAT_AMOUNT): Likewise.
24922         * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
24923         (known_aggs_to_agg_replacement_list): Likewise.
24924         * ipa-inline-analysis.c: Likewise.
24925         * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
24926         * ipa-polymorphic-call.c
24927         (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
24928         * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
24929         * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
24930         Likewise.
24931         * modulo-sched.c (apply_reg_moves): Likewise.
24932         * omp-expand.c (build_omp_regions_1): Likewise.
24933         * trans-mem.c (struct tm_wrapper_hasher): Likewise.
24934         * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
24935         * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
24936         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24937         * value-prof.c: Likewise.
24938         * var-tracking.c (val_reset): Likewise.
24940 2017-04-03  Richard Biener  <rguenther@suse.de>
24942         PR tree-optimization/80275
24943         * fold-const.c (split_address_to_core_and_offset): Handle
24944         POINTER_PLUS_EXPR.
24946 2017-04-03  Eric Botcazou  <ebotcazou@adacore.com>
24948         * tree-nested.c (get_descriptor_type): Make sure that the alignment of
24949         descriptors is at least equal to that of functions.
24951 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
24953         * config/i386/sse.md (movdi_to_sse): Add missing DONE.
24955 2017-04-02  Uros Bizjak  <ubizjak@gmail.com>
24957         PR target/80250
24958         * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
24959         (mov<IMOD4:mode>): New expander.
24960         (*mov<IMOD4:mode>_internal): New insn and split pattern.
24962 2017-03-31  Segher Boessenkool  <segher@kernel.crashing.org>
24964         PR rtl-optimization/79405
24965         * fwprop.c (propagations_left): New variable.
24966         (forward_propagate_into): Decrement it.
24967         (fwprop_init): Initialize it.
24968         (fw_prop): If the variable has reached zero, stop propagating.
24969         (fwprop_addr): Ditto.
24971 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
24973         PR debug/79255
24974         * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
24975         a FUNCTION_DECL, pass it as decl instead of origin to
24976         process_scope_var.
24978 2017-03-31  Alexander Monakov  <amonakov@ispras.ru>
24980         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
24981         string.
24983 2017-03-31  Pat Haugen  <pthaugen@us.ibm.com>
24985         PR target/80107
24986         * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
24987         TARGET_VSX_SMALL_INTEGER.
24989 2017-03-31  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24991         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
24992         reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
24994 2017-03-31  Matthew Fortune  <matthew.fortune@imgtec.com>
24996         * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
24997         extraction from odd-numbered MSA register.
24999 2017-03-31  Jakub Jelinek  <jakub@redhat.com>
25001         PR middle-end/80173
25002         * expmed.c (store_bit_field_1): Don't attempt to create
25003         a word subreg out of hard registers wider than word if they
25004         have HARD_REGNO_NREGS of 1 for their mode.
25006         PR middle-end/80163
25007         * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
25008         conversions to integer types wider than word and pointer.
25010         PR debug/80025
25011         * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
25012         (rtx_equal_for_cselib_p): Pass 0 to it.
25013         * cselib.c (cselib_hasher::equal): Likewise.
25014         (rtx_equal_for_cselib_1): Add depth argument.  If depth
25015         is 128, don't look up VALUE locs and punt.  Increment
25016         depth in recursive calls when walking VALUE locs.
25018 2017-03-31  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25020         * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
25021         (make_gcov_file_name): Use the canonical path name for generating
25022         the MD5 value.
25023         (read_line): Fix handling of files with ascii null bytes.
25025 2017-03-30  Matthew Fortune  <matthew.fortune@imgtec.com>
25027         * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
25028         to initialise a vector register instead
25029         of using a const_int.
25031 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
25033         PR translation/80189
25034         * gimplify.c (omp_default_clause): Use %qs instead of %s in
25035         diagnostic messages.
25037 2017-03-30  Peter Bergner  <bergner@vnet.ibm.com>
25039         PR target/80246
25040         * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
25041         (dfp_diex_<mode>): Update mode of operand 1.
25042         * doc/extend.texi (dxex, dxexq): Document change to return type.
25043         (diex, diexq): Document change to argument type.
25045 2017-03-30  Martin Jambor  <mjambor@suse.cz>
25047         PR ipa/77333
25048         * cgraph.h (cgraph_build_function_type_skip_args): Declare.
25049         * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
25050         it reflects the signature changes performed at the callee side.
25051         * cgraphclones.c (build_function_type_skip_args): Make public, renamed
25052         to cgraph_build_function_type_skip_args.
25053         (build_function_decl_skip_args): Adjust call to the above function.
25055 2017-03-30  Jakub Jelinek  <jakub@redhat.com>
25057         PR target/80206
25058         * config/i386/sse.md
25059         (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
25060         register as dest whenever it is a MEM not rtx_equal_p to the
25061         corresponding dup operand, and when forcing into reg move the
25062         reg into the memory afterwards.
25063         (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
25064         Likewise.  Use <ssehalfvecmode> instead of <ssequartermode>
25065         for the force_reg mode.
25066         (avx512vl_vextractf128<mode>): Use register as dest either
25067         always when a MEM, or when it is a MEM not rtx_equal_p to the
25068         corresponding dup operand, or even not when it is a CONST_VECTOR
25069         depending on the mode and lo vs. hi.
25070         (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
25071         parens.
25072         (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
25073         (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
25074         Likewise.  Require that operands[2] is even.
25075         (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
25076         Remove extraneous parens.  Require that operands[2] is a multiple
25077         of 4.
25078         (vec_extract_lo_<mode><mask_name>): Don't bother testing if
25079         operands[0] is a MEM if <mask_applied>, the predicates/constraints
25080         disallow memory then.
25082 2017-03-30  Richard Biener  <rguenther@suse.de>
25084         PR tree-optimization/77498
25085         * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
25086         to non-constants over backedges.
25088 2017-03-29  Segher Boessenkool  <segher@kernel.crashing.org>
25090         PR rtl-optimization/80233
25091         * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
25092         as last_combined_insn.  Do not test for BARRIER_P separately.
25094 2017-03-29  Andreas Schwab  <schwab@suse.de>
25096         PR ada/80146
25097         * calls.c (prepare_call_address): Convert funexp to Pmode before
25098         copying to temp reg.
25100 2017-03-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25102         PR tree-optimization/80158
25103         * gimple-ssa-strength-reduction.c (replace_mult_candidate):
25104         Handle possible future case of more than one alternate
25105         interpretation.
25106         (replace_rhs_if_not_dup): Likewise.
25107         (replace_one_candidate): Likewise.
25109 2017-03-28  Vladimir Makarov  <vmakarov@redhat.com>
25111         PR rtl-optimization/80193
25112         * ira.c (ira): Do not check allocation for LRA.
25114 2017-03-28  Alexander Monakov  <amonakov@ispras.ru>
25116         * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
25117         (nvptx_output_simt_exit): Declare.
25118         * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
25119         cfun->machine->unisimt_location.  Handle NULL unisimt_predicate.
25120         (init_softstack_frame): Move initialization of crtl->is_leaf to...
25121         (nvptx_declare_function_name): ...here.  Emit declaration of local
25122         memory space buffer for omp_simt_enter insn.
25123         (nvptx_output_unisimt_switch): New.
25124         (nvptx_output_softstack_switch): New.
25125         (nvptx_output_simt_enter): New.
25126         (nvptx_output_simt_exit): New.
25127         * config/nvptx/nvptx.h (struct machine_function): New fields
25128         has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
25129         * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
25130         (UNSPECV_SIMT_EXIT): Ditto.
25131         (omp_simt_enter_insn): New insn.
25132         (omp_simt_enter): New expansion.
25133         (omp_simt_exit): New insn.
25134         * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
25136         * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
25137         (expand_GOMP_SIMT_ENTER_ALLOC): New.
25138         (expand_GOMP_SIMT_EXIT): New.
25139         * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
25140         (GOMP_SIMT_ENTER_ALLOC): Ditto.
25141         (GOMP_SIMT_EXIT): Ditto.
25142         * target-insns.def (omp_simt_enter): New insn.
25143         (omp_simt_exit): Ditto.
25144         * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
25145         simt_dlist.
25146         (lower_rec_simd_input_clauses): Implement SIMT privatization.
25147         (lower_rec_input_clauses): Likewise.
25148         (lower_lastprivate_clauses): Handle SIMT privatization.
25150         * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
25151         (ompdevlow_adjust_simt_enter): New.
25152         (find_simtpriv_var_op): New.
25153         (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
25154         IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
25156         * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
25157         * tree-inline.c (expand_call_inline): Handle SIMT privatization.
25158         (copy_decl_for_dup_finish): Ditto.
25160         * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
25162 2017-03-28  Uros Bizjak  <ubizjak@gmail.com>
25164         PR target/53383
25165         * config/i386/i386.c (ix86_option_override_internal): Always
25166         allow -mpreferred-stack-boundary=3 for 64-bit targets.
25168 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
25170         * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
25172 2017-03-28  Bin Cheng  <bin.cheng@arm.com>
25174         * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
25175         mark new edge's irreducible flag accordign to it.
25176         (vect_do_peeling): Check loop preheader edge's irreducible flag
25177         and pass it to function slpeel_add_loop_guard.
25179 2017-03-28  Richard Sandiford  <richard.sandiford@arm.com>
25181         PR tree-optimization/80218
25182         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
25183         Update block frequencies and counts.
25185 2017-03-28  Richard Biener  <rguenther@suse.de>
25187         PR tree-optimization/78644
25188         * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
25189         of a simplification result we may not use it at all.
25191 2017-03-28  Richard Biener  <rguenther@suse.de>
25193         PR ipa/80205
25194         * tree-inline.c (copy_phis_for_bb): Do not create PHI node
25195         without arguments, generate default definition of a SSA name.
25197 2017-03-28  Richard Biener  <rguenther@suse.de>
25199         PR middle-end/80222
25200         * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
25201         TYPE_REF_CAN_ALIAS_ALL references.
25202         * fold-const.c (fold_indirect_ref_1): Likewise.
25204 2017-03-28  Martin Liska  <mliska@suse.cz>
25206         PR ipa/80104
25207         * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
25208         thunk call as DECL_GIMPLE_REG_P when vector or complex type.
25210 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
25211             Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>
25213         * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
25214         (EXTRA_SPECS): Define.
25215         (SUBTARGET_EXTRA_SPECS): Likewise.
25216         (SUBTARGET_CPP_SPEC): Likewise.
25217         * config/arc/elf.h (EXTRA_SPECS): Renamed to
25218         SUBTARGET_EXTRA_SPECS.
25219         * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
25221 2017-03-28  Claudiu Zissulescu  <claziss@synopsys.com>
25223         * config/arc/simdext.md (vst64_insn): Update pattern.
25224         (vld32wh_insn): Likewise.
25225         (vld32wl_insn): Likewise.
25226         (vld64_insn): Likewise.
25227         (vld32_insn): Likewise.
25229 2017-03-28  Marek Polacek  <polacek@redhat.com>
25231         PR sanitizer/80067
25232         * fold-const.c (fold_comparison): Use protected_set_expr_location
25233         instead of SET_EXPR_LOCATION.
25235 2017-03-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
25237         * tree.c (add_expr): Avoid name lookup warning.
25239 2017-03-27  Jeff Law  <law@redhat.com>
25241         PR tree-optimization/80216
25242         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
25243         function name.  Limit recursion depth.
25244         (record_temporary_equivalences): Corresponding changes.
25246 2017-03-27  Jonathan Wakely  <jwakely@redhat.com>
25248         * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
25249         covered first.
25251 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
25253         PR target/80102
25254         * reg-notes.def (REG_CFA_NOTE): Define.  Use it for CFA related
25255         notes.
25256         * cfgcleanup.c (reg_note_cfa_p): New array.
25257         (insns_have_identical_cfa_notes): New function.
25258         (old_insns_match_p): Don't cross-jump in between /f
25259         and non-/f instructions.  If both i1 and i2 are frame related,
25260         verify all CFA notes, their order and content.
25262 2017-03-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
25264         PR target/78543
25265         * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
25266         HImode and SImode with zero extend to DImode to one insn.
25267         (bswap<mode>2_extenddi): Likewise.
25268         (bswapsi2_extenddi): Likewise.
25269         (bswaphi2_extendsi): Likewise.
25270         (bswaphi2): Combine bswap HImode and SImode into one insn.
25271         Separate memory insns from swapping register.
25272         (bswapsi2): Likewise.
25273         (bswap<mode>2): Likewise.
25274         (bswaphi2_internal): Delete, no longer used.
25275         (bswapsi2_internal): Likewise.
25276         (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
25277         store, and gpr<-gpr swap insns.
25278         (bswap<mode>2_store): Likewise.
25279         (bswaphi2_reg): Register only splitter, combine with the splitter.
25280         (bswaphi2 splitter): Likewise.
25281         (bswapsi2_reg): Likewise.
25282         (bswapsi2 splitter): Likewise.
25283         (bswapdi2): If we have the LDBRX and STDBRX instructions, split
25284         the insns into load, store, and register/register insns.
25285         (bswapdi2_ldbrx): Likewise.
25286         (bswapdi2_load): Likewise.
25287         (bswapdi2_store): Likewise.
25288         (bswapdi2_reg): Likewise.
25290 2017-03-27  Gunther Nikl  <gnikl@users.sourceforge.net>
25292         * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
25293         (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
25295 2017-03-27  Kelvin Nilsen  <kelvin@gcc.gnu.org>
25297         PR target/80103
25298         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
25299         add comments.
25300         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25301         special handling for target option conflicts between dform
25302         options (-mpower9-dform, -mpower9-dform-vector,
25303         -mpower9-dform-scalar) and -mno-direct-move.
25305 2017-03-27  Richard Biener  <rguenther@suse.de>
25307         PR tree-optimization/80181
25308         * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
25310 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
25312         * config/arc/predicates.md (move_double_src_operand): Replace the
25313         call to move_double_src_operand with a call to address_operand.
25315 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
25317         * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
25318         * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
25319         * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
25321 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
25323         * config/arc/predicates.md (long_immediate_loadstore_operand):
25324         Consider scaled addresses cases.
25326 2017-03-27  Claudiu Zissulescu  <claziss@synopsys.com>
25328         * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
25329         restored when in interrupt.
25330         * config/arc/arc.md (simple_return): ARCv2 rtie instruction
25331         doesn't have delay slot.
25333 2017-03-27  Richard Biener  <rguenther@suse.de>
25335         PR ipa/79776
25336         * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
25337         inlined thunk clones.
25339 2017-03-27  Jakub Jelinek  <jakub@redhat.com>
25341         PR sanitizer/80168
25342         * asan.c (instrument_derefs): Copy over last operand from
25343         original COMPONENT_REF to the new COMPONENT_REF with
25344         DECL_BIT_FIELD_REPRESENTATIVE.
25345         * ubsan.c (instrument_object_size): Likewise.
25347 2017-03-27  Richard Biener  <rguenther@suse.de>
25349         PR tree-optimization/80170
25350         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
25351         sure DR/SCEV didnt fold in constants we do not see when looking
25352         at the reference base alignment.
25354 2017-03-27  Richard Biener  <rguenther@suse.de>
25356         PR middle-end/80171
25357         * gimple-fold.c (fold_ctor_reference): Properly guard against
25358         NULL return value from canonicalize_constructor_val.
25360 2017-03-25  Uros Bizjak  <ubizjak@gmail.com>
25362         PR target/80180
25363         * config/i386/i386.c (ix86_expand_builtin)
25364         <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
25365         flags reg setting and flags reg using instructions.
25366         <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto.  Use non-flags reg
25367         clobbering instructions to zero extend op2.
25369 2017-03-25  Gerald Pfeifer  <gerald@pfeifer.com>
25371         * doc/install.texi (Configuration) <--with-aix-soname>:
25372         Update link to AIX ld.
25374 2017-03-25  Bernd Schmidt  <bschmidt@redhat.com>
25376         PR rtl-optimization/80160
25377         PR rtl-optimization/80159
25378         * lra-assigns.c (must_not_spill_p): Tighten new test to also take
25379         reg_alternate_class into account.
25381 2017-03-24  Vladimir Makarov  <vmakarov@redhat.com>
25383         PR target/80148
25384         * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
25385         to consider in curr_insn_transform.
25387 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
25389         * genrecog.c (validate_pattern): Add VEC_SELECT validation.
25390         * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
25391         and emit_mode_inner.
25393 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25395         * config/s390/s390-builtins.def: Add VXE builtins.  Add a flags
25396         argument to the overloaded builtin variants.  Use the new flag to
25397         deprecate certain builtin variants.
25398         * config/s390/s390-builtin-types.def: Add new builtin types.
25399         * config/s390/s390-builtins.h: Support new flags field for
25400         overloaded builtins.
25401         * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
25402         (s390_macro_to_expand): Enable vector float data type.
25403         (s390_cpu_cpp_builtins_internal): Indicate support of the new
25404         builtins by incrementing the __VEC__ version number.
25405         (s390_expand_overloaded_builtin): Support expansion of vec_xl and
25406         vec_xst.
25407         (s390_resolve_overloaded_builtin): Emit error messages depending
25408         on the builtin flags.
25409         * config/s390/s390.c (s390_expand_builtin): Support additional
25410         flags argument.  Change error message to match the messages
25411         emitted in s390-c.c.
25412         * config/s390/s390.md: New UNSPEC_* constants.
25413         (op_type): Add new instruction types.
25414         * config/s390/vecintrin.h: Add new builtins and test data class
25415         constants.
25416         * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
25417         (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
25418         (VEC_INEXACT, VEC_NOINEXACT): New constants.
25419         ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
25420         ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
25421         ("vec_mergel<mode>"): V_HW -> VEC_HW.
25423         ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
25424         ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
25425         ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
25426         ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
25428         ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
25429         ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
25430         ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
25431         ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
25433         ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
25434         ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
25435         ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
25436         ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
25437         ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
25438         ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
25439         ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
25441         ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
25442         ("vec_scatter_element<V_HW_4:mode>_DI")
25443         ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
25444         ("vec_fpint<mode>", "vflls")
25445         ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
25446         ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
25447         ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
25448         ("*vec_cmphe<mode>_cc"): ... these.
25450         ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
25451         mode constant instead of magic value.
25453 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25455         * config/s390/s390.c (s390_expand_vec_compare): Support other
25456         vector floating point modes than just V2DF.
25457         (s390_expand_vcond): Likewise.
25458         (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
25459         (s390_cannot_change_mode_class): Prevent mode changes between TF
25460         and V1TF in vector registers.
25461         * config/s390/s390.md (DF, SF): New mode attributes.
25462         ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
25463         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
25464         SFmode support for VRs.
25465         * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
25466         vector fp modes.
25467         (VFT, VF_HW): New mode iterators.
25468         (vw, sdx): New mode attributes.
25469         ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
25470         ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
25471         ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
25472         ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
25473         ("vec_unorderedv2df"): Adjust the v2df only patterns to support
25474         also the new vector floating point modes.  Renaming to ...
25476         ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
25477         ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
25478         ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
25479         ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
25480         ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
25481         ("vec_unordered<mode>"): ... these.
25483         ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
25484         ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
25485         ("*vec_extendv2df"): New insn definitions.
25487 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25489         * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
25490         ("mulditi3_2", "*muldi3_sign"): New patterns.
25491         ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
25492         rename the pattern definition.
25494 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25496         * config/s390/s390.md ("indirect_jump"): Turn insn definition into
25497         expander.
25498         ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
25500 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25502         * config/s390/s390.c (s390_expand_vec_init): Use vllezl
25503         instruction if possible.
25504         * config/s390/vector.md (vec_halfnumelts): New mode
25505         attribute.
25506         ("*vec_vllezlf<mode>"): New pattern.
25508 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25510         * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
25511         ("popcountv4si2", "popcountv2di2"): Rename to ...
25512         ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
25513         ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
25514         condition.
25515         ("popcount<mode>2_vxe"): New pattern.
25517 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25519         * common/config/s390/s390-common.c (processor_flags_table): Add
25520         arch12.
25521         * config.gcc: Add arch12.
25522         * config/s390/driver-native.c (s390_host_detect_local_cpu):
25523         Default to arch12 for unknown CPU model numbers.
25524         * config/s390/s390-builtins.def: Add B_VXE builtin flag.
25525         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
25526         PROCESSOR_max sanity check.
25527         * config/s390/s390-opts.h (enum processor_type): Add
25528         PROCESSOR_ARCH12.
25529         * config/s390/s390.c (processor_table): Add arch12.
25530         (s390_expand_builtin): Add check for B_VXE flag.
25531         (s390_issue_rate): Add PROCESSOR_ARCH12.
25532         (s390_get_sched_attrmask): Likewise.
25533         (s390_get_unit_mask): Likewise.
25534         (s390_sched_score): Enable z13 scheduling for arch12.
25535         (s390_sched_reorder): Likewise.
25536         (s390_sched_variable_issue): Likewise.
25537         * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
25538         PF_VXE.
25539         (s390_tune_attr): Use z13 scheduling also for arch12.
25540         (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
25541         (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
25542         (TARGET_VXE_P): New macros.
25543         * config/s390/s390.md: Add arch12 to cpu attribute.  Add arch12
25544         and vxe to cpu_facility.  Add arch12 and vxe to enabled attribute.
25545         * config/s390/s390.opt: Add arch12 as processor_type.
25547 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25549         * config/s390/s390.md
25550         ("fixuns_truncdddi2", "fixuns_trunctddi2")
25551         ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
25552         ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
25554         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
25555         Rename expanders to ...
25557         ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
25558         ("fixuns_truncdddi2_emu"): ... these.
25560         ("fixuns_trunc<mode>si2_emu"): New expander.
25562         ("*fixuns_truncdfdi2_z13"): Rename to ...
25563         ("*fixuns_truncdfdi2_vx"): ... this.
25565 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25567         * config/s390/2964.md: Remove the single element vector compare
25568         instructions which are no longer used.
25569         * config/s390/s390.c (s390_select_ccmode): Remove handling of
25570         vector CCmodes.
25571         (s390_canonicalize_comparison): Remove handling of DFmode
25572         compares.
25573         (s390_expand_vec_compare_scalar): Remove function.
25574         (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
25575         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
25576         pattern.
25577         ("*cmp<mode>_ccs"): Add wfcdb instruction.
25579 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25581         * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
25582         FP zero.
25583         ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
25584         will anyway by matched by mov<mode>_64dfp.
25586 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25588         * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
25589         vlef/vstef.  Add missing operand to vleif.
25591 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25593         * config/s390/s390.c (s390_expand_vec_init): Enable vector load
25594         pair for all vector types with 64 bit elements.
25595         * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
25596         * config/s390/vector.md (V_HW_64): ... here.
25597         (V_128_NOSINGLE): New mode iterator.
25598         ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
25599         ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
25600         ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
25601         ("*vec_load_pairv2di"): Change to ...
25602         ("*vec_load_pair<mode>"): ... this one.
25604 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25606         * config/s390/constraints.md: Add comments.
25607         (jKK): Reject element sizes > 8 bytes.
25608         * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
25609         s_operands.
25610         * config/s390/s390.md: Add the s_operand checks formerly in
25611         s390_split_ok_p to various splitters where they are still
25612         required.
25613         * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
25614         for 128 bit vectors.  Plus two splitters.
25616 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25618         * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
25619         the file.
25621 2017-03-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25623         PR target/79893
25624         * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
25625         error if the boundary argument is not constant.
25627 2017-03-24  Jakub Jelinek  <jakub@redhat.com>
25629         PR rtl-optimization/80112
25630         * loop-doloop.c (doloop_condition_get): Don't check condition
25631         if cmp isn't SET with IF_THEN_ELSE src.
25633 2017-03-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25635         PR tree-optimization/80158
25636         * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
25637         replacing a candidate statement, also replace it for the
25638         candidate's alternate interpretation.
25639         (replace_rhs_if_not_dup): Likewise.
25640         (replace_one_candidate): Likewise.
25642 2017-03-24  Richard Biener  <rguenther@suse.de>
25644         PR tree-optimization/80167
25645         * graphite-isl-ast-to-gimple.c
25646         (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
25647         properly.
25648         (translate_isl_ast_to_gimple::get_rename): Likewise.
25650 2017-03-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
25652         * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
25653         handling of certain combinations of target options, including the
25654         combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
25655         -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
25657 2017-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25659         PR target/71436
25660         * config/arm/arm.md (*load_multiple): Add reload_completed to
25661         matching condition.
25663 2017-03-23  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25664             Richard Biener  <rguenth@suse.de>
25666         PR tree-optimization/79908
25667         PR tree-optimization/80136
25668         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
25669         been cast away, gimplify_and_add suffices.
25671 2017-03-23  Markus Trippelsdorf  <markus@trippelsdorf.de>
25673         * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
25675 2017-03-23  Richard Biener  <rguenther@suse.de>
25677         PR tree-optimization/80032
25678         * gimplify.c (gimple_push_cleanup): Forced unconditional
25679         cleanups still have to go to the conditional_cleanups
25680         sequence.
25682 2017-03-22  Jakub Jelinek  <jakub@redhat.com>
25684         PR tree-optimization/80072
25685         * tree-ssa-reassoc.c (struct operand_entry): Change id field type
25686         to unsigned int.
25687         (next_operand_entry_id): Change type to unsigned int.
25688         (sort_by_operand_rank): Make sure to return the right return value
25689         even if unsigned fields are bigger than INT_MAX.
25690         (struct oecount): Change cnt and id type to unsigned int.
25691         (oecount_hasher::equal): Formatting fix.
25692         (oecount_cmp): Make sure to return the right return value
25693         even if unsigned fields are bigger than INT_MAX.
25694         (undistribute_ops_list): Change next_oecount_id type to unsigned int.
25696         PR c++/80129
25697         * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
25698         TREE_READONLY on result if writing it more than once.
25700         PR sanitizer/80110
25701         * doc/invoke.texi (-fsanitize=thread): Document that with
25702         -fnon-call-exceptions atomics are not able to throw
25703         exceptions.
25705         PR sanitizer/80110
25706         * tsan.c: Include tree-eh.h.
25707         (instrument_builtin_call): Call maybe_clean_eh_stmt or
25708         maybe_clean_or_replace_eh_stmt where needed.
25709         (instrument_memory_accesses): Add cfg_changed argument.
25710         Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
25711         if it returned true.
25712         (tsan_pass): Adjust caller.  Return TODO_cleanup_cfg if cfg_changed.
25714         PR rtl-optimization/63191
25715         * config/i386/i386.c (ix86_delegitimize_address): Turn into small
25716         wrapper function, moved the whole old content into ...
25717         (ix86_delegitimize_address_1): ... this.  New inline function.
25718         (ix86_find_base_term): Use ix86_delegitimize_address_1 with
25719         true as last argument instead of ix86_delegitimize_address.
25721 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
25723         * config/aarch64/aarch64.c (generic_branch_cost): Copy
25724         cortexa57_branch_cost.
25726 2017-03-22  Wilco Dijkstra  <wdijkstr@arm.com>
25728         * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
25730 2017-03-21  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
25732         PR target/80123
25733         * doc/md.texi (Constraints): Document wA constraint.
25734         * config/rs6000/constraints.md (wA): New.
25735         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
25736         (rs6000_init_hard_regno_mode_ok): Init wA constraint.
25737         * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
25738         * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
25740 2017-03-22  Cesar Philippidis  <cesar@codesourcery.com>
25742         PR c++/80029
25743         * gimplify.c (is_oacc_declared): New function.
25744         (oacc_default_clause): Use it to set default flags for acc declared
25745         variables inside parallel regions.
25746         (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
25747         declared variables.
25748         (gimplify_oacc_declare): Gimplify the declare clauses.  Add the
25749         declare attribute to any decl as necessary.
25751 2017-03-22  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25753         PR target/80082
25754         * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
25755         (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
25756         * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
25757         (arm_arch_lpae): This.
25758         * config/arm/arm.c (arm_arch7ve): Rename into ...
25759         (arm_arch_lpae): This.  Define it in term of isa_bit_lpae.
25760         * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
25761         arm_arch_lpae.
25763 2017-03-22  Martin Liska  <mliska@suse.cz>
25765         PR target/79906
25766         * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
25767         error message instead of an ICE.
25769 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25771         * doc/extend.texi (6.11 Additional Floating Types): Revise.
25773 2017-03-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
25775         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
25776         comments.
25777         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25778         comments.
25780 2017-03-21  Martin Sebor  <msebor@redhat.com>
25782         * doc/extend.texi: Use "cannot" instead of "can't."
25783         * doc/hostconfig.texi: Same.
25784         * doc/install.texi: Same.
25785         * doc/invoke.texi: Same.
25786         * doc/loop.texi: Same.
25787         * doc/md.texi: Same.
25788         * doc/objc.texi: Same.
25789         * doc/rtl.texi: Same.
25790         * doc/tm.texi: Same.
25791         * doc/tm.texi.in: Same.
25792         * doc/trouble.texi: Same.
25794 2017-03-21  Alexandre Oliva <aoliva@redhat.com>
25796         PR debug/63238
25797         * dwarf2out.c (struct checksum_attributes): Add at_alignment.
25798         (collect_checksum_attributes): Set it.
25799         (die_checksum_ordered): Use it.
25801 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25803         PR tree-optimization/79908
25804         * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
25805         change: For a VA_ARG whose LHS has been cast away, use
25806         force_gimple_operand to construct the side effects.
25808 2017-03-21  David Malcolm  <dmalcolm@redhat.com>
25810         PR translation/80001
25811         * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
25812         more amenable to translation.
25813         (oacc_loop_auto_partitions): Likewise.
25815 2017-03-21  Marek Polacek  <polacek@redhat.com>
25816             Martin Sebor  <msebor@redhat.com>
25818         PR tree-optimization/80109
25819         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
25820         on INTEGRAL_TYPE_P.
25822 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
25823             Segher Boessenkool  <segher@kernel.crashing.org>
25825         PR target/80125
25826         * combine.c (can_combine_p): Revert the 2017-03-20 change, only
25827         check reg_used_between_p between insn and one of succ or succ2
25828         depending on if succ is artificial insn not inserted into insn
25829         stream.
25831 2017-03-21  Martin Liska  <mliska@suse.cz>
25833         PR gcov-profile/80081
25834         * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
25835         * doc/gcc.texi: Include gcov-dump stuff.
25836         * doc/gcov-dump.texi: New file.
25838 2017-03-21  Toma Tabacu  <toma.tabacu@imgtec.com>
25840         PR rtl-optimization/79150
25841         * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
25842         conditional jump, if the jump is the last insn of the loop.
25844 2017-03-21  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25845             Richard Biener  <rguenth@suse.de>
25847         PR tree-optimization/79908
25848         * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
25849         been cast away, use force_gimple_operand to construct the side
25850         effects.
25852 2017-03-21  Martin Liska  <mliska@suse.cz>
25854         PR libfortran/79956
25855         * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
25856         to NULL.
25858 2017-03-21  Brad Spengler <spender@grsecurity.net>
25860         PR plugins/80094
25861         * plugin.c (htab_hash_plugin): New function.
25862         (add_new_plugin): Use it and adjust.
25863         (parse_plugin_arg_opt): Adjust.
25864         (init_one_plugin): Likewise.
25866 2017-03-21  Richard Biener  <rguenther@suse.de>
25868         PR tree-optimization/80032
25869         * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
25870         if set force the cleanup to happen unconditionally.
25871         (gimplify_target_expr): Push inserted clobbers with force_uncond
25872         to avoid them being removed by control-dependent DCE.
25874 2017-03-21  Richard Biener  <rguenther@suse.de>
25876         PR tree-optimization/80122
25877         * tree-inline.c (copy_bb): Do not expans va-arg packs or
25878         va_arg_pack_len when the inlined call stmt requires pack
25879         expansion itself.
25880         * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
25882 2017-03-21  Jakub Jelinek  <jakub@redhat.com>
25884         PR sanitizer/78158
25885         * tsan.c (instrument_builtin_call): If the memory model argument
25886         is not a constant, assume it is valid.
25888         PR c/67338
25889         * fold-const.c (round_up_loc): Negate divisor in unsigned type to
25890         avoid UB.
25892 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
25894         PR rtl-optimization/79910
25895         * combine.c (can_combine_p): Do not allow combining an I0 or I1
25896         if its dest is used by an insn before I2 (other than the combined
25897         insns themselves, which are properly handled already).
25899 2017-03-20  Segher Boessenkool  <segher@kernel.crashing.org>
25901         Revert:
25902         2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
25904         * combine.c (record_used_regs): New static function.
25905         (try_combine): Handle situations where there is an additional
25906         instruction between I2 and I3 which needs to have a LOG_LINK
25907         updated.
25909         Revert:
25910         2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
25912         * combine.c (try_combine): Delete redundant i1 test.  Call
25913         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
25915 2017-03-20  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
25917         PR target/80083
25918         * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
25919         alternatives 13/14.
25921 2017-03-20  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25923         PR tree-optimization/80054
25924         * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
25925         the optimization if a PHI or any of its arguments is not dominated
25926         by the candidate's basis.  Use gphi* rather than gimple* as
25927         appropriate.
25928         (replace_profitable_candidates): Clean up a gimple* variable that
25929         should be a gphi* variable.
25931 2017-03-20  Martin Sebor  <msebor@redhat.com>
25933         PR c++/52477
25934         * doc/extend.texi (attribute constructor): Document present limitation.
25936 2017-03-20  Kelvin Nilsen  <kelvin@gcc.gnu.org>
25938         PR target/79963
25939         * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
25940         __POWER9_VECTOR__ #ifdef control, change template definition to
25941         use Power9-specific built-in function.
25942         (vec_any_eq): Likewise.
25943         * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
25944         to control outcomes from this test.
25945         (vector_ae_<mode>p): For VEC_F modes, likewise.
25947 2017-03-20  Ian Lance Taylor  <iant@google.com>
25949         * config/i386/i386.c (ix86_function_regparm): Save an extra
25950         register for -fsplit-stack with DECL_STATIC_CHAIN.
25952 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
25954         PR target/79912
25955         * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
25956         (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
25958 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com>
25960         * config/riscv/riscv.c (riscv_print_operand): Use "fence
25961         iorw,ow".
25962         * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
25963         iorw,iorw".
25965 2017-03-20  Marek Polacek  <polacek@redhat.com>
25967         PR sanitizer/80063
25968         * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
25970 2017-03-20  Richard Biener  <rguenther@suse.de>
25972         PR tree-optimization/80113
25973         * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
25974         allocate extra SSA name for PHI def.
25975         (add_close_phis_to_outer_loops): Likewise.
25976         (add_close_phis_to_merge_points): Likewise.
25977         (copy_loop_close_phi_args): Likewise.
25978         (copy_cond_phi_nodes): Likewise.
25980 2017-03-20  Martin Liska  <mliska@suse.cz>
25982         PR middle-end/79753
25983         * tree-chkp.c (chkp_build_returned_bound): Do not build
25984         returned bounds for a LHS that's not a BOUNDED_P type.
25986 2017-03-20  Martin Liska  <mliska@suse.cz>
25988         PR target/79769
25989         PR target/79770
25990         * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
25991         COMPLEX_CST and VECTOR_CST.
25993 2017-03-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25995         PR target/78857
25996         * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
25997         target operand.  A new splitter adds the clobber statement in case
25998         the target operand is dead anyway.
26000 2017-03-19  Gerald Pfeifer  <gerald@pfeifer.com>
26002         * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
26003         to age-old versions of binutils and glibc.
26005 2017-03-18  Segher Boessenkool  <segher@kernel.crashing.org>
26007         * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
26009 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
26011         * doc/contrib.texi (Contributors): Add Segher Boessenkool.
26013 2017-03-18  Gerald Pfeifer  <gerald@pfeifer.com>
26015         * doc/install.texi (Specific) <arm-*-eabi>: Remove old
26016         requirement for binutils 2.13.
26018 2017-03-17  Jim Wilson  <jim.wilson@linaro.org>
26020         * combine.c (try_combine): Delete redundant i1 test.  Call
26021         prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
26023 2017-03-17  Palmer Dabbelt  <palmer@dabbelt.com
26025         * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
26026         riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
26027         contents.
26028         <riscv64-*-elf>: Re-arrange section
26029         <riscv32-*-elf>: Add a note about requiring binutils 2.28.
26030         <riscv32-*-linux>: Likewise.
26031         <riscv64-*-elf>: Likewise
26032         <riscv64-*-linux>: Likewise.
26034 2017-03-17  Richard Earnshaw  <rearnsha@arm.com>
26036         PR target/80052
26037         * aarch64.opt(verbose-cost-dump): Fix typo.
26039 2017-03-17  Pat Haugen  <pthaugen@us.ibm.com>
26041         PR target/79951
26042         * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
26043         for VECTOR_UNIT_VSX_P (<MODE>mode) too.
26045 2017-03-17  Bernd Schmidt  <bschmidt@redhat.com>
26047         * reload.c (find_reloads): When reloading a nonoffsettable address,
26048         use RELOAD_OTHER for it and its address reloads.
26050         PR rtl-optimization/79910
26051         * combine.c (record_used_regs): New static function.
26052         (try_combine): Handle situations where there is an additional
26053         instruction between I2 and I3 which needs to have a LOG_LINK
26054         updated.
26056 2017-03-17  Jeff Law  <law@redhat.com>
26058         PR tree-optimization/71437
26059         * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
26060         conditional in the hash table first.
26061         (vrp_dom_walker::before_dom_children): Extract condition from
26062         ASSERT_EXPR.  Record condition, its inverion and any implied
26063         conditions as well.
26065 2017-03-17  Marek Polacek  <polacek@redhat.com>
26066             Markus Trippelsdorf  <markus@trippelsdorf.de>
26068         PR tree-optimization/80079
26069         * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
26070         m_stores_head.
26072 2017-03-17  Richard Biener  <rguenther@suse.de>
26074         PR middle-end/80075
26075         * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
26076         Properly verify the LHS before the RHS possibly claims to be
26077         handled.
26078         (stmt_could_throw_p): Hande gimple conds fully here.  Clobbers
26079         do not throw.
26081 2017-03-17  Martin Jambor  <mjambor@suse.cz>
26083         * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
26084         (List of -O2 options): Likewise.
26085         (-fipa-bit-cp): Replace "ipa" with "interprocedural."
26086         (-fipa-vrp) New.
26088 2017-03-17  Tom de Vries  <tom@codesourcery.com>
26090         * gcov-dump.c (print_usage): Print bug_report_url.
26092 2017-03-17  Richard Biener  <rguenther@suse.de>
26094         PR middle-end/80050
26095         * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
26096         (parser::peek): Likewise.
26098 2017-03-17  Richard Biener  <rguenther@suse.de>
26100         PR tree-optimization/80048
26101         * sese.c (free_sese_info): Properly release rename_map and
26102         copied_bb_map elements.
26104 2017-03-16  Alexandre Oliva <aoliva@redhat.com>
26106         * gimple-ssa-store-merging.c (struct imm_store_chain_info):
26107         Add linked-list forward and backlinks.  Insert on
26108         construction, remove on destruction.
26109         (class pass_store_merging): Add m_stores_head field.
26110         (pass_store_merging::terminate_and_process_all_chains):
26111         Iterate over m_stores_head list.
26112         (pass_store_merging::terminate_all_aliasing_chains):
26113         Likewise.
26114         (pass_store_merging::execute): Check for debug stmts first.
26115         Push new chains onto the m_stores_head stack.
26117 2017-03-16  Michael Meissner  <meissner@linux.vnet.ibm.com>
26119         PR target/71294
26120         * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
26121         SPLAT operation on ISA 2.07 64-bit systems that have direct move,
26122         but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
26124 2017-03-16  Jeff Law  <law@redhat.com>
26126         PR tree-optimization/71437
26127         * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
26128         member function.  Implementation moved into after_dom_children
26129         member function and into the threader's thread_outgoing_edges
26130         function.
26131         (dom_opt_dom_walker::after_dom_children): Simplify by moving
26132         some code into new thread_outgoing_edges.
26133         * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
26134         definition.  Simplify marker handling (do it here).   Assume we always
26135         have the available expression and the const/copies tables.
26136         (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
26137         and tree-vrp.c
26138         * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
26139         * tree-vrp.c (equiv_stack): No longer file scoped.
26140         (vrp_dom_walker): New class.
26141         (vrp_dom_walker::before_dom_children): New member function.
26142         (vrp_dom_walker::after_dom_children): Likewise.
26143         (identify_jump_threads):  Setup domwalker.  Use it rather than
26144         walking edges in a random order by hand.  Simplify setup/finalization.
26145         (finalize_jump_threads): Remove.
26146         (vrp_finalize): Do not call identify_jump_threads here.
26147         (execute_vrp): Do it here instead and call thread_through_all_blocks
26148         here too.
26150         PR tree-optimization/71437
26151         * tree-ssa-dom.c (pfn_simplify): Add basic_block argument.  All
26152         callers changed.
26153         (simplify_stmt_for_jump_threading): Add basic_block argument.  All
26154         callers changed.
26155         (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
26156         (dom_opt_dom_walker::thread_across_edge): Remove
26157         handle_dominating_asserts argument.  All callers changed.
26158         (record_temporary_equivalences_from_stmts_at_dest): Corresponding
26159         changes.  Remove calls to lhs_of_dominating_assert.  Other
26160         uses of handle_dominating_asserts turn into unconditional code
26161         (simplify_control_stmt_condition_1): Likewise.
26162         (simplify_control_stmt_condition): Likewise.
26163         (thread_through_normal_block, thread_across_edge): Likewise.
26164         * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
26165         * tree-vrp.c (lhs_of_dominating_assert): Move here.  Return original
26166         object if it is not an SSA_NAME.
26167         (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
26168         before calling into the VRP specific simplifiers.
26169         (identify_jump_threads): Remove handle_dominating_asserts
26170         argument.
26172 2017-03-16  Jakub Jelinek  <jakub@redhat.com>
26174         PR fortran/79886
26175         * tree-diagnostic.c (default_tree_printer): No longer static.
26176         * tree-diagnostic.h (default_tree_printer): New prototype.
26178 2017-03-16  Tamar Christina  <tamar.christina@arm.com>
26180         * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
26181         Change ins into fmov.
26183 2017-03-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26185         * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
26186         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
26187         Use h_con constraint for operand 1.
26188         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
26189         (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
26191 2017-03-15  Jeff Law  <law@redhat.com>
26193         PR tree-optimization/71437
26194         * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
26195         (record_temporary_equivalences): Use it.
26197         PR tree-optimization/71437
26198         * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
26199         tree-ssa-scopedtables.
26200         (lookup_avail_expr, build_and_record_new_cond): Likewise.
26201         (record_conditions, record_cond, vuse_eq): Likewise.
26202         (record_edge_info): Adjust to API tweak of record_conditions.
26203         (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
26204         (record_temporary_equivalences, optimize_stmt): Likewise.
26205         (eliminate_redundant_computations): Likewise.
26206         (record_equivalences_from_stmt): Likewise.
26207         * tree-ssa-scopedtables.c: Include options.h and params.h.
26208         (vuse_eq): New function, moved from tree-ssa-dom.c
26209         (build_and_record_new_cond): Likewise.
26210         (record_conditions): Likewise.  Accept vector of conditions rather
26211         than edge_equivalence structure for first argument.
26212         for the first argument.
26213         (avail_exprs_stack::lookup_avail_expr): New member function, moved
26214         from tree-ssa-dom.c.
26215         (avail_exprs_stack::record_cond): Likewise.
26216         * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
26217         from tree-ssa-dom.c.
26218         (avail_exprs_stack): Add new member functions lookup_avail_expr
26219         and record_cond.
26220         (record_conditions): Declare.
26222 2017-03-15  Vladimir Makarov  <vmakarov@redhat.com>
26224         PR target/80017
26225         * lra-constraints.c (process_alt_operands): Increase reject for
26226         reloading an input/output operand.
26228 2017-03-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
26230         PR target/79038
26231         * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
26232         insns to convert from signed/unsigned char/short to IEEE 128-bit
26233         floating point.
26234         (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
26236 2017-03-15  Uros Bizjak  <ubizjak@gmail.com>
26238         PR target/80019
26239         * config/i386/i386.c (ix86_vector_duplicate_value): Create
26240         subreg of inner mode for values already in registers.
26242 2017-03-15  Bernd Schmidt  <bschmidt@redhat.com>
26244         * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
26245         iteration reg is used after the loop.
26247 2017-03-14  Martin Sebor  <msebor@redhat.com>
26249         PR tree-optimization/79800
26250         * gimple-ssa-sprintf.c (format_floating: Add argument.  Handle
26251         precision in negative-positive range.
26252         (format_floating): Call non-const overload with adjusted precision.
26254 2017-03-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
26256         PR target/79947
26257         * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
26258         -mpowerpc-gfxopt.
26260 2017-03-14  Martin Sebor  <msebor@redhat.com>
26262         PR middle-end/80020
26263         * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
26264         * builtins.def (aligned_alloc): Use it.
26266         PR c/79936
26267         * Makefile.in (GTFILES): Add calls.c.
26268         * calls.c: Include "gt-calls.h".
26270 2017-03-14  Bernd Schmidt  <bschmidt@redhat.com>
26272         PR rtl-optimization/79728
26273         * regs.h (struct target_regs): New field
26274         x_contains_allocatable_regs_of_mode.
26275         (contains_allocatable_regs_of_mode): New macro.
26276         * reginfo.c (init_reg_sets_1): Initialize it, and change
26277         contains_reg_of_mode so it includes global regs as well.
26278         * reload.c (push_reload): Use contains_allocatable_regs_of_mode
26279         rather than contains_regs_of_mode.
26281 2017-03-14  Martin Liska  <mliska@suse.cz>
26283         * doc/invoke.texi: Document options that can't be combined with
26284         -fcheck-pointer-bounds.
26286 2017-03-14  Martin Liska  <mliska@suse.cz>
26288         PR middle-end/79831
26289         * doc/invoke.texi (-Wchkp): Document the option.
26291 2017-03-14  Martin Liska  <mliska@suse.cz>
26293         * Makefile.in: Install gcov-dump.
26295 2017-03-14  Martin Liska  <mliska@suse.cz>
26297         * multiple_target.c (expand_target_clones): Bail out for
26298         an invalid attribute.
26300 2017-03-14  Richard Biener  <rguenther@suse.de>
26302         * alias.c (struct alias_set_entry): Pack properly.
26303         * cfgloop.h (struct loop): Likewise.
26304         * cse.c (struct set): Likewise.
26305         * ipa-utils.c (struct searchc_env): Likewise.
26306         * loop-invariant.c (struct invariant): Likewise.
26307         * lra-remat.c (struct cand): Likewise.
26308         * recog.c (struct change_t): Likewise.
26309         * rtl.h (struct address_info): Likewise.
26310         * symbol-summary.h (function_summary): Likewise.
26311         * tree-loop-distribution.c (struct partition): Likewise.
26312         * tree-object-size.c (struct object_size_info): Likewise.
26313         * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
26314         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
26315         * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
26316         * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
26317         * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
26318         * tree-vectorizer.h (struct _loop_vec_info): Likewise.
26319         (struct _stmt_vec_info): Likewise.
26321 2017-03-14  Martin Liska  <mliska@suse.cz>
26323         PR target/79892
26324         * multiple_target.c (create_dispatcher_calls): Check that
26325         a target can create a function dispatcher.
26327 2017-03-14  Martin Liska  <mliska@suse.cz>
26329         PR lto/66295
26330         * multiple_target.c (expand_target_clones): Drop local.local
26331         flag for default implementation.
26333 2017-03-14  Richard Biener  <rguenther@suse.de>
26335         PR tree-optimization/80030
26336         * tree-vect-stmts.c (vectorizable_store): Plug memleak.
26338 2017-03-13  Kito Cheng  <kito.cheng@gmail.com>
26340         * config/riscv/riscv.c (riscv_emit_float_compare>: Use
26341         gcc_fallthrough() instead of __attribute__((fallthrough));
26343 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
26345         * doc/gcc.texi: Remove "up" link to (DIR).
26346         * doc/gccint.texi: Ditto.
26348 2017-03-13  Gerald Pfeifer  <gerald@pfeifer.com>
26350         * doc/install.texi (Specific) <avr>: Remove reference to
26351         binutils 2.13.
26353 2017-03-13  Jeff Law  <law@redhat.com>
26355         * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
26356         attribute rather than comments.
26358         * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
26359         match_scratch operand is highest.
26361 2017-03-13  Martin Liska  <mliska@suse.cz>
26363         PR middle-end/78339
26364         * ipa-pure-const.c (warn_function_noreturn): If the declarations
26365         is a CHKP clone, use original declaration.
26367 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
26369         * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
26370         (arc_conditional_register_usage): Use a different allocation order
26371         when optimizing for size.
26372         * common/config/arc/arc-common.c (arc_option_optimization_table):
26373         Section anchors default on when optimizing for size.
26375 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
26377         * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
26379 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
26381         * config/arc/arc.c (arc_output_addsi): Emit code density adds.
26382         * config/arc/arc.md (cpu_facility): Add cd variant.
26383         (*movqi_insn): Add code density variant.
26384         (*movhi_insn): Likewise.
26385         (*movqi_insn): Likewise.
26386         (*addsi3_mixed): Likewise.
26387         (subsi3_insn): Likewise.
26389 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
26391         * config/arc/arc.md (movsi_cond_exec): Update constraint.
26393 2017-03-13  Claudiu Zissulescu  <claziss@synopsys.com>
26395         * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
26396         expressions with MINUS and UNARY ops.
26398 2017-03-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26400         PR target/79911
26401         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
26402         Rename to...
26403         (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
26404         between vec_select and vector argument.
26405         (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
26406         (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
26407         (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
26408         (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
26409         (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
26410         (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
26412 2017-03-13  Richard Biener  <rguenther@suse.de>
26414         PR other/79991
26415         * params.def (vect-max-peeling-for-alignment): Fix typo.
26417 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
26419         * doc/install.texi (Specific) <mips-*-*>: Remove description of
26420         issue that only occurred with binutils below 2.18.
26422 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
26424         * doc/install.texi (Specific) <cris-axis-elf>: No longer
26425         refer to binutils 2.11/2.12 minimum.
26427 2017-03-12  Gerald Pfeifer  <gerald@pfeifer.com>
26429         * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
26430         ftp.kernel.org and simplify binutils requirement.
26432 2017-03-11  Gerald Pfeifer  <gerald@pfeifer.com>
26434         * doc/invoke.texi (Warning Options): Fix spelling of link-time
26435         optimization.
26436         (Optimize Options): Ditto.  Also remove redundancy.
26438 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
26440         PR translation/79848
26441         * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
26442         "%qs".
26443         * ipa-pure-const.c (suggest_attribute): Likewise.  Convert _
26444         to G_ to avoid double translation.
26446 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
26448         PR translation/79923
26449         * auto-profile.c (get_combined_location): Convert leading
26450         character of diagnostics to lower case and remove trailing period.
26451         (read_profile): Likewise for various diagnostics.
26452         * config/arm/arm.c (arm_option_override): Remove trailing period
26453         from various diagnostics.
26454         * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
26455         (msp430_expand_delay_cycles): Likewise.
26457 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
26459         PR target/79925
26460         * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
26461         full command-line argument, rather than just "str".
26462         (aarch64_validate_march): Likewise.
26463         (aarch64_validate_mtune): Likewise.
26465 2017-03-10  Bernd Schmidt  <bschmidt@redhat.com>
26467         PR rtl-optimization/78911
26468         * lra-assigns.c (must_not_spill_p): New function.
26469         (spill_for): Use it.
26471 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
26473         PR tree-optimization/79981
26474         * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
26475         ATOMIC_COMPARE_EXCHANGE ifn result.
26476         (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
26477         IFN_ATOMIC_COMPARE_EXCHANGE.
26479 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
26481         PR driver/79875
26482         * opts.c (parse_sanitizer_options): Add missing question mark to
26483         "did you mean" message.
26485 2017-03-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26487         * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
26488         built-in.
26489         (VMULEUH_UNS): Likewise.
26490         (VMULOUB_UNS): Likewise.
26491         (VMULOUH_UNS): Likewise.
26492         * config/rs6000/rs6000.c (builtin_function_type): Remove
26493         references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
26495 2017-03-10  David Malcolm  <dmalcolm@redhat.com>
26497         PR bootstrap/79952
26498         * read-rtl-function.c (function_reader::read_rtx_operand): Update
26499         x with result of extra_parsing_for_operand_code_0.
26500         (function_reader::extra_parsing_for_operand_code_0): Convert
26501         return type from void to rtx, returning x.  When reading
26502         SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
26503         larger size containing struct block_symbol.
26505 2017-03-10  Segher Boessenkool  <segher@kernel.crashing.org>
26507         * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
26508         -mfloat128-hardware without -m64.
26510 2017-03-10  Will Schmidt <will_schmidt@vnet.ibm.com>
26512         PR target/79941
26513         * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
26514         entries to the case statement that marks unsigned arguments to
26515         overloaded functions.
26517 2017-03-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
26519         * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
26520         two typographic errors in the handling of TARGET_UPPER_REGS_DI.
26522 2017-03-10  Pat Haugen  <pthaugen@us.ibm.com>
26524         PR target/79907
26525         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
26526         TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
26528 2017-03-10  Martin Liska  <mliska@suse.cz>
26530         PR target/65705
26531         PR target/69804
26532         * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
26533         * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
26534         FIELD != NULL.
26536 2017-03-10  Olivier Hainque  <hainque@adacore.com>
26538         * tree-switch-conversion (array_value_type): Start by resetting
26539         candidate type to it's main variant.
26541 2017-03-10  Jakub Jelinek  <jakub@redhat.com>
26543         PR rtl-optimization/79909
26544         * combine.c (try_combine): Use simplify_replace_rtx on individual
26545         CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
26546         of the whole CALL_INSN_FUNCTION_USAGE.
26548         PR tree-optimization/79972
26549         * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
26550         get_range_info on SSA_NAMEs.  Formatting fixes.
26552 2017-03-10  Richard Biener  <rguenther@suse.de>
26553             Jakub Jelinek  <jakub@redhat.com>
26555         PR tree-optimization/77975
26556         * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
26557         edge to be constant.
26558         (get_val_for): For constant x return it.  Formatting fix.
26559         (loop_niter_by_eval): Avoid pointless looping if the next iteration
26560         would use the same bases as the current one.
26562 2017-03-09  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
26564         * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
26565         instead of vec_select for V1TImode.
26566         * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
26567         longer needed.
26568         (VSX_LE_128): Add V1TI to this mode iterator.
26569         (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
26570         (*vsx_le_perm_store_<mode>): Likewise.
26571         (pre-reload splitter for VSX stores): Likewise.
26572         (post-reload splitter for VSX stores): Likewise.
26573         (*vsx_xxpermdi2_le_<mode>): Likewise.
26574         (*vsx_lxvd2x2_le_<mode>): Likewise.
26575         (*vsx_stxvd2x2_le_<mode>): Likewise.
26577 2017-03-09  Michael Eager  <eager@eagercon.com>
26579         Correct failures with --enable-checking=yes,rtl.
26581         * config/microblaze/microblaze.c (microblaze_expand_shift):
26582         Replace GET_CODE test with CONST_INT_P and INTVAL test with
26583         test for const0_rtx.
26584         * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
26585         lshrsi3_byone): Replace INTVAL with test for const1_rtx.
26587 2017-03-09  Richard Biener  <rguenther@suse.de>
26589         PR tree-optimization/79977
26590         * graphite-scop-detection.c (scop_detection::merge_sese):
26591         Handle the case of extra exits to blocks dominating the entry.
26593 2017-03-09  Toma Tabacu  <toma.tabacu@imgtec.com>
26595         * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
26596         Document rdynamic.
26598 2017-03-09  Vladimir Makarov  <vmakarov@redhat.com>
26600         PR rtl-optimization/79949
26601         * lra-constraints.c (process_alt_operands): Check memory when
26602         trying to predict a cycle.  Print about the overall increase.
26604 2017-03-09  Richard Biener  <rguenther@suse.de>
26606         PR middle-end/79971
26607         * gimple-expr.c (useless_type_conversion_p): Preserve
26608         TYPE_SATURATING for fixed-point types.
26610 2017-03-09  Richard Biener  <rguenther@suse.de>
26612         PR ipa/79970
26613         * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
26614         alignment of BLKmode params.
26616 2017-03-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26618         PR target/79913
26619         * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
26620         (VALL_NO_V2Q): Likewise.
26621         (VDQF_DF): Delete.
26622         * config/aarch64/aarch64-simd.md
26623         (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
26624         iterator.
26625         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
26626         VALL_NO_V2Q mode iterator.
26627         (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
26629 2017-03-09  Martin Liska  <mliska@suse.cz>
26631         PR tree-optimization/79631
26632         * tree-chkp-opt.c (chkp_is_constant_addr): Call
26633         tree_int_cst_sign_bit just for INTEGER constants.
26635 2017-03-09  Martin Liska  <mliska@suse.cz>
26637         PR target/65705
26638         PR target/69804
26639         * toplev.c (process_options): Disable -fcheck-pointer-bounds with
26640         sanitizers.
26642 2017-03-09  Marek Polacek  <polacek@redhat.com>
26644         PR c++/79672
26645         * tree.c (inchash::add_expr): Handle TREE_VEC.
26647 2017-03-09  Martin Liska  <mliska@suse.cz>
26649         PR ipa/79764
26650         (chkp_narrow_size_and_offset): New function.
26651         (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
26652         (void chkp_parse_bit_field_ref): New function.
26653         (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
26654         (chkp_process_stmt): Use chkp_parse_bit_field_ref.
26656 2017-03-09  Martin Liska  <mliska@suse.cz>
26658         PR ipa/79761
26659         * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
26660         (chkp_find_bounds_1): Remove gcc_unreachable.
26662 2017-03-09  Jakub Jelinek  <jakub@redhat.com>
26664         PR sanitizer/79944
26665         * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
26666         BUILT_IN_SYNC*, determine the access type from the size suffix and
26667         always build a MEM_REF with that type.  Handle forgotten
26668         BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
26670         PR target/79932
26671         * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
26672         _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
26673         _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
26674         _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
26675         _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
26676         _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
26677         _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
26678         _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
26679         _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
26680         _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
26681         _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
26682         _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
26683         _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
26684         _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
26685         _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
26686         _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
26687         _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
26688         _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
26689         _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
26690         _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
26691         _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
26692         _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
26693         _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
26694         _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
26695         _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
26696         _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
26697         _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
26698         _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
26699         _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
26700         _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
26701         definitions outside of __OPTIMIZE__ guarded section.
26703         PR target/79932
26704         * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
26705         _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
26706         _mm512_packus_epi32, _mm512_maskz_packus_epi32,
26707         _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
26708         guarded section.
26710 2017-03-09  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
26712         * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
26713         ("vfenez<mode>"): Add missing constraints.
26715 2017-03-08  Martin Sebor  <msebor@redhat.com>
26717         PR target/79928
26718         * config/nds32/nds32.c (nds32_option_override):
26719         Fix misspelled diagnostic.
26721 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
26723         PR c/79940
26724         * gimplify.c (gimplify_omp_for): Replace index var in outer
26725         taskloop statement with an artificial variable and add
26726         OMP_CLAUSE_PRIVATE clause for it.
26728 2017-03-08  Richard Biener  <rguenther@suse.de>
26730         PR tree-optimization/79955
26731         * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
26732         for accesses that are completely outside of the variable.
26734 2017-03-08  Andrew Haley  <aph@redhat.com>
26736         PR tree-optimization/79943
26737         * tree-ssa-loop-split.c (compute_new_first_bound): When
26738         calculating the new upper bound, (END-BEG) should be added, not
26739         subtracted.
26741 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
26743         * config/avr/avr.md (setmemhi): Make sure match_dup
26744         operand number comes before match_scratch.
26746 2017-03-08  Richard Biener  <rguenther@suse.de>
26748         PR tree-optimization/79920
26749         * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
26750         with ncopies == 1 to ...
26751         (vect_transform_slp_perm_load): ... here.  Properly compute
26752         all element loads by iterating VF times over the group.  Do
26753         not handle ncopies (computed in a broken way) in
26754         vect_create_mask_and_perm.
26756 2017-03-08  Jakub Jelinek  <jakub@redhat.com>
26758         PR sanitizer/79904
26759         * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
26760         is a uniform vector, use uniform_vector_p return value instead of
26761         building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
26763 2017-03-07  Marek Polacek  <polacek@redhat.com>
26765         PR middle-end/79809
26766         * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
26767         (alloca_call_type): Likewise.
26769 2017-03-07  Martin Liska  <mliska@suse.cz>
26771         * gcov.c (process_args): Put comment to correct location.
26773 2017-03-07  Martin Liska  <mliska@suse.cz>
26775         PR middle-end/68270
26776         * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
26777         Use array_at_struct_end_p instead of DECL_CHAIN (field).
26778         (chkp_narrow_bounds_for_field): Likewise.
26779         (chkp_parse_array_and_component_ref): Pass one more argument to
26780         call.
26782 2017-03-07  Richard Biener  <rguenther@suse.de>
26784         * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
26785         preheaders.
26787 2017-03-07  Segher Boessenkool  <segher@kernel.crashing.org>
26789         * config/i386/i386.c (ix86_local_alignment): Align most aggregates
26790         of 16 bytes and more to 16 bytes, not those of 16 bits and more.
26792 2017-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26794         PR c/79855
26795         * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
26796         to end of description.
26797         (PARAM_MAX_STORES_TO_MERGE): Likewise.
26799 2017-03-07  Jakub Jelinek  <jakub@redhat.com>
26801         PR rtl-optimization/79901
26802         * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
26803         ...
26804         (*avx512f_<code><mode>3<mask_name>): ... this.
26805         (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
26806         iterator instead of VI8_AVX2_AVX512BW.
26808         PR rtl-optimization/79901
26809         * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
26810         min/max expander, expand it using expand_vec_cond_expr.
26812         PR sanitizer/79897
26813         * ubsan.c (ubsan_encode_value): Call mark_addressable on the
26814         temporary.
26816 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
26818         PR c++/79821
26819         * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
26820         to void * for PCH reasons.
26821         * dwarf2out.c (output_loc_operands, output_die): Cast
26822         v.val_vec.array to unsigned char *.
26824 2017-03-06  John David Anglin  <danglin@gcc.gnu.org>
26826         PR target/77850
26827         * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
26828         vector types.
26830 2017-03-06  Vladimir Makarov  <vmakarov@redhat.com>
26832         PR rtl-optimization/79571
26833         * lra-constraints.c (process_alt_operands): Calculate static
26834         reject and subtract it from overall when only addresses will be
26835         reloaded.
26837 2017-03-06  Julia Koval  <julia.koval@intel.com>
26839         PR target/79793
26840         * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
26841         incoming stack boundary to 128 for 64-bit targets.
26843 2017-03-06  Richard Biener  <rguenther@suse.de>
26845         PR tree-optimization/79894
26846         * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
26847         to NULL after folding it.
26849 2017-03-06  Richard Biener  <rguenther@suse.de>
26851         PR tree-optimization/79824
26852         * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
26853         check disabling peeling for gaps.
26855 2017-03-06  Toma Tabacu  <toma.tabacu@imgtec.com>
26857         * doc/sourcebuild.texi (Effective-Target Keywords, Environment
26858         attributes): Document gettimeofday.
26860 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
26862         * config/s390/s390.c (s390_option_override_internal): Set
26863         PARAM_MIN_VECT_LOOP_BOUND
26865 2017-03-06  Robin Dapp  <rdapp@linux.vnet.ibm.com>
26867         * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
26868         * config/s390/s390.md: Likewise.
26870 2017-03-06  Jakub Jelinek  <jakub@redhat.com>
26872         PR target/79812
26873         * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
26874         (<avx2_avx512>_perm<mode>): Rename to ...
26875         (avx2_perm<mode>): ... this.  Use VI8F_256 iterator instead
26876         of VI8F_256_512.
26877         (<avx512>_perm<mode>_mask): Rename to ...
26878         (avx512vl_perm<mode>_mask): ... this.  Use VI8F_256 iterator instead
26879         of VI8F_256_512.
26880         (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
26881         (avx2_perm<mode>_1<mask_name): ... this.  Use VI8F_256 iterator
26882         instead of VI8F_256_512.
26883         (avx512f_perm<mode>): New define_expand.
26884         (avx512f_perm<mode>_mask): Likewise.
26885         (avx512f_perm<mode>_1<mask_name>): New define_insn.
26886         (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
26888 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
26890         * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
26891         msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
26892         if_then_else.
26893         (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
26895 2017-03-06  Martin Liska  <mliska@suse.cz>
26897         PR sanitize/79783
26898         * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
26899         when having a SSA NAME w/o VAR_DECL assigned to it.
26901 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
26903         * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
26904         msa_dpsub_<su>_d): Fix MODE for vec_select.
26906 2017-03-06  Prachi Godbole  <prachi.godbole@imgtec.com>
26908         * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
26909         argument.
26910         * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
26912 2017-03-06  Richard Biener  <rguenther@suse.de>
26914         * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
26915         * plugin.c (register_plugin_info): Likewise.
26916         * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
26918 2017-03-05  Jakub Jelinek  <jakub@redhat.com>
26920         * config/i386/sse.md (sse_storehps, sse_storelps,
26921         avx_<castmode><avxsizesuffix>_<castmode>,
26922         avx512f_<castmode><avxsizesuffix>_<castmode>,
26923         avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
26924         in condition that at least one operand is not a MEM.
26926 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
26928         PR middle-end/79805
26929         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
26930         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
26931         ECF_NOTHROW.
26932         * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
26933         gimple_call_nothrow_p flag based on whether original builtin can throw.
26934         If it can, emit following stmts on the fallthrough edge.
26935         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
26936         don't create new bb if inserting just debug stmts on the edge, try to
26937         insert them on the fallthru bb or just reset debug stmts.
26939 2017-03-03  Segher Boesssenkool  <segher@kernel.crashing.org>
26941         PR target/43763
26942         * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
26943         restore recog_data (including the operand rtxes inside it) around
26944         the call to get_insn_template.
26946 2017-03-03  Martin Sebor  <msebor@redhat.com>
26948         PR tree-optimization/79699
26949         * context.c (context::~context): Free MPFR caches to avoid
26950         a memory leak on program exit.
26952 2017-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
26954         * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
26955         Use wide_int::ulow () instead of .elt (0).
26957 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
26959         * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
26960         (*pushxf): Limit oF constraint to 32bit targets and add oC
26961         constraint for 64bit targets.
26962         (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
26963         (*pushdf): Change rmF constraint to rmC.
26965 2017-03-03  Martin Liska  <mliska@suse.cz>
26967         * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
26968         Remove unused variable.
26970 2017-03-03  Jakub Jelinek  <jakub@redhat.com>
26972         PR target/79807
26973         * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
26974         is a memory operand, increase num_memory.
26975         (ix86_expand_args_builtin): Likewise.
26977 2017-03-03  Jan Hubicka  <jh@suse.cz>
26979         PR lto/79760
26980         * ipa-devirt.c (maybe_record_node): Properly handle
26981         __cxa_pure_virtual visibility.
26983 2017-03-03  Martin Liska  <mliska@suse.cz>
26985         PR tree-optimization/79803
26986         * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
26987         assert.
26988         (pass_loop_prefetch::execute): Disabled optimization if an
26989         assumption about L1 cache size is not met.
26991 2017-03-03  Martin Liska  <mliska@suse.cz>
26993         PR rtl-optimization/79574
26994         * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
26995         (hash_scan_set): Likewise.
26996         (dump_hash_table): Likewise.
26997         (hoist_code): Likewise.
26999 2017-03-03  Richard Biener  <rguenther@suse.de>
27001         * fixed-value.c (fixed_from_string): Restore use of elt (1)
27002         in place of uhigh ().
27003         (fixed_convert_from_real): Likewise.
27005 2017-03-03  Uros Bizjak  <ubizjak@gmail.com>
27007         PR target/79514
27008         * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
27010 2017-03-03  Richard Biener  <rguenther@suse.de>
27012         PR middle-end/79818
27013         * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
27014         TYPE_OVERFLOW_UNDEFINED check.
27016 2017-03-02  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27018         * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
27019         numbers.
27020         (vector_ae_<mode>_p): Likewise.
27021         (vector_nez_<mode>_p): Likewise.
27022         (vector_ne_v2di_p): Likewise.
27023         (vector_ae_v2di_p): Likewise.
27024         (vector_ne_<mode>_p): Likewise.
27025         * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
27026         numbers.
27027         (vsx_tsqrt<mode>2_fe): Likewise.
27029 2017-03-02  Uros Bizjak  <ubizjak@gmail.com>
27031         PR target/79514
27032         * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
27034 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
27036         PR rtl-optimization/79780
27037         * cprop.c (one_cprop_pass): When second and further conditional trap
27038         in a single basic block is turned into an unconditional trap, turn it
27039         into a deleted note to avoid RTL verification failures.
27041 2017-03-02  Richard Biener  <rguenther@suse.de>
27043         * fold-const.c (const_binop): Use ulow () instead of elt (0).
27045 2017-03-02  Richard Biener  <rguenther@suse.de>
27047         PR tree-optimization/79345
27048         PR c++/42000
27049         * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
27050         param and abort the walk, returning -1 if it is hit.
27051         (walk_aliased_vdefs): Take a limit param and pass it on.
27052         * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
27053         defaulting to 0 and return a signed int.
27054         * tree-ssa-uninit.c (struct check_defs_data): New struct.
27055         (check_defs): New helper.
27056         (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
27057         about uninitialized memory.
27058         * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
27059         bogus uninitialized warning.
27060         (fixed_convert_from_real): Likewise.
27062 2017-03-02  Bin Cheng  <bin.cheng@arm.com>
27064         PR tree-optimization/66768
27065         * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
27066         iv_use if base object can't be determined.
27068 2017-03-02  Jakub Jelinek  <jakub@redhat.com>
27070         PR tree-optimization/79345
27071         * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
27072         * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
27073         (get_pattern_stats): Initialize it.
27074         * genemit.c (gen_expand): Verify match_scratch numbers come after
27075         match_operand/match_dup numbers.
27076         * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
27077         match_scratch numbers.
27078         * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
27079         Likewise.
27080         * config/s390/s390.md (trunctdsd2): Likewise.
27082 2017-03-02  Richard Biener  <rguenther@suse.de>
27084         * wide-int.h (wide_int_storage::operator=): Implement in terms
27085         of wi::copy.
27087 2017-03-02  Richard Biener  <rguenther@suse.de>
27089         PR tree-optimization/79777
27090         * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
27091         the to insert expression to sth existing.
27093 2017-03-01  Martin Sebor  <msebor@redhat.com>
27095         PR middle-end/79692
27096         * gimple-ssa-sprintf.c
27097         (directive::known_width_and_precision): New function.
27098         (format_integer): Use it.
27099         (get_mpfr_format_length): Consider the full range of precision
27100         when computing %g output with the # flag.  Set the likely byte
27101         count to 3 rather than 1 when precision is indeterminate.
27102         (format_floating): Correct the lower bound of precision.
27104 2017-03-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27106         * doc/invoke.texi: Document default code model for 64-bit Linux.
27108 2017-03-01  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
27110         PR target/79752
27111         * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
27112         udiv rather than div since input pattern is unsigned.
27114 2017-03-01  Uros Bizjak  <ubizjak@gmail.com>
27116         * config/i386/i386.c (print_reg): Warn for values of
27117         unsupported size in integer register.
27119 2017-03-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
27121         PR target/79439
27122         * config/rs6000/predicates.md (current_file_function_operand): Do
27123         not allow self calls to be local if the function is replaceable.
27125 2017-03-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
27127         PR target/79395
27128         * config/rs6000/altivec.h (vec_ctz and others): Change the
27129         preprocessor macro that controls conditional compilation from
27130         _ARCH_PWR9 to __POWER9_VECTOR__.
27131         (vec_all_ne): Change parameterization of __altivec_scalar_pred
27132         macro expansion under preprocessor #ifdef __POWER9_VECTOR__
27133         control (instead of _ARCH_PWR9 control) so that template
27134         definition uses power9-specific function.
27135         (vec_any_eq): Likewise.
27136         (vec_all_ne): Change macro definition to use a power9-specific
27137         expansion under #ifdef __POWER9_VECTOR__ control (instead of
27138         _ARCH_PWR9 control).
27139         (vec_any_eq) Likewise.
27140         * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
27141         expansion for CMPNEF to remove support for xvcmpnesp instruction.
27142         (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
27143         support for xvcmpnedp instruction.
27144         (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
27145         macro expansion so that Power9 implementation of vec_all_ne does
27146         not use the AltiVec predicate framework.
27147         (VCMPNEH_P): Likewise.
27148         (VCMPNEW_P): Likewise.
27149         (VCMPNED_P): Likewise.
27150         (VCMPNEFP_P): Likewise.
27151         (VCMPNEDP_P): Likewise.
27152         (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
27153         implementation of vec_any_eq to not use AltiVec predicate
27154         framework.
27155         (VCMPAEH_P): Likewise.
27156         (VCMPAEW_P): Likewise.
27157         (VCMPAED_P): Likewise.
27158         (VCMPAEFP_P): Likewise.
27159         (VCMPAEDP_P): Likewise.
27160         (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
27161         BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
27162         not use the AltiVec predicate framework.
27163         (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
27164         of vec_any_eq to not use AltiVec predicate framework.
27165         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
27166         support for predefined __POWER9_VECTOR__ macro to indicate that
27167         Power9 instruction selection is enabled.
27168         (altivec_overloaded_builtins): Remove extraneous
27169         ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
27170         function argument types RS6000_BTI_bool_V16QI and
27171         RS6000_BTI_bool_V16QI.  Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
27172         entry for overloaded function argument types RS6000_BTI_bool_V4SI
27173         andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB.  Remove
27174         two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
27175         P9V_BUILTIN_CMPNEF to force use of instructions not specific to
27176         Power9 for implementations of vec_cmpne.  Change the signature for
27177         all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
27178         (representing vec_all_ne) to remove the previously described first
27179         argument of type RS6000_BTI_INTSI, as this was an artifact of
27180         reliance on the AltiVec predicate framework, which is no longer
27181         used in the implementation of these functions.  Add
27182         P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
27183         function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
27184         since, unlike the AltiVec predicate framework implementation, we
27185         do not share function descriptors between vec_alle and vec_anyeq.
27186         (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
27187         set of modes that receive special treatment even when
27188         TARGET_P9_VECTOR is true.  The special treatment emits code that
27189         does not depend on Power9 instructions.
27190         * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
27191         define_expand to not rely on AltiVec predicate framework.
27192         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
27193         function.
27194         (vector_ne_v2di_p): Change this define_expand to not rely on
27195         AltiVec predicate framework.
27196         (vector_ae_v2di_p): New define_expand to represent vec_any_eq
27197         function.
27198         (vector_ne_<mode>_p): Change this define_expand to not rely on
27199         AltiVec predicate framework.
27200         (vector_ae_<mode>p): New define_expand to represent vec_any_eq
27201         function.
27202         * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
27203         (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
27204         define_insn pattern.
27205         (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
27206         define_insn pattern because the xvcmpne<VSs>. instruction is not
27207         supported.
27208         (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
27209         instruction is not supported.
27211 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
27213         * config/nvptx/nvptx.c: Include intl.h.
27215 2017-03-01  Martin Jambor  <mjambor@suse.cz>
27217         PR lto/78140
27218         * ipa-prop.h (ipa_bits): Removed field known.
27219         (ipa_jump_func): Removed field vr_known.  Changed fields bits and m_vr
27220         to pointers.  Adjusted their comments to warn about their sharing.
27221         (ipcp_transformation_summary): Change bits to a vector of pointers.
27222         (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
27223         (ipa_get_ipa_bits_for_value): Declare.
27224         * tree-vrp.h (value_range): Mark as GTY((for_user)).
27225         * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
27226         (ipa_bits_hash_table): Likewise.
27227         (ipa_vr_ggc_hash_traits): Likewise.
27228         (ipa_vr_hash_table): Likewise.
27229         (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
27230         being pointers and vr_known being removed.
27231         (ipa_set_jf_unknown): Likewise.
27232         (ipa_get_ipa_bits_for_value): New function.
27233         (ipa_set_jfunc_bits): Likewise.
27234         (ipa_get_value_range): New overloaded functions.
27235         (ipa_set_jfunc_vr): Likewise.
27236         (ipa_compute_jump_functions_for_edge): Use the above functions to
27237         construct bits and vr parts of jump functions.
27238         (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
27239         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
27240         exist.
27241         (ipcp_grow_transformations_if_necessary): Also allocate
27242         ipa_bits_hash_table and ipa_vr_hash_table if they do not already
27243         exist.
27244         (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
27245         them.  Fix too long lines.
27246         (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
27247         vr_known being removed.
27248         (ipa_read_jump_function): Use new setter functions to construct bits
27249         and vr parts of jump functions or set them to NULL.
27250         (write_ipcp_transformation_info): Adjust for bits being pointers.
27251         (read_ipcp_transformation_info): Likewise.
27252         (ipcp_update_bits): Likewise.  Fix excessively long lines a trailing
27253         space.
27254         Include gt-ipa-prop.h.
27255         * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
27256         being pointers.
27257         (ipcp_store_bits_results): Likewise.
27258         (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
27259         Do not write to existing jump functions but use a temporary instead.
27261 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
27263         PR c++/79681
27264         * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
27265         attempt to use its first operand as BIT_FIELD_REF base.
27267 2017-03-01  Richard Biener  <rguenther@suse.de>
27269         PR middle-end/79721
27270         * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
27271         interpolating formula in wrapping arithmetic.
27272         (chrec_apply): Convert chrec_evaluate return value to wanted type.
27274 2017-03-01  Jakub Jelinek  <jakub@redhat.com>
27276         PR tree-optimization/79734
27277         * tree-vect-generic.c (expand_vector_condition): Optimize
27278         AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
27279         Handle VEC_COND_EXPR where comparison has different inner width from
27280         type's inner width.
27282 2017-02-28  Sandra Loosemore  <sandra@codesourcery.com>
27284         * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
27285         markup, and similar issues.  Remove @opindex entries for things
27286         that aren't options.  Add missing -mmpy-option entries.
27288 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
27290         PR tree-optimization/79737
27291         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
27292         a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
27293         tmpbuf[byte_size - 1].  Call natice_encode_expr with byte_size - 1
27294         instead of byte_size.  Formatting fix.
27295         (shift_bytes_in_array_right): Formatting fix.
27297 2017-02-28  Eric Botcazou  <ebotcazou@adacore.com>
27299         PR target/79749
27300         * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
27301         condition on optimize for the leaf function test.
27303 2017-02-28  Martin Liska  <mliska@suse.cz>
27305         PR lto/79625
27306         * read-rtl-function.c (function_reader::handle_unknown_directive):
27307         Bail out when one uses -flto.
27309 2017-02-28  Martin Liska  <mliska@suse.cz>
27311         * common.opt: Replace space with tabular for options of <number>
27312         type.
27313         * config/i386/i386.opt: Show <number> value for
27314         -mlarge-data-threshold.
27315         * opts.c (print_filtered_help): Do not display number in hexadecimal
27316         format.
27318 2017-02-28  Martin Liska  <mliska@suse.cz>
27320         * common.opt: Fix --help=option -Q for options which are of
27321         an enum type.
27323 2017-02-28  Uros Bizjak  <ubizjak@gmail.com>
27325         * config/i386/i386.c (print_reg): Error out for values
27326         of 8-bit size in invalid integer register.
27328 2017-02-28  Martin Sebor  <msebor@redhat.com>
27330         PR tree-optimization/79691
27331         * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
27333 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
27335         PR target/79729
27336         * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
27337         gcc_unreachable with output_operand_lossage.
27339 2017-02-28  Richard Biener  <rguenther@suse.de>
27341         PR tree-optimization/79740
27342         * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
27343         inserts.
27344         (visit_nary_op): Insert the nary into the hashtable if we
27345         pattern-matched sth.
27346         * tree-ssa-pre.c (eliminate_insert): Robustify.
27348 2017-02-28  Richard Biener  <rguenther@suse.de>
27350         PR middle-end/79731
27351         * fold-const.c (decode_field_reference): Reject out-of-bound
27352         accesses.
27354 2017-02-28  Jakub Jelinek  <jakub@redhat.com>
27356         * config/i386/i386.c: Include intl.h.
27357         (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
27358         instead of just cond ? "..." : "...".
27359         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
27360         * coverage.c (read_counts_file): Likewise.
27361         * omp-offload.c: Include intl.h.
27362         (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
27363         of just cond ? "..." : "...".
27364         * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
27365         of just cond ? "..." : "...".
27367 2017-02-28  Richard Earnshaw  <rearnsha@arm.com>
27369         PR target/79742
27370         * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
27371         entry, if present.
27372         * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
27373         'tune for' CPU name.
27374         * config/arm/arm-cpu-data.h: Regenerated.
27376 2017-02-28  Richard Biener  <rguenther@suse.de>
27378         PR tree-optimization/79732
27379         * tree-inline.c (expand_call_inline): Do not shadow var.
27381 2017-02-28  Richard Biener  <rguenther@suse.de>
27383         PR tree-optimization/79723
27384         * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
27385         address-space properly.
27387 2017-02-28  Thomas Schwinge  <thomas@codesourcery.com>
27389         * doc/optinfo.texi (Optimization groups): Fix option used for
27390         OPTGROUP_ALL.
27391         * doc/invoke.texi (-fopt-info): Document "omp".
27392         * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
27393         (OPTGROUP_ALL): Add OPTGROUP_OMP.
27394         * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
27395         * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
27396         * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
27398         * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP.  Adjust
27399         all users.
27400         * dumpfile.c (optgroup_options): Instead of "openmp", associate
27401         OPTGROUP_OMP with "omp".
27403 2017-02-27  Pat Haugen  <pthaugen@us.ibm.com>
27405         PR target/79544
27406         * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
27407         for arithmetic shift of unsigned V2DI.
27409 2017-02-27  Claudiu Zissulescu  <claziss@synopsys.com>
27411         * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
27412         arc/linux.h headers.
27413         * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
27414         (LINK_SPEC): Likewise.
27415         (ARC_TLS_EXTRA_START_SPEC): Likewise.
27416         (EXTRA_SPECS): Likewise.
27417         (STARTFILE_SPEC): Likewise.
27418         (ENDFILE_SPEC): Likewise.
27419         (LIB_SPEC): Likewise.
27420         (TARGET_SDATA_DEFAULT): Likewise.
27421         (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
27422         (MULTILIB_DEFAULTS): Likewise.
27423         (DWARF2_UNWIND_INFO): Likewise.
27424         * config/arc/big.h: New file.
27425         * config/arc/elf.h: Likewise.
27426         * config/arc/linux.h: Likewise.
27427         * config/arc/t-uClibc: Remove.
27429 2017-02-27  Bin Cheng  <bin.cheng@arm.com>
27431         PR tree-optimization/77536
27432         * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
27433         (tree_transform_and_unroll_loop): Use above function to compute the
27434         estimated niter of unrolled loop and use it when scaling profile.
27435         Also use count info rather than frequency if it's non-zero.
27436         * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
27437         * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
27438         (vect_transform_loop): Call above function.
27440 2017-02-27  Richard Biener  <rguenther@suse.de>
27442         PR tree-optimization/45397
27443         * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
27444         * tree-ssa-sccvn.c (valueized_wider_op): New helper.
27445         (visit_nary_op): Add pattern matching for CSEing sign-changed
27446         or truncated operations with wider ones.
27448 2017-02-27  Richard Biener  <rguenther@suse.de>
27450         PR tree-optimization/79690
27451         * tree-vect-stmts.c (vectorizable_store): Use vector type
27452         built from the DR with address-space.
27454 2017-02-26  Gerald Pfeifer  <gerald@pfeifer.com>
27456         * doc/invoke.texi (Optimize Options): Refine the description
27457         of asan-use-after-return.
27459 2017-02-25  Alan Modra  <amodra@gmail.com>
27461         PR rtl-optimization/79584
27462         * lra-constraints.c (base_to_reg): Reload ad->base, the entire
27463         base, not ad->base_term, the reg within base.  Remove assertion
27464         that ad->base == ad->base_term.  Replace gen_int_mode using
27465         bogus mode with const0_rtx.
27467 2017-02-25  Jakub Jelinek  <jakub@redhat.com>
27469         PR middle-end/79396
27470         * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
27471         FMA_EXPR like tcc_binary or tcc_unary.
27473         * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
27475         PR debug/77589
27476         * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
27477         bitfield.
27478         (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
27479         (output_loc_operands): Handle DW_OP_call_ref and
27480         DW_OP_GNU_variable_value.
27481         (struct variable_value_struct): New type.
27482         (struct variable_value_hasher): Likewise.
27483         (variable_value_hash): New variable.
27484         (string_types): Remove.
27485         (copy_loc_descr): New function.
27486         (add_loc_descr_to_each): Clarify comment.  Use copy_loc_descr.
27487         (prepend_loc_descr_to_each): New function.
27488         (add_loc_list): Fix comment typo.  Use prepend_loc_descr_to_each
27489         instead of add_loc_descr_to_each if the first argument is single
27490         location list and the second has multiple.
27491         (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
27492         (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
27493         when looking for variable value which doesn't have other location info.
27494         (loc_list_from_tree): Formatting fix.
27495         (gen_array_type_die): Simplify DW_AT_string_length handling.
27496         (adjust_string_types): Remove.
27497         (gen_subprogram_die): Don't call adjust_string_types nor test/set
27498         string_types.  Call resolve_variable_values.
27499         (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
27500         (resolve_addr_in_expr): Likewise.  Add A argument.
27501         (copy_deref_exprloc): Remove deref argument.  Adjust for the
27502         original expression being DW_OP_GNU_variable_value with optionally
27503         DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
27504         optionally after it.
27505         (optimize_string_length): Rework for DW_OP_GNU_variable_value.
27506         (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
27507         callers.  Set remove_AT_byte_size if removing DW_AT_string_length.
27508         (variable_value_hasher::hash, variable_value_hasher::equal): New
27509         methods.
27510         (resolve_variable_value_in_expr, resolve_variable_value,
27511         resolve_variable_values, note_variable_value_in_expr,
27512         note_variable_value): New functions.
27513         (dwarf2out_early_finish): Call note_variable_value on all toplevel
27514         DIEs.
27516 2017-02-24  Jakub Jelinek  <jakub@redhat.com>
27518         PR c/79677
27519         * opts.h (handle_generated_option): Add GENERATED_P argument.
27520         * opts-common.c (handle_option): Adjust function comment.
27521         (handle_generated_option): Add GENERATED_P argument, pass it to
27522         handle_option.
27523         (control_warning_option): Pass false to handle_generated_option
27524         GENERATED_P.
27525         * opts.c (maybe_default_option): Pass true to handle_generated_option
27526         GENERATED_P.
27527         * optc-gen.awk: Likewise.
27529 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
27531         * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
27532         a REG, look at the REG it is a SUBREG of.
27533         (splitter for cmpeqsi_t): Ditto.
27535 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
27537         * config/pa/pa.c (pa_combine_instructions): Do not share RTL.  Make
27538         the special USEs with the pattern of the insn, not the insn itself.
27540 2017-02-24  Matthew Fortune  <matthew.fortune@imgtec.com>
27542         PR target/79473
27543         * doc/invoke.texi: Document -mload-store-pairs.
27545 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
27546             Sandra Loosemore  <sandra@codesourcery.com>
27548         * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
27549         argument isn't a CONST_INT.
27550         (nios2_alternate_compare_const): Assert op is a CONST_INT.
27551         (nios2_valid_compare_const_p): Assert op is a CONST_INT.
27552         (nios2_validate_compare): Bypass alternate compare logic if *op2
27553         is not a CONST_INT.
27554         (ldstwm_operation_p): Return false if first_base is not a REG or
27555         if first_offset is not a CONST_INT.
27557 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
27559         * config/cris/cris.md: Use correct operand in a define_peephole2.
27561 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
27563         * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
27565 2017-02-24  Segher Boessenkool  <segher@kernel.crashing.org>
27567         * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
27568         this_insn if it is an INSN or JUMP_INSN.
27569         (force_offsettable): Look at base, not at addr.
27570         * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
27571         on things that aren't necessarily CONST_INTs.
27573 2017-02-24  Uros Bizjak  <ubizjak@gmail.com>
27575         * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
27576         -mfpmath=sse is the default also for x86-32 targets with SSE2
27577         instruction set when @option{-ffast-math} is enabled
27579 2017-02-24  Jeff Law  <law@redhat.com>
27581         PR rtl-optimizatoin/79286
27582         * ira.c (update_equiv_regs): Drop may_trap_p exception to
27583         dominance test.
27585 2017-02-24  Richard Biener  <rguenther@suse.de>
27587         PR tree-optimization/79389
27588         * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
27589         debug insns.
27591 2017-02-24  Aldy Hernandez  <aldyh@redhat.com>
27593         * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
27594         function comment to reflect reality.
27595         (loop_exits_before_overflow): Fix typo in function description.
27597 2017-02-24  Richard Biener  <rguenther@suse.de>
27599         PR tree-optimization/79389
27600         * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
27601         properly that a threading opportunity exists.  Detect conditional
27602         copy/constant propagation opportunities.
27604 2017-02-23  Eric Botcazou  <ebotcazou@adacore.com>
27606         * config/visium/visium.md (type): Add trap.
27607         (b): New mode attribute.
27608         (*btst): Rename into...
27609         (*btst<mode>): ...this and adjust.
27610         (*cbranchsi4_btst_insn): Rename into...
27611         (*cbranch<mode>4_btst_insn): ...this and adjust.
27612         (trap): New define_insn.
27614 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
27616         PR tree-optimization/79389
27617         * ifcvt.c (struct noce_if_info): Add rev_cond field.
27618         (noce_reversed_cond_code): New function.
27619         (noce_emit_store_flag): Use rev_cond if non-NULL instead of
27620         reversed_comparison_code.  Formatting fix.
27621         (noce_try_store_flag): Test rev_cond != NULL in addition to
27622         reversed_comparison_code.
27623         (noce_try_store_flag_constants): Likewise.
27624         (noce_try_store_flag_mask): Likewise.
27625         (noce_try_addcc): Use rev_cond if non-NULL instead of
27626         reversed_comparison_code.
27627         (noce_try_cmove_arith): Likewise.  Formatting fixes.
27628         (noce_try_minmax, noce_try_abs): Clear rev_cond.
27629         (noce_find_if_block): Initialize rev_cond.
27630         (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
27631         instead of false as last argument never attempt to reverse it
27632         afterwards.
27634 2017-02-23  Bin Cheng  <bin.cheng@arm.com>
27636         PR tree-optimization/79663
27637         * tree-predcom.c (combine_chains): Process refs in reverse order
27638         only for ZERO length chains, and add explaining comment.
27640 2017-02-23  Jeff Law  <law@redhat.com>
27642         PR tree-optimization/79578
27643         * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
27644         in call to operand_equal_p.
27646 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
27648         PR target/71017
27649         * config/i386/cpuid.h: Fix another undefined behavior.
27651 2017-02-23  Richard Biener  <rguenther@suse.de>
27653         PR tree-optimization/79683
27654         * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
27655         vector types for data-refs.
27657 2017-02-23  Martin Liska  <mliska@suse.cz>
27659         * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
27661 2017-02-23  Jakub Jelinek  <jakub@redhat.com>
27663         PR middle-end/79665
27664         * internal-fn.c (get_range_pos_neg): Moved to ...
27665         * tree.c (get_range_pos_neg): ... here.  No longer static.
27666         * tree.h (get_range_pos_neg): New prototype.
27667         * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
27668         are known to be in between 0 and signed maximum inclusive, try to
27669         expand both unsigned and signed divmod and use the cheaper one from
27670         those.
27672 2017-02-22  Jeff Law  <law@redhat.com>
27674         PR tree-optimization/79578
27675         * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
27676         to compare base operands.
27678 2017-02-22  Segher Boessenkool  <segher@kernel.crashing.org>
27680         PR target/79211
27681         * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
27682         gpc_reg_operand instead of fpr_reg_operand.
27684 2017-02-22  Sameera Deshpande  <sameera.deshpande@imgtec.com>
27686         * config/mips/mips.c (mips_return_in_memory): Force FP
27687         vector types to be returned in memory for o32 ABI.
27689 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
27691         * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
27692         instead of DW_TAG_member for static data member declarations and don't
27693         set no_linkage_name for static inline data members.
27694         (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
27695         to DW_TAG_member.
27697 2017-02-22  Martin Liska  <mliska@suse.cz>
27699         * doc/invoke.texi: Replace inequality signs with square brackets
27700         for -Wnormalized.
27702 2017-02-22  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27704         PR tree-optimization/68644
27705         * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
27707 2017-02-22  Matthew Fortune  <matthew.fortune@imgtec.com>
27709         PR target/78660
27710         * lra-constraints.c (simplify_operand_subreg): Handle
27711         WORD_REGISTER_OPERATIONS targets.
27713 2017-02-22  Jakub Jelinek  <jakub@redhat.com>
27715         PR target/70465
27716         * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
27717         and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
27718         elimination by swapping fld*.
27720 2017-02-22  Richard Biener  <rguenther@suse.de>
27722         PR tree-optimization/79673
27723         * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
27724         convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
27725         irrelevant address-space qualifiers and avoiding a
27726         ADDR_SPACE_CONVERT_EXPR from fold_convert.
27728 2017-02-22  Richard Biener  <rguenther@suse.de>
27730         PR tree-optimization/79666
27731         * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
27732         to not symbolically negate if that may introduce undefined
27733         overflow.
27735 2017-02-22  Martin Liska  <mliska@suse.cz>
27737         PR lto/79587
27738         * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
27739         * data-streamer-out.c (streamer_write_gcov_count_stream):
27740         Likewise.
27741         * value-prof.c (stream_out_histogram_value): Make assert more
27742         precise based on type of counter.
27744 2017-02-21  Uros Bizjak  <ubizjak@gmail.com>
27746         PR target/79593
27747         * config/i386/i386.md (standard_x87sse_constant_load splitter):
27748         Use nonimmediate_operand instead of memory_operand for operand 1.
27749         (float-extend standard_x87sse_constant_load splitter): Ditto.
27751 2017-02-21  Jeff Law  <law@redhat.com>
27753         PR tree-optimization/79621
27754         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
27755         blocks with edges to themselves.
27757 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
27759         PR target/79633
27760         * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
27761         is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
27762         Use gimple_call_builtin_p.
27764         PR target/79570
27765         * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
27766         on temporarily removed DEBUG_INSNs.
27768         PR tree-optimization/79649
27769         * tree-loop-distribution.c (classify_partition): Give up on
27770         non-generic address space loads/stores.
27772 2017-02-21  Aldy Hernandez  <aldyh@redhat.com>
27774         * doc/loop.texi (Loop manipulation): Remove nonexistent
27775         tree_ssa_loop_version from the documentation.
27776         * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
27778 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
27780         PR target/79494
27781         * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
27782         make_reg_eh_region_note_nothrow_nononlocal on call_insn.
27783         * config/rs6000/rs6000.c: Include except.h.
27784         (rs6000_expand_split_stack_prologue): Call
27785         make_reg_eh_region_note_nothrow_nononlocal on the call insn.
27787 2017-02-21  Martin Jambor  <mjambor@suse.cz>
27789         PR lto/79579
27790         * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
27791         have been analyzed.
27793 2017-02-21  Martin Jambor  <mjambor@suse.cz>
27795         * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
27796         for backward compatibility only.
27797         * doc/invoke.texi (Option Summary): Remove all references to
27798         -fipa-cp-alignment.
27800 2017-02-21  Matthew Fortune  <matthew.fortune@imgtec.com>
27802         PR target/78660
27803         Revert:
27804         2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
27806         * lra-constraints.c (curr_insn_transform): Handle
27807         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
27809 2017-02-21  Martin Liska  <mliska@suse.cz>
27811         * config/i386/i386.opt: Replace -masm-dialect with -masm.
27813 2017-02-21  Thomas Schwinge  <thomas@codesourcery.com>
27815         PR translation/79638
27816         * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
27818 2017-02-21  Eric Botcazou  <ebotcazou@adacore.com>
27820         PR ada/67205
27821         * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
27822         (arm_function_ok_for_sibcall): Return false for an indirect call by
27823         descriptor if all the argument registers are used.
27824         (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
27825         alignment of the function.
27827 2017-02-21  Jakub Jelinek  <jakub@redhat.com>
27829         PR tree-optimization/61441
27830         * simplify-rtx.c (simplify_const_unary_operation): For
27831         -fsignaling-nans and sNaN operand, return NULL_RTX rather than
27832         the sNaN unmodified.
27834 2017-02-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
27836         * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
27837         (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
27838         instead of SYSTEM_HEADER_DIR.
27840 2017-02-20  Gerald Pfeifer  <gerald@pfeifer.com>
27841             Martin LiÅ¡ka  <mliska@suse.cz>
27843         * doc/invoke.texi (use-after-scope-direct-emission-threshold):
27844         Fix typos and grammar, use active voice, and clarify.
27846 2017-02-20  Marek Polacek  <polacek@redhat.com>
27848         PR middle-end/79537
27849         * gimplify.c (gimplify_expr): Handle unused *&&L;.
27851         PR sanitizer/79558
27852         * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
27854 2017-02-20  Jakub Jelinek  <jakub@redhat.com>
27856         PR target/79568
27857         * config/i386/i386.c (ix86_expand_builtin): Handle
27858         OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
27859         ix86_builtins_isa[fcode].isa as a requirement of those
27860         flags and any other flag in the bitmask.
27861         (ix86_init_mmx_sse_builtins): Use 0 instead of
27862         ~OPTION_MASK_ISA_64BIT as mask.
27863         * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
27864         __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
27865         __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
27866         __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
27868 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
27870         PR target/78012
27871         * lra-constraints.c (split_reg): Check requested split mode
27872         is supported by the register.
27874 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
27876         * lra-constraints.c (simplify_operand_subreg): Remove early
27877         return false.
27879 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
27881         PR target/78660
27882         * lra-constraints.c (curr_insn_transform): Tighten condition
27883         for converting SUBREG reloads from OP_OUT to OP_INOUT.
27885 2017-02-20  Matthew Fortune  <matthew.fortune@imgtec.com>
27887         PR target/78660
27888         * lra-constraints.c (curr_insn_transform): Handle
27889         WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
27891 2017-02-19  Uros Bizjak  <ubizjak@gmail.com>
27893         Revert:
27894         2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
27896         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
27898 2017-02-19  Jonathan Wakely  <jwakely@redhat.com>
27900         PR c++/69523
27901         * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
27902         description.
27904 2017-02-19  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
27906         * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
27907         for FMA_EXPR.
27909 2017-02-18  Jakub Jelinek  <jakub@redhat.com>
27911         * final.c (last_columnnum, override_columnnum): New variables.
27912         (final_start_function): Set last_columnnum, pass it to begin_prologue
27913         hook and pass 0 to dwarf2out_begin_prologue.
27914         (final_scan_insn): Update override_columnnum.  Pass last_columnnum
27915         to source_line debug hook.
27916         (notice_source_line): Compute last_columnnum and for debug_column_info
27917         return true on column changes.
27918         * debug.h (struct gcc_debug_hooks): Add column argument to
27919         source_line and begin_prologue hooks.
27920         (debug_nothing_int_charstar_int_bool): Remove prototype.
27921         (debug_nothing_int_int_charstar,
27922         debug_nothing_int_int_charstar_int_bool): New prototypes.
27923         (dwarf2out_begin_prologue): Add column argument.
27924         * debug.c (do_nothing_debug_hooks): Adjust source_line and
27925         begin_prologue hooks.
27926         (debug_nothing_int_charstar_int_bool): Remove.
27927         (debug_nothing_int_int_charstar,
27928         debug_nothing_int_int_charstar_int_bool): New functions.
27929         * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
27930         through to dwarf2out_source_line.
27931         (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
27932         (dwarf2out_source_line): Add column argument, emit it if requested.
27933         * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
27934         arguments.
27935         * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
27936         * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
27937         * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
27938         through to dwarf2out_begin_prologue.
27939         (vmsdbgout_source_line): Add column argument, pass it through to
27940         dwarf2out_source_line.
27941         * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
27942         dbxout_source_line caller.
27943         (dbxout_source_line): Add column argument.
27945         * common.opt (gno-column-info, gcolumn-info): New options.
27946         * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
27947         (check_die): Also test for multiple DW_AT_decl_column attributes.
27948         (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
27949         DW_AT_decl_column if requested.
27950         (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
27951         if requested.
27952         (gen_variable_die): Likewise.
27953         (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
27954         * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
27956         PR target/79569
27957         * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
27958         * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
27959         (ix86_handle_option): Handle OPT_m3dnowa.
27960         * doc/invoke.texi (-m3dnowa): Document.
27961         * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
27962         -m3dnowa instead of -m3dnow -march=athlon.
27964         PR target/79559
27965         * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
27966         instead of gcc_assert for K, r and R code checks.  Formatting fixes.
27968 2017-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
27970         PR target/79261
27971         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
27972         support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
27973         * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
27974         generator for vsx_xxpermdi_<mode>_be.
27975         * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
27976         force big-endian semantics.
27977         (vsx_xxpermdi_<mode>_be): New define_expand with same
27978         implementation as previous version of vsx_xxpermdi_<mode>.
27980 2017-02-17  Jakub Jelinek  <jakub@redhat.com>
27982         PR tree-optimization/79327
27983         * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
27984         variable, its initialization and use.
27986 2017-02-17  Julia Koval  <julia.koval@intel.com>
27988         * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
27989         (OPTION_MASK_ISA_PKU_UNSET): New.
27990         (ix86_handle_option): Handle -mrdpid.
27991         * config/i386/cpuid.h (bit_RDPID): New.
27992         * config/i386/driver-i386.c (host_detect_local_cpu):
27993         Detect RDPID feature.
27994         * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
27995         * config/i386/i386-c.c (ix86_target_macros_internal):
27996         Handle RDPID flag.
27997         * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
27998         (ix86_valid_target_attribute_inner_p): Add "rdpid".
27999         (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
28000         * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
28001         * config/i386/i386.md (define_insn "rdpid"): New.
28002         * config/i386/i386.opt Add -mrdpid.
28003         * config/i386/immintrin.h (_rdpid_u32): New.
28005 2017-02-17  Vladimir Makarov  <vmakarov@redhat.com>
28007         PR rtl-optimization/79541
28008         * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
28009         instead of transforming it into USE.
28011 2017-02-17  Segher Boessenkool  <segher@kernel.crashing.org>
28013         * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
28014         If HONOR_SNANS (SFmode) force the input to a register.
28015         (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
28016         (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
28017         an frsp or similar insn.
28019 2017-02-17  Martin Liska  <mliska@suse.cz>
28021         PR rtl-optimization/79577
28022         * params.def (selsched-max-sched-times): Increase minimum to 1.
28024 2017-02-17  Martin Liska  <mliska@suse.cz>
28026         PR rtl-optimization/79574
28027         * gcse.c (want_to_gcse_p): Prevent integer overflow.
28029 2017-02-17  Martin Liska  <mliska@suse.cz>
28031         PR tree-optimization/79529
28032         * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
28033         ssa_defined_default_def_p to handle cases which are implicitly
28034         defined.
28035         * tree-ssa.c (ssa_defined_default_def_p): New function.
28036         (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
28037         which are implicitly defined.
28038         * tree-ssa.h (ssa_defined_default_def_p): Declare.
28040 2017-02-17  Richard Biener  <rguenther@suse.de>
28042         PR middle-end/79576
28043         * params.def (max-ssa-name-query-depth): Limit to 10.
28045 2017-02-17  Richard Biener  <rguenther@suse.de>
28047         PR tree-optimization/79552
28048         * tree-ssa-structalias.c (visit_loadstore): Properly verify
28049         default defs.
28051 2017-02-17  Richard Biener  <rguenther@suse.de>
28053         PR bootstrap/79567
28054         * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
28056 2017-02-17  Marek Polacek  <polacek@redhat.com>
28058         PR middle-end/79536
28059         * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
28060         (fold_negate_expr): New wrapper.
28062 2017-02-16  Sandra Loosemore  <sandra@codesourcery.com>
28064         * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]: 
28065         Correct terminology and de-emphasize pre-standard behavior.
28067 2017-02-16  Alan Modra  <amodra@gmail.com>
28069         PR rtl-optimization/79286
28070         * ira.c (def_dominates_uses): New function.
28071         (update_equiv_regs): Don't create an equivalence for insns that
28072         may trap where the register def does not dominate the use.
28074 2017-02-16  Vladimir Makarov  <vmakarov@redhat.com>
28076         PR rtl-optimization/78127
28077         * lra.c (lra): Call lra_eliminate before finish the loop after
28078         lra_constraint.
28080 2017-02-16  Richard Biener  <rguenther@suse.de>
28082         * graphite.h: Do not include isl/isl_val_gmp.h, instead include
28083         isl/isl_val.h.
28084         * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
28085         (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
28086         * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
28087         (isl_val_int_from_wi): New function.
28088         (extract_affine_gmp): Rename to ...
28089         (extract_affine_wi): ... this, take a widest_int.
28090         (extract_affine_int): Just wrap extract_affine_wi.
28091         (add_param_constraints): Use isl_val_int_from_wi.
28092         (add_loop_constraints): Likewise, and extract_affine_wi.
28094 2017-02-15  Jeff Law  <law@redhat.com>
28096         PR middle-end/79521
28097         * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
28098         ira_init_register_move_cost_if_necessary.
28100 2017-02-15  Martin Sebor  <msebor@redhat.com>
28102         PR middle-end/32003
28103         * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
28104         removed in a prior commit.
28106 2017-02-15  Bin Cheng  <bin.cheng@arm.com>
28108         PR tree-optimization/79347
28109         * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
28110         counters during peeling.
28112 2017-02-15  Thomas Schwinge  <thomas@codesourcery.com>
28114         * Makefile.in (site.exp): Remove "set ISLVER".
28116 2017-02-15  Jakub Jelinek  <jakub@redhat.com>
28118         PR target/79487
28119         * real.c (real_from_integer): Call real_convert even for decimal.
28121 2017-02-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28123         PR target/79421
28124         * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
28126 2017-02-14  Andrew Pinski  <apinski@cavium.com>
28128         * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
28129         cores and change the partno/implementer to be correct.
28130         (thunderx2t99p1): New core which replaces thunderx2t99 and still has
28131         the 'B" as the implementer.
28132         * config/aarch64/aarch64-tune.md: Regenerate.
28134 2017-02-14  Carl Love  <cel@us.ibm.com>
28136         * config/rs6000/rs6000.c: Add case statement entry to make the
28137         xvcvuxdsp built-in argument unsigned.
28138         * config/rs6000/vsx.md: Fix the source and return operand types so they
28139         match the instruction definitions from the ISA document.  Fix typo
28140         in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
28141         statement.
28143 2017-02-14  Vladimir Makarov  <vmakarov@redhat.com>
28145         PR target/79282
28146         * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
28147         member early_clobber_alts.
28148         * lra-lives.c (reg_early_clobber_p): New.
28149         (process_bb_lives): Use it.
28150         * lra.c (new_insn_reg): New arg early_clobber_alts.  Use it.
28151         (debug_operand_data): Initialize early_clobber_alts.
28152         (setup_operand_alternative): Set up early_clobber_alts.
28153         (collect_non_operand_hard_regs): Ditto.  Pass early clobber
28154         alternatives to new_insn_reg.
28155         (add_regs_to_insn_regno_info): Add arg early_clobber_alts.  Use
28156         it.
28157         (lra_update_insn_regno_info): Pass the new arg.
28159 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
28161         PR middle-end/79505
28162         * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
28163         (new_oacc_loop_raw): Don't clear already cleared fields.
28165         PR target/79481
28166         * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
28167         _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
28168         _mm512_prefetch_i64gather_ps): New inline functions and macros.
28170 2017-02-14  Uros Bizjak  <ubizjak@gmail.com>
28172         PR target/79495
28173         * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
28175 2017-02-14  H.J. Lu  <hongjiu.lu@intel.com>
28177         PR target/79498
28178         * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
28179         the extra instruction to the right place to store 128-bit constant
28180         when needed.
28182 2017-02-14  Martin Sebor  <msebor@redhat.com>
28184         PR middle-end/79448
28185         * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
28186           warning for strings of unknown length.
28188 2017-02-13  Segher Boessenkool  <segher@kernel.crashing.org>
28190         * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
28192 2017-02-14  Jeff Law  <law@redhat.com>
28194         PR target/79404
28195         * ira-costs.c (scan_one_insn): Initialize register move costs
28196         for pseudos seen in USE/CLOBBER insns.
28198         PR tree-optimization/79095
28199         * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
28200         if the numerator has the range ~[0,0] make the resultant range ~[0,0].
28201         (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
28202         if the operands are known to be not equal, then the resulting range
28203         is ~[0,0].
28204         (intersect_ranges): If the new range is ~[0,0] and the old range is
28205         wide, then prefer ~[0,0].
28206         * tree-vrp.c (overflow_comparison_p_1): New function.
28207         (overflow_comparison_p): New function.
28208         * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
28209         if NAME is used in an overflow test.
28210         (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
28211         overflow check that can be expressed as an equality test, then adjust
28212         ops to be that equality test.
28214 2017-02-14  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28216         * config/s390/s390-builtin-types.def: Remove flags argument.
28217         * config/s390/s390.c (s390_init_builtins): Likewise.
28219 2017-02-14  Martin Liska  <mliska@suse.cz>
28221         * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
28222         vector.  Fix trailing white spaces.
28224 2017-02-14  James Greenhalgh  <james.greenhalgh@arm.com>
28226         * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
28227         HFmode.
28229 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28231         PR rtl-optimization/68664
28232         * config/arm/arm.c (arm_sched_can_speculate_insn):
28233         New function.  Declare prototype.
28234         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
28236 2017-02-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28238         PR rtl-optimization/68664
28239         * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
28240         New function.
28241         (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
28243 2017-02-14  Amit Pawar  <amit.pawar@amd.com>
28245         * config/i386/i386.c (znver1_cost): Fix the alignment for function and
28246         max skip bytes for function, loop and jump.
28248 2017-02-14  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
28250         * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
28251         ABS_EXPR for gimple dump.
28253 2017-02-14  Jakub Jelinek  <jakub@redhat.com>
28255         PR target/79462
28256         * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
28258         PR tree-optimization/79408
28259         * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
28260         case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
28261         (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28262         also if rhs1 is INTEGER_CST.
28264 2017-02-14  Richard Biener  <rguenther@suse.de>
28266         PR middle-end/79432
28267         * tree-into-ssa.c (insert_phi_nodes): When the function can
28268         have abnormal edges rewrite SSA names with broken use-def
28269         dominance out of SSA and register them for PHI insertion.
28271 2017-02-13  Martin Sebor  <msebor@redhat.com>
28273         PR middle-end/79496
28274         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
28275         clearing info.nowrite flag when snprintf size argument is a range.
28277 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
28279         * cprop.c (cprop_jump): Add missing space in string literal.
28280         * tree-ssa-structalias.c (rewrite_constraints): Likewise.
28281         (get_constraint_for_component_ref): Likewise.
28282         * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
28283         * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
28284         * lra-constraints.c (process_alt_operands): Likewise.
28285         * ipa-inline.c (inline_small_functions): Likewise.
28286         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
28287         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
28288         * trans-mem.c (diagnose_tm_1_op): Likewise.
28289         * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
28290         (grid_parallel_clauses_gridifiable): Likewise.
28292         * config/nvptx/mkoffload.c (process): Add space in between
28293         , and %d.
28295         * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
28296         "MOD4_SSE_REGS" and "ALL_REGS".
28298         * spellcheck.c (test_data): Add , in between "foo" and "food".
28300 2017-02-13  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
28302         PR target/79449
28303         * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
28304         boundary crossing check and subsequent code generation agree.
28306 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28308         * config/aarch64/aarch64.c (has_memory_op): Delete.
28309         (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
28310         has_memory_op.
28312 2017-02-13  Jakub Jelinek  <jakub@redhat.com>
28314         PR rtl-optimization/79388
28315         PR rtl-optimization/79450
28316         * combine.c (distribute_notes): When removing TEM_INSN for which
28317         corresponding dest has last value recorded, invalidate that last
28318         value.
28320 2017-02-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28322         * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
28323         of explicit '@'.  Add missing assembly comment marker on branch costs
28324         printout.
28326 2017-02-13  Nathan Sidwell  <nathan@acm.org>
28328         * gengtype-lex.l (<in_struct>): Add '/'.
28330 2017-02-13  Martin Liska  <mliska@suse.cz>
28332         PR c/79471
28333         * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
28335 2017-02-13  Richard Biener  <rguenther@suse.de>
28337         * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
28338         Remove.
28339         * configure: Re-generate.
28340         * config.in: Likewise.
28341         * graphite-dependences.c: Simplify as if
28342         HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
28343         * graphite-isl-ast-to-gimple.c: Likewise.
28344         * graphite-optimize-isl.c: Likewise.
28345         * graphite-poly.c: Likewise.
28346         * graphite-sese-to-poly.c: Likewise.
28347         * graphite.h: Likewise.
28348         * toplev.c: Include isl/version.h and use isl_version () for
28349         printing the ISL version.
28350         * doc/install.texi: Update ISL requirement.
28352 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
28354         * doc/standards.texi (Standards): Update reference to
28355         Objective-C 2.0.
28357 2017-02-12  Gerald Pfeifer  <gerald@pfeifer.com>
28359         * doc/extend.texi (Named Address Spaces): sourceware.org now
28360         defaults to https.
28361         * doc/install.texi (Binaries): Ditto.
28362         (Specific): Ditto.
28364 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
28366         * doc/cpp.texi: Replace "stringify"/"stringification" with C
28367         standard terminology "stringize"/"stringizing" throughout.
28368         * doc/cppinternals.texi: Likewise.
28370 2017-02-11  Sandra Loosemore  <sandra@codesourcery.com>
28372         * doc/extend.texi: Fix some spelling mistakes and typos.
28373         * doc/invoke.texi: Likewise.
28375 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
28377         PR ipa/79224
28378         * params.def (inline-min-speedup) Change from 10 to 8.
28380 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
28382         * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
28383         4.5.
28385 2017-02-11  Jan Hubicka  <hubicka@ucw.cz>
28387         PR ipa/79224
28388         * ipa-inline-analysis.c (get_minimal_bb): New function.
28389         (record_modified): Use it.
28390         (remap_edge_change_prob): Handle also ancestor functions.
28392 2017-02-11  Gerald Pfeifer  <gerald@pfeifer.com>
28394         * doc/contrib.texi (Contributors): Remove broken link into
28395         the Mauve CVS repository.
28397 2017-02-11  Jakub Jelinek  <jakub@redhat.com>
28399         PR middle-end/79454
28400         * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
28401         result computation whenever lhs doesn't have vector mode, not
28402         just when it has BLKmode.
28404 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
28406         * doc/makefile.texi (profiledbootstrap): Refer to the
28407         installation instructions only in textual form.
28409 2017-02-10  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
28411         PR target/79295
28412         * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
28414 2017-02-10  Gerald Pfeifer  <gerald@pfeifer.com>
28416         * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
28417         (Specific): Update mingw-w64 reference.
28418         (Binaries): Ditto.
28419         (Specific): Remove broken link to Renesas RX processor.
28421 2017-02-10  Richard Biener  <rguenther@suse.de>
28423         * toplev.c (process_options): Do not mention obsolete graphite
28424         options when printing sorry message about missing graphite support.
28425         Mention -floop-nest-optimize.
28427 2017-02-10  Christophe Lyon  <christophe.lyon@linaro.org>
28429         * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
28430         (vtst_p16): Likewise.
28431         (vtstq_p8): Likewise.
28432         (vtstq_p16): Likewise.
28433         (vtst_p64): New.
28434         (vtstq_p64): Likewise.
28435         * config/arm/arm_neon.h (vgetq_lane_p64): New.
28436         (vset_lane_p64): New.
28437         (vsetq_lane_p64): New.
28439 2017-02-10  Jakub Jelinek  <jakub@redhat.com>
28441         PR tree-optimization/79411
28442         * tree-ssa-reassoc.c (is_reassociable_op): Return false if
28443         stmt operands are SSA_NAMEs used in abnormal phis.
28444         (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
28445         phis.
28447 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
28449         PR ipa/70795
28450         * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
28451         flag if needed.
28453 2017-02-09  Jan Hubicka  <hubicka@ucw.cz>
28455         * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
28457 2017-02-09  Jakub Jelinek  <jakub@redhat.com>
28459         * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
28460         to avoid warning.
28462         PR c/79413
28463         * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
28464         not arbitrary TREE_CONSTANT.
28466         PR c/79431
28467         * gimplify.c (gimplify_adjust_omp_clauses): Ignore
28468         "omp declare target link" attribute unless is_global_var.
28469         * omp-offload.c (find_link_var_op): Likewise.
28471 2017-02-09  Nathan Sidwell  <nathan@codesourcery.com>
28472             Chung-Lin Tang  <cltang@codesourcery.com>
28474         * gimplify.c (gimplify_scan_omp_clauses): No special handling for
28475         OMP_CLAUSE_TILE.
28476         (gimplify_adjust_omp_clauses): Don't delete TILE.
28477         (gimplify_omp_for): Deal with TILE.
28478         * internal-fn.c (expand_GOACC_TILE): New function.
28479         * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
28480         (GOACC_TILE): New.
28481         * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
28482         (expand_oacc_collapse_init): Add LOC paramter.  Initialize tile
28483         element fields.
28484         (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
28485         avoid DIV for outermost collapse var.
28486         (expand_oacc_for): Insert tile element loop as needed.  Adjust.
28487         Remove out of date comments, fix whitespace.
28488         * omp-general.c (omp_extract_for_data): Deal with tiling.
28489         * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
28490         adjust OLF_DIM_BASE value.
28491         (struct omp_for_data): Add tiling field.
28492         * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
28493         (lower_oacc_head_mark): Add OLF_TILE as appropriate.  Ensure 2 levels
28494         for auto loops.  Remove default auto determining, moved to
28495         oacc_loop_fixed_partitions.
28496         * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
28497         stmts, add e_mask field.
28498         (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
28499         (oacc_thread_numbers): Use oacc_dim_call.
28500         (oacc_xform_tile): New.
28501         (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
28502         (finish_oacc_loop): Adjust for ifns vector.
28503         (oacc_loop_discover_walk): Append loop abstraction sites to list,
28504         add case for GOACC_TILE fns.
28505         (oacc_loop_xform_loop): Delete.
28506         (oacc_loop_process): Iterate over call list directly, and add
28507         handling for GOACC_TILE fns.
28508         (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
28509         dump partitioning.
28510         (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
28511         vector partitioning to outer loops.  Assign 2 partitions to loops
28512         when available. Add TILE handling.
28513         (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
28514         (execite_oacc_device_lower): Process GOACC_TILE fns,
28515         ignore unknown specs.
28516         * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
28517         * tree.c (omp_clause_num_ops): Adjust TILE ops.
28518         * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
28520 2017-02-09  Gerald Pfeifer  <gerald@pfeifer.com>
28522         * configure.ac (ACX_BUGURL): Update.
28523         * configure: Regenerate.
28525 2017-02-09  Richard Biener  <rguenther@suse.de>
28527         PR tree-optimization/69823
28528         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
28529         Properly enumerate all BBs in the region.  Use auto_vec/auto_bitmap.
28531 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
28533         * config/arc/arc-c.def: Add __NPS400__ definition.
28534         * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
28535         (TARGET_NPS400): Define.
28537 2017-02-09  Andrew Burgess  <andrew.burgess@embecosm.com>
28539         * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
28540         file.
28541         (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
28542         pointer, arch_info.
28543         (arc_cpu_types): Fill the arch_info field with a pointer into the
28544         arc_arch_types table.
28545         (arc_selected_cpu): Declare.
28546         * config/arc/arc.c (arc_selected_cpu): Make global.
28547         (arc_selected_arch): Delete.
28548         (arc_base_cpu): Delete.
28549         (arc_override_options): Remove references to deleted variables,
28550         update access to arch information.
28551         (ARC_OPT): Update access to arch information.
28552         (ARC_OPTX): Likewise.
28553         * config/arc/arc.h (arc_base_cpu): Remove declaration.
28554         (TARGET_ARC600): Update access to arch information.
28555         (TARGET_ARC601): Likewise.
28556         (TARGET_ARC700): Likewise.
28557         (TARGET_EM): Likewise.
28558         (TARGET_HS): Likewise.
28559         * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
28560         information.
28562 2017-02-08  Pat Haugen  <pthaugen@us.ibm.com>
28564         PR target/78604
28565         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
28566         condition/operands for integer GE/LE/GEU/LEU operations.
28568 2017-02-08  Segher Boessenkool  <segher@kernel.crashing.org>
28570         PR translation/79397
28571         * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
28572         of AltiVec.
28574 2017-02-08  Martin Jambor  <mjambor@suse.cz>
28576         PR ipa/79375
28577         * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
28578         whether allocation happened.
28579         (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
28580         nothing was allocated.
28582 2017-02-08  Jakub Jelinek  <jakub@redhat.com>
28584         PR tree-optimization/79408
28585         * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
28586         constant, but SSA_NAME with a known integer range, use the minimum
28587         of that range instead of op1 to determine if modulo can be replaced
28588         with its first operand.
28590 2016-02-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
28592         * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
28594 2017-02-08  Richard Biener  <rguenther@suse.de>
28596         PR tree-optimization/71824
28597         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
28598         Check all loops contained in the merged region.
28600 2017-02-07  Andrew Pinski  <apinski@cavium.com>
28602         * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
28604 2017-02-07  Andrew Pinski  <apinski@cavium.com>
28606         * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
28607         (thunderxt88): Likewise.
28608         (thunderxt81): Disable LSE and change v8.1 to v8.
28609         (thunderxt83): Likewise.
28611 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
28612             Richard Biener  <rguenther@suse.de>
28614         PR middle-end/79399
28615         * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
28616         type from int to size_t.
28617         * ira-costs.c (struct_costs_size): Change type from int to size_t.
28619 2017-02-07  Jakub Jelinek  <jakub@redhat.com>
28621         PR rtl-optimization/79386
28622         * cprop.c (bypass_conditional_jumps): Initialize
28623         bypass_last_basic_block already before splitting bbs after
28624         unconditional traps...
28625         (bypass_conditional_jumps): ... rather than here.
28627         PR target/79299
28628         * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
28629         (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
28630         *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
28631         fix -masm=intel patterns.
28633 2017-02-07  Richard Biener  <rguenther@suse.de>
28635         PR tree-optimization/79256
28636         PR middle-end/79278
28637         * builtins.c (get_object_alignment_2): Use min_align_of_type
28638         to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
28639         and ADJUST_FIELD_ALIGN.
28641         * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
28642         type parameter.
28643         * doc/tm.texi: Regenerate.
28644         * stor-layout.c (layout_decl): Adjust.
28645         (update_alignment_for_field): Likewise.
28646         (place_field): Likewise.
28647         (min_align_of_type): Likewise.
28648         * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
28649         * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
28650         * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
28651         * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
28652         * config/frv/frv.c (frv_adjust_field_align): Likewise.
28653         * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
28654         * config/i386/i386.c (x86_field_alignment): Likewise.
28655         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
28656         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
28657         * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
28658         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
28659         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
28660         * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
28661          Likewise.
28663         Revert
28664         2017-01-30  Richard Biener  <rguenther@suse.de>
28666         PR tree-optimization/79256
28667         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
28668         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
28669         alignment on TYPE.
28671 2017-02-07  Toma Tabacu  <toma.tabacu@imgtec.com>
28673         * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
28674         argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
28675         builtins to SImode and emit a zero-extend, if necessary.
28677 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
28679         * docs/invoke.texi (RISC-V Options): Alphabetize.
28681 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
28683         * doc/invoke.texi (RISC-V Options): Use two spaces to separate
28684         options.
28686 2017-02-06  Palmer Dabbelt  <palmer@dabbelt.com>
28688         * config/riscv/riscv.c: New file.
28689         * common/config/riscv/riscv-common.c: Likewise.
28690         * config.gcc: Likewise.
28691         * config/riscv/constraints.md: Likewise.
28692         * config/riscv/elf.h: Likewise.
28693         * config/riscv/generic.md: Likewise.
28694         * config/riscv/linux.h: Likewise.
28695         * config/riscv/multilib-generator: Likewise.
28696         * config/riscv/peephole.md: Likewise.
28697         * config/riscv/pic.md: Likewise.
28698         * config/riscv/predicates.md: Likewise.
28699         * config/riscv/riscv-builtins.c: Likewise.
28700         * config/riscv/riscv-c.c: Likewise.
28701         * config/riscv/riscv-ftypes.def: Likewise.
28702         * config/riscv/riscv-modes.def: Likewise.
28703         * config/riscv/riscv-opts.h: Likewise.
28704         * config/riscv/riscv-protos.h: Likewise.
28705         * config/riscv/riscv.h: Likewise.
28706         * config/riscv/riscv.md: Likewise.
28707         * config/riscv/riscv.opt: Likewise.
28708         * config/riscv/sync.md: Likewise.
28709         * config/riscv/t-elf-multilib: Likewise.
28710         * config/riscv/t-linux: Likewise.
28711         * config/riscv/t-linux-multilib: Likewise.
28712         * config/riscv/t-riscv: Likewise.
28713         * configure.ac: Likewise.
28714         * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
28715         Waterman as RISC-V maintainers.
28716         * doc/install.texi: Add RISC-V entries.
28717         * doc/invoke.texi: Add RISC-V options section.
28718         * doc/md.texi: Add RISC-V constraints section.
28719         * configure: Regenerated.
28721 2017-02-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
28723         PR target/66144
28724         * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
28725         false values to be constant vectors with all 0 or all 1 bits set.
28726         (vcondu<mode><mode>): Likewise.
28727         * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
28728         predicate.
28729         (fpmask_comparison_operator): Update comment.
28730         (vecint_comparison_operator): New predicate.
28731         * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
28732         vector conditionals when the true and false values are constant
28733         vectors with all 0 bits or all 1 bits set.
28735 2017-02-06  Martin Sebor  <msebor@redhat.com>
28737         PR  tree-optimization/79376
28738         * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
28740 2017-02-06  Uros Bizjak  <ubizjak@gmail.com>
28742         * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
28743         explicit subreg RTX with operand 1.  Use VECTOR_MODE_P predicate
28744         to simplify split condition.
28746 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
28748         * omp-expand.c (oxpand_omp_atomic_fetch_op,
28749         expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
28750         false.
28752 2017-02-06  Segher Boessenkool  <segher@kernel.crashing.org>
28754         PR rtl-optimization/68664
28755         * target.def (can_speculate_insn): New hook.
28756         * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
28757         * doc/tm.texi: Regenerate.
28758         * sched-rgn.c (can_schedule_ready_p): Use the new hook.
28759         * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
28760         (rs6000_sched_can_speculate_insn): New function.
28762 2017-02-06  Jakub Jelinek  <jakub@redhat.com>
28764         PR tree-optimization/79284
28765         * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
28766         * tree-vect-stmts.c (vect_get_vec_def_for_operand,
28767         vectorizable_mask_load_store, vectorizable_operation,
28768         vect_is_simple_cond, get_same_sized_vectype): Use it instead
28769         of comparing TREE_CODE of a type against BOOLEAN_TYPE.
28770         * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
28771         vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
28772         * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
28773         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
28774         Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
28775         is_gimple_assign (stmt).  Replace another such test with
28776         is_gimple_assign (stmt).
28778 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
28780         PR target/78883
28781         * config/avr/avr.c (rtl-iter.h): Include it.
28782         (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
28783         (avr_legitimate_combined_insn): ...and implementation.
28785 2017-02-06  Dominik Vogt  <vogt@linux.vnet.ibm.com>
28787         * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
28788         * config/s390/s390.c (s390_const_operand_ok)
28789         (s390_canonicalize_comparison, s390_extract_part)
28790         (s390_single_part, s390_contiguous_bitmask_nowrap_p)
28791         (s390_contiguous_bitmask_p, s390_rtx_costs)
28792         (legitimize_pic_address): Likewise.
28793         * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
28794         * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
28795         ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
28796         ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
28797         * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
28799 2017-02-06  Georg-Johann Lay  <avr@gjlay.de>
28801         * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
28802         REGNO($0) == REGNO($1).
28804 2017-02-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
28806         * config/s390/linux.h(SIZE_TYPE): Add comment.
28808 2017-02-06  Julian Brown  <julian@codesourcery.com>
28809             Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
28810             Virendra Pathak  <virendra.pathak@broadcom.com>
28812         * config/aarch64/aarch64-cores.def: Change the scheduler
28813         to Thunderx2t99.
28814         * config/aarch64/aarch64.md: Include thunderx2t99.md.
28815         * config/aarch64/thunderx2t99.md: New file.
28817 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
28819         * doc/standards.texi (Go Language): Update link to language
28820         standard.
28822 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
28824         * tree-eh.c (lower_resx): Sanitize profile.
28825         (cleanup_empty_eh_move_lp): Likewise.
28827 2017-02-05  Jan Hubicka  <hubicka@ucw.cz>
28829         PR tree-ssa/79347
28830         * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
28831         ELSE_PROB.
28832         * cfgloopmanip.h (loop_version): Update prototype.
28833         * modulo-sched.c (sms_schedule): Update call of loop_version.
28834         * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
28835         * tree-parloops.c (gen_parallel_loop): Likewise.
28836         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
28837         * tree-ssa-loop-split.c (split_loop): Likewise.
28838         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
28839         * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
28841 2017-02-05  Martin Liska  <mliska@suse.cz>
28843         PR bootstrap/78985
28844         * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
28845         variable to NULL.
28846         (print_operand_address): Initialize a struct to zero.
28848 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
28850         * doc/contrib.texi (Contributors): Refer to Hans Boehm's
28851         garbage collector only in textual form.
28853 2017-02-05  Gerald Pfeifer  <gerald@pfeifer.com>
28855         * doc/extend.texi (x86 specific memory model extensions for
28856         transactional memory): Simplify a phrase.
28858 2017-02-05  Eric Botcazou  <ebotcazou@adacore.com>
28860         PR target/79353
28861         * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
28862         'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
28863         (atomic_storedi_1): Likewise.
28865 2017-02-04  Jakub Jelinek  <jakub@redhat.com>
28867         PR tree-optimization/79338
28868         * tree-parloops.c (gather_scalar_reductions): Don't call
28869         vect_analyze_loop_form for loop->inner before destroying loop's
28870         loop_vinfo.
28872 2017-02-03  Martin Sebor  <msebor@redhat.com>
28874         PR tree-optimization/79327
28875         * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
28876         when precision has resulted in leading zeros.
28877         (format_integer): Adjust the likely counter to assume an unknown
28878         argument that may be zero is non-zero.
28880 2017-02-03  Jason Merrill  <jason@redhat.com>
28882         PR c++/78689
28883         * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
28884         avoid copying non-taken branch.
28886 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
28888         PR tree-optimization/79340
28889         * tree-vect-loop.c (vectorizable_reduction): Release
28890         vec_defs elements after safe_splicing them into other vectors.
28891         Formatting fixes.
28893         PR tree-optimization/79327
28894         * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
28895         true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
28896         dirtype.
28897         (format_integer): Use wide_int_to_tree instead of build_int_cst
28898         + to_?hwi.  If argmin is NULL, just set argmin and argmax to
28899         TYPE_{MIN,MAX}_VALUE of argtype.  Simplify and fix computation
28900         of shortest and longest sequence.
28902 2017-02-03  Uros Bizjak  <ubizjak@gmail.com>
28904         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28905         Use pextrd for TARGET_SSE4_1 when creating scalar copy.
28907 2017-02-03  Walter Lee  <walt@tilera.com>
28909         PR target/78862
28910         * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
28911         after initial stackframe link reg save.
28912         * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
28914 2017-02-03  Jakub Jelinek  <jakub@redhat.com>
28916         PR target/79354
28917         * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
28918         wu for stxssp alternative.
28920 2017-02-03  Martin Sebor  <msebor@redhat.com>
28922         PR tree-optimization/79352
28923         * gimple-fold.c (get_range_strlen): Add argument.
28924         (get_range_strlen): Change return type to bool.
28925         (get_maxval_strlen): Pass in a dummy argument.
28926         * gimple-fold.h (get_range_strlen): Change return type to bool.
28927         * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
28928         * tree.h (array_at_struct_end_p): Add argument.
28929         * tree.c (array_at_struct_end_p): Handle it.
28931 2017-02-03  Martin Liska  <mliska@suse.cz>
28933         PR lto/66295
28934         * multiple_target.c (create_dispatcher_calls): Redirect edge
28935         from a caller of a dispatcher.
28936         (expand_target_clones): Make the clones local.
28937         (ipa_target_clone): Do both target clones and resolvers.
28938         (ipa_dispatcher_calls): Remove the pass.
28939         (pass_dispatcher_calls::gate): Likewise.
28940         (make_pass_dispatcher_calls): Likewise.
28941         * passes.def (pass_target_clone): Put as very first IPA early
28942         pass.
28944 2017-02-03  Martin Liska  <mliska@suse.cz>
28946         * symtab.c (symtab_node::binds_to_current_def_p): Bail out
28947         in case of a function with ifunc attribute.
28949 2017-02-03  Martin Liska  <mliska@suse.cz>
28951         * cgraph.c (cgraph_node::dump): Dump function version info.
28952         * symtab.c (symtab_node::dump_base): Add missing new line.
28954 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
28956         * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
28957         (ifcombine_ifandif): Use it.
28959 2017-02-03  Martin Liska  <mliska@suse.cz>
28961         * doc/invoke.texi: Document default value for
28962         use-after-scope-direct-emission-threshold.
28964 2017-02-03  Martin Liska  <mliska@suse.cz>
28966         PR tree-optimization/79339
28967         * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
28968         (format_floating): Likewise.
28970 2017-02-03  Martin Liska  <mliska@suse.cz>
28972         PR ipa/79337
28973         * ipa-prop.c (ipa_node_params_t::insert): Remove current
28974         implementation.
28975         (ipa_node_params_t::remove): Likewise.
28976         * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
28977         initialization from removed ipa_node_params_t::insert.
28978         (ipa_node_params::~ipa_node_params): Move from removed
28979         ipa_node_params_t::release.
28980         * symbol-summary.h (symbol_summary::m_released): New member.
28981         Do not release a summary twice.  Do not allow to call finalizer
28982         for types of a summary that live in GGC memory.
28984 2017-02-02  Naveen H.S  <Naveen.Hurugalawadi@cavium.com>
28986         * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
28987         cmp_branch fusion.
28989 2017-02-02  Martin Sebor  <msebor@redhat.com>
28991         PR middle-end/79275
28992         * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
28993         (format_string): Tighten up the range of output for non-constant
28994         strings and correct the expected range for wide non-constant strings.
28996 2017-02-02  Martin Sebor  <msebor@redhat.com>
28998         * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
29000         PR middle-end/32003
29001         * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
29002         index.
29003         (-fdump-tree-@var): Add to index and document how to come up
29004         with pass-specific option and dump file names.
29005         (-fdump-passes): Clarify where to look for output.
29007 2017-02-02  Jan Hubicka  <hubicka@ucw.cz>
29009         PR middle-end/77445
29010         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
29011         statistics of the analyzed path; allow threading for speed when
29012         any of BBs along the path are optimized for speed.
29014 2017-02-02  Eric Botcazou  <ebotcazou@adacore.com>
29016         PR middle-end/78468
29017         * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
29018         settings of the virtual registers.
29020         Revert again
29021         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29023         * explow.c (get_dynamic_stack_size): Take known alignment of stack
29024         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
29025         needed.
29027 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29029         * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
29030         ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
29032 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29034         * config/s390/s390.md: Add missing comments with the expanded
29035         mnemonics.
29036         * config/s390/vector.md: Likewise.
29037         * config/s390/vx-builtins.md: Likewise.
29039 2017-02-02  Jakub Jelinek  <jakub@redhat.com>
29041         PR target/79197
29042         * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
29043         (fixuns_trunc<mode>di2): ... this, remove previous expander.  Put all
29044         conditions on a single line.
29046 2017-02-02  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29048         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
29049         __S390_VX__ to __VX__.
29051 2017-02-01  Andrew Pinski  <apinski@cavium.com>
29053         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
29054         stmt_info to record_stmt_cost.
29055         (vect_get_known_peeling_cost): Pass stmt_info if known to
29056         record_stmt_cost.
29057         * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
29058         cpu_vector_cost field into
29059         scalar_int_stmt_cost and scalar_fp_stmt_cost.  Split vec_stmt_cost
29060         field into vec_int_stmt_cost and vec_fp_stmt_cost.
29061         * config/aarch64/aarch64.c (generic_vector_cost): Update for the
29062         splitting of scalar_stmt_cost and vec_stmt_cost.
29063         (thunderx_vector_cost): Likewise.
29064         (cortexa57_vector_cost): LIkewise.
29065         (exynosm1_vector_cost): Likewise.
29066         (xgene1_vector_cost): Likewise.
29067         (thunderx2t99_vector_cost): Improve after the splitting of the two
29068         fields.
29069         (aarch64_builtin_vectorization_cost): Update for the splitting of
29070         scalar_stmt_cost and vec_stmt_cost.
29072 2017-02-01  Torvald Riegel  <triegel@redhat.com>
29073             Richard Henderson  <rth@redhat.com>
29075         * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
29076         conditional on existance of a fast atomic load.
29077         * optabs-query.c (can_atomic_load_p): New function.
29078         * optabs-query.h (can_atomic_load_p): Declare it.
29079         * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
29080         no fast atomic load is available for the particular size of access.
29081         (expand_atomic_compare_and_swap): Likewise.
29082         (expand_atomic_load): Likewise.
29083         (expand_atomic_store): Likewise.
29084         (expand_atomic_fetch_op): Likewise.
29085         * testsuite/lib/target-supports.exp
29086         (check_effective_target_sync_int_128): Remove x86 because it provides
29087         no fast atomic load.
29088         (check_effective_target_sync_int_128_runtime): Likewise.
29090 2017-02-01  Richard Biener  <rguenther@suse.de>
29092         * graphite.c: Include tree-vectorizer.h for find_loop_location.
29093         (graphite_transform_loops): Provide opt-info for optimized nests.
29094         * tree-parloop.c (parallelize_loops): Provide opt-info for
29095         parallelized loops.
29097 2017-02-01  Richard Biener  <rguenther@suse.de>
29099         PR middle-end/79315
29100         * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
29101         was not set before.
29103 2017-02-01  Richard Biener  <rguenther@suse.de>
29105         PR tree-optimization/71824
29106         * graphite-scop-detection.c (scop_detection::build_scop_breadth):
29107         Verify the loops are valid in the merged SESE region.
29108         (scop_detection::can_represent_loop_1): Check analyzing the
29109         evolution of the number of iterations in the region succeeds.
29111 2017-01-31  Ian Lance Taylor  <iant@golang.org>
29113         * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
29114         REG_ARGS_SIZE note to 32-bit push insns and call insn.
29116 2017-01-31  David Malcolm  <dmalcolm@redhat.com>
29118         PR preprocessor/79210
29119         * input.c (get_substring_ranges_for_loc): Replace line_width
29120         assertion with error-handling.
29122 2017-01-31  Richard Biener  <rguenther@suse.de>
29124         PR tree-optimization/77318
29125         * graphite-sese-to-poly.c (extract_affine): Fix assert.
29126         (create_pw_aff_from_tree): Take loop parameter.
29127         (add_condition_to_pbb): Pass loop of the condition to
29128         create_pw_aff_from_tree.
29130 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
29132         * config/s390/s390.c (s390_asan_shadow_offset): New function.
29133         (TARGET_ASAN_SHADOW_OFFSET): Redefine.
29135 2017-01-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
29137         PR target/78597
29138         PR target/79038
29139         * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
29140         no longer used.
29141         (convert_int_to_float128): Likewise.
29142         * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
29143         (convert_int_to_float128): Likewise.
29144         * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
29145         (UNSPEC_IEEE128_CONVERT): Likewise.
29146         (floatsi<mode>2, FLOAT128 iterator): Bypass calling
29147         rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
29148         Use local variables for IBM extended format.
29149         (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
29150         (fix_trunc<mode>si2_fprs): Likewise.
29151         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
29152         (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
29153         (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
29154         to know that we can now have integers of all sizes in vector
29155         registers.
29156         (fix<uns>_<mode>di2_hw): Likewise.
29157         (float<uns>_<mode>si2_hw): Likewise.
29158         (fix_<mode>si2_hw): Likewise.
29159         (fixuns_<mode>si2_hw): Likewise.
29160         (float<uns>_<mode>di2_hw): Likewise.
29161         (float_<mode>di2_hw): Likewise.
29162         (float_<mode>si2_hw): Likewise.
29163         (floatuns_<mode>di2_hw): Likewise.
29164         (floatuns_<mode>si2_hw): Likewise.
29165         (xscvqp<su>wz_<mode>): Delete, no longer used.
29166         (xscvqp<su>dz_<mode>): Likewise.
29167         (xscv<su>dqp_<mode>): Likewise.
29168         (ieee128_mfvsrd_64bit): Likewise.
29169         (ieee128_mfvsrd_32bit): Likewise.
29170         (ieee128_mfvsrwz): Likewise.
29171         (ieee128_mtvsrw): Likewise.
29172         (ieee128_mtvsrd_64bit): Likewise.
29173         (ieee128_mtvsrd_32bit): Likewise.
29175 2017-01-31  Martin Liska  <mliska@suse.cz>
29177         PR ipa/79285
29178         * ipa-prop.c (ipa_free_all_node_params): Call release method
29179         instead of ~sumbol_summary to not to trigger double times
29180         dtor of hash_map.
29182 2017-01-31  Aldy Hernandez  <aldyh@redhat.com>
29184         PR tree-optimization/71691
29185         * bitmap.h (class auto_bitmap): New.
29186         * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
29187         is_maybe_undefined instead of ssa_undefined_value_p.
29189 2017-01-31  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
29191         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
29192         __S390_ARCH_LEVEL__ to __ARCH__.
29194 2017-01-31  Jakub Jelinek  <jakub@redhat.com>
29196         PR tree-optimization/79267
29197         * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
29198         if should_remove_lhs_p is true.
29200 2017-01-30  Alexandre Oliva <aoliva@redhat.com>
29202         PR debug/63238
29203         * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
29204         (add_alignment_attribute): New.
29205         (base_type_die): Add alignment attribute.
29206         (subrange_type_die): Likewise.
29207         (modified_type_die): Likewise.
29208         (gen_array_type_die): Likewise.
29209         (gen_descr_array_type_die: Likewise.
29210         (gen_enumeration_type_die): Likewise.
29211         (gen_subprogram_die): Likewise.
29212         (gen_variable_die): Likewise.
29213         (gen_field_die): Likewise.
29214         (gen_ptr_to_mbr_type_die): Likewise.
29215         (gen_struct_or_union_type_die): Likewise.
29216         (gen_subroutine_type_die): Likewise.
29217         (gen_typedef_die): Likewise.
29218         (base_type_cmp): Compare alignment attribute.
29220 2017-01-30  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
29222         PR target/79170
29223         * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
29224         (setb_unsigned) New pattern for setb with CCUNS.
29225         * config/rs6000/rs6000.c (expand_block_compare): Use a different
29226         subfc./subfe sequence to avoid overflow problems.  Generate a
29227         shorter sequence with cmpld/setb for power9.
29228         * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
29229         for generating subfc. instruction.
29230         (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
29231         now uses this instruction.
29233 2017-01-30  Ian Lance Taylor  <iant@google.com>
29235         PR debug/79289
29236         * dwarf2out.c (gen_type_die_with_usage): When picking a variant
29237         for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
29239 2017-01-30  Martin Sebor  <msebor@redhat.com>
29241         * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
29242         Move constant to the right of a relational operator.
29243         (get_mpfr_format_length, format_character, format_string): Ditto.
29244         (should_warn_p, maybe_warn): Same.
29246         * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
29248 2017-01-30  Maxim Ostapenko  <m.ostapenko@samsung.com>
29250         PR lto/79061
29251         * asan.c (get_translation_unit_decl): Remove function.
29252         (asan_add_global): Force has_dynamic_init to zero in LTO mode.
29254 2017-01-30  Martin Liska  <mliska@suse.cz>
29256         PR gcov-profile/79259
29257         * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
29258         -fprofile-generate.
29260 2017-01-30  Martin Liska  <mliska@suse.cz>
29262         PR bootstrap/78985
29263         * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
29264         Initialize variables with NULL value.
29266 2017-01-30  Richard Earnshaw  <rearnsh@arm.com>
29268         PR target/79260
29269         * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
29270         tm_p_file.
29271         * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
29273 2017-01-30  Richard Biener  <rguenther@suse.de>
29275         PR tree-optimization/79276
29276         * tree-vrp.c (process_assert_insertions): Properly adjust common
29277         when removing a duplicate.
29279         * gcc.dg/torture/pr79276.c: New testcase.
29281 2017-01-30  Richard Biener  <rguenther@suse.de>
29283         PR tree-optimization/79256
29284         * targhooks.c (default_builtin_vector_alignment_reachable): Honor
29285         BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
29286         alignment on TYPE.
29287         * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
29289 2017-01-30  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29291         PR target/79240
29292         * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
29293         ("*r<noxa>sbg_<mode>_sll_bitmask")
29294         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
29295         ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
29296         Use contiguous_bitmask_nowrap_operand.
29298 2017-01-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
29300         PR target/79268
29301         * config/rs6000/altivec.h (vec_xl): Revise #define.
29302         (vec_xst): Likewise.
29304 2017-01-27  Uros Bizjak  <ubizjak@gmail.com>
29306         * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
29308 2017-01-27  Bernd Schmidt  <bschmidt@redhat.com>
29310         PR rtl-optimization/79194
29311         * cprop.c (one_cprop_pass): Move deletion of code after unconditional
29312         traps before call to bypass_conditional_jumps.
29314 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
29316         PR tree-optimization/71374
29317         * lra-constraints.c (check_conflict_input_operands): New.
29318         (match_reload): Use it.
29320 2017-01-27  Vladimir Makarov  <vmakarov@redhat.com>
29322         PR target/79131
29323         * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
29324         account to calculate conflict_set.
29326 2017-01-27  Bin Cheng  <bin.cheng@arm.com>
29328         PR rtl-optimization/78559
29329         * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
29330         other_insn in combine.
29332 2017-01-27  Pekka Jääskeläinen  <pekka.jaaskelainen@parmance.com>
29334         * builtin-types.def: Use unsigned_char_type_node for BT_UINT8.  Use
29335         uint16_type_node for BT_UINT16.
29337 2017-01-27  David Malcolm  <dmalcolm@redhat.com>
29339         * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
29340         "RTL Tests" to menu.
29341         (GIMPLE Tests): New node.
29342         (RTL Tests): New node.
29344 2017-01-27  Richard Biener  <rguenther@suse.de>
29346         PR tree-optimization/79245
29347         * tree-loop-distribution.c (distribute_loop): Apply cost
29348         modeling also to detected patterns.
29350 2017-01-27  Richard Biener  <rguenther@suse.de>
29352         PR tree-optimization/71433
29353         * tree-vrp.c (register_new_assert_for): Revert earlier changes.
29354         (compare_assert_loc): New function.
29355         (process_assert_insertions): Sort and optimize assert locations
29356         to remove duplicates and push down identical assertions on
29357         edges to their destination block.
29359 2017-01-27  Richard Biener  <rguenther@suse.de>
29361         PR tree-optimization/79244
29362         * tree-vrp.c (remove_range_assertions): Forcefully propagate
29363         out SSA names even if abnormal.
29365 2017-01-27  Jakub Jelinek  <jakub@redhat.com>
29367         * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
29368         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
29369         instead of MPFR_RNDN.
29371 2017-01-27  Richard Earnshaw  <rearnsha@arm.com>
29373         PR target/79239
29374         * arm.c (arm_option_override): Don't call build_target_option_node
29375         until after doing all option overrides.
29376         (arm_valid_target_attribute_tree): Likewise.
29378 2017-01-27  Martin Liska  <mliska@suse.cz>
29380         * doc/invoke.texi (-fprofile-arcs): Document profiling support
29381         for {cd}tors and C++ {cd}tors.
29383 2017-01-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
29385         * config/s390/s390.md ("*setmem_long_and")
29386         ("*setmem_long_and_31z"): Use zero_extend instead of and.
29388 2017-01-26  Martin Sebor  <msebor@redhat.com>
29390         * gimple-ssa-sprintf.c (format_floating): Simplify the computation
29391         of precision.
29393 2017-01-26  Martin Sebor  <msebor@redhat.com>
29395         * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
29396         HAVE_DFmode before using XFmode or DFmode.
29397         (parse_directive): Avoid using the z length modifier to avoid
29398         the ISO C++98 does not support the â€˜z’ gnu_printf length modifier.
29400         PR middle-end/78703
29401         * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
29402         to accept adjustment as an array.
29403         (get_int_range): New function.
29404         (struct directive): Make width and prec arrays.
29405         (directive::set_width, directive::set_precision): Call get_int_range.
29406         (format_integer, format_floating): Handle width and precision ranges.
29407         (format_string, parse_directive): Same.
29409 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
29411         PR debug/79129
29412         * dwarf2out.c (generate_skeleton_bottom_up): For children with
29413         comdat_type_p set, just clone them, but keep the children in the
29414         original DIE.
29416         PR debug/78835
29417         * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
29418         which have direct callers with -fvar-tracking-assignments enabled
29419         in the current TU.
29420         (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
29421         inside of type units.
29423 2017-01-26  Martin Sebor  <msebor@redhat.com>
29425         PR middle-end/78703
29426         * gimple-ssa-sprintf.c (struct result_range): Add likely and
29427         unlikely counters.
29428         (struct format_result): Replace number_chars, number_chars_min,
29429         and number_chars_max with a single member of struct result_range.
29430         Remove bounded.
29431         (format_result::operator+=): Adjust.
29432         (struct fmtresult): Remove bounded.  Handle likely and unlikely
29433         counters.
29434         (fmtresult::adjust_for_width_or_precision): New function.
29435         (fmtresult:type_max_digits): New function.
29436         (bytes_remaining): Handle likely and unlikely counters.
29437         (min_bytes_remaining): Remove.
29438         (format_percent): Simplify.
29439         (format_integer, format_floating): Set likely and unlikely counters.
29440         (get_string_length, format_character, format_string): Same.
29441         (format_plain, should_warn_p): New function.
29442         (maybe_warn): Call should_warn_p.  Update diagnostic messages
29443         and handle those for all directives, including plain strings.
29444         (format_directive): Handle likely and unlikely counters.
29445         Remove unnecessary quoting from diagnostics.  Add an informational
29446         note.
29447         (add_bytes): Remove.
29448         (pass_sprintf_length::compute_format_length): Simplify.
29449         (try_substitute_return_value): Handle likely and unlikely counters.
29451 2017-01-26  Carl Love  <cel@us.ibm.com>
29453         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
29454         bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
29456 2017-01-26  Vladimir Makarov  <vmakarov@redhat.com>
29458         PR target/79131
29459         * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
29460         endianess for subregs into account.
29461         * lra-constraints.c (lra_constraints): Do risky transformations
29462         always on the first iteration.
29463         * lra-lives.c (check_pseudos_live_through_calls): Add arg
29464         last_call_used_reg_set.
29465         (process_bb_lives): Define and use last_call_used_reg_set.
29466         * lra.c (lra): Always continue after lra_constraints on the first
29467         iteration.
29469 2017-01-26  Kirill Yukhin  <kirill.yukhin@gmail.com>
29471         * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
29472         constant.
29473         * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
29475 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
29477         * config/i386/avx512fintrin.h (_ktest_mask16_u8,
29478         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
29479         * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
29480         _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
29481         * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
29482         __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
29483         OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
29484         * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
29485         (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
29487 2017-01-26  Marek Polacek  <polacek@redhat.com>
29489         PR c/79199
29490         * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
29491         for the third operand.
29493 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
29495         PR middle-end/79236
29496         * omp-low.c (struct omp_context): Add simt_stmt field.
29497         (scan_omp_for): Return omp_context *.
29498         (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
29499         context to the _simt_ SIMD stmt.
29500         (lower_omp_for): For combined SIMD with sibling _simt_
29501         SIMD, make sure to use the same decls in _looptemp_
29502         clauses as in the sibling.
29504 2017-01-26  David Sherwood  <david.sherwood@arm.com>
29506         PR middle-end/79212
29507         * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
29508         all contexts.
29510 2017-01-26  Jakub Jelinek  <jakub@redhat.com>
29512         PR target/70465
29513         * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
29514         emit fld b; fld a; if possible.
29516         * brig-builtins.def: Update copyright years.
29517         * config/arm/arm_acle_builtins.def: Update copyright years.
29519 2017-01-25  Michael Meissner  <meissner@linux.vnet.ibm.com>
29521         PR target/79179
29522         * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
29523         constraint instead of o for the stxsd instruction.
29525 2017-01-25  Carl Love  <cel@us.ibm.com>
29527         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
29528         of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
29530 2017-01-25  Jonathan Wakely  <jwakely@redhat.com>
29532         * doc/invoke.texi (C++ Dialect Options): Fix typo.
29534 2017-01-25  Richard Biener  <rguenther@suse.de>
29536         PR tree-optimization/69264
29537         * target.def (vector_alignment_reachable): Improve documentation.
29538         * doc/tm.texi: Regenerate.
29539         * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
29540         and add a comment.
29541         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
29542         earlier changes with respect to TYPE_USER_ALIGN.
29543         (vector_alignment_reachable_p): Likewise.  Improve dumping.
29545 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29547         PR target/79145
29548         * config/arm/arm.md (xordi3): Force constant operand into a register
29549         for TARGET_IWMMXT.
29551 2016-01-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
29553         * doc/invoke.texi (-fstore-merging): Correct default optimization
29554         levels at which it is enabled.
29555         (-O): Move -fstore-merging from list to...
29556         (-O2): ... Here.
29558 2017-01-25  Richard Biener  <rguenther@suse.de>
29560         PR debug/78363
29561         * omp-expand.c: Include debug.h.
29562         (expand_omp_taskreg): Make sure to generate early debug before
29563         outlining anything from a function.
29564         (expand_omp_target): Likewise.
29565         (grid_expand_target_grid_body): Likewise.
29567 2017-01-25  Maxim Ostapenko  <m.ostapenko@samsung.com>
29569         PR lto/79061
29570         * asan.c (get_translation_unit_decl): New function.
29571         (asan_add_global): Extract modules file name from globals
29572         TRANSLATION_UNIT_DECL name.
29574 2017-01-24  Eric Botcazou  <ebotcazou@adacore.com>
29576         PR target/77439
29577         * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
29578         for long calls with APCS frame and VFP.
29580 2017-01-24  David Malcolm  <dmalcolm@redhat.com>
29582         * cfg.c (original_copy_tables_initialized_p): New function.
29583         * cfg.h (original_copy_tables_initialized_p): New decl.
29584         * cfgrtl.c (relink_block_chain): Guard the call to
29585         free_original_copy_tables with a call to
29586         original_copy_tables_initialized_p.
29587         * cgraph.h (symtab_node::native_rtl_p): New decl.
29588         * cgraphunit.c (symtab_node::native_rtl_p): New function.
29589         (symtab_node::needed_p): Don't assert for early assembly output
29590         for __RTL functions.
29591         (cgraph_node::finalize_function): Set "force_output" for __RTL
29592         functions.
29593         (cgraph_node::analyze): Bail out early for __RTL functions.
29594         (analyze_functions): Update assertion to support __RTL functions.
29595         (cgraph_node::expand): Bail out early for __RTL functions.
29596         * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
29597         __RTL functions.
29598         * function.h (struct function): Update comment for field
29599         "pass_startwith".
29600         * gimple-expr.c: Include "tree-pass.h".
29601         (gimple_has_body_p): Return false for __RTL functions.
29602         * Makefile.in (OBJS): Add run-rtl-passes.o.
29603         * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
29604         accessor.
29605         (gcc::pass_manager::get_clean_slate): New accessor.
29606         * passes.c: Include "insn-addr.h".
29607         (should_skip_pass_p): Add logging.  Update logic for running
29608         "expand" to be compatible with both __GIMPLE and __RTL.  Guard
29609         property-provider override so it is only done for gimple passes.
29610         Don't skip dfinit.
29611         (skip_pass): New function.
29612         (execute_one_pass): Call skip_pass when skipping passes.
29613         * read-md.c (md_reader::read_char): Support filtering
29614         the input to a subset of line numbers.
29615         (md_reader::md_reader): Initialize fields
29616         m_first_line and m_last_line.
29617         (md_reader::read_file_fragment): New function.
29618         * read-md.h (md_reader::read_file_fragment): New decl.
29619         (md_reader::m_first_line): New field.
29620         (md_reader::m_last_line): New field.
29621         * read-rtl-function.c (function_reader::create_function): Only
29622         create cfun if it doesn't already exist.  Set PROP_rtl on cfun's
29623         curr_properties.  Set DECL_INITIAL to a dummy block.
29624         (read_rtl_function_body_from_file_range): New function.
29625         * read-rtl-function.h (read_rtl_function_body_from_file_range):
29626         New decl.
29627         * run-rtl-passes.c: New file.
29628         * run-rtl-passes.h: New file.
29630 2017-01-24  Jeff Law  <law@redhat.com>
29632         * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
29633         buffer size.
29635 2017-01-24  Bin Cheng  <bin.cheng@arm.com>
29637         PR tree-optimization/79159
29638         * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
29639         (record_nonwrapping_iv): Improve boundary using above function if no
29640         value range information.
29642 2017-01-24  Pekka Jääskeläinen  <pekka@parmance.com>
29643             Martin Jambor  <mjambor@suse.cz>
29645         * brig-builtins.def: New file.
29646         * builtins.def (DEF_HSAIL_BUILTIN): New macro.
29647         (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
29648         (DEF_HSAIL_SAT_BUILTIN): Likewise.
29649         (DEF_HSAIL_INTR_BUILTIN): Likewise.
29650         (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
29651         * builtin-types.def (BT_INT8): New.
29652         (BT_INT16): Likewise.
29653         (BT_UINT8): Likewise.
29654         (BT_UINT16): Likewise.
29655         (BT_FN_ULONG): Likewise.
29656         (BT_FN_UINT_INT): Likewise.
29657         (BT_FN_UINT_ULONG): Likewise.
29658         (BT_FN_UINT_LONG): Likewise.
29659         (BT_FN_UINT_PTR): Likewise.
29660         (BT_FN_ULONG_PTR): Likewise.
29661         (BT_FN_INT8_FLOAT): Likewise.
29662         (BT_FN_INT16_FLOAT): Likewise.
29663         (BT_FN_UINT32_FLOAT): Likewise.
29664         (BT_FN_UINT16_FLOAT): Likewise.
29665         (BT_FN_UINT8_FLOAT): Likewise.
29666         (BT_FN_UINT64_FLOAT): Likewise.
29667         (BT_FN_UINT16_UINT32): Likewise.
29668         (BT_FN_UINT32_UINT16): Likewise.
29669         (BT_FN_UINT16_UINT16_UINT16): Likewise.
29670         (BT_FN_INT_PTR_INT): Likewise.
29671         (BT_FN_UINT_PTR_UINT): Likewise.
29672         (BT_FN_LONG_PTR_LONG): Likewise.
29673         (BT_FN_ULONG_PTR_ULONG): Likewise.
29674         (BT_FN_VOID_UINT64_UINT64): Likewise.
29675         (BT_FN_UINT8_UINT8_UINT8): Likewise.
29676         (BT_FN_INT8_INT8_INT8): Likewise.
29677         (BT_FN_INT16_INT16_INT16): Likewise.
29678         (BT_FN_INT_INT_INT): Likewise.
29679         (BT_FN_UINT_FLOAT_UINT): Likewise.
29680         (BT_FN_FLOAT_UINT_UINT): Likewise.
29681         (BT_FN_ULONG_UINT_UINT): Likewise.
29682         (BT_FN_ULONG_UINT_PTR): Likewise.
29683         (BT_FN_ULONG_ULONG_ULONG): Likewise.
29684         (BT_FN_UINT_UINT_UINT): Likewise.
29685         (BT_FN_VOID_UINT_PTR): Likewise.
29686         (BT_FN_UINT_UINT_PTR: Likewise.
29687         (BT_FN_UINT32_UINT64_PTR): Likewise.
29688         (BT_FN_INT_INT_UINT_UINT): Likewise.
29689         (BT_FN_UINT_UINT_UINT_UINT): Likewise.
29690         (BT_FN_UINT_UINT_UINT_PTR): Likewise.
29691         (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
29692         (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
29693         (BT_FN_LONG_LONG_UINT_UINT): Likewise.
29694         (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
29695         (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
29696         (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
29697         (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
29698         (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
29699         (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
29700         * doc/frontends.texi: List BRIG FE.
29701         * doc/install.texi (Testing): Add BRIG tesring requirements.
29702         * doc/invoke.texi (Overall Options): Mention BRIG.
29703         * doc/standards.texi (Standards): Doucment BRIG HSA version.
29705 2017-01-24  Richard Biener  <rguenther@suse.de>
29707         PR translation/79208
29708         * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
29710 2017-01-24  Martin Jambor  <mjambor@suse.cz>
29712         PR bootstrap/79198
29713         * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
29714         * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
29715         and known_contexts.
29717 2017-01-24  Aldy Hernandez  <aldyh@redhat.com>
29719         PR middle-end/79123
29720         * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
29721         casts from signed to unsigned really don't have a range.
29723 2017-01-24  Markus Trippelsdorf  <markus@trippelsdorf.de>
29725         * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
29726         GMP_RNDx for compatiblity.
29728 2017-01-24  Martin Liska  <mliska@suse.cz>
29730         PR bootstrap/79132
29731         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
29732         that would prevent us to call alloca with -1 as argument.
29734 2017-01-24  Jakub Jelinek  <jakub@redhat.com>
29736         * dwarf2out.c (output_compilation_unit_header, output_file_names):
29737         Avoid -Wformat-security warning.
29739 2017-01-23  Andrew Pinski  <apinski@cavium.com>
29741         * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
29742         cost table.
29744 2017-01-23  Martin Sebor  <msebor@redhat.com>
29746         PR middle-end/78703
29747         * gimple-ssa-sprintf.c (warn_level): New global.
29748         (format_integer): Use it here and throughout the rest of the file.
29749         Use the same switch to compute sign as base.
29750         (maybe_warn): New function.
29751         (format_directive): Factor out warnings into maybe_warn.
29752         Add debugging output.  Use warn_level.
29753         (add_bytes): Use warn_level.
29754         (pass_sprintf_length::compute_format_length): Add debugging output.
29755         (try_substitute_return_value): Same.
29756         (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
29758         PR middle-end/78703
29759         * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
29760         (struct fmtresult, format_integer, format_floating): Adjust.
29761         (fmtresult::fmtresult): Set max correctly in two argument ctor.
29762         (get_string_length, format_string,format_directive): Same.
29763         (pass_sprintf_length::compute_format_length): Same.
29764         (try_substitute_return_value): Simplify slightly.
29766         PR middle-end/78703
29767         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
29768         (fmtresult::operator+=): Outlined.
29769         (struct fmtresult): Add ctors.
29770         (struct conversion_spec): Rename...
29771         (struct directive): ...to this.  Add and remove data members.
29772         (directive::set_width, directive::set_precision): New functions.
29773         (format_percent): Use fmtresult ctor.
29774         (get_width_and_precision): Remove.
29775         (format_integer): Make naming changes.  Avoid computing width and
29776         precision.
29777         (format_floating): Same.  Adjust indentation.
29778         (format_character, format_none): New functions.
29779         (format_string): Moved character handling to format_character.
29780         (format_directive): Remove arguments, change return type.
29781         (parse_directive): New function.
29782         (pass_sprintf_length::compute_format_length): Move directive
29783         parsing to parse_directive.
29785 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
29787         * tree.h (assign_assembler_name_if_neeeded): Rename to ...
29788         (assign_assembler_name_if_needed): ... this.
29789         * tree.c (assign_assembler_name_if_neeeded): Rename to ...
29790         (assign_assembler_name_if_needed): ... this.
29791         (free_lang_data_in_cgraph): Adjust callers.
29792         * cgraphunit.c (cgraph_node::analyze): Likewise.
29793         * omp-expand.c (expand_omp_taskreg, expand_omp_target):
29794         Likewise.
29796 2017-01-23  Richard Biener  <rguenther@suse.de>
29798         PR tree-optimization/79088
29799         PR tree-optimization/79188
29800         * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
29801         resetting loop bounds after last path deletion.  Reset loop
29802         bounds of the target loop, make code match the comments.
29803         * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
29804         Make sure loops need no fixups.
29806 2017-01-23  Kelvin Nilsen  <kelvin@gcc.gnu.org>
29808         * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
29809         exponent support with double type for first argument.
29810         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
29811         type returned by __builtin_vec_extract_sig,
29812         __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
29813         functions from "vector int" to "vector unsigned int" or from
29814         "vector long long int" to "vector unsigned long long int".
29815         Changed type returned by __builtin_vec_extract_exp,
29816         __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
29817         functions from "vector int" to "vector unsigned int" or from
29818         "vector long long int" to "vector unsigned long long int".
29819         Changed return type of __builtin_vec_test_data_class,
29820         __builtin_vec_test_data_class_sp, and
29821         __builtin_vec_test_data_class_dp from "vector int" to
29822         "vector bool int" or from "vector long long int" to "vector bool
29823         long long int" and changed second argument type from "unsigned
29824         int" to "int".  Added new overloaded function forms "vector float
29825         __builtin_vec_insert_exp (vector float, vector unsigned int)" and
29826         "vector float __builtin_vec_insert_exp_sp (vector float, vector
29827         unsigned int)" and "vector double __builtin_vec_insert_exp (vector
29828         double, vector unsigned long long int)" and "vector double
29829         __builtin_vec_insert_exp_dp (vector double, vector unsigned long
29830         long int)".  Changed return type of
29831         __builtin_scalar_test_data_class and
29832         __builtin_scalar_test_data_class_sp and
29833         __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
29834         int" and changed second argument from "unsigned int" to "int".
29835         Changed type returned by __builtin_scalar_test_neg,
29836         __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
29837         from "int" to "bool int".  Added new overloaded function form
29838         "double __builtin_scalar_insert_exp (double, unsigned long long int)".
29839         * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
29840         exponent double-precision with floating point first argument.
29841         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
29842         documentation of scalar_test_data_class, scalar_test_neg,
29843         scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
29844         vector_extract_exp, vec_extract_sig, vec_insert_exp, and
29845         vec_test_data_class built-in functions to reflect refinements in
29846         their type signatures.
29848 2017-01-23  Andreas Tobler  <andreast@gcc.gnu.org>
29850         * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
29851         size of buf.
29852         (aarch64_elf_asm_destructor): Likewise.
29854 2017-01-23  Bernd Schmidt  <bschmidt@redhat.com>
29856         PR rtl-optimization/78634
29857         * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
29858         (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
29859         * ifcvt.c (noce_try_cmove): Add missing cost check.
29861         PR rtl-optimization/71724
29862         * combine.c (if_then_else_cond): Look for situations where it is
29863         beneficial to undo the work of one of the recursive calls.
29865 2017-01-23  Bin Cheng  <bin.cheng@arm.com>
29867         PR tree-optimization/70754
29868         * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
29869         (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE.  Insert
29870         combined stmt before it if not NULL.
29871         (combine_chains): Process refs reversely and compute dominance point
29872         for root ref.
29874 2017-01-23  Martin Liska  <mliska@suse.cz>
29876         PR tree-optimization/79196
29877         * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
29878         (fold_strstr_to_strncmp): ... this.  Fold the pattern to strncmp
29879         instead of memcmp.
29880         (strlen_optimize_stmt): Call the renamed function.
29882 2017-01-23  Michael Matz  <matz@suse.de>
29884         PR tree-optimization/78384
29885         * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
29887 2017-01-23  Richard Biener  <rguenther@suse.de>
29889         PR tree-optimization/79186
29890         * tree-vrp.c (register_new_assert_for): Make sure we've seen
29891         both incoming edges before moving an assert.
29893 2017-01-23  Martin Jambor  <mjambor@suse.cz>
29895         * ipa-prop.c (load_from_param_1): Removed.
29896         (load_from_unmodified_param): Bits from load_from_param_1 put back
29897         here.
29898         (load_from_param): Removed.
29899         (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
29900         with stmt.  Reverted back to use of load_from_unmodified_param.
29902 2017-01-23  Martin Jambor  <mjambor@suse.cz>
29904         PR ipa/79108
29905         * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
29906         (ipa_node_params): Annotate with GTY((for_user)).  Make descriptors
29907         field a pointer to garbage collected vector, mark lattices and
29908         ipcp_orig_node with GTY((skip)).
29909         (ipa_get_param_count): Adjust to descriptors being a pointer.
29910         (ipa_get_param): Likewise.
29911         (ipa_get_type): Likewise.
29912         (ipa_get_param_move_cost): Likewise.
29913         (ipa_set_param_used): Likewise.
29914         (ipa_get_controlled_uses): Likewise.
29915         (ipa_set_controlled_uses): Likewise.
29916         (ipa_is_param_used): Likewise.
29917         (ipa_node_params_t): Move into garbage collector.  New methods insert
29918         and remove.
29919         (ipa_node_params_sum): Annotate wth GTY(()).
29920         (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
29921         garbage collected.
29922         (ipa_load_from_parm_agg): Adjust declaration.
29923         * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
29924         * ipa-profile.c (ipa_profile): Likewise.
29925         * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
29926         (ipa_populate_param_decls): Make descriptors parameter garbage
29927         collected.
29928         (ipa_dump_param): Adjust to descriptors being a pointer.
29929         (ipa_alloc_node_params): Likewise.
29930         (ipa_initialize_node_params): Likewise.
29931         (load_from_param_1): Make descriptors parameter garbage collected.
29932         (load_from_unmodified_param): Likewise.
29933         (load_from_param): Likewise.
29934         (ipa_load_from_parm_agg): Likewise.
29935         (ipa_node_params::~ipa_node_params): Removed.
29936         (ipa_free_all_node_params): Remove call to delete operator.
29937         (ipa_node_params_t::insert): New.
29938         (ipa_node_params_t::remove): Likewise.
29939         (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
29940         copy known_csts and known_contexts vectors.
29941         (ipa_read_node_info): Adjust to descriptors being a pointer.
29942         (ipcp_modif_dom_walker): Make m_descriptors field garbage
29943         collected.
29944         (ipcp_transform_function): Make descriptors variable garbage
29945         collected.
29947 2017-01-23  Andrew Senkevich  <andrew.senkevich@intel.com>
29949         * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
29950         * config/i386/avx512dqintrin.h: Ditto.
29951         * config/i386/avx512fintrin.h: Ditto.
29952         * config/i386/i386.c: Handle new builtins.
29953         * config/i386/i386-builtin.def: Add new builtins.
29954         * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
29955         (UNSPEC_KORTEST, UNSPEC_KTEST): New.
29957 2017-01-23  Jakub Jelinek  <jakub@redhat.com>
29958             Martin Liska  <mliska@suse.cz>
29960         * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
29961         * asan.c (asan_expand_poison_ifn): Support stores and use
29962         appropriate ASAN report function.
29963         * internal-fn.c (expand_ASAN_POISON_USE): New function.
29964         * internal-fn.def (ASAN_POISON_USE): Declare.
29965         * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
29966         (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
29967         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
29968         ASAN_POISON calls w/o LHS.
29969         * tree-ssa.c (execute_update_addresses_taken): Create clobber
29970         for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
29971         from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
29972         * gimplify.c (asan_poison_variables): Add attribute
29973         use_after_scope_memory to variables that really needs to live
29974         in memory.
29975         * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
29976         having the attribute.
29978 2017-01-23  Martin Liska  <mliska@suse.cz>
29980         * asan.c (create_asan_shadow_var): New function.
29981         (asan_expand_poison_ifn): Likewise.
29982         * asan.h (asan_expand_poison_ifn): New declaration.
29983         * internal-fn.c (expand_ASAN_POISON): Likewise.
29984         * internal-fn.def (ASAN_POISON): New builtin.
29985         * sanopt.c (pass_sanopt::execute): Expand
29986         asan_expand_poison_ifn.
29987         * tree-inline.c (copy_decl_for_dup_finish): Make function
29988         external.
29989         * tree-inline.h (copy_decl_for_dup_finish): Likewise.
29990         * tree-ssa.c (is_asan_mark_p): New function.
29991         (execute_update_addresses_taken): Rewrite local variables
29992         (identified just by use-after-scope as addressable) into SSA.
29994 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
29996         * doc/install.texi (Specific): opensource.apple.com uses https
29997         now. Remove trailing slash.
29999 2017-01-22  Gerald Pfeifer  <gerald@pfeifer.com>
30001         * README.Portability: Remove note on an Irix compatibility issue.
30003 2017-01-22  Dimitry Andric <dim@FreeBSD.org>
30005         * gcov.c (INCLUDE_ALGORITHM): Define.
30006         (INCLUDE_VECTOR): Define.
30007         No longer include <vector> and <algorithm> directly.
30009 2017-01-21  Gerald Pfeifer  <gerald@pfeifer.com>
30011         * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
30012         to https.
30013         * doc/invoke.texi (Code Gen Options): Ditto.
30015 2017-01-21  Jan Hubicka  <hubicka@ucw.cz>
30017         PR lto/78407
30018         * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
30020 2017-01-21  Bernd Schmidt  <bschmidt@redhat.com>
30022         rtl-optimization/79125
30023         * cprop.c (local_cprop_pass): Handle cases where we make an
30024         unconditional trap.
30026 2017-01-20  Segher Boessenkool  <segher@kernel.crashing.org>
30028         PR target/61729
30029         PR target/77850
30030         * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
30031         read from, for big endian.
30033 2017-01-20  Jiong Wang  <jiong.wang@arm.com>
30035         * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
30036         register pauth builtins for LP64 only.
30038 2017-01-20  Marek Polacek  <polacek@redhat.com>
30040         PR c/79152
30041         * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
30042         non-case labels.
30044 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
30046         * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
30047         of safelen status.
30048         * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
30049         * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
30050         * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
30052 2017-01-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30054         PR target/71270
30055         * config/arm/arm.c (neon_valid_immediate): Reject vector constants
30056         in big-endian mode when they are not a single duplicated value.
30058 2017-01-20  Richard Biener  <rguenther@suse.de>
30060         * BASE-VER: Bump to 7.0.1.
30062 2017-01-20  Alexander Monakov  <amonakov@ispras.ru>
30064         * omp-low.c (omplow_simd_context): New struct.  Use it...
30065         (lower_rec_simd_input_clauses): ...here and...
30066         (lower_rec_input_clauses): ...here to hold common data.  Adjust all
30067         references to idx, lane, max_vf, is_simt.
30069 2017-01-20  Graham Markall  <graham.markall@embecosm.com>
30071         * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
30072         mcpu=nps400.
30074 2017-01-20  Martin Jambor  <mjambor@suse.cz>
30076         * hsa.h: Renaed to hsa-common.h.  Adjusted a comment.
30077         * hsa.c: Renaed to hsa-common.c.  Change include of gt-hsa.h to
30078         gt-hsa-common.h.
30079         * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
30080         (GTFILES): Rename hsa.c to hsa-common.c.
30081         * hsa-brig.c: Change include of hsa.h to hsa-common.h.
30082         * hsa-dump.c: Likewise.
30083         * hsa-gen.c: Likewise.
30084         * hsa-regalloc.c: Likewise.
30085         * ipa-hsa.c: Likewise.
30086         * omp-expand.c: Likewise.
30087         * omp-low.c: Likewise.
30088         * toplev.c: Likewise.
30090 2017-01-20  Marek Polacek  <polacek@redhat.com>
30092         PR c/64279
30093         * doc/invoke.texi: Document -Wduplicated-branches.
30094         * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
30095         COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
30096         POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
30097         STATEMENT_LIST, and RETURN_EXPR.  For non-pure non-const functions
30098         return 0 only when not OEP_LEXICOGRAPHIC.
30099         (fold_build_cleanup_point_expr): Use the expression
30100         location when building CLEANUP_POINT_EXPR.
30101         * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
30102         * tree.c (add_expr): Handle error_mark_node.
30104 2017-01-20  Martin Liska  <mliska@suse.cz>
30106         PR lto/69188
30107         * tree-profile.c (init_ic_make_global_vars): Do not call
30108         finalize_decl.
30109         (gimple_init_gcov_profiler): Likewise.
30111 2017-01-20  Martin Liska  <mliska@suse.cz>
30113         PR ipa/71190
30114         * cgraph.h (maybe_create_reference): Remove argument and
30115         update comment.
30116         * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
30117         argument.
30118         * ipa-cp.c (create_specialized_node): Likewise.
30119         * symtab.c (symtab_node::maybe_create_reference): Handle
30120         VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
30122 2017-01-20  Martin Liska  <mliska@suse.cz>
30124         * read-rtl-function.c (function_reader::create_function): Use
30125         build_decl instread of build_decl_stat.
30127 2017-01-20  Andrew Senkevich  <andrew.senkevich@intel.com>
30129         * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
30130         * config/i386/avx512dqintrin.h: Ditto.
30131         * config/i386/avx512fintrin.h: Ditto.
30132         * config/i386/i386-builtin-types.def: Add new types.
30133         * config/i386/i386.c: Handle new types.
30134         * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
30135         (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
30136         (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
30137         (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
30138         (__builtin_ia32_kshiftridi): New.
30139         * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
30141 2017-01-19  Segher Boessenkool  <segher@kernel.crashing.org>
30143         PR target/78875
30144         PR target/79140
30145         * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
30146         define to rs6000_init_stack_protect_guard.
30147         (rs6000_init_stack_protect_guard): New function.
30149 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
30150             Yunqiang Su  <yunqiang.su@imgtec.com>
30152         * config.gcc (supported_defaults): Add madd4.
30153         (with_madd4): Add validation.
30154         (all_defaults): Add madd4.
30155         * config/mips/mips.opt (mmadd4): New option.
30156         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
30157         mmadd4.
30158         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
30159         __mips_no_madd4.
30160         (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
30161         (ISA_HAS_FUSED_MADD4): Likewise.
30162         * doc/invoke.texi (-mmadd4): Document the new option.
30163         * doc/install.texi (--with-madd4): Document the new option.
30165 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
30167         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
30168         entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
30169         AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
30170         (aarch64_init_pauth_hint_builtins): New.
30171         (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
30172         (aarch64_expand_builtin): Expand new builtins.
30174 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
30176         * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
30177         * combine-stack-adj.c (no_unhandled_cfa): Handle
30178         REG_CFA_TOGGLE_RA_MANGLE.
30179         * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
30180         * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
30181         info for return address signing.
30182         (aarch64_expand_epilogue): Likewise.
30184 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
30186         * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
30187         * config/aarch64/aarch64-protos.h
30188         (aarch64_return_address_signing_enabled): New declaration.
30189         * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
30190         New function.
30191         (aarch64_expand_prologue): Sign return address before it's pushed onto
30192         stack.
30193         (aarch64_expand_epilogue): Authenticate return address fetched from
30194         stack.
30195         (aarch64_override_options): Sanity check for ILP32 and ISA level.
30196         (aarch64_attributes): New function attributes for "sign-return-address".
30197         * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
30198         UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
30199         ("*do_return"): Generate combined instructions according to key index.
30200         ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
30201         * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
30202         iterators.
30203         (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
30204         * config/aarch64/aarch64.opt (msign-return-address=): New.
30205         * doc/extend.texi (AArch64 Function Attributes): Documents
30206         "sign-return-address=".
30207         * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
30209 2017-01-19  Matthew Fortune  <matthew.fortune@imgtec.com>
30211         * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
30212         overall option summary.
30214 2017-01-19  Jiong Wang  <jiong.wang@arm.com>
30216         * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
30217         * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
30218         AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
30219         * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
30221 2017-01-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
30223         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
30224         -mpower9-minmax by default for -mcpu=power9.
30225         (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
30226         128-bit floating point.
30228 2017-01-20  Alan Modra  <amodra@gmail.com>
30230         * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
30231         optimizing for size.
30233 2017-01-20  Alan Modra  <amodra@gmail.com>
30235         PR target/79144
30236         * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
30237         for strcmp and strncmp from corresponding builtin decl.
30239 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
30241         * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
30242         instead of i386/rtems-64.h.
30243         * config/i386/rtems-64.h: Remove.
30245 2017-01-19  Uros Bizjak  <ubizjak@gmail.com>
30247         PR target/78478
30248         Revert:
30249         2013-11-05  Uros Bizjak  <ubizjak@gmail.com>
30251         * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
30253 2017-01-19  Tamar Christina  <tamar.christina@arm.com>
30255         * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
30256         Change int to HOST_WIDE_INT.
30257         * config/aarch64/aarch64-protos.h
30258         (aarch64_simd_gen_const_vector_dup): Likewise.
30259         * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
30261 2017-01-19  David Malcolm  <dmalcolm@redhat.com>
30263         * langhooks-def.h (lhd_type_for_size): New decl.
30264         (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
30265         * langhooks.c (lhd_type_for_size): New function, taken from
30266         lto_type_for_size.
30268 2017-01-19  Pat Haugen  <pthaugen@us.ibm.com>
30270         * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
30271         define_bypass for CR latency.
30272         (power9-cracked-alu): Update bypass latency and remove power9-branch.
30273         (power9-alu2): Add define_bypass for CR latency.
30274         (power9-cmp): New.
30275         (power9-mul): Update insn latency.
30276         (power9-mul-compare): Update insn latency, bypass latency and remove
30277         power9-branch.
30279 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
30281         * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
30282         Delete.
30283         * config/aarch64/aarch64.md
30284         (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
30285         aarch64_nopcrelative_literal_loads.
30286         (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
30288 2017-01-19  Chenghua Xu  <paul.hua.gm@gmail.com>
30290         * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
30291         TARGET_LOONGSON_3A.
30292         (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
30294 2017-01-19  Doug Gilmore  <doug.gilmore@imgtec.com>
30296         PR target/78176
30297         * config.gcc (supported_defaults): Add lxc1-sxc1.
30298         (with_lxc1_sxc1): Add validation.
30299         (all_defaults): Add lxc1-sxc1.
30300         * config/mips/mips.opt (mlxc1-sxc1): New option.
30301         * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
30302         mlxc1-sxc1.
30303         (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
30304         __mips_no_lxc1_sxc1.
30305         (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
30306         * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
30307         * doc/install.texi (--with-lxc1-sxc1): Document the new option.
30309 2017-01-19  Richard Biener  <rguenther@suse.de>
30311         PR tree-optimization/72488
30312         * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
30313         sure to restore SSA info.
30314         * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
30316 2017-01-19  Richard Earnshaw  <rearnsha@arm.com>
30318         PR rtl-optimization/79121
30319         * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
30320         of the inner type when shifting an extended value.
30322 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
30324         PR lto/78407
30325         * symtab.c (symtab_node::equal_address_to): Fix comparing of
30326         interposable aliases.
30328 2017-01-18  Peter Bergner  <bergner@vnet.ibm.com>
30330         PR target/78516
30331         * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
30332         Use the evmergelohi instruction.
30333         (mov_si<mode>_e500_subreg4_2_le): Likewise.
30334         (mov_sitf_e500_subreg8_2_be): Likewise.
30335         (mov_sitf_e500_subreg12_2_le): Likewise.
30336         (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
30337         (mov_si<mode>_e500_subreg4_2_be): Likewise.
30338         (mov_sitf_e500_subreg8_2_le): Likewise.
30339         (mov_sitf_e500_subreg12_2_be): Likewise.
30341 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30343         * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
30344         attribute from vecsimple to vecperm.
30345         (altivec_vbpermq2): Likewise.
30347 2017-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30349         PR target/79040
30350         * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
30352 2017-01-18  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
30353         * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
30354         * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
30355         strcmp. Fix bug where comparison didn't stop with zero byte. Fix
30356         case where N arg is SIZE_MAX.
30357         * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
30358         (cmpstrsi): Add pattern.
30360 2017-01-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
30362         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30363         __builtin_vec_revb builtins.
30364         * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
30365         built-in functions to support generation of the ISA 3.0 XXBR<x>
30366         vector byte reverse instructions.
30367         (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
30368         (P9V_BUILTIN_XXBRD_V2DI): Likewise.
30369         (P9V_BUILTIN_XXBRD_V2DF): Likewise.
30370         (P9V_BUILTIN_XXBGW_V4SI): Likewise.
30371         (P9V_BUILTIN_XXBGW_V4SF): Likewise.
30372         (P9V_BUILTIN_XXBGH_V8HI): Likewise.
30373         (P9V_BUILTIN_VEC_REVB): Likewise.
30374         * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
30375         generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
30376         (p9_xxbrq_v16qi): Likewise.
30377         (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
30378         (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
30379         (p9_xxbrh_v8hi): Likewise.
30380         * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
30381         * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
30382         vec_revb built-in functions.
30384 2017-01-18  Uros Bizjak  <ubizjak@gmail.com>
30386         PR rtl-optimization/78952
30387         * config/i386/i386.md (any_extract): New code iterator.
30388         (*insvqi_2): Use any_extract for source operand.
30389         (*insvqi_3): Use any_shiftrt for source operand.
30391 2017-01-18  Wilco Dijkstra  <wdijkstr@arm.com>
30393         * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
30394         New function.
30395         (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
30397 2017-01-18  Matthias Klose  <doko@ubuntu.com>
30399         * doc/install.texi: Allow default for --with-target-bdw-gc-include.
30401 2016-01-18  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30403         * config/rs6000/altivec.h (vec_bperm): Change #define.
30404         * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
30405         (altivec_vbpermq2): New define_insn.
30406         (altivec_vbpermd): Likewise.
30407         * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
30408         function interface.
30409         (VBPERMD): Likewise.
30410         (VBPERM): New polymorphic function interface.
30411         * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
30412         Add entries for P9V_BUILTIN_VEC_VBPERM.
30413         * doc/extend.texi: Add interfaces for vec_bperm.
30415 2017-01-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
30417         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
30418         first letter of error messages.
30419         (s390_resolve_overloaded_builtin): Likewise.
30420         * config/s390/s390.c (s390_expand_builtin): Likewise.
30421         (s390_invalid_arg_for_unprototyped_fn): Likewise.
30422         (s390_valid_target_attribute_inner_p): Likewise.
30423         * config/s390/s390.md ("tabort"): Likewise.
30425 2017-01-18  Toma Tabacu  <toma.tabacu@imgtec.com>
30427         * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
30428         (ISA_AVOID_DIV_HILO): New macro.
30429         (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
30430         (ISA_HAS_DDIV): Likewise.
30432 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
30434         * doc/invoke.texi (fabi-version): Correct number of occurrences.
30436 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
30438         * doc/invoke.texi (fabi-version): Spelling fix.
30440 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
30442         PR c++/70182
30443         * doc/invoke.texi (fabi-version): Mention mangling fix for
30444         operator names.
30446 2017-01-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
30448         PR c++/77489
30449         * doc/invoke.texi (fabi-version): Document discriminator mangling.
30451 2017-01-17  Segher Boessenkool  <segher@kernel.crashing.org>
30453         PR target/78875
30454         * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
30455         * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
30456         the new options.
30457         * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
30458         flexible settings.
30459         (stack_protect_test): Ditto.
30460         * config/rs6000/rs6000.opt (mstack-protector-guard=,
30461         mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
30462         options.
30463         * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
30464         Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
30465         -mstack-protector-guard-offset=.
30466         (RS/6000 and PowerPC Options): Ditto.
30468 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
30470         * config/i386/i386.h (MASK_CLASS_P): New define.
30471         * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
30472         there are no registers from different register sets also when
30473         mask registers are used.  Update function comment.
30474         * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
30475         to (*k/*r) and (*k/*km) alternatives.
30477 2017-01-17  Wilco Dijkstra  <wdijkstr@arm.com>
30479         * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
30480         * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
30481         (EH_RETURN_HANDLER_RTX): New define.
30482         * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
30483         Force frame pointer in EH return functions.
30484         (aarch64_expand_epilogue): Add barrier for eh_return.
30485         (aarch64_final_eh_return_addr): Remove.
30486         (aarch64_eh_return_handler_rtx): New function.
30487         * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
30488         Remove.
30489         (aarch64_eh_return_handler_rtx): New prototype.
30491 2017-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30493         * config/rs6000/altivec.h (vec_rlmi): New #define.
30494         (vec_vrlnm): Likewise.
30495         (vec_rlnm): Likewise.
30496         * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
30497         (UNSPEC_VRLNM): Likewise.
30498         (VIlong): New mode iterator.
30499         (altivec_vrl<VI_char>mi): New define_insn.
30500         (altivec_vrl<VI_char>nm): Likewise.
30501         * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
30502         function entry.
30503         (VRLDNM): Likewise.
30504         (RLNM): New polymorphic function entry.
30505         (VRLWMI): New monomorphic function entry.
30506         (VRLDMI): Likewise.
30507         (RLMI): New polymorphic function entry.
30508         * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
30509         new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
30510         * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
30511         vec_vrlnm.
30513 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
30515         PR debug/78839
30516         * dwarf2out.c (field_byte_offset): Restore the
30517         PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
30518         and DECL_FIELD_BIT_OFFSET.  Use fold_build2 instead of build2 + fold.
30519         (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
30520         of build2 + fold.
30522 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
30524         PR ada/67205
30525         * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
30527 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
30529         PR debug/71669
30530         * dwarf2out.c (add_data_member_location_attribute): For constant
30531         offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
30532         instead of DW_AT_data_member_location, DW_AT_bit_offset and
30533         DW_AT_byte_size attributes.
30535 2017-01-17  Eric Botcazou  <ebotcazou@adacore.com>
30537         * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
30538         after forcing to constant memory when the code model is medium.
30540 2017-01-17  Julia Koval  <julia.koval@intel.com>
30542         PR target/76731
30543         * config/i386/avx512fintrin.h
30544         (_mm512_i32gather_ps): Change __addr type to void const*.
30545         (_mm512_mask_i32gather_ps): Ditto.
30546         (_mm512_i32gather_pd): Ditto.
30547         (_mm512_mask_i32gather_pd): Ditto.
30548         (_mm512_i64gather_ps): Ditto.
30549         (_mm512_mask_i64gather_ps): Ditto.
30550         (_mm512_i64gather_pd): Ditto.
30551         (_mm512_mask_i64gather_pd): Ditto.
30552         (_mm512_i32gather_epi32): Ditto.
30553         (_mm512_mask_i32gather_epi32): Ditto.
30554         (_mm512_i32gather_epi64): Ditto.
30555         (_mm512_mask_i32gather_epi64): Ditto.
30556         (_mm512_i64gather_epi32): Ditto.
30557         (_mm512_mask_i64gather_epi32): Ditto.
30558         (_mm512_i64gather_epi64): Ditto.
30559         (_mm512_mask_i64gather_epi64): Ditto.
30560         (_mm512_i32scatter_ps): Change __addr type to void*.
30561         (_mm512_mask_i32scatter_ps): Ditto.
30562         (_mm512_i32scatter_pd): Ditto.
30563         (_mm512_mask_i32scatter_pd): Ditto.
30564         (_mm512_i64scatter_ps): Ditto.
30565         (_mm512_mask_i64scatter_ps): Ditto.
30566         (_mm512_i64scatter_pd): Ditto.
30567         (_mm512_mask_i64scatter_pd): Ditto.
30568         (_mm512_i32scatter_epi32): Ditto.
30569         (_mm512_mask_i32scatter_epi32): Ditto.
30570         (_mm512_i32scatter_epi64): Ditto.
30571         (_mm512_mask_i32scatter_epi64): Ditto.
30572         (_mm512_i64scatter_epi32): Ditto.
30573         (_mm512_mask_i64scatter_epi32): Ditto.
30574         (_mm512_i64scatter_epi64): Ditto.
30575         (_mm512_mask_i64scatter_epi64): Ditto.
30576         * config/i386/avx512pfintrin.h
30577         (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
30578         (_mm512_mask_prefetch_i32gather_ps): Ditto.
30579         (_mm512_mask_prefetch_i64gather_pd): Ditto.
30580         (_mm512_mask_prefetch_i64gather_ps): Ditto.
30581         (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
30582         (_mm512_prefetch_i32scatter_ps): Ditto.
30583         (_mm512_mask_prefetch_i32scatter_pd): Ditto.
30584         (_mm512_mask_prefetch_i32scatter_ps): Ditto.
30585         (_mm512_prefetch_i64scatter_pd): Ditto.
30586         (_mm512_prefetch_i64scatter_ps): Ditto.
30587         (_mm512_mask_prefetch_i64scatter_pd): Ditto.
30588         (_mm512_mask_prefetch_i64scatter_ps): Ditto.
30589         * config/i386/avx512vlintrin.h
30590         (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
30591         (_mm_mmask_i32gather_ps): Ditto.
30592         (_mm256_mmask_i32gather_pd): Ditto.
30593         (_mm_mmask_i32gather_pd): Ditto.
30594         (_mm256_mmask_i64gather_ps): Ditto.
30595         (_mm_mmask_i64gather_ps): Ditto.
30596         (_mm256_mmask_i64gather_pd): Ditto.
30597         (_mm_mmask_i64gather_pd): Ditto.
30598         (_mm256_mmask_i32gather_epi32): Ditto.
30599         (_mm_mmask_i32gather_epi32): Ditto.
30600         (_mm256_mmask_i32gather_epi64): Ditto.
30601         (_mm_mmask_i32gather_epi64): Ditto.
30602         (_mm256_mmask_i64gather_epi32): Ditto.
30603         (_mm_mmask_i64gather_epi32): Ditto.
30604         (_mm256_mmask_i64gather_epi64): Ditto.
30605         (_mm_mmask_i64gather_epi64): Ditto.
30606         (_mm256_i32scatter_ps): Change __addr type to void*.
30607         (_mm256_mask_i32scatter_ps): Ditto.
30608         (_mm_i32scatter_ps): Ditto.
30609         (_mm_mask_i32scatter_ps): Ditto.
30610         (_mm256_i32scatter_pd): Ditto.
30611         (_mm256_mask_i32scatter_pd): Ditto.
30612         (_mm_i32scatter_pd): Ditto.
30613         (_mm_mask_i32scatter_pd): Ditto.
30614         (_mm256_i64scatter_ps): Ditto.
30615         (_mm256_mask_i64scatter_ps): Ditto.
30616         (_mm_i64scatter_ps): Ditto.
30617         (_mm_mask_i64scatter_ps): Ditto.
30618         (_mm256_i64scatter_pd): Ditto.
30619         (_mm256_mask_i64scatter_pd): Ditto.
30620         (_mm_i64scatter_pd): Ditto.
30621         (_mm_mask_i64scatter_pd): Ditto.
30622         (_mm256_i32scatter_epi32): Ditto.
30623         (_mm256_mask_i32scatter_epi32): Ditto.
30624         (_mm_i32scatter_epi32): Ditto.
30625         (_mm_mask_i32scatter_epi32): Ditto.
30626         (_mm256_i32scatter_epi64): Ditto.
30627         (_mm256_mask_i32scatter_epi64): Ditto.
30628         (_mm_i32scatter_epi64): Ditto.
30629         (_mm_mask_i32scatter_epi64): Ditto.
30630         (_mm256_i64scatter_epi32): Ditto.
30631         (_mm256_mask_i64scatter_epi32): Ditto.
30632         (_mm_i64scatter_epi32): Ditto.
30633         (_mm_mask_i64scatter_epi32): Ditto.
30634         (_mm256_i64scatter_epi64): Ditto.
30635         (_mm256_mask_i64scatter_epi64): Ditto.
30636         (_mm_i64scatter_epi64): Ditto.
30637         (_mm_mask_i64scatter_epi64): Ditto.
30638         * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
30639         (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
30640         (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
30641         (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
30642         (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
30643         (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
30644         (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
30645         (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
30646         (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
30647         (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
30648         (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
30649         (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
30650         (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
30651         (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
30652         (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
30653         (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
30654         (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
30655         (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
30656         (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
30657         (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
30658         (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
30659         (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
30660         (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
30661         (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
30662         (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
30663         (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
30664         (VOID_QI_V8DI_PCINT_INT_INT): Remove.
30665         (V16SF_V16SF_PCVOID_V16SI_HI_INT,  V8DF_V8DF_PCVOID_V8SI_QI_INT)
30666         (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
30667         (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
30668         (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
30669         (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
30670         (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
30671         (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
30672         (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
30673         (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
30674         (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
30675         (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
30676         (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
30677         (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
30678         (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
30679         (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
30680         (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
30681         (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
30682         (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
30683         (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
30684         (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
30685         (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
30686         (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
30687         (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
30688         (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
30689         (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
30690         (VOID_QI_V8DI_PCVOID_INT_INT): Add.
30691         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
30692         definitions accordingly.
30694 2017-01-17  Kito Cheng  <kito.cheng@gmail.com>
30695             Kuan-Lin Chen  <kuanlinchentw@gmail.com>
30697         PR target/79079
30698         * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
30699         gen_lowpart.
30701 2017-01-17  Vladimir Makarov  <vmakarov@redhat.com>
30703         PR target/79058
30704         * ira-conflicts.c (ira_build_conflicts): Update total conflict
30705         hard regs for inner regno.
30707 2017-01-17  Martin Liska  <mliska@suse.cz>
30709         PR ipa/71207
30710         * ipa-polymorphic-call.c (contains_type_p): Fix wrong
30711         assumption and add comment.
30713 2017-01-17  Nathan Sidwell  <nathan@acm.org>
30715         * ipa-visibility.c (localize_node): New function, broken out of ...
30716         (function_and_variable_visibility): ... here. Call it.
30718 2017-01-17  Jan Hubicka  <hubicka@ucw.cz>
30720         PR middle-end/77445
30721         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
30722         correctly set frequency of oudgoing edge.
30723         (duplicate_thread_path): Fix profile updating.
30725 2017-01-17  Jakub Jelinek  <jakub@redhat.com>
30727         PR other/79046
30728         * configure.ac: Add GCC_BASE_VER.
30729         * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
30730         version from BASE-VER file.
30731         (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
30732         (gcc.o): Depend on $(BASEVER).
30733         * common.opt (dumpfullversion): New option.
30734         * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
30735         * doc/invoke.texi: Document -dumpfullversion.
30736         * doc/install.texi: Document --with-gcc-major-version-only.
30737         * configure: Regenerated.
30739 2017-01-17  Richard Biener  <rguenther@suse.de>
30741         PR tree-optimization/71433
30742         * tree-vrp.c (register_new_assert_for): Merge same asserts
30743         on all incoming edges.
30744         (process_assert_insertions_for): Handle insertions at the
30745         beginning of BBs.
30747 2017-01-17  Gerald Pfeifer  <gerald@pfeifer.com>
30749         * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
30750         * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
30752 2017-01-17  Kaz Kojima  <kkojima@gcc.gnu.org>
30754         PR target/78633
30755         * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
30756         RTL sharing.
30758 2017-01-17  Alan Modra  <amodra@gmail.com>
30760         PR target/79066
30761         * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
30762         * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
30763         symbolic stack limit when pic.
30765 2017-01-16  Martin Sebor  <msebor@redhat.com>
30767         PR tree-optimization/78608
30768         * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
30770 2017-01-16  Jeff Law  <law@redhat.com>
30772         Revert:
30773         2016-12-02  Tadek Kijkowski  <tkijkowski@gmail.com>
30774         * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
30775         for several include directories that may be relative to sysroot.
30776         * config/i386/x-mingw32 (gplus_includedir): Define.
30777         (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
30778         (native_system_includedir): Likewise.
30779         * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
30780         override if TARGET_SYSTEM_ROOT is defined.
30781         (NATIVE_SYSTEM_HEADER_DIR): Likewise.
30783         PR tree-optimization/79090
30784         PR tree-optimization/33562
30785         PR tree-optimization/61912
30786         PR tree-optimization/77485
30787         * tree-ssa-dse.c (compute_trims): Accept STMT argument.  Dump STMT
30788         and computed trims into the dump file.
30790 2017-01-17  Uros Bizjak  <ubizjak@gmail.com>
30792         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
30794 2017-01-16  Jakub Jelinek  <jakub@redhat.com>
30796         PR c/79089
30797         * gimplify.c (gimplify_init_constructor): If want_value and
30798         object == lhs, unshare lhs to avoid invalid tree sharing.  Formatting
30799         fix.
30801         PR target/79080
30802         * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
30803         sequence.  Formatting fixes.
30804         (doloop_optimize): Formatting fixes.
30806         PR driver/49726
30807         * gcc.c (debug_level_greater_than_spec_func): New function.
30808         (static_spec_functions): Add debug-level-gt spec function.
30809         (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
30810         !g0.
30811         * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
30812         * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
30813         * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
30814         gpubnames, ggnu-pubnames, gno-record-gcc-switches,
30815         grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
30816         gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
30818 2017-01-16  Uros Bizjak  <ubizjak@gmail.com>
30820         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
30821         QImode fixups to general and mask registers only.
30823 2017-01-16  Carl Love  <cel@us.ibm.com>
30825         * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
30826         for built-in functions
30827         vector signed char vec_nabs (vector signed char)
30828         vector signed short vec_nabs (vector signed short)
30829         vector signed int vec_nabs (vector signed int)
30830         vector signed long long vec_nabs (vector signed long long)
30831         vector float vec_nabs (vector float)
30832         vector double vec_nabs (vector double)
30833         * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
30834         and NABS overload.
30835         * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
30836         * config/rs6000/altivec.h: New define for vec_nabs built-in function.
30837         * doc/extend.texi: Update the documentation file for the new built-in
30838         functions.
30840 2017-01-16  Martin Sebor  <msebor@redhat.com>
30842         * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
30843         message.
30845 2017-01-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
30847         * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
30848         UNSPEC_VSX__XXSPLTD to require special splat handling.
30850 2017-01-16  David Malcolm  <dmalcolm@redhat.com>
30852         PR bootstrap/78616
30853         * system.h: Poison strndup.
30855 2017-01-16  Alan Modra  <amodra@gmail.com>
30857         PR target/79098
30858         * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
30859         use a switch.
30861 2017-01-16  Georg-Johann Lay  <avr@gjlay.de>
30863         * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
30865 2017-01-15  Uros Bizjak  <ubizjak@gmail.com>
30867         * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
30868         call recog here.  Assert that INSN_CODE (insn) is non-negative.
30870 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
30872         PR target/72749
30873         * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
30874         fallthrough.
30875         * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
30876         in the currently scheduled RTL fragment.
30878 2017-01-15  Segher Boessenkool  <segher@kernel.crashing.org>
30880         PR rtl-optimization/78751
30881         * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
30882         give up.
30884 2017-01-14  Jeff Law  <law@redhat.com>
30886         PR tree-optimization/79090
30887         * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
30888         variable length stores.
30889         (compute_trims): Delete dead assignment to *trim_tail.
30890         (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
30891         zero length.
30893 2017-01-14  Bernd Schmidt  <bschmidt@redhat.com>
30895         PR rtl-optimization/78626
30896         PR rtl-optimization/78727
30897         * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
30898         of a block, and split such blocks after everything else is finished.
30900 2017-01-14  Alan Modra  <amodra@gmail.com>
30902         PR target/72749
30903         * combine.c (recog_for_combine_1): Set INSN_CODE before calling
30904         target legitimate_combined_insn.
30905         * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
30906         (rs6000_legitimate_combined_insn): New function.
30907         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
30908         all uses.
30909         (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
30910         (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
30911         (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
30913 2017-01-14  Gerald Pfeifer  <gerald@pfeifer.com>
30915         * doc/frontends.texi (G++ and GCC): Remove references to Java.
30917 2017-01-13  Jeff Law  <law@redhat.com>
30919         PR tree-optimization/33562
30920         PR tree-optimization/61912
30921         PR tree-optimization/77485
30922         * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
30923         a statement.
30924         (delete_dead_assignment): Likewise.
30925         (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
30926         statement to delete_dead_call and delete_dead_assignment.
30928 2017-01-13  David Malcolm  <dmalcolm@redhat.com>
30930         PR c/78304
30931         * substring-locations.c (format_warning_va): Strengthen case 1 so
30932         that both endpoints of the substring must be within the format
30933         range for just the substring to be printed.
30935 2017-01-13  Uros Bizjak  <ubizjak@gmail.com>
30937         * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
30938         * config/i386/i386.c (ix86_target_string): Add missing options
30939         to isa_opts and reorder options by implied ISAs.  Rename isa_opts2 to
30940         isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
30941         flags_other and ix86_target_other to flags2_other.  Display unknown
30942         isa2 options.
30943         (ix86_valid_target_attribute_inner_p): Add missing options and
30944         reorder options by implied ISAs, as in ix86_target_string.
30946 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
30948         * hash-table.h (hash_table::too_empty_p): New function.
30949         (hash_table::expand): Use it.
30950         (hash_table::traverse): Likewise.
30951         (hash_table::empty_slot): Use sizeof (value_type) instead of
30952         sizeof (PTR) to convert bytes to elements.  Shrink the table
30953         if the current size is excessive for the current number of
30954         elements.
30956 2017-01-13  Richard Sandiford  <richard.sandiford@arm.com>
30958         * ira-costs.c (record_reg_classes): Break from the inner loop
30959         early once alt_fail is known to be true.  Update outer loop
30960         handling accordingly.
30962 2017-01-13  Jeff Law  <law@redhat.com>
30964         * tree-ssa-dse.c (decrement_count): New function.
30965         (increment_start_addr, maybe_trim_memstar_call): Likewise.
30966         (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
30967         when we know the partially dead statement is a mem* function.
30969         PR tree-optimization/61912
30970         PR tree-optimization/77485
30971         * tree-ssa-dse.c: Include expr.h.
30972         (maybe_trim_constructor_store): New function.
30973         (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
30975         PR tree-optimization/33562
30976         PR tree-optimization/61912
30977         PR tree-optimization/77485
30978         * doc/invoke.texi: Document new dse-max-object-size param.
30979         * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
30980         * tree-ssa-dse.c: Include params.h.
30981         (dse_store_status): New enum.
30982         (initialize_ao_ref_for_dse): New, partially extracted from
30983         dse_optimize_stmt.
30984         (valid_ao_ref_for_dse, normalize_ref): New.
30985         (setup_live_bytes_from_ref, compute_trims): Likewise.
30986         (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
30987         (maybe_trim_partially_dead_store): Likewise.
30988         (maybe_trim_complex_store): Likewise.
30989         (dse_classify_store): Renamed from dse_possibly_dead_store_p.
30990         Track what bytes live from the original store.  Return tri-state
30991         for dead, partially dead or live.
30992         (dse_dom_walker): Add constructor, destructor and new private members.
30993         (delete_dead_call, delete_dead_assignment): New extracted from
30994         dse_optimize_stmt.
30995         (dse_optimize_stmt): Make a member of dse_dom_walker.
30996         Use initialize_ao_ref_for_dse.
30998         PR tree-optimization/33562
30999         PR tree-optimization/61912
31000         PR tree-optimization/77485
31001         * sbitmap.h (bitmap_count_bits): Prototype.
31002         (bitmap_clear_range, bitmap_set_range): Likewise.
31003         * sbitmap.c (bitmap_clear_range): New function.
31004         (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
31006 2017-01-13  Martin Liska  <mliska@suse.cz>
31008         PR ipa/79043
31009         * function.c (set_cfun): Add new argument force.
31010         * function.h (set_cfun): Likewise.
31011         * ipa-inline-transform.c (inline_call): Use the function when
31012         strict alising from is dropped for function we inline to.
31014 2017-01-13  Richard Biener  <rguenther@suse.de>
31016         * tree-pretty-print.c (dump_generic_node): Fix inverted condition
31017         for dumping GIMPLE INTEGER_CSTs.
31019 2017-01-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
31021         * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
31022         to 201112L since C++17.
31024 2017-01-13  Maxim Ostapenko  <m.ostapenko@samsung.com>
31026         PR sanitizer/78887
31027         * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
31028         if -fsanitize=kernel-address is present.
31030 2017-01-13  Richard Biener  <rguenther@suse.de>
31032         * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
31033         as _Literal ( type ) number in case usual suffixes do not
31034         preserve all information.
31036 2017-01-13  Richard Biener  <rguenther@suse.de>
31038         PR tree-optimization/77283
31039         * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
31040         and ssa-iterators.h.
31041         (is_feasible_trace): Implement a cost model based on joiner
31042         PHI node uses.
31044 2017-01-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
31046         PR target/79004
31047         * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
31048         char or short to __float128/_Float128 directly.
31050 2017-01-12  Martin Sebor  <msebor@redhat.com>
31052         to -Wformat-overflow.
31053         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
31054         (min_bytes_remaining): Same.
31055         (get_string_length): Same.
31056         (format_string): Same.
31057         (format_directive): Same.
31058         (add_bytes): Same.
31059         (pass_sprintf_length::handle_gimple_call): Same.
31061 2017-01-12  Jakub Jelinek  <jakub@redhat.com>
31063         * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
31064         info.nowrite calls with no lhs that can't throw.  Return bool
31065         whether gsi_remove has been called or not.
31066         (pass_sprintf_length::handle_gimple_call): Return bool whether
31067         try_substitute_return_value called gsi_remove.  Formatting fix.
31068         (pass_sprintf_length::execute): Don't use gsi_remove if
31069         handle_gimple_call returned true.
31071         PR bootstrap/79069
31072         * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
31073         be removed due to side-effects, don't remove following barrier nor
31074         turn the successor edge into fallthru edge.
31076 2017-01-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
31078         PR target/79044
31079         * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
31080         element-reversing loads and stores as not swappable.
31082 2017-01-12  Nathan Sidwell  <nathan@acm.org>
31083             Nicolai Stange  <nicstange@gmail.com>
31085         * combine.c (try_combine): Don't ignore result of overlap checking
31086         loop.  Combine overlap & asm check into single loop.
31088 2017-01-12  Richard Biener  <rguenther@suse.de>
31090         * tree-pretty-print.c (dump_generic_node): Provide -gimple
31091         variant for MEM_REF.  Sanitize INTEGER_CST for -gimple.
31093 2017-01-12  Richard Biener  <rguenther@suse.de>
31095         * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
31096         and TS_TARGET_OPTION directly derive from TS_BASE.
31097         * tree-core.h (tree_optimization_option): Derive from tree_base.
31098         (tree_target_option): Likewise.
31100 2017-01-11  Uros Bizjak  <ubizjak@gmail.com>
31102         * config/i386/i386.c (memory_address_length): Increase len
31103         only when rip_relative_addr_p returns false.
31105 2017-01-11  Julia Koval  <julia.koval@intel.com>
31107         * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
31108         (OPTION_MASK_ISA_SGX_SET): New.
31109         (ix86_handle_option): Handle OPT_msgx.
31110         * config.gcc: Added sgxintrin.h.
31111         * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
31112         * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
31113         * config/i386/i386.c (ix86_target_string): Add -msgx.
31114         (PTA_SGX): New.
31115         (ix86_option_override_internal): Handle new options.
31116         (ix86_valid_target_attribute_inner_p): Add sgx.
31117         * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
31118         * config/i386/i386.opt: Add msgx.
31119         * config/i386/sgxintrin.h: New file.
31120         * config/i386/x86intrin.h: Add sgxintrin.h.
31122 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
31124         PR c++/71537
31125         * fold-const.c (maybe_nonzero_address): Return 1 for function
31126         local objects.
31127         (tree_single_nonzero_warnv_p): Don't handle function local objects
31128         here.
31130         PR c++/72813
31131         * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
31132         of c-header.
31134 2017-01-11  David Malcolm  <dmalcolm@redhat.com>
31136         PR driver/78877
31137         * opts.c: Include "spellcheck.h"
31138         (struct string_fragment): New struct.
31139         (struct edit_distance_traits<const string_fragment &>): New
31140         struct.
31141         (get_closest_sanitizer_option): New function.
31142         (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
31144 2017-01-11  Jakub Jelinek  <jakub@redhat.com>
31146         * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
31147         by 12.
31148         (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
31149         DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
31150         (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
31151         (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
31152         for initial die_offset if dwarf_split_debug_info.
31153         (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
31154         initial next_die_offset if dwo_id is non-NULL.  Don't emit padding
31155         fields.
31156         (output_skeleton_debug_sections): Formatting fix.  Use
31157         DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
31158         DWARF_COMPILE_UNIT_HEADER_SIZE.  Don't emit padding.
31160 2017-01-11  Wilco Dijkstra  <wdijkstr@arm.com>
31162         * config/arm/cortex-a53.md: Add bypasses for
31163         cortex_a53_r2f_cvt.
31164         (cortex_a53_r2f): Only use for transfers.
31165         (cortex_a53_f2r): Likewise.
31166         (cortex_a53_r2f_cvt): Add reservation for conversions.
31167         (cortex_a53_f2r_cvt): Likewise.
31169 2017-01-11  Tamar Christina  <tamar.christina@arm.com>
31171         * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
31172         to all inlined functions, change static to extern.
31174 2017-01-11  Christophe Lyon  <christophe.lyon@linaro.org>
31176         PR target/78253
31177         * config/arm/arm.c (legitimize_pic_address): Handle reference to
31178         weak symbol.
31179         (arm_assemble_integer): Likewise.
31181 2017-01-11  Richard Earnshaw  <rearnsha@arm.com>
31183         * config.gcc: Use new awk script to check CPU, FPU and architecture
31184         parameters for --with-... options.
31185         * config/arm/parsecpu.awk: New file
31186         * config/arm/arm-cpus.in: New file.
31187         * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
31188         files.
31189         * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
31190         files.
31191         * config/arm/t-arm: Update dependency rules.
31192         * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
31193         of processing .def files.
31194         * config/arm/genopt.sh: Deleted.
31195         * config/arm/gentune.sh: Deleted.
31196         * config/arm/arm-cores.def: Deleted.
31197         * config/arm/arm-arches.def: Deleted.
31198         * config/arm/arm-fpus.def: Deleted.
31199         * config/arm/arm-tune.md: Regenerated.
31200         * config/arm/arm-tables.opt: Regenerated.
31201         * config/arm/arm-cpu.h: New generated file.
31202         * config/arm/arm-cpu-data.h: New generated file.
31203         * config/arm/arm-cpu-cdata.h: New generated file.
31205 2017-01-11  Maxim Ostapenko  <m.ostapenko@samsung.com>
31207         PR lto/79042
31208         * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
31209         bit.
31210         (input_varpool_node): Unpack dynamically_initialized bit.
31212 2017-01-11  Eric Botcazou  <ebotcazou@adacore.com>
31214         PR rtl-optimization/79032
31215         * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
31216         the alignment of the adjusted memory reference against that of MODE,
31217         instead of the alignment of the original memory reference.
31219 2017-01-11  Martin Jambor  <mjambor@suse.cz>
31221         * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
31222         test.
31223         * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
31224         decorated functions.
31226 2017-01-11  Richard Biener  <rguenther@suse.de>
31228         * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
31229         set range/nonnull info for PHI results.  Do not set it on
31230         stmts marked for removal.
31232 2017-01-10  Eric Botcazou  <ebotcazou@adacore.com>
31234         * expr.c (store_field): In the bitfield case, fetch the return value
31235         from the registers before applying a single big-endian adjustment.
31236         Always do a final load for a BLKmode value not larger than a word.
31238 2017-01-10  David Malcolm  <dmalcolm@redhat.com>
31240         PR c++/77949
31241         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
31242         that we correctly handle column numbers greater than
31243         LINE_MAP_MAX_COLUMN_NUMBER.
31245 2017-01-10  Martin Sebor  <msebor@redhat.com>
31247         PR middle-end/78245
31248         * gimple-ssa-sprintf.c (get_destination_size): Call
31249         {init,fini}object_sizes.
31250         * tree-object-size.c (addr_object_size): Adjust.
31251         (pass_through_call): Adjust.
31252         (pass_object_sizes::execute): Adjust.
31253         * tree-object-size.h (fini_object_sizes): Declare.
31255 2017-01-10  Martin Sebor  <msebor@redhat.com>
31257         PR tree-optimization/78775
31258         * builtins.c (get_size_range): Move...
31259         * calls.c: ...to here.
31260         (alloc_max_size): Accept zero argument.
31261         (operand_signed_p): Remove.
31262         (maybe_warn_alloc_args_overflow): Call get_size_range.
31263         * calls.h (get_size_range): Declare.
31265 2017-01-10  Joe Seymour  <joe.s@somniumtech.com>
31267         * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
31268         from TI's devices.csv file as of September 2016.
31269         * config/msp430/msp430.c (msp430_mcu_data): Likewise.
31271 2017-01-10  Sandra Loosemore  <sandra@codesourcery.com>
31273         * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
31274         * doc/invoke.texi: Likewise.
31275         * doc/md.texi: Likewise.
31276         * doc/objc.texi: Likewise.
31278 2017-01-10  Joshua Conner  <joshconner@google.com>
31280         * config/arm/fuchsia-elf.h: New file.
31281         * config/fuchsia.h: New file.
31282         * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
31283         (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
31284         targets.
31285         * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
31287 2016-01-10  Richard Biener  <rguenther@suse.de>
31289         PR tree-optimization/79034
31290         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
31291         Propagate out degenerate PHIs in the joiner.
31293 2017-01-10  Martin Liska  <mliska@suse.cz>
31295         * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
31296         (sort_congruence_classes_by_decl_uid): Likewise.
31297         (sort_congruence_class_groups_by_decl_uid): Likewise.
31298         (sem_item_optimizer::merge_classes): Sort class, groups in these
31299         classes and members in the groups by DECL_UID of declarations.
31300         This would make merge operations stable.
31302 2017-01-10  Martin Liska  <mliska@suse.cz>
31304         * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
31305         usage of m_classes_vec.
31306         (sem_item_optimizer::~sem_item_optimizer):  Likewise.
31307         (sem_item_optimizer::get_group_by_hash): Likewise.
31308         (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
31309         (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
31310         (sem_item_optimizer::verify_classes): Likewise.
31311         (sem_item_optimizer::process_cong_reduction): Likewise.
31312         (sem_item_optimizer::dump_cong_classes): Likewise.
31313         (sem_item_optimizer::merge_classes): Likewise.
31314         * ipa-icf.h (congruence_class_hash): Rename from
31315         congruence_class_group_hash.  Remove declaration of m_classes_vec.
31317 2017-01-10  Andrew Senkevich  <andrew.senkevich@intel.com>
31319         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
31320         OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
31321         * config.gcc: Add avx512vpopcntdqintrin.h.
31322         * config/i386/avx512vpopcntdqintrin.h: New.
31323         * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
31324         * config/i386/i386-builtin-types.def: Add new types.
31325         * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
31326         __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
31327         __builtin_ia32_vpopcountq_v8di_mask): New.
31328         * config/i386/i386-c.c (ix86_target_macros_internal): Define
31329         __AVX512VPOPCNTDQ__.
31330         * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
31331         (PTA_AVX512VPOPCNTDQ): Define.
31332         * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
31333         TARGET_AVX512VPOPCNTDQ_P): Define.
31334         * config/i386/i386.opt: Add mavx512vpopcntdq.
31335         * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
31336         * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
31338 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
31340         PR middle-end/77484
31341         * predict.def (PRED_CALL): Set to 67.
31343 2017-01-09  Eric Botcazou  <ebotcazou@adacore.com>
31345         * expr.c (store_field): In the bitfield case, if the value comes from
31346         a function call and is of an aggregate type returned in registers, do
31347         not modify the field mode; extract the value in all cases if the mode
31348         is BLKmode and the size is not larger than a word.
31350 2017-01-09  Dominique d'Humieres  <dominiq@lps.ens.fr>
31352         PR target/71017
31353         * config/i386/cpuid.h: Fix undefined behavior.
31355 2017-01-04  Jeff Law  <law@redhat.com>
31357         PR tree-optimization/79007
31358         PR tree-optimization/67955
31359         * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
31360         conservative for pt.null when flag_non_call_exceptions is on.
31362 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
31364         PR translation/79019
31365         PR translation/79020
31366         * params.def (PARAM_INLINE_MIN_SPEEDUP,
31367         PARAM_IPA_CP_SINGLE_CALL_PENALTY,
31368         PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
31369         in descriptions.
31370         * config/avr/avr.opt (maccumulate-args): Likewise.
31371         * config/msp430/msp430.opt (mwarn-mcu): Likewise.
31372         * common.opt (freport-bug): Likewise.
31373         * cif-code.def (CIF_FINAL_ERROR): Likewise.
31374         * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
31375         * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
31376         translatable string.
31377         * config/i386/i386.c (function_value_32): Likewise.
31378         * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
31379         * config/msp430/msp430.c (msp430_option_override, msp430_attr):
31380         Likewise.
31381         * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
31382         * common/config/msp430/msp430-common.c (msp430_handle_option):
31383         Likewise.
31384         * symtab.c (symtab_node::verify_base): Likewise.
31385         * opts.c (set_debug_level): Likewise.
31386         * tree.c (verify_type_variant): Likewise.  Fix typo in comment.
31387         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
31388         missing whitespace to translatable strings.
31389         * config/avr/avr.md (bswapsi2): Fix typo in comment.
31390         * config/sh/superh.h: Likewise.
31391         * config/i386/xopintrin.h: Likewise.
31392         * config/i386/znver1.md: Likewise.
31393         * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
31394         * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
31395         * double-int.h (struct double_int): Likewise.
31396         * double-int.c (div_and_round_double): Likewise.
31397         * wide-int.cc: Likewise.
31398         * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
31399         * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
31400         * cfgcleanup.c (crossjumps_occured): Renamed to ...
31401         (crossjumps_occurred): ... this.
31402         (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
31403         Adjust all uses.
31405         PR tree-optimization/78899
31406         * tree-if-conv.c (version_loop_for_if_conversion): Instead of
31407         returning bool return struct loop *, NULL for failure and the new
31408         loop on success.
31409         (versionable_outer_loop_p): Don't version outer loop if it has
31410         dont_vectorized bit set.
31411         (tree_if_conversion): When versioning outer loop, ensure
31412         tree_if_conversion is performed also on the inner loop of the
31413         non-vectorizable outer loop copy.
31414         * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix.  Fold
31415         LOOP_VECTORIZED in inner loop of the scalar outer loop and
31416         prevent vectorization of it.
31417         (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
31418         the outer loop vectorization of the non-scalar version is attempted
31419         before vectorization of the inner loop in scalar version.  If
31420         outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
31421         vectorization of its inner loop.
31422         * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
31423         has 2 inner loops, rename also on edges from bb whose single pred
31424         is outer_loop->header.  Fix typo in function comment.
31426 2017-01-09  Martin Sebor  <msebor@redhat.com>
31428         PR bootstrap/79033
31429         * asan.c (asan_emit_stack_protection): Increase local buffer size
31430         to avoid snprintf truncation warning.
31432 2017-01-09  Andrew Pinski  <apinski@cavium.com>
31434         * config/aarch64/aarch64-cores.def: Add thunderx2t99.  Change vulcan
31435         to reference thunderx2t99 for the tuning structure
31436         * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
31437         Rename to ...
31438         (thunderx2t99_extra_costs): This.
31439         * config/aarch64/aarch64-tune.md: Regenerate.
31440         * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
31441         (vulcan_addrcost_table): This.
31442         (vulcan_regmove_cost): Rename to ...
31443         (thunderx2t99_regmove_cost): This.
31444         (vulcan_vector_cost): Rename to ...
31445         (thunderx2t99_vector_cost): this.
31446         (vulcan_branch_cost): Rename to ...
31447         (thunderx2t99_branch_cost): This.
31448         (vulcan_tunings): Rename to ...
31449         (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
31450         * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
31452 2017-01-09  Martin Jambor  <mjambor@suse.cz>
31454         PR ipa/78365
31455         PR ipa/78599
31456         * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
31457         * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
31458         (propagate_vr_accross_jump_function): Use the above function for all
31459         value range computations for pass-through jump functions and type
31460         converasion from explicit value range values.
31461         (ipcp_propagate_stage): Do not attempt to deduce types of formal
31462         parameters from TYPE_ARG_TYPES.
31463         * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
31464         (ipa_write_node_info): Stream type of the actual argument.
31465         (ipa_read_node_info): Likewise. Also remove trailing whitespace.
31467 2017-01-09  Martin Liska  <mliska@suse.cz>
31469         PR pch/78970
31470         * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
31471         (lookup_compiler): Do not show error message with have_E.
31473 2017-01-09  Jakub Jelinek  <jakub@redhat.com>
31475         PR tree-optimization/78938
31476         * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
31477         where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
31478         BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
31479         {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR.  Formatting
31480         fixes.
31482 2017-01-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
31484         * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
31485         is const0_rtx.
31487 2017-01-09  Richard Biener  <rguenther@suse.de>
31489         PR tree-optimization/78997
31490         * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
31491         name condition properly.
31493 2017-01-09  Richard Biener  <rguenther@suse.de>
31495         PR debug/79000
31496         * dwarf2out.c (is_cxx): New overload with context.
31497         (is_naming_typedef_decl): Use it.
31499 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
31501         * invoke.texi (Option Summary): Correct spacing in option lists
31502         and add line breaks to fix over-long lines.
31504 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
31506         PR middle-end/17660
31508         * extend.texi (Common Variable Attributes): Add xref to GCC
31509         Internals manual to explain mode attribute keywords.
31511 2017-01-08  Sandra Loosemore  <sandra@codesourcery.com>
31513         PR other/16519
31514         * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
31515         and Preprocessor Options.
31516         (Options for Linking): Document -pthread here....
31517         (RS/6000 and PowerPC Options): ...not here.
31518         (Solaris 2 Options): ...or here.
31519         * doc/cppopts.texi: Document -pthread.
31521 2017-01-08  Martin Sebor  <msebor@redhat.com>
31523         PR middle-end/77708
31524         * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
31525         * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
31526         New member functions.
31527         (format_directive): Used them.
31528         (add_bytes): Same.
31529         (pass_sprintf_length::handle_gimple_call): Same.
31530         * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
31531         to avoid truncation for any argument.
31532         (extract_affine_mul): Same.
31533         * tree.c (get_file_function_name): Same.
31535 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
31537         PR middle-end/77484
31538         * predict.def (PRED_INDIR_CALL): Set to 86.
31540 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31542         PR preprocessor/54124
31543         * doc/cppopts.texi: Reformat -d subtable to list the full name
31544         of the options.  Add cross-reference to the docs for the general
31545         compiler -d options.
31546         * doc/invoke.texi (Developer Options): Add cross-reference to the
31547         preprocessor-specific -d option documentation.
31549 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31551         PR preprocessor/13498
31552         * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
31553         redudant material, and reflect new command-line options.
31554         (System Headers): Likewise.
31556 2017-01-07  Sandra Loosemore  <sandra@codesourcery.com>
31558         * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
31559         -isystem, and -idirafter.  Copy-edit.
31560         * doc/cppopts.texi: Copy-edit.  Remove contradiction about
31561         default for -ftrack-macro-expansion.  Delete obsolete and
31562         badly-formatted implementation details about -fdebug-cpp output.
31563         * doc/cppwarnopts.texi: Copy-edit.
31565 2017-01-07  David Malcolm  <dmalcolm@redhat.com>
31567         PR c++/72803
31568         * input.c (selftest::test_accessing_ordinary_linemaps): Verify
31569         that the transition from a max line width >= 1<<10 to narrower
31570         lines works correctly.
31572 2017-01-07  Alexandre Oliva <aoliva@redhat.com>
31574         * doc/options.texi (PerFunction): New.
31575         * opt-functions.awk (switch_flags): Map both Optimization and
31576         PerFunction to CL_OPTIMIZATION.
31577         * opth-gen.awk: Test for PerFunction flag along with
31578         Optimization.
31579         * optc-save-gen.awk: Likewise.  Introduce var_opt_hash and set
31580         it only when the latter is present.  Skip those that don't in
31581         the hash function generator.
31582         * common.opt (fvar-tracking): Mark as PerFunction instead of
31583         Optimization.
31584         (fvar-tracking-assignments): Likewise.
31585         (fvar-tracking-assignments-toggle): Likewise.
31586         (fvar-tracking-uninit): Likewise.
31588 2017-01-07  Jakub Jelinek  <jakub@redhat.com>
31590         PR translation/79018
31591         * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
31592         the and store.
31594 2017-01-06  Mikael Pettersson  <mikpelinux@gmail.com>
31596         PR target/57583
31597         * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
31598         * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
31599         TARGET_LONG_JUMP_TABLE_OFFSETS.
31600         * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
31601         * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
31602         * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
31603         (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
31604         * config/m68k/m68k.md (tablejump expander): Likewise.
31605         (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
31606         TARGET_LONG_JUMP_TABLE_OFFSETS.
31607         (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
31608         * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
31610 2017-01-06  Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31611             David Holsgrove <david.holsgrove@xilinx.com>
31613         * common/config/microblaze/microblaze-common.c
31614         (TARGET_EXCEPT_UNWIND_INFO): Remove.
31615         * config/microblaze/microblaze-protos.h (microblaze_eh_return):
31616         New prototype.
31617         * config/microblaze/microblaze.c (microblaze_must_save_register)
31618         (microblaze_expand_epilogue, microblaze_return_addr): Handle
31619         calls_eh_return.
31620         (microblaze_eh_return): New function.
31621         * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
31622         (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
31623         (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
31624         * config/microblaze/microblaze.md (eh_return): New pattern.
31626 2017-01-06  Jakub Jelinek  <jakub@redhat.com>
31628         * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
31629         GCC_DIAGNOSTIC_STRINGIFY): Define.
31631         * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
31633 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31635         * config/arm/arm.md (<mcrr>): New.
31636         (<mrrc>): New.
31637         * config/arm/arm.c (arm_arch5te): New.
31638         (arm_option_override): Set arm_arch5te.
31639         (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
31640         and mrrc2.
31641         * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
31642         (arm_mcrr_qualifiers): ... this. New.
31643         (MRRC_QUALIFIERS): Define to...
31644         (arm_mrrc_qualifiers): ... this. New.
31645         * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
31646         __arm_mrrc2): New.
31647         * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
31648         * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
31649         (MRRCI, mrrc, MRRC): New.
31650         * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
31651         VUNSPEC_MRRC2): New.
31653 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31655         * config/arm/arm.md (<mcr>): New.
31656         (<mrc>): New.
31657         * config/arm/arm.c (arm_coproc_builtin_available): Add
31658         support for mcr, mrc, mcr2 and mrc2.
31659         * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
31660         (arm_mcr_qualifiers): ... this. New.
31661         (MRC_QUALIFIERS): Define to ...
31662         (arm_mrc_qualifiers): ... this. New.
31663         (MCR_QUALIFIERS): Define to ...
31664         (arm_mcr_qualifiers): ... this. New.
31665         * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
31666         __arm_mrc2): New.
31667         * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
31668         * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
31669         * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
31670         VUNSPEC_MRC2): New.
31672 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31674         * config/arm/arm.md (*ldc): New.
31675         (*stc): New.
31676         (<ldc>): New.
31677         (<stc>): New.
31678         * config/arm/arm.c (arm_coproc_builtin_available): Add
31679         support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
31680         (arm_coproc_ldc_stc_legitimate_address): New.
31681         * config/arm/arm-builtins.c (arm_type_qualifiers): Add
31682         'qualifier_const_pointer'.
31683         (LDC_QUALIFIERS): Define to...
31684         (arm_ldc_qualifiers): ... this. New.
31685         (STC_QUALIFIERS): Define to...
31686         (arm_stc_qualifiers): ... this. New.
31687         * config/arm/arm-protos.h
31688         (arm_coproc_ldc_stc_legitimate_address): New.
31689         * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
31690         __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
31691         * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
31692         stc2, stcl, stc2l): New.
31693         * config/arm/constraints.md (Uz): New.
31694         * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
31695         * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
31696         VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
31697         VUNSPEC_STC2L): New.
31699 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31701         * config/arm/arm.md (<cdp>): New.
31702         * config/arm/arm.c (neon_const_bounds): Rename this ...
31703         (arm_const_bounds): ... this.
31704         (arm_coproc_builtin_available): New.
31705         * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
31706         (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
31707         (CDP_QUALIFIERS): Define to...
31708         (arm_cdp_qualifiers): ... this. New.
31709         (void_UP): Define.
31710         (arm_expand_builtin_args): Add case for 6 arguments.
31711         * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
31712         (arm_const_bounds): ... this.
31713         (arm_coproc_builtin_available): New.
31714         * config/arm/arm_acle.h (__arm_cdp): New.
31715         (__arm_cdp2): New.
31716         * config/arm/arm_acle_builtins.def (cdp): New.
31717         (cdp2): New.
31718         * config/arm/iterators.md (CDPI,CDP,cdp): New.
31719         * config/arm/neon.md: Rename all 'neon_const_bounds' to
31720         'arm_const_bounds'.
31721         * config/arm/types.md (coproc): New.
31722         * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
31723         * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
31724         * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
31725         arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
31727 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31729         * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
31730         (UBINOP_QUALIFIERS): New.
31731         (si_UP): Define.
31732         (acle_builtin_data): New. Change comment.
31733         (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
31734         ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
31735         ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
31736         arm_acle_builtins.def.
31737         (ARM_BUILTIN_ACLE_PATTERN_START): Define.
31738         (arm_init_acle_builtins): New.
31739         (CRC32_BUILTIN): Remove.
31740         (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
31741         crc32cb, crc32ch and crc32cw.
31742         (arm_init_crc32_builtins): Remove.
31743         (arm_init_builtins): Use arm_init_acle_builtins rather
31744         than arm_init_crc32_builtins.
31745         (arm_expand_acle_builtin): New.
31746         (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
31747         * config/arm/arm_acle_builtins.def: New.
31749 2017-01-06  Andre Vieira  <andre.simoesdiasvieira@arm.com>
31751         * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
31752         (arm_builtin_datum): ... this.
31753         (arm_init_neon_builtin): Rename to ...
31754         (arm_init_builtin): ... this. Add a new parameters PREFIX
31755         and USE_SIG_IN_NAME.
31756         (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
31757         'arm_init_builtin'. Replace type 'neon_builtin_datum' with
31758         'arm_builtin_datum'.
31759         (arm_init_vfp_builtins): Likewise.
31760         (builtin_arg): Rename enum's replacing 'NEON_ARG' with
31761         'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
31762         (arm_expand_neon_args): Rename to ...
31763         (arm_expand_builtin_args): ... this. Rename builtin_arg
31764         enum values and differentiate between ARG_BUILTIN_MEMORY
31765         and ARG_BUILTIN_NEON_MEMORY.
31766         (arm_expand_neon_builtin_1): Rename to ...
31767         (arm_expand_builtin_1): ... this. Rename builtin_arg enum
31768         values, arm_expand_builtin_args and add bool parameter NEON.
31769         (arm_expand_neon_builtin): Use arm_expand_builtin_1.
31770         (arm_expand_vfp_builtin): Likewise.
31771         (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
31773 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
31775         PR middle-end/77484
31776         * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
31777         * predict.c (tree_estimate_probability_bb): Reverse direction of
31778         polymorphic call predictor.
31780 2017-01-06  David Malcolm  <dmalcolm@redhat.com>
31782         * passes.c (execute_one_pass): Split out pass-skipping logic into...
31783         (determine_pass_name_match): ...this new function and...
31784         (should_skip_pass_p): ...this new function.
31786 2017-01-06  Nathan Sidwell  <nathan@acm.org>
31788         * ipa-visibility.c (function_and_variable_visibility): Reformat
31789         comments and long lines.  Remove extrneous if.
31790         * symtab.c (symtab_node::make_decl_local): Fix code format.
31791         (symtab_node::set_section_for_node): Fix comment typo.
31793 2017-01-06  Martin Liska  <mliska@suse.cz>
31795         PR bootstrap/79003
31796         * lra-constraints.c: Rename invariant to lra_invariant.
31797         * predict.c (set_even_probabilities): Initialize e to NULL.
31799 2017-01-05  Martin Sebor  <msebor@redhat.com>
31801         PR tree-optimization/78910
31802         * gimple-ssa-sprintf.c (tree_digits): Add an argument.
31803         (format_integer): Correct off-by-one error in the handling
31804         of precision with negative numbers in signed conversions..
31806 2017-01-05  Eric Botcazou  <ebotcazou@adacore.com>
31808         * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
31810 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
31812         PR tree-optimization/71016
31813         * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
31814         factor_out_conditional_conversion.  Formatting fix.
31815         (factor_out_conditional_conversion): Add cond_stmt argument.
31816         If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
31817         cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
31818         Formatting fix.
31820 2017-01-05  David Malcolm  <dmalcolm@redhat.com>
31822         * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
31823         read-rtl-function.o, and selftest-rtl.o.
31824         * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
31825         (selftest::aarch64_test_loading_full_dump): New function.
31826         (selftest::aarch64_run_selftests): New function.
31827         (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
31828         selftest::aarch64_run_selftests.
31829         * config/i386/i386.c
31830         (selftest::ix86_test_loading_dump_fragment_1): New function.
31831         (selftest::ix86_test_loading_call_insn): New function.
31832         (selftest::ix86_test_loading_full_dump): New function.
31833         (selftest::ix86_test_loading_unspec): New function.
31834         (selftest::ix86_run_selftests): Call the new functions.
31835         * emit-rtl.c (maybe_set_max_label_num): New function.
31836         * emit-rtl.h (maybe_set_max_label_num): New decl.
31837         * function.c (instantiate_decls): Guard call to
31838         instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
31839         * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
31840         "static".
31841         * gensupport.c (gen_reader::gen_reader): Pass "false"
31842         for new "compact" param of rtx_reader.
31843         * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
31844         rather than an empty string for NULL strings.
31845         * read-md.c: Potentially include config.h rather than bconfig.h.
31846         Wrap include of errors.h with #ifdef GENERATOR_FILE.
31847         (have_error): New global, copied from errors.c.
31848         (md_reader::read_name): Rename to...
31849         (md_reader::read_name_1): ...this, adding "out_loc" param,
31850         and converting "missing name or number" to returning false, rather
31851         than failing.
31852         (md_reader::read_name): Reimplement in terms of read_name_1.
31853         (md_reader::read_name_or_nil): New function.
31854         (md_reader::read_string): Handle "(nil)" by returning NULL.
31855         (md_reader::md_reader): Add new param "compact".
31856         (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
31857         (md_reader::read_file): New method.
31858         * read-md.h (md_reader::md_reader): Add new param "compact".
31859         (md_reader::read_file): New method.
31860         (md_reader::is_compact): New accessor.
31861         (md_reader::read_name): Convert return type from void to file_location.
31862         (md_reader::read_name_or_nil): New decl.
31863         (md_reader::read_name_1): New decl.
31864         (md_reader::m_compact): New field.
31865         (noop_reader::noop_reader): Pass "false" for new "compact" param
31866         of rtx_reader.
31867         (rtx_reader::rtx_reader): Add new "compact" param.
31868         (rtx_reader::read_rtx_operand): Make virtual and convert return
31869         type from void to rtx.
31870         (rtx_reader::read_until): New decl.
31871         (rtx_reader::handle_any_trailing_information): New virtual function.
31872         (rtx_reader::postprocess): New virtual function.
31873         (rtx_reader::finalize_string): New virtual function.
31874         (rtx_reader::m_in_call_function_usage): New field.
31875         (rtx_reader::m_reuse_rtx_by_id): New field.
31876         * read-rtl-function.c: New file.
31877         * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
31878         * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
31879         (selftest::verify_three_block_rtl_cfg): New decl.
31880         * read-rtl-function.h: New file.
31881         * read-rtl.c: Potentially include config.h rather than bconfig.h.
31882         For host, include function.h, memmodel.h, and emit-rtl.h.
31883         (one_time_initialization): New function.
31884         (struct compact_insn_name): New struct.
31885         (compact_insn_names): New array.
31886         (find_code): Handle insn codes in compact dumps.
31887         (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
31888         (bind_subst_iter_and_attr): Likewise.
31889         (add_condition_to_string): Likewise.
31890         (add_condition_to_rtx): Likewise.
31891         (apply_attribute_uses): Likewise.
31892         (add_current_iterators): Likewise.
31893         (apply_iterators): Likewise.
31894         (initialize_iterators): Guard usage of apply_subst_iterator with
31895         #ifdef GENERATOR_FILE.
31896         (read_conditions): Wrap with #ifdef GENERATOR_FILE.
31897         (md_reader::read_mapping): Likewise.
31898         (add_define_attr_for_define_subst): Likewise.
31899         (add_define_subst_attr): Likewise.
31900         (read_subst_mapping): Likewise.
31901         (check_code_iterator): Likewise.
31902         (rtx_reader::read_rtx): Likewise.  Move one-time initialization
31903         logic to...
31904         (one_time_initialization): New function.
31905         (rtx_reader::read_until): New method.
31906         (read_flags): New function.
31907         (parse_reg_note_name): New function.
31908         (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
31909         Handle reuse_rtx ids.
31910         Wrap iterator lookup within #ifdef GENERATOR_FILE.
31911         Add parsing support for RTL dumps, mirroring the special-cases in
31912         print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
31913         values, and calling handle_any_trailing_information.
31914         (rtx_reader::read_rtx_operand): Convert return type from void
31915         to rtx, returning return_rtx.  Handle case 'e'.  Call
31916         finalize_string on XSTR and XTMPL fields.
31917         (rtx_reader::read_nested_rtx):  Handle dumps in which trailing
31918          "(nil)" values were omitted.  Call the postprocess vfunc on the
31919         return_rtx.
31920         (rtx_reader::rtx_reader): Add new "compact" param and pass to base
31921         class ctor.  Initialize m_in_call_function_usage.  Call
31922         one_time_initialization.
31923         * rtl-tests.c (selftest::test_uncond_jump): Call
31924         set_new_first_and_last_insn.
31925         * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
31926         * selftest-rtl.c: New file.
31927         * selftest-rtl.h (class selftest::rtl_dump_test): New class.
31928         (selftest::get_insn_by_uid): New decl.
31929         * selftest-run-tests.c (selftest::run_tests): Call
31930         read_rtl_function_c_tests.
31931         * selftest.h  (selftest::read_rtl_function_c_tests): New decl.
31932         * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
31933         dumps.
31935 2017-01-05  Uros Bizjak  <ubizjak@gmail.com>
31937         * config/i386/i386.md (*testqi_ext_3): No need to handle memory
31938         operands in a special way.  Assert that pos+len <= mode precision.
31940 2017-01-05  Jakub Jelinek  <jakub@redhat.com>
31942         * common.opt (fvect-cost-model): Remove RejectNegative flag, use
31943         3 argument Alias with unlimited for the negative form.
31944         (fno-vect-cost-model): Removed.
31946 2017-01-05  Martin Liska  <mliska@suse.cz>
31948         * hsa-gen.c (gen_hsa_divmod): New function.
31949         (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
31951 2017-01-05  Martin Liska  <mliska@suse.cz>
31953         PR pch/78970
31954         * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
31955         header.
31957 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31959         * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
31960         small constant length operands.
31962 2017-01-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
31964         * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
31965         between loop iterations.
31967 2017-01-05  Martin Liska  <mliska@suse.cz>
31969         PR sanitizer/78815
31970         * gimplify.c (gimplify_decl_expr): Compare to
31971         asan_poisoned_variables instread of checking flags.
31972         (gimplify_target_expr): Likewise.
31973         (gimplify_expr): Likewise.
31974         (gimplify_function_tree): Conditionally initialize
31975         asan_poisoned_variables.
31977 2017-01-04  Jeff Law  <law@redhat.com>
31979         PR tree-optimizatin/78812
31980         * rtl.h (contains_mem_rtx_p): Prototype.
31981         * ifcvt.c (containts_mem_rtx_p): Move from here to...
31982         * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
31983         * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
31984         and prune MEMs that are not at the toplevel of a SET_SRC rtx.  Look
31985         through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
31987 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
31989         * input.c (assert_char_at_range): Default-initialize actual_range.
31991 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
31993         * df-scan.c (df_ref_create_structure): Make regno unsigned,
31994         to match the caller.
31996 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
31998         * cfgexpand.c (expand_gimple_basic_block): Disregard debug
31999         insns after final jump in test to emit dummy move.
32001 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
32003         * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
32004         * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
32006 2017-01-04  Alexandre Oliva <aoliva@redhat.com>
32008         * multiple_target.c (create_dispatcher_calls): Init e_next.
32009         * tree-ssa-loop-split.c (split_loop): Init border.
32010         * tree-vect-loop.c (vect_determine_vectorization_factor): Init
32011         scalar_type.
32013 2017-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
32015         PR target/71977
32016         PR target/70568
32017         PR target/78823
32018         * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
32019         (altivec_register_operand): Do not return true if the operand
32020         contains a SUBREG mixing SImode and SFmode.
32021         (vsx_register_operand): Likewise.
32022         (vsx_reg_sfsubreg_ok): New predicate.
32023         (vfloat_operand): Do not return true if the operand contains a
32024         SUBREG mixing SImode and SFmode.
32025         (vint_operand): Likewise.
32026         (vlogical_operand): Likewise.
32027         (gpc_reg_operand): Likewise.
32028         (int_reg_operand): Likewise.
32029         * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
32030         * config/rs6000/rs6000.c (valid_sf_si_move): New function to
32031         determine if a MOVSI or MOVSF operation contains SUBREGs that mix
32032         SImode and SFmode.
32033         (rs6000_emit_move_si_sf_subreg): New helper function.
32034         (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
32035         fixup SUBREGs involving SImode and SFmode.
32036         * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
32037         numbers for the new peephole2 optimization.
32038         (peephole2 for SFmode unions): New peephole2 to optimize cases in
32039         the GLIBC math library that do AND/IOR/XOR operations on single
32040         precision floating point.
32041         * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
32042         target macros to say whether we need to avoid SUBREGs mixing
32043         SImode and SFmode.
32044         (TARGET_ALLOW_SF_SUBREG): Likewise.
32045         * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
32046         (UNSPEC_SI_FROM_SF): Likewise.
32047         (iorxor): Change spacing.
32048         (and_ior_xor): New iterator for AND, IOR, and XOR.
32049         (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
32050         (movdi_from_sf_zero_ext): Likewise.
32051         (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
32052         instead of gpc_reg_operand.  Add SImode/SFmode SUBREG support.
32053         (movsf_from_si): New insn for SImode/SFmode SUBREG support.
32054         (fma<mode>4): Use gpc_reg_operand instead of register_operand.
32055         (fms<mode>4): Likewise.
32056         (fnma<mode>4): Likewise.
32057         (fnms<mode>4): Likewise.
32058         (nfma<mode>4): Likewise.
32059         (nfms<mode>4): Likewise.
32061 2017-01-04  Marek Polacek  <polacek@redhat.com>
32063         PR c++/64767
32064         * doc/invoke.texi: Document -Wpointer-compare.
32066 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
32068         * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
32069         RejectNegative.
32071         * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
32072         descriptions for -gdwarf-5 and emit them as uleb128 instead of
32073         2-byte data.
32075 2017-01-04  Kelvin Nilsen  <kelvin@gcc.gnu.org>
32077         PR target/78056
32078         * doc/sourcebuild.texi (PowerPC-specific attributes): Add
32079         documentation of the powerpc_popcntb_ok attribute.
32080         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
32081         code to issue warning messages if a requested CPU configuration is
32082         not supported by the binary (assembler and loader) toolchain.
32083         (spe_init_builtins): Add two assertions to prevent ICE if attempt is
32084         made to define a built-in function that has been disabled.
32085         (paired_init_builtins): Add assertion to prevent ICE if attempt is
32086         made to define a built-in function that has been disabled.
32087         (altivec_init_builtins): Add comment explaining why definition
32088         of the DST built-in functions is not preceded by an assertion
32089         check.  Add assertions to prevent ICE if attempts are made to
32090         define an altivec predicate or an abs* built-in function that has
32091         been disabled.
32092         (htm_init_builtins): Add comment explaining why definition of the
32093         htm built-in functions is not preceded by an assertion check.
32095 2017-01-04  Jeff Law  <law@redhat.com>
32097         PR tree-optimizatin/67955
32098         * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
32099         Allow any SSA_VAR_P as the base objects.  Use integer_zerop.  Verify
32100         the points-to solution does not include pt_null.  Use DECL_PT_UID
32101         unconditionally.
32103 2017-01-04  Uros Bizjak  <ubizjak@gmail.com>
32105         * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
32106         Use gen_int_mode instead of gen_lopwart for const_int operands.
32108 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
32110         PR tree-optimization/71563
32111         * match.pd: Simplify X << Y into X if Y is known to be 0 or
32112         out of range value - has low bits known to be zero.
32114 2017-01-04  Alan Modra  <amodra@gmail.com>
32116         * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
32117         * configure: Regenerate.
32118         * config.in: Regenerate.
32120 2017-01-04  Jakub Jelinek  <jakub@redhat.com>
32122         PR bootstrap/77569
32123         * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
32124         a substring of the message, but strcmp with the whole message.  Ifdef
32125         ENABLE_NLS, translate the message first using dgettext.
32127 2017-01-03  Jeff Law  <law@redhat.com>
32129         PR tree-optimizatin/78856
32130         * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
32131         (mark_threaded_blocks): Remove code to truncate thread paths that
32132         cross multiple loop headers.  Instead invalidate the cached loop
32133         iteration information and handle case of a thread path walking
32134         into an irreducible region.
32136 2017-01-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
32138         PR target/78900
32139         * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
32140         assertions.  Add support for doing the signbit if the IEEE 128-bit
32141         floating point value is in a GPR.
32142         * config/rs6000/rs6000.md (Fsignbit): Delete.
32143         (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
32144         Update the length attribute if the value is in a GPR.
32145         (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
32146         the sign or zero extension instruction, since the value is always 0/1.
32147         (signbit<mode>2_dm2): Delete using <Fsignbit>.
32149         PR target/78953
32150         * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
32151         extracting SImode to a GPR register so that we can generate a
32152         store, limit the vector to be in a traditional Altivec register
32153         for the vextuwrx instruction.
32155 2017-01-03  Ian Lance Taylor  <iant@google.com>
32157         * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
32159 2017-01-03  Martin Sebor  <msebor@redhat.com>
32161         PR tree-optimization/78696
32162         * gimple-ssa-sprintf.c (format_floating): Correct handling of
32163         precision.  Use MPFR for %f for greater fidelity.  Correct handling
32164         of %g.
32165         (pass_sprintf_length::compute_format_length): Set width and precision
32166         specified by asrerisk to void_node for vararg functions.
32167         (try_substitute_return_value): Adjust dump output.
32169 2017-01-03  David Edelsohn  <dje.gcc@gmail.com>
32171         * doc/invoke.texi (RS6000 options): LRA is enabled by default.
32173 2017-01-03  Eric Botcazou  <ebotcazou@adacore.com>
32175         * doc/invoke.texi (SPARC options): Document -mlra as the default.
32176         * config/sparc/sparc.c (sparc_option_override): Force LRA unless
32177         -mlra/-mno-lra was passed to the compiler.
32179 2017-01-03  James Cowgill  <James.Cowgill@imgtec.com>
32181         PR rtl-optimization/65618
32182         * emit-rtl.c (try_split): Move initialization of "before" and
32183         "after" to just before the call to emit_insn_after_setloc.
32185 2017-01-03  Gerald Pfeifer  <gerald@pfeifer.com>
32187         * doc/md.texi (Standard Names): Remove reference to Java frontend.
32189 2017-01-03  Pierre-Marie de Rodat  <derodat@adacore.com>
32191         * dwarf2out.c (gen_enumeration_type_die): When
32192         -gno-strict-dwarf, add a DW_AT_encoding attribute.
32194 2017-01-03  Jakub Jelinek  <jakub@redhat.com>
32196         PR tree-optimization/78965
32197         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
32198         Change first argument from const call_info & to call_info &.  For %n
32199         set info.nowrite to false.
32201         PR middle-end/78901
32202         * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
32203         possibly throwing calls.
32205         * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
32206         and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
32207         and fns handling, rather than in a separate case SSA_NAME.
32209 2017-01-02  Jeff Law  <law@redhat.com>
32211         * config/darwin-driver.c (darwin_driver_init): Const-correctness
32212         fixes for first_period and second_period variables.
32214 2017-01-02  Uros Bizjak  <ubizjak@gmail.com>
32216         PR target/78967
32217         * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
32218         (*insvqi_1): New insn pattern.
32219         (*insvqi_1_mem_rex64): Ditto.
32220         (*insvqi_2): Ditto.
32221         (*insvqi_3): Rename from *insvqi.
32223         (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
32225 2017-01-02  Gerald Pfeifer  <gerald@pfeifer.com>
32227         * doc/cfg.texi (Edges): Remove reference to Java.
32228         (Maintaining the CFG): Ditto.
32230 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
32232         PR middle-end/77674
32233         * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
32234         transparent aliases.
32236 2017-01-01  Jan Hubicka  <hubicka@ucw.cz>
32238         PR middle-end/77484
32239         * predict.def (PRED_CALL): Update hitrate.
32240         (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
32241         * predict.c (tree_estimate_probability_bb): Split CALL predictor
32242         into direct/indirect/polymorphic variants.
32244 2017-01-01  Jakub Jelinek  <jakub@redhat.com>
32246         Update copyright years.
32248         * gcc.c (process_command): Update copyright notice dates.
32249         * gcov-dump.c (print_version): Ditto.
32250         * gcov.c (print_version): Ditto.
32251         * gcov-tool.c (print_version): Ditto.
32252         * gengtype.c (create_file): Ditto.
32253         * doc/cpp.texi: Bump @copying's copyright year.
32254         * doc/cppinternals.texi: Ditto.
32255         * doc/gcc.texi: Ditto.
32256         * doc/gccint.texi: Ditto.
32257         * doc/gcov.texi: Ditto.
32258         * doc/install.texi: Ditto.
32259         * doc/invoke.texi: Ditto.
32261 Copyright (C) 2017 Free Software Foundation, Inc.
32263 Copying and distribution of this file, with or without modification,
32264 are permitted in any medium without royalty provided the copyright
32265 notice and this notice are preserved.