1 2017-10-27 Eric Botcazou <ebotcazou@adacore.com>
3 * bb-reorder.c (find_traces_1_round): Fix off-by-one index.
4 Move comment around. Do not reset best_edge for a copiable
5 destination if the copy would cause a partition change.
6 (better_edge_p): Remove redundant check.
8 2017-10-27 Uros Bizjak <ubizjak@gmail.com>
10 * config/i386/i386-protos.h (ix86_fp_compare_mode): Remove prototype.
12 2017-10-27 Michael Meissner <meissner@linux.vnet.ibm.com>
14 * builtins.c (CASE_MATHFN_FLOATN): New helper macro to add cases
15 for math functions that have _Float<N> and _Float<N>X variants.
16 (mathfn_built_in_2): Add support for math functions that have
17 _Float<N> and _Float<N>X variants.
18 (DEF_INTERNAL_FLT_FLOATN_FN): New helper macro.
19 (expand_builtin_mathfn_ternary): Add support for fma with
20 _Float<N> and _Float<N>X variants.
21 (expand_builtin): Likewise.
22 (fold_builtin_3): Likewise.
23 * builtins.def (DEF_EXT_LIB_FLOATN_NX_BUILTINS): New macro to
24 create math function _Float<N> and _Float<N>X variants as external
26 (BUILT_IN_COPYSIGN _Float<N> and _Float<N>X variants) Use
27 DEF_EXT_LIB_FLOATN_NX_BUILTINS to make built-in functions using
28 the __builtin_ prefix and if not strict ansi, without the prefix.
29 (BUILT_IN_FABS _Float<N> and _Float<N>X variants): Likewise.
30 (BUILT_IN_FMA _Float<N> and _Float<N>X variants): Likewise.
31 (BUILT_IN_FMAX _Float<N> and _Float<N>X variants): Likewise.
32 (BUILT_IN_FMIN _Float<N> and _Float<N>X variants): Likewise.
33 (BUILT_IN_NAN _Float<N> and _Float<N>X variants): Likewise.
34 (BUILT_IN_SQRT _Float<N> and _Float<N>X variants): Likewise.
35 * builtin-types.def (BT_FN_FLOAT16_FLOAT16_FLOAT16_FLOAT16): New
36 function signatures for fma _Float<N> and _Float<N>X variants.
37 (BT_FN_FLOAT32_FLOAT32_FLOAT32_FLOAT32): Likewise.
38 (BT_FN_FLOAT64_FLOAT64_FLOAT64_FLOAT64): Likewise.
39 (BT_FN_FLOAT128_FLOAT128_FLOAT128_FLOAT128): Likewise.
40 (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X_FLOAT32X): Likewise.
41 (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X_FLOAT64X): Likewise.
42 (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X_FLOAT128X): Likewise.
43 * gencfn-macros.c (print_case_cfn): Add support for math functions
44 that have _Float<N> and _Float<N>X variants.
45 (print_define_operator_list): Likewise.
46 (fltfn_suffixes): Likewise.
48 * internal-fn.def (DEF_INTERNAL_FLT_FLOATN_FN): New helper macro
49 for math functions that have _Float<N> and _Float<N>X variants.
50 (SQRT): Add support for sqrt, copysign, fmin and fmax _Float<N>
51 and _Float<N>X variants.
55 * fold-const.c (tree_call_nonnegative_warnv_p): Add support for
56 copysign, fma, fmax, fmin, and sqrt _Float<N> and _Float<N>X
58 (integer_valued_read_call_p): Likewise.
59 * fold-const-call.c (fold_const_call_ss): Likewise.
60 (fold_const_call_sss): Add support for copysign, fmin, and fmax
61 _Float<N> and _Float<N>X variants.
62 (fold_const_call_ssss): Add support for fma _Float<N> and
64 * gimple-ssa-backprop.c (backprop::process_builtin_call_use): Add
65 support for copysign and fma _Float<N> and _Float<N>X variants.
66 (backprop::process_builtin_call_use): Likewise.
67 * tree-call-cdce.c (can_test_argument_range); Add support for
68 sqrt _Float<N> and _Float<N>X variants.
69 (edom_only_function): Likewise.
70 (get_no_error_domain): Likewise.
71 * tree-ssa-math-opts.c (internal_fn_reciprocal): Likewise.
72 * tree-ssa-reassoc.c (attempt_builtin_copysign): Add support for
73 copysign _Float<N> and _Float<N>X variants.
74 * config/rs6000/rs6000-builtin.def (SQRTF128): Delete, this is now
75 handled by machine independent code.
77 * doc/cpp.texi (Common Predefined Macros): Document defining
78 __FP_FAST_FMAF<N> and __FP_FAST_FMAF<N>X if the backend supports
79 fma _Float<N> and _Float<N>X variants.
81 2017-10-27 Uros Bizjak <ubizjak@gmail.com>
84 * config/i386/i386-modes.def (CCFPU): Remove definition.
85 * config/i386/i386.c (put_condition_mode): Remove CCFPU mode handling.
86 (ix86_cc_modes_compatible): Ditto.
87 (ix86_expand_carry_flag_compare): Ditto.
88 (ix86_expand_int_movcc): Ditto.
89 (ix86_expand_int_addcc): Ditto.
90 (ix86_reverse_condition): Ditto.
91 (ix86_unordered_fp_compare): Rename from ix86_fp_compare_mode.
92 Return true/false for unordered/ordered fp comparisons.
93 (ix86_cc_mode): Always return CCFPmode for float mode comparisons.
94 (ix86_prepare_fp_compare_args): Update for rename.
95 (ix86_expand_fp_compare): Update for rename. Generate unordered
96 compare RTXes wrapped with UNSPEC_NOTRAP unspec.
97 (ix86_expand_sse_compare_and_jump): Ditto.
98 * config/i386/predicates.md (fcmov_comparison_operator):
99 Remove CCFPU mode handling.
100 (ix86_comparison_operator): Ditto.
101 (ix86_carry_flag_operator): Ditto.
102 * config/i386/i386.md (UNSPEC_NOTRAP): New unspec.
103 (*cmpu<mode>_i387): Wrap compare RTX with UNSPEC_NOTRAP unspec.
104 (*cmpu<mode>_cc_i387): Ditto.
105 (FPCMP): Remove mode iterator.
106 (unord): Remove mode attribute.
107 (unord_subst): New define_subst transformation
108 (unord): New define_subst attribute.
110 (*cmpi<unord><MODEF:mode>): Rewrite using unord_subst transformation.
111 (*cmpi<unord>xf_i387): Ditto.
112 * config/i386/sse.md (<sse>_<unord>comi<round_saeonly_name>): Merge
113 from <sse>_comi<round_saeonly_name> and <sse>_ucomi<round_saeonly_name>
114 using unord_subst transformation.
115 * config/i386/subst.md (SUBST_A): Remove CCFP and CCFPU modes.
116 (round_saeonly): Also handle CCFP mode.
117 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_NOTRAP unspec.
118 Remove UNSPEC_SAHF unspec handling.
120 2017-10-27 Jan Hubicka <hubicka@ucw.cz>
122 * x86-tune.def (X86_TUNE_INTER_UNIT_MOVES_TO_VEC): Disable for Zen.
124 2017-10-27 Jeff Law <law@redhat.com>
126 * gimple-ssa-sprintf.c: Include domwalk.h.
127 (class sprintf_dom_walker): New class, derived from dom_walker.
128 (sprintf_dom_walker::before_dom_children): New function.
129 (struct call_info): Moved into sprintf_dom_walker class
130 (compute_formath_length, handle_gimple_call): Likewise.
131 (sprintf_length::execute): Call the dominator walker rather
132 than walking the statements.
134 * tree-vrp.c (check_all_array_refs): Do not use wi->info to smuggle
135 gimple statement locations.
136 (check_array_bounds): Corresponding changes. Get the statement's
137 location directly from wi->stmt.
139 2017-10-27 Palmer Dabbelt <palmer@dabbelt.com>
142 * doc/invoke.texi (RISC-V) <-mabi>: Correct and improve.
144 2017-10-27 Jan Hubicka <hubicka@ucw.cz>
146 * config/i386/x86-tune.def (X86_TUNE_PARTIAL_REG_DEPENDENCY,
147 X86_TUNE_MOVX): Disable for Haswell and newer CPUs.
149 2017-10-27 Jakub Jelinek <jakub@redhat.com>
152 * config/i386/i386-protos.h (maybe_get_pool_constant): Removed.
153 * config/i386/i386.c (maybe_get_pool_constant): Removed.
154 (ix86_split_to_parts): Use avoid_constant_pool_reference instead of
155 maybe_get_pool_constant.
156 * config/i386/predicates.md (zero_extended_scalar_load_operand):
159 2017-10-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
161 * doc/install.texi (Specific, i?86-*-solaris2.10): Simplify gas
162 2.26 caveat. Update gas and gld versions.
163 (Specific, *-*-solaris2*): Update binutils version. Remove caveat
166 2017-10-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
168 * cgraph.h (set_malloc_flag): Declare.
169 * cgraph.c (set_malloc_flag_1): New function.
170 (set_malloc_flag): Likewise.
171 * ipa-fnsummary.h (ipa_call_summary): Add new field is_return_callee.
172 * ipa-fnsummary.c (ipa_call_summary::reset): Set is_return_callee to
174 (read_ipa_call_summary): Add support for reading is_return_callee.
175 (write_ipa_call_summary): Stream is_return_callee.
176 * ipa-inline.c (ipa_inline): Remove call to ipa_free_fn_summary.
177 * ipa-pure-const.c: Add headers ssa.h, alloc-pool.h, symbol-summary.h,
178 ipa-prop.h, ipa-fnsummary.h.
179 (pure_const_names): Change to static.
180 (malloc_state_e): Define.
181 (malloc_state_names): Define.
182 (funct_state_d): Add field malloc_state.
183 (varying_state): Set malloc_state to STATE_MALLOC_BOTTOM.
184 (check_retval_uses): New function.
185 (malloc_candidate_p): Likewise.
186 (analyze_function): Add support for malloc attribute.
187 (pure_const_write_summary): Stream malloc_state.
188 (pure_const_read_summary): Add support for reading malloc_state.
189 (dump_malloc_lattice): New function.
190 (propagate_malloc): New function.
191 (warn_function_malloc): New function.
192 (ipa_pure_const::execute): Call propagate_malloc and
194 (pass_local_pure_const::execute): Add support for malloc attribute.
195 * ssa-iterators.h (RETURN_FROM_IMM_USE_STMT): New macro.
196 * doc/invoke.texi: Document Wsuggest-attribute=malloc.
198 2017-10-27 Martin Liska <mliska@suse.cz>
200 PR gcov-profile/82457
201 * doc/invoke.texi: Document that one needs a non-strict ISO mode
202 for fork-like functions to be properly instrumented.
204 2017-10-27 Richard Biener <rguenther@suse.de>
207 * tree-eh.c (pass_lower_eh_dispatch::execute): Free dominator
208 info when we redirected EH.
210 2017-10-26 Michael Collison <michael.collison@arm.com>
212 * config/aarch64/aarch64.md(<optab>_trunc><vf><GPI:mode>2):
214 (<optab>_trunchf<GPI:mode>2: New pattern.
215 (<optab>_trunc<vgp><GPI:mode>2: New pattern.
216 * config/aarch64/iterators.md (wv): New mode attribute.
217 (vf, VF): New mode attributes.
218 (vgp, VGP): New mode attributes.
219 (s): Update attribute with SImode and DImode prefixes.
221 2017-10-26 Sandra Loosemore <sandra@codesourcery.com>
223 * config/nios2/constraints.md ("S"): Match r0rel_constant_p too.
224 * config/nios2/nios2-protos.h (r0rel_constant_p): Declare.
225 * config/nios2/nios2.c: (nios2_r0rel_sec_regex): New.
226 (nios2_option_overide): Initialize it. Don't allow R0-relative
228 (nios2_rtx_costs): Handle r0rel_constant_p like gprel_constant_p.
229 (nios2_symbolic_constant_p): Likewise.
230 (nios2_legitimate_address_p): Likewise.
231 (nios2_r0rel_section_name_p): New.
232 (nios2_symbol_ref_in_r0rel_data_p): New.
233 (nios2_emit_move_sequence): Handle r0rel_constant_p.
234 (r0rel_constant_p): New.
235 (nios2_print_operand_address): Handle r0rel_constant_p.
236 (nios2_cdx_narrow_form_p): Likewise.
237 * config/nios2/nios2.opt (mr0rel-sec=): New option.
238 * doc/invoke.texi (Option Summary): Add -mr0rel-sec.
239 (Nios II Options): Document -mr0rel-sec.
241 2017-10-26 Sandra Loosemore <sandra@codesourcery.com>
243 * config/nios2/nios2.c: Include xregex.h.
244 (nios2_gprel_sec_regex): New.
245 (nios2_option_overide): Initialize it. Don't allow GP-relative
247 (nios2_small_section_name_p): Check for regex match.
248 * config/nios2/nios2.opt (mgprel-sec=): New option.
249 * doc/invoke.texi (Option Summary): Add -mgprel-sec.
250 (Nios II Options): Document -mgprel-sec.
252 2017-10-26 Jim Wilson <wilson@tuliptree.org>
254 * doc/invoke.texi (-fdebug-prefix-map): Expand documentation.
256 2017-10-26 Tom de Vries <tom@codesourcery.com>
258 PR tree-optimization/82707
259 * gimple.c (gimple_copy): Fix unsharing of
260 GIMPLE_OMP_{SINGLE,TARGET,TEAMS}.
262 2017-10-26 Olga Makhotina <olga.makhotina@intel.com>
264 * config/i386/avx512fintrin.h (_mm512_cmpeq_pd_mask,
265 _mm512_cmple_pd_mask, _mm512_cmplt_pd_mask,
266 _mm512_cmpneq_pd_mask, _mm512_cmpnle_pd_mask,
267 _mm512_cmpnlt_pd_mask, _mm512_cmpord_pd_mask,
268 _mm512_cmpunord_pd_mask, _mm512_mask_cmpeq_pd_mask,
269 _mm512_mask_cmple_pd_mask, _mm512_mask_cmplt_pd_mask,
270 _mm512_mask_cmpneq_pd_mask, _mm512_mask_cmpnle_pd_mask,
271 _mm512_mask_cmpnlt_pd_mask, _mm512_mask_cmpord_pd_mask,
272 _mm512_mask_cmpunord_pd_mask, _mm512_cmpeq_ps_mask,
273 _mm512_cmple_ps_mask, _mm512_cmplt_ps_mask,
274 _mm512_cmpneq_ps_mask, _mm512_cmpnle_ps_mask,
275 _mm512_cmpnlt_ps_mask, _mm512_cmpord_ps_mask,
276 _mm512_cmpunord_ps_mask, _mm512_mask_cmpeq_ps_mask,
277 _mm512_mask_cmple_ps_mask, _mm512_mask_cmplt_ps_mask,
278 _mm512_mask_cmpneq_ps_mask, _mm512_mask_cmpnle_ps_mask,
279 _mm512_mask_cmpnlt_ps_mask, _mm512_mask_cmpord_ps_mask,
280 _mm512_mask_cmpunord_ps_mask): New intrinsics.
282 2017-10-26 Michael Meissner <meissner@linux.vnet.ibm.com>
284 * config/rs6000/aix.h (TARGET_IEEEQUAD_DEFAULT): Set long double
286 * config/rs6000/darwin.h (TARGET_IEEEQUAD_DEFAULT): Likewise.
287 * config/rs6000/rs6000.opt (-mabi=ieeelongdouble): Move the
288 warning to rs6000.c. Remove the Undocumented flag, since it has
290 (-mabi=ibmlongdouble): Likewise.
291 * config/rs6000/rs6000.c (TARGET_IEEEQUAD_DEFAULT): If it is not
292 already set, set the default format for long double.
293 (rs6000_debug_reg_global): Print whether long double is IBM or
295 (rs6000_option_override_internal): Rework setting long double
296 format. Only warn if the user is changing the long double default
297 and they did not use -Wno-psabi.
298 * doc/invoke.texi (PowerPC options): Update the documentation for
299 -mabi=ieeelongdouble and -mabi=ibmlongdouble.
301 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
302 Alan Hayward <alan.hayward@arm.com>
303 David Sherwood <david.sherwood@arm.com>
305 * rtl.h (wider_subreg_mode): New function.
306 * ira.h (ira_sort_regnos_for_alter_reg): Take a machine_mode *
307 rather than an unsigned int *.
308 * ira-color.c (regno_max_ref_width): Replace with...
309 (regno_max_ref_mode): ...this new variable.
310 (coalesced_pseudo_reg_slot_compare): Update accordingly.
311 Use wider_subreg_mode.
312 (ira_sort_regnos_for_alter_reg): Likewise. Take a machine_mode *
313 rather than an unsigned int *.
314 * lra-constraints.c (uses_hard_regs_p): Use wider_subreg_mode.
315 (process_alt_operands): Likewise.
316 (invariant_p): Likewise.
317 * lra-spills.c (assign_mem_slot): Likewise.
318 (add_pseudo_to_slot): Likewise.
319 * lra.c (collect_non_operand_hard_regs): Likewise.
320 (add_regs_to_insn_regno_info): Likewise.
321 * reload1.c (regno_max_ref_width): Replace with...
322 (regno_max_ref_mode): ...this new variable.
323 (reload): Update accordingly. Update call to
324 ira_sort_regnos_for_alter_reg.
325 (alter_reg): Update to use regno_max_ref_mode. Call wider_subreg_mode.
326 (init_eliminable_invariants): Update to use regno_max_ref_mode.
327 (scan_paradoxical_subregs): Likewise.
329 2017-10-26 Wilco Dijkstra <wdijkstr@arm.com>
331 * config/aarch64/aarch64.h (EXIT_IGNORE_STACK): Set if alloca is used.
332 (aarch64_frame): Add emit_frame_chain boolean.
333 * config/aarch64/aarch64.c (aarch64_frame_pointer_required)
334 Move eh_return case to aarch64_layout_frame.
335 (aarch64_layout_frame): Initialize emit_frame_chain.
336 (aarch64_expand_prologue): Use emit_frame_chain.
338 2017-10-26 Wilco Dijkstra <wdijkstr@arm.com>
340 * config/aarch64/aarch64.c (aarch64_layout_frame):
341 Ensure LR is always stored at the bottom of the callee-saves.
342 Remove rarely used frame layout which saves callee-saves at top of
343 frame, so the store of LR can be used as a valid probe in all cases.
345 2017-10-26 Wilco Dijkstra <wdijkstr@arm.com>
347 * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
348 Improve unaligned TImode/TFmode base/offset split.
350 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
351 Alan Hayward <alan.hayward@arm.com>
352 David Sherwood <david.sherwood@arm.com>
354 * caller-save.c (mark_referenced_regs): Use read_modify_subreg_p.
355 * combine.c (find_single_use_1): Likewise.
356 (expand_field_assignment): Likewise.
357 (move_deaths): Likewise.
358 * lra-constraints.c (simplify_operand_subreg): Likewise.
359 (curr_insn_transform): Likewise.
360 * lra.c (collect_non_operand_hard_regs): Likewise.
361 (add_regs_to_insn_regno_info): Likewise.
362 * rtlanal.c (reg_referenced_p): Likewise.
363 (covers_regno_no_parallel_p): Likewise.
365 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
367 * wide-int-print.cc (print_hex): Loop based on extract_uhwi.
368 Don't print any bits outside the precision of the value.
369 * wide-int.cc (test_printing): Add some new tests.
371 2017-10-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
373 * configure.ac (gcc_cv_as_ix86_xbrace_comment): Check if assembler
374 supports -xbrace_comment option.
375 * configure: Regenerate.
376 * config.in: Regenerate.
377 * config/i386/sol2.h (ASM_XBRACE_COMMENT_SPEC): Define.
378 (ASM_CPU_SPEC): Use it.
380 2017-10-26 Richard Sandiford <richard.sandiford@linaro.org>
382 * target.def (static_rtx_alignment): New hook.
383 * targhooks.h (default_static_rtx_alignment): Declare.
384 * targhooks.c (default_static_rtx_alignment): New function.
385 * doc/tm.texi.in (TARGET_STATIC_RTX_ALIGNMENT): New hook.
386 * doc/tm.texi: Regenerate.
387 * varasm.c (force_const_mem): Use targetm.static_rtx_alignment
388 instead of targetm.constant_alignment. Remove call to
390 * config/cris/cris.c (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
391 (cris_preferred_mininum_alignment): New function, split out from...
392 (cris_constant_alignment): ...here.
393 (cris_static_rtx_alignment): New function.
394 * config/i386/i386.c (ix86_static_rtx_alignment): New function,
396 (ix86_constant_alignment): ...here.
397 (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
398 * config/mmix/mmix.c (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
399 (mmix_static_rtx_alignment): New function.
400 * config/spu/spu.c (spu_static_rtx_alignment): New function.
401 (TARGET_STATIC_RTX_ALIGNMENT): Redefine.
403 2017-10-26 Tamar Christina <tamar.christina@arm.com>
406 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): Add flag_trapping_math
407 and flag_fp_int_builtin_inexact.
409 2017-10-25 Palmer Dabbelt <palmer@dabbelt.com>
411 * config/riscv/riscv.md (ZERO_EXTEND_LOAD): Define.
412 * config/riscv/pic.md (local_pic_load): Rename to local_pic_load_s,
413 mark as a sign-extending load.
414 (local_pic_load_u): Define.
416 2017-10-25 Eric Botcazou <ebotcazou@adacore.com>
419 * fold-const.c (operand_equal_for_comparison_p): Also return true
420 if ARG0 is a simple variant of ARG1 with narrower precision.
421 (fold_ternary_loc): Always pass unstripped operands to the predicate.
423 2017-10-25 Jan Hubicka <hubicka@ucw.cz>
425 * i386.c (ix86_builtin_vectorization_cost): Compute scatter/gather
427 * i386.h (processor_costs): Add gather_static, gather_per_elt,
428 scatter_static, scatter_per_elt.
429 * x86-tune-costs.h: Add new cost entries.
431 2017-10-25 Richard Biener <rguenther@suse.de>
433 * tree-ssa-sccvn.h (vn_eliminate): Declare.
434 * tree-ssa-pre.c (class eliminate_dom_walker, eliminate,
435 class pass_fre): Move to ...
436 * tree-ssa-sccvn.c (class eliminate_dom_walker, vn_eliminate,
437 class pass_fre): ... here and adjust for statistics.
439 2017-10-25 Jakub Jelinek <jakub@redhat.com>
442 * attribs.c (attribute_value_equal): Use omp_declare_simd_clauses_equal
443 for comparison of OMP_CLAUSEs regardless of flag_openmp{,_simd}.
444 (duplicate_one_attribute, copy_attributes_to_builtin): New functions.
445 * attribs.h (duplicate_one_attribute, copy_attributes_to_builtin): New
448 2017-10-25 Richard Biener <rguenther@suse.de>
450 * tree-ssa-pre.c (need_eh_cleanup, need_ab_cleanup, el_to_remove,
451 el_to_fixup, el_todo, el_avail, el_avail_stack, eliminate_avail,
452 eliminate_push_avail, eliminate_insert): Move inside...
453 (class eliminate_dom_walker): ... this class in preparation
455 (fini_eliminate): Remove by merging with ...
456 (eliminate): ... this function. Adjust for class changes.
457 (pass_pre::execute): Remove fini_eliminate call.
458 (pass_fre::execute): Likewise.
460 2017-10-24 Jakub Jelinek <jakub@redhat.com>
463 * config/i386/sse.md (UNSPEC_VPERMI2, UNSPEC_VPERMI2_MASK): Remove.
464 (VPERMI2, VPERMI2I): New mode iterators.
465 (<avx512>_vpermi2var<mode>3_maskz): Remove 3 define_expand patterns.
466 (<avx512>_vpermi2var<mode>3<sd_maskz_name>): Remove 3 define_insn
468 (<avx512>_vpermi2var<mode>3_mask): New define_expand using VPERMI2
469 mode iterator. Remove 3 old define_insn patterns.
470 (*<avx512>_vpermi2var<mode>3_mask): 2 new define_insn patterns.
471 (<avx512>_vpermt2var<mode>3_maskz): Adjust 1 define_expand to use
472 VPERMI2 mode iterator, remove the other two expanders.
473 (<avx512>_vpermt2var<mode>3<sd_maskz_name>): Adjust 1 define_insn
474 to use VPERMI2 mode iterator, add another alternative for vpermi2*
475 instructions, remove the other two patterns.
476 (<avx512>_vpermt2var<mode>3_mask): Adjust 1 define_insn to use VPERMI2
477 mode iterator, remove the other two patterns.
478 * config/i386/i386.c (ix86_expand_vec_perm_vpermi2): Renamed to ...
479 (ix86_expand_vec_perm_vpermt2): ... this. Swap mask and op0
480 arguments, use gen_*vpermt2* expanders instead of gen_*vpermi2*
481 and adjust argument order accordingly.
482 (ix86_expand_vec_perm): Adjust caller.
483 (expand_vec_perm_1): Likewise.
484 (expand_vec_perm_vpermi2_vpshub2): Rename to ...
485 (expand_vec_perm_vpermt2_vpshub2): ... this.
486 (ix86_expand_vec_perm_const_1): Adjust caller.
487 (ix86_vectorize_vec_perm_const_ok): Adjust comments.
490 * config/i386/sse.md (VIMAX_AVX2): Remove V4TImode.
491 (VIMAX_AVX2_AVX512BW, VIMAX_AVX512VL): New mode iterators.
492 (vec_shl_<mode>): Remove unused expander.
493 (avx512bw_<shift_insn><mode>3): New define_insn.
494 (<sse2_avx2>_ashl<mode>3, <sse2_avx2>_lshr<mode>3): Replaced by ...
495 (<sse2_avx2>_<shift_insn><mode>3): ... this. New define_insn.
497 2017-10-24 Paolo Carlini <paolo.carlini@oracle.com>
500 * doc/invoke.texi ([Wbuiltin-declaration-mismatch]): Extend
503 2017-10-24 Wilco Dijkstra <wdijkstr@arm.com>
505 PR rtl-optimization/82396
506 * gcc/haifa-sched.c (ready_sort_real): Remove qsort workaround.
507 (autopref_multipass_init): Simplify initialization.
508 (autopref_rank_data): Simplify sort order.
509 * gcc/sched-int.h (autopref_multipass_data_): Remove
510 multi_mem_insn_p, min_offset and max_offset.
512 2017-10-24 Wilco Dijkstra <wdijkstr@arm.com>
515 * config/aarch64/aarch64.c (aarch64_frame_pointer_required)
516 Check special value of flag_omit_frame_pointer.
517 (aarch64_can_eliminate): Likewise.
518 (aarch64_override_options_after_change_1): Simplify handling of
519 -fomit-frame-pointer and -fomit-leaf-frame-pointer.
521 2017-10-24 Richard Biener <rguenther@suse.de>
523 PR tree-optimization/82697
524 * tree-ssa-phiopt.c (cond_store_replacement): Use alias-set
525 zero for conditional load and unconditional store.
527 2017-10-24 H.J. Lu <hongjiu.lu@intel.com>
529 * doc/install.texi: Document bootstrap-cet.
531 2017-10-24 H.J. Lu <hongjiu.lu@intel.com>
534 * config/i386/i386.c (rest_of_insert_endbranch): Don't insert
535 ENDBR instruction at function entrance if function is only
538 2017-10-24 Jakub Jelinek <jakub@redhat.com>
541 * config/i386/i386.md (addcarry<mode>, subborrow<mode>): Change
542 patterns to better describe from which operation the CF is computed.
543 (addcarry<mode>_0, subborrow<mode>_0): New patterns.
544 * config/i386/i386.c (ix86_expand_builtin) <case handlecarry>: Pass
545 one LTU with [DT]Imode and another one with [SD]Imode. If arg0
546 is 0, use _0 suffixed expanders instead of emitting a comparison
549 2017-10-06 Sergey Shalnov <Sergey.Shalnov@intel.com>
551 * config/i386/i386.md(*movsf_internal, *movdf_internal):
552 Avoid 512-bit AVX modes for TARGET_PREFER_AVX256.
554 2017-10-24 Eric Botcazou <ebotcazou@adacore.com>
557 * tree-outof-ssa.h (always_initialized_rtx_for_ssa_name_p): Delete.
558 * expr.c (expand_expr_real_1) <expand_decl_rtl>: Revert latest change.
559 * loop-iv.c (iv_get_reaching_def): Likewise.
560 * cfgexpand.c (expand_one_ssa_partition): Initialize the RTX if the
561 variable is promoted and the partition contains undefined values.
563 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
565 * config/nios2/nios2.c (nios2_rtx_costs): Make costs better
567 (nios2_address_cost): Define.
568 (nios2_legitimize_address): Recognize (exp + constant) directly.
569 (TARGET_ADDRESS_COST): Define.
571 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
573 * config/nios2/nios2-protos.h (nios2_large_constant_p): Declare.
574 (nios2_symbolic_memory_operand_p): Declare.
575 (nios2_split_large_constant): Declare.
576 (nios2_split_symbolic_memory_operand): Declare.
577 * config/nios2/nios2.c: Adjust includes.
578 (nios2_symbolic_constant_allowed): New.
579 (nios2_symbolic_constant_p): New.
580 (nios2_plus_symbolic_constant_p): New.
581 (nios2_valid_addr_expr_p): Recognize addresses involving
583 (nios2_legitimate_address_p): Likewise, also LO_SUM.
584 (nios2_symbolic_memory_operand_p): New.
585 (nios2_large_constant_p): New.
586 (nios2_split_large_constant): New.
587 (nios2_split_plus_large_constant): New.
588 (nios2_split_symbolic_memory_operand): New.
589 (nios2_legitimize_address): Code refactoring. Handle addresses
590 involving symbolic constants.
591 (nios2_emit_move_sequence): Likewise.
592 (nios2_print_operand): Improve error output.
593 (nios2_print_operand_address): Handle LO_SUM.
594 (nios2_cdx_narrow_form_p): Likewise.
595 * config/nios2/nios2.md (movqi_internal): Add splitter for memory
596 operands involving symbolic constants.
597 (movhi_internal, movsi_internal): Likewise.
598 (zero_extendhisi2, zero_extendqi<mode>2): Likewise.
599 (extendhisi2, extendqi<mode>2): Likewise.
601 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
603 * tree-pass.h (PROP_rtl_split_insns): Define.
604 * recog.c (pass_data_split_all_insns): Provide PROP_rtl_split_insns.
606 2017-10-23 Sandra Loosemore <sandra@codesourcery.com>
608 * config/nios2/nios2.c (TARGET_LRA_P): Don't override.
610 2017-10-23 Jakub Jelinek <jakub@redhat.com>
613 * target.def (const_not_ok_for_debug_p): Default to
614 default_const_not_ok_for_debug_p instead of hook_bool_rtx_false.
615 * targhooks.h (default_const_not_ok_for_debug_p): New declaration.
616 * targhooks.c (default_const_not_ok_for_debug_p): New function.
617 * dwarf2out.c (const_ok_for_output_1): Only reject UNSPECs for
618 which targetm.const_not_ok_for_debug_p returned true.
619 * config/arm/arm.c (arm_const_not_ok_for_debug_p): Return true
621 * config/powerpcspe/powerpcspe.c (rs6000_const_not_ok_for_debug_p):
623 * config/rs6000/rs6000.c (rs6000_const_not_ok_for_debug_p): Likewise.
624 * config/i386/i386.c (ix86_delegitimize_address_1): Don't delegitimize
625 UNSPEC_GOTOFF with addend into addend - _GLOBAL_OFFSET_TABLE_ + symbol
627 (ix86_const_not_ok_for_debug_p): New function.
628 (i386_asm_output_addr_const_extra): Handle UNSPEC_GOTOFF.
629 (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Redefine.
631 2017-10-23 David Malcolm <dmalcolm@redhat.com>
634 * system.h: Conditionally include "unique-ptr.h" if
635 INCLUDE_UNIQUE_PTR is defined.
636 * unique-ptr-tests.cc: Remove include of "unique-ptr.h" in favor
637 of defining INCLUDE_UNIQUE_PTR before including "system.h".
639 2017-10-23 Sebastian Perta <sebastian.perta@renesas.com>
641 * config/rl78/rl78.md: New define_expand "subdi3".
643 2017-10-23 H.J. Lu <hongjiu.lu@intel.com>
646 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Skip
647 DF_REF_INSN if DF_REF_INSN_INFO is false.
649 2017-10-23 Jan Hubicka <hubicka@ucw.cz>
651 * i386.c (dimode_scalar_chain::compute_convert_gain): Use
652 xmm_move instead of sse_move.
653 (sse_store_index): New function.
654 (ix86_register_move_cost): Be more sensible about mismatch stall;
655 model AVX moves correctly; make difference between sse->integer and
657 (ix86_builtin_vectorization_cost): Model correctly aligned and unaligned
658 moves; make difference between SSE and AVX.
659 * i386.h (processor_costs): Remove sse_move; add xmm_move, ymm_move
660 and zmm_move. Increase size of sse load and store tables;
661 add unaligned load and store tables; add ssemmx_to_integer.
662 * x86-tune-costs.h: Update all entries according to real
663 move latencies from Agner Fog's manual and chip documentation.
665 2017-10-23 Jakub Jelinek <jakub@redhat.com>
668 * config/i386/predicates.md (x86_64_dwzext_immediate_operand): New.
669 * config/i386/constraints.md (Wf): New constraint.
670 * config/i386/i386.md (UNSPEC_SBB): New unspec.
671 (cmp<dwi>_doubleword): Removed.
672 (sub<mode>3_carry_ccc, *sub<mode>3_carry_ccc_1): New patterns.
673 (sub<mode>3_carry_ccgz): Use unspec instead of compare.
674 * config/i386/i386.c (ix86_expand_branch) <case E_TImode>: Don't
675 expand with cmp<dwi>_doubleword. For LTU and GEU use
676 sub<mode>3_carry_ccc instead of sub<mode>3_carry_ccgz and use CCCmode.
678 * common.opt (gcolumn-info): Enable by default.
679 * doc/invoke.texi (gcolumn-info): Document new default.
681 2017-10-23 Richard Biener <rguenther@suse.de>
683 PR tree-optimization/82672
684 * graphite-isl-ast-to-gimple.c (graphite_copy_stmts_from_block):
685 Fold the stmt if we propagated into it.
687 2017-10-23 Richard Biener <rguenther@suse.de>
689 * tree-ssa-pre.c (bitmap_remove_from_set): Rename to...
690 (bitmap_remove_expr_from_set): ... this. All callers call this
691 for non-constant values.
692 (bitmap_set_subtract): Rename to...
693 (bitmap_set_subtract_expressions): ... this. Adjust and
695 (bitmap_set_contains_value): Remove superfluous check.
696 (bitmap_set_replace_value): Inline into single caller ...
697 (bitmap_value_replace_in_set): ... here and simplify.
698 (dependent_clean): Merge into ...
699 (clean): ... this using an overload. Adjust.
700 (prune_clobbered_mems): Adjust.
701 (compute_antic_aux): Likewise.
702 (compute_partial_antic_aux): Likewise.
704 2017-10-23 Richard Biener <rguenther@suse.de>
706 PR tree-optimization/82129
708 2017-08-01 Richard Biener <rguenther@suse.de>
710 PR tree-optimization/81181
711 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
712 (compute_antic): ... end of iteration here.
714 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
716 * target.def (starting_frame_offset): New hook.
717 * doc/tm.texi (STARTING_FRAME_OFFSET): Remove in favor of...
718 (TARGET_STARTING_FRAME_OFFSET): ...this new hook.
719 * doc/tm.texi.in: Regenerate.
720 * hooks.h (hook_hwi_void_0): Declare.
721 * hooks.c (hook_hwi_void_0): New function.
722 * doc/rtl.texi: Refer to TARGET_STARTING_FRAME_OFFSET instead of
723 STARTING_FRAME_OFFSET.
724 * builtins.c (expand_builtin_setjmp_receiver): Likewise.
725 * reload1.c (reload): Likewise.
726 * cfgexpand.c (expand_used_vars): Use targetm.starting_frame_offset
727 instead of STARTING_FRAME_OFFSET.
728 * function.c (try_fit_stack_local): Likewise.
729 (assign_stack_local_1): Likewise
730 (instantiate_virtual_regs): Likewise.
731 * rtlanal.c (rtx_addr_can_trap_p_1): Likewise.
732 * config/avr/avr.md (nonlocal_goto_receiver): Likewise.
733 * config/aarch64/aarch64.h (STARTING_FRAME_OFFSET): Delete.
734 * config/alpha/alpha.h (STARTING_FRAME_OFFSET): Likewise.
735 * config/arc/arc.h (STARTING_FRAME_OFFSET): Likewise.
736 * config/arm/arm.h (STARTING_FRAME_OFFSET): Likewise.
737 * config/bfin/bfin.h (STARTING_FRAME_OFFSET): Likewise.
738 * config/c6x/c6x.h (STARTING_FRAME_OFFSET): Likewise.
739 * config/cr16/cr16.h (STARTING_FRAME_OFFSET): Likewise.
740 * config/cris/cris.h (STARTING_FRAME_OFFSET): Likewise.
741 * config/fr30/fr30.h (STARTING_FRAME_OFFSET): Likewise.
742 * config/frv/frv.h (STARTING_FRAME_OFFSET): Likewise.
743 * config/ft32/ft32.h (STARTING_FRAME_OFFSET): Likewise.
744 * config/h8300/h8300.h (STARTING_FRAME_OFFSET): Likewise.
745 * config/i386/i386.h (STARTING_FRAME_OFFSET): Likewise.
746 * config/ia64/ia64.h (STARTING_FRAME_OFFSET): Likewise.
747 * config/m32c/m32c.h (STARTING_FRAME_OFFSET): Likewise.
748 * config/m68k/m68k.h (STARTING_FRAME_OFFSET): Likewise.
749 * config/mcore/mcore.h (STARTING_FRAME_OFFSET): Likewise.
750 * config/mn10300/mn10300.h (STARTING_FRAME_OFFSET): Likewise.
751 * config/moxie/moxie.h (STARTING_FRAME_OFFSET): Likewise.
752 * config/msp430/msp430.h (STARTING_FRAME_OFFSET): Likewise.
753 * config/nds32/nds32.h (STARTING_FRAME_OFFSET): Likewise.
754 * config/nios2/nios2.h (STARTING_FRAME_OFFSET): Likewise.
755 * config/nvptx/nvptx.h (STARTING_FRAME_OFFSET): Likewise.
756 * config/pdp11/pdp11.h (STARTING_FRAME_OFFSET): Likewise.
757 * config/riscv/riscv.h (STARTING_FRAME_OFFSET): Likewise.
758 * config/rl78/rl78.h (STARTING_FRAME_OFFSET): Likewise.
759 * config/rx/rx.h (STARTING_FRAME_OFFSET): Likewise.
760 * config/s390/s390.h (STARTING_FRAME_OFFSET): Likewise.
761 * config/sh/sh.h (STARTING_FRAME_OFFSET): Likewise.
762 * config/sparc/sparc.c (sparc_compute_frame_size): Likewise.
763 * config/sparc/sparc.h (STARTING_FRAME_OFFSET): Likewise.
764 * config/spu/spu.h (STARTING_FRAME_OFFSET): Likewise.
765 * config/stormy16/stormy16.h (STARTING_FRAME_OFFSET): Likewise.
766 * config/tilegx/tilegx.h (STARTING_FRAME_OFFSET): Likewise.
767 * config/tilepro/tilepro.h (STARTING_FRAME_OFFSET): Likewise.
768 * config/v850/v850.h (STARTING_FRAME_OFFSET): Likewise.
769 * config/visium/visium.h (STARTING_FRAME_OFFSET): Likewise.
770 * config/avr/avr.h (STARTING_FRAME_OFFSET): Likewise.
771 * config/avr/avr-protos.h (avr_starting_frame_offset): Likewise.
772 * config/avr/avr.c (avr_starting_frame_offset): Make static and
773 return a HOST_WIDE_INT.
774 (avr_builtin_setjmp_frame_value): Use it instead of
775 STARTING_FRAME_OFFSET.
776 (TARGET_STARTING_FRAME_OFFSET): Redefine.
777 * config/epiphany/epiphany.h (STARTING_FRAME_OFFSET): Delete.
778 * config/epiphany/epiphany.c (epiphany_starting_frame_offset):
780 (TARGET_STARTING_FRAME_OFFSET): Redefine.
781 * config/iq2000/iq2000.h (STARTING_FRAME_OFFSET): Delete.
782 * config/iq2000/iq2000.c (iq2000_starting_frame_offset): New function.
783 (TARGET_CONSTANT_ALIGNMENT): Redefine.
784 * config/lm32/lm32.h (STARTING_FRAME_OFFSET): Delete.
785 * config/lm32/lm32.c (lm32_starting_frame_offset): New function.
786 (TARGET_STARTING_FRAME_OFFSET): Redefine.
787 * config/m32r/m32r.h (STARTING_FRAME_OFFSET): Delete.
788 * config/m32r/m32r.c (m32r_starting_frame_offset): New function.
789 (TARGET_STARTING_FRAME_OFFSET): Redefine.
790 * config/microblaze/microblaze.h (STARTING_FRAME_OFFSET): Delete.
791 * config/microblaze/microblaze.c (microblaze_starting_frame_offset):
793 (TARGET_STARTING_FRAME_OFFSET): Redefine.
794 * config/mips/mips.h (STARTING_FRAME_OFFSET): Delete.
795 * config/mips/mips.c (mips_compute_frame_info): Refer to
796 TARGET_STARTING_FRAME_OFFSET instead of STARTING_FRAME_OFFSET.
797 (mips_starting_frame_offset): New function.
798 (TARGET_STARTING_FRAME_OFFSET): Redefine.
799 * config/mmix/mmix.h (STARTING_FRAME_OFFSET): Delete.
800 * config/mmix/mmix-protos.h (mmix_starting_frame_offset): Delete.
801 * config/mmix/mmix.c (mmix_starting_frame_offset): Make static
802 and return a HOST_WIDE_INT.
803 (TARGET_STARTING_FRAME_OFFSET): Redefine.
804 (mmix_initial_elimination_offset): Refer to
805 TARGET_STARTING_FRAME_OFFSET instead of STARTING_FRAME_OFFSET.
806 * config/pa/pa.h (STARTING_FRAME_OFFSET): Delete.
807 * config/pa/pa.c (pa_starting_frame_offset): New function.
808 (pa_compute_frame_size): Use it instead of STARTING_FRAME_OFFSET.
809 (pa_expand_prologue): Likewise.
810 (TARGET_STARTING_FRAME_OFFSET): Redefine.
811 * config/powerpcspe/aix.h (STARTING_FRAME_OFFSET): Split out
812 !FRAME_GROWS_DOWNWARD handling to...
813 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
814 * config/powerpcspe/darwin.h (STARTING_FRAME_OFFSET): Split out
815 !FRAME_GROWS_DOWNWARD handling to...
816 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
817 * config/powerpcspe/powerpcspe.h (STARTING_FRAME_OFFSET): Split out
818 !FRAME_GROWS_DOWNWARD handling to...
819 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
820 * config/powerpcspe/powerpcspe.c (TARGET_STARTING_FRAME_OFFSET):
822 (rs6000_starting_frame_offset): New function.
823 * config/rs6000/aix.h (STARTING_FRAME_OFFSET): Split out
824 !FRAME_GROWS_DOWNWARD handling to...
825 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
826 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Split out
827 !FRAME_GROWS_DOWNWARD handling to...
828 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
829 * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Split out
830 !FRAME_GROWS_DOWNWARD handling to...
831 (RS6000_STARTING_FRAME_OFFSET): ...this new macro.
832 * config/rs6000/rs6000.c (TARGET_STARTING_FRAME_OFFSET): Refine.
833 (rs6000_starting_frame_offset): New function.
834 * config/vax/elf.h (STARTING_FRAME_OFFSET): Delete.
835 * config/vax/vax.h (STARTING_FRAME_OFFSET): Delete.
836 * config/vax/vax.c (vax_starting_frame_offset): New function.
837 (vax_expand_prologue): Use it instead of STARTING_FRAME_OFFSET.
838 (TARGET_STARTING_FRAME_OFFSET): Redefine.
839 * config/xtensa/xtensa.h (STARTING_FRAME_OFFSET): Delete.
840 * config/xtensa/xtensa.c (xtensa_starting_frame_offset): New function.
841 (TARGET_STARTING_FRAME_OFFSET): Redefine.
842 * system.h (STARTING_FRAME_OFFSET): Poison.
844 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
846 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
847 SCALAR_TYPE_MODE instead of TYPE_MODE.
849 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
850 Alan Hayward <alan.hayward@arm.com>
851 David Sherwood <david.sherwood@arm.com>
853 * dwarf2out.c (loc_list_from_tree_1): Use SCALAR_INT_TYPE_MODE
855 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
856 Alan Hayward <alan.hayward@arm.com>
857 David Sherwood <david.sherwood@arm.com>
859 * expmed.c (expand_shift_1): Use scalar_mode for scalar_mode.
861 2017-10-23 Richard Biener <rguenther@suse.de>
863 PR tree-optimization/82129
864 * tree-ssa-pre.c (bitmap_set_and): Remove.
865 (compute_antic_aux): Compute ANTIC_OUT intersection in a way
866 canonicalizing expressions in the set to those with lowest
867 ID rather than taking that from the first edge.
869 2017-10-23 Richard Sandiford <richard.sandiford@linaro.org>
871 * combine.c (rtx_equal_for_field_assignment_p): Use
874 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
875 Alan Hayward <alan.hayward@arm.com>
876 David Sherwood <david.sherwood@arm.com>
878 * internal-fn.c (expand_direct_optab_fn): Don't assign directly
879 to a SUBREG_PROMOTED_VAR.
881 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
882 Alan Hayward <alan.hayward@arm.com>
883 David Sherwood <david.sherwood@arm.com>
885 * cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_PRECISION.
886 (expand_debug_source_expr): Likewise.
887 * combine.c (combine_simplify_rtx): Likewise.
888 * cse.c (fold_rtx): Likewise.
889 * optabs.c (expand_float): Likewise.
890 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
891 (simplify_binary_operation_1): Likewise.
893 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
894 Alan Hayward <alan.hayward@arm.com>
895 David Sherwood <david.sherwood@arm.com>
897 * combine.c (simplify_comparison): Use HWI_COMPUTABLE_MODE_P.
898 (record_promoted_value): Likewise.
899 * expr.c (expand_expr_real_2): Likewise.
900 * ree.c (update_reg_equal_equiv_notes): Likewise.
901 (combine_set_extension): Likewise.
902 * rtlanal.c (low_bitmask_len): Likewise.
903 * simplify-rtx.c (neg_const_int): Likewise.
904 (simplify_binary_operation_1): Likewise.
906 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
907 Alan Hayward <alan.hayward@arm.com>
908 David Sherwood <david.sherwood@arm.com>
910 * lra-spills.c (assign_mem_slot): Use subreg_size_lowpart_offset.
911 * regcprop.c (maybe_mode_change): Likewise.
912 * reload1.c (alter_reg): Likewise.
914 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
916 * inchash.h (inchash::hash::add_wide_int): New function.
917 * lto-streamer-out.c (hash_tree): Use it.
919 2017-10-22 Richard Sandiford <richard.sandiford@linaro.org>
921 * inchash.h (inchash::hash::add_wide_int): Rename to...
922 (inchash::hash::add_hwi): ...this.
923 * ipa-devirt.c (hash_odr_vtable): Update accordingly.
924 (polymorphic_call_target_hasher::hash): Likewise.
925 * ipa-icf.c (sem_function::get_hash, sem_function::init): Likewise.
926 (sem_item::add_expr, sem_item::add_type, sem_variable::get_hash)
927 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
928 * lto-streamer-out.c (hash_tree): Likewise.
929 * optc-save-gen.awk: Likewise.
930 * tree.c (add_expr): Likewise.
932 2017-10-22 Uros Bizjak <ubizjak@gmail.com>
935 * config/i386/i386.c (ix86_fp_compare_mode): Return CCFPmode
936 for ordered inequality comparisons even with TARGET_IEEE_FP.
938 2017-10-22 Uros Bizjak <ubizjak@gmail.com>
941 * config/i386/i386.md (cmp<dwi>_doubleword): New pattern.
942 * config/i386/i386.c (ix86_expand_branch) <case E_TImode>:
943 Expand with cmp<dwi>_doubleword.
945 2017-10-21 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
947 * extend.texi: Add x86 specific to 'nocf_check' attribute.
949 * invoke.texi: Add -mcet, -mibt, -mshstk options. Add x86
950 specific to -fcf-protection option.
952 2017-10-21 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
954 * common/config/i386/i386-common.c (OPTION_MASK_ISA_IBT_SET): New.
955 (OPTION_MASK_ISA_SHSTK_SET): Likewise.
956 (OPTION_MASK_ISA_IBT_UNSET): Likewise.
957 (OPTION_MASK_ISA_SHSTK_UNSET): Likewise.
958 (ix86_handle_option): Add -mibt, -mshstk, -mcet handling.
959 * config.gcc (extra_headers): Add cetintrin.h for x86 targets.
960 (extra_objs): Add cet.o for Linux/x86 targets.
961 (tmake_file): Add i386/t-cet for Linux/x86 targets.
962 * config/i386/cet.c: New file.
963 * config/i386/cetintrin.h: Likewise.
964 * config/i386/t-cet: Likewise.
965 * config/i386/cpuid.h (bit_SHSTK): New.
967 * config/i386/driver-i386.c (host_detect_local_cpu): Detect and
968 pass IBT and SHSTK bits.
969 * config/i386/i386-builtin-types.def
970 (VOID_FTYPE_UNSIGNED_PVOID): New.
971 (VOID_FTYPE_UINT64_PVOID): Likewise.
972 * config/i386/i386-builtin.def: Add CET intrinsics.
973 * config/i386/i386-c.c (ix86_target_macros_internal): Add
974 OPTION_MASK_ISA_IBT, OPTION_MASK_ISA_SHSTK handling.
975 * config/i386/i386-passes.def: Add pass_insert_endbranch pass.
976 * config/i386/i386-protos.h (make_pass_insert_endbranch): New
978 * config/i386/i386.c (rest_of_insert_endbranch): New.
979 (pass_data_insert_endbranch): Likewise.
980 (pass_insert_endbranch): Likewise.
981 (make_pass_insert_endbranch): Likewise.
982 (ix86_notrack_prefixed_insn_p): Likewise.
983 (ix86_target_string): Add -mibt, -mshstk flags.
984 (ix86_option_override_internal): Add flag_cf_protection
986 (ix86_valid_target_attribute_inner_p): Set OPT_mibt, OPT_mshstk.
987 (ix86_print_operand): Add 'notrack' prefix output.
988 (ix86_init_mmx_sse_builtins): Add CET intrinsics.
989 (ix86_expand_builtin): Expand CET intrinsics.
990 (x86_output_mi_thunk): Add 'endbranch' instruction.
991 * config/i386/i386.h (TARGET_IBT): New.
992 (TARGET_IBT_P): Likewise.
993 (TARGET_SHSTK): Likewise.
994 (TARGET_SHSTK_P): Likewise.
995 * config/i386/i386.md (unspecv): Add UNSPECV_NOP_RDSSP,
996 UNSPECV_INCSSP, UNSPECV_SAVEPREVSSP, UNSPECV_RSTORSSP,
997 UNSPECV_WRSS, UNSPECV_WRUSS, UNSPECV_SETSSBSY, UNSPECV_CLRSSBSY.
998 (builtin_setjmp_setup): New pattern.
999 (builtin_longjmp): Likewise.
1000 (rdssp<mode>): Likewise.
1001 (incssp<mode>): Likewise.
1002 (saveprevssp): Likewise.
1003 (rstorssp): Likewise.
1004 (wrss<mode>): Likewise.
1005 (wruss<mode>): Likewise.
1006 (setssbsy): Likewise.
1007 (clrssbsy): Likewise.
1008 (nop_endbr): Likewise.
1009 * config/i386/i386.opt: Add -mcet, -mibt, -mshstk and -mcet-switch
1011 * config/i386/immintrin.h: Include <cetintrin.h>.
1012 * config/i386/linux-common.h
1013 (file_end_indicate_exec_stack_and_cet): New prototype.
1014 (TARGET_ASM_FILE_END): New.
1016 2017-10-20 Jan Hubicka <hubicka@ucw.cz>
1018 * i386.c (ix86_builtin_vectorization_cost): Use existing rtx_cost
1019 latencies instead of having separate table; make difference between
1020 integer and float costs.
1021 * i386.h (processor_costs): Remove scalar_stmt_cost,
1022 scalar_load_cost, scalar_store_cost, vec_stmt_cost, vec_to_scalar_cost,
1023 scalar_to_vec_cost, vec_align_load_cost, vec_unalign_load_cost,
1025 * x86-tune-costs.h: Remove entries which has been removed in
1026 procesor_costs from all tables; make cond_taken_branch_cost
1027 and cond_not_taken_branch_cost COST_N_INSNS based.
1029 2017-10-20 Jan Hubicka <hubicka@ucw.cz>
1031 * x86-tune-costs.h (intel_cost, generic_cost): Fix move costs.
1033 2017-10-20 Jakub Jelinek <jakub@redhat.com>
1035 * config/i386/i386.md (isa): Remove fma_avx512f.
1036 * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
1037 <avx512>_fmadd_<mode>_mask3<round_name>,
1038 <avx512>_fmsub_<mode>_mask<round_name>,
1039 <avx512>_fmsub_<mode>_mask3<round_name>,
1040 <avx512>_fnmadd_<mode>_mask<round_name>,
1041 <avx512>_fnmadd_<mode>_mask3<round_name>,
1042 <avx512>_fnmsub_<mode>_mask<round_name>,
1043 <avx512>_fnmsub_<mode>_mask3<round_name>,
1044 <avx512>_fmaddsub_<mode>_mask<round_name>,
1045 <avx512>_fmaddsub_<mode>_mask3<round_name>,
1046 <avx512>_fmsubadd_<mode>_mask<round_name>,
1047 <avx512>_fmsubadd_<mode>_mask3<round_name>): Remove isa attribute.
1048 (*vec_widen_umult_even_v16si<mask_name>,
1049 *vec_widen_smult_even_v16si<mask_name>): Likewise.
1050 (<mask_codefor>avx512bw_dbpsadbw<mode><mask_name>): Likewise.
1052 2017-10-20 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1054 * extend.texi: Add 'nocf_check' documentation.
1055 * gimple.texi: Add second parameter to
1056 gimple_build_call_from_tree.
1057 * invoke.texi: Add -fcf-protection documentation.
1058 * rtl.texi: Add REG_CALL_NOTRACK documenation.
1060 2017-10-20 Richard Biener <rguenther@suse.de>
1062 PR tree-optimization/82473
1063 * tree-vect-loop.c (vectorizable_reduction): Properly get at
1064 the largest input type.
1066 2017-10-20 Igor Tsimbalist <igor.v.tsimbalist@intel.com>
1068 * c-attribs.c (handle_nocf_check_attribute): New function.
1069 (c_common_attribute_table): Add 'nocf_check' handling.
1070 * gimple-parser.c: Add second argument NULL to
1071 gimple_build_call_from_tree.
1072 * attrib.c (comp_type_attributes): Check nocf_check attribute.
1073 * cfgexpand.c (expand_call_stmt): Set REG_CALL_NOCF_CHECK for
1075 * combine.c (distribute_notes): Add REG_CALL_NOCF_CHECK handling.
1076 * common.opt: Add fcf-protection flag.
1077 * emit-rtl.c (try_split): Add REG_CALL_NOCF_CHECK handling.
1078 * flag-types.h: Add enum cf_protection_level.
1079 * gimple.c (gimple_build_call_from_tree): Add second parameter.
1080 Add 'nocf_check' attribute propagation to gimple call.
1081 * gimple.h (gf_mask): Add GF_CALL_NOCF_CHECK.
1082 (gimple_build_call_from_tree): Update prototype.
1083 (gimple_call_nocf_check_p): New function.
1084 (gimple_call_set_nocf_check): Likewise.
1085 * gimplify.c: Add second argument to gimple_build_call_from_tree.
1086 * ipa-icf.c: Add nocf_check attribute in statement hash.
1087 * recog.c (peep2_attempt): Add REG_CALL_NOCF_CHECK handling.
1088 * reg-notes.def: Add REG_NOTE (CALL_NOCF_CHECK).
1089 * toplev.c (process_options): Add flag_cf_protection handling.
1091 2017-10-19 Jan Hubicka <hubicka@ucw.cz>
1093 * x86-tune-costs.h (core_cost): Fix div, move and sqrt latencies.
1095 2017-10-20 Richard Biener <rguenther@suse.de>
1097 PR tree-optimization/82603
1098 * tree-if-conv.c (predicate_mem_writes): Make sure to only
1099 remove false predicated stores.
1101 2017-10-20 Richard Biener <rguenther@suse.de>
1103 * graphite-isl-ast-to-gimple.c
1104 (translate_isl_ast_to_gimple::graphite_copy_stmts_from_block):
1105 Remove return value and simplify, dump copied stmt after lhs
1107 (translate_isl_ast_to_gimple::translate_isl_ast_node_user):
1108 Reduce dump verbosity.
1109 (gsi_insert_earliest): Likewise.
1110 (translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences): Adjust.
1111 * graphite.c (print_global_statistics): Adjust dumping.
1112 (print_graphite_scop_statistics): Likewise.
1113 (print_graphite_statistics): Do not dump loops here.
1114 (graphite_transform_loops): But here.
1116 2017-10-20 Nicolas Roche <roche@adacore.com>
1118 * configure.ac (ACX_PROG_GNAT): Append "libgnat" to include search dir.
1119 * configure: Regenerate.
1121 2017-10-20 Jakub Jelinek <jakub@redhat.com>
1124 * tree-cfg.c (pass_warn_function_return::execute): In noreturn
1125 functions when optimizing replace GIMPLE_RETURN stmts with
1126 calls to __builtin_unreachable ().
1129 * config/gnu-user.h (LIBTSAN_EARLY_SPEC): Add libtsan_preinit.o
1130 for -fsanitize=thread link of executables.
1131 (LIBLSAN_EARLY_SPEC): Add liblsan_preinit.o for -fsanitize=leak
1132 link of executables.
1135 * config/i386/sse.md (VI248_AVX2, VI248_AVX512BW, VI248_AVX512BW_2):
1137 (<shift_insn><mode>3<mask_name>): Change the last of the 3
1138 define_insns for logical vector shifts to use VI248_AVX512BW
1139 iterator instead of VI48_AVX512, remove <mask_mode512bit_condition>
1140 condition, useless isa and prefix attributes. Change the first
1141 2 of these define_insns to ...
1142 (<mask_codefor><shift_insn><mode>3<mask_name>): ... this, new
1143 define_insn for avx512vl.
1144 (<shift_insn><mode>3): ... and this, new define_insn without
1145 masking for non-avx512vl.
1148 * config/i386/sse.md (*andnot<mode>3,
1149 <mask_codefor><code><mode>3<mask_name>, *<code><mode>3): Split
1150 (=v,v,vm) alternative into (=x,x,xm) and (=v,v,vm), for 128-bit
1151 and 256-bit vectors, the (=x,x,xm) alternative and when mask is
1152 not applied use empty suffix even for TARGET_AVX512VL.
1153 * config/i386/subst.md (mask_prefix3, mask_prefix4): When mask
1154 is applied, supply evex,evex or evex,evex,evex instead of just
1157 2017-10-20 Julia Koval <julia.koval@intel.com>
1159 * common/config/i386/i386-common.c (OPTION_MASK_ISA_GFNI_SET,
1160 (OPTION_MASK_ISA_GFNI_UNSET): New.
1161 (ix86_handle_option): Handle OPT_mgfni.
1162 * config/i386/cpuid.h (bit_GFNI): New.
1163 * config/i386/driver-i386.c (host_detect_local_cpu): Detect gfni.
1164 * config/i386/i386-c.c (ix86_target_macros_internal): Define __GFNI__.
1165 * config/i386/i386.c (ix86_target_string): Add -mgfni.
1166 (ix86_valid_target_attribute_inner_p): Add OPT_mgfni.
1167 * config/i386/i386.h (TARGET_GFNI, TARGET_GFNI_P): New.
1168 * config/i386/i386.opt: Add mgfni.
1170 2017-10-20 Orlando Arias <oarias@knights.ucf.edu>
1172 * config/msp430/msp430.c (msp430_option_override): Disable
1173 -fdelete-null-pointer-checks.
1174 * doc/invoke.text (-fdelete-null-pointer-checks): Document that.
1176 2017-10-19 Jan Hubicka <hubicka@ucw.cz>
1178 * x86-tune-costs.h (generic_cost, core_cost): Correct costs
1179 of x87 and SSE instructions.
1181 2017-10-19 Jan Hubicka <hubicka@ucw.cz>
1183 * asan.c (create_cond_insert_point): Do not update edge count.
1184 * auto-profile.c (afdo_propagate_edge): Update for edge count removal.
1185 (afdo_propagate_circuit): Likewise.
1186 (afdo_calculate_branch_prob): Likewise.
1187 (afdo_annotate_cfg): Likewise.
1188 * basic-block.h (struct edge_def): Remove count.
1189 (edge_def::count): New accessor.
1190 * bb-reorder.c (rotate_loop): Update.
1191 (find_traces_1_round): Update.
1192 (connect_traces): Update.
1193 (sanitize_hot_paths): Update.
1194 * cfg.c (unchecked_make_edge): Update.
1195 (make_single_succ_edge): Update.
1196 (check_bb_profile): Update.
1197 (dump_edge_info): Update.
1198 (update_bb_profile_for_threading): Update.
1199 (scale_bbs_frequencies_int): Update.
1200 (scale_bbs_frequencies_gcov_type): Update.
1201 (scale_bbs_frequencies_profile_count): Update.
1202 (scale_bbs_frequencies): Update.
1203 * cfganal.c (connect_infinite_loops_to_exit): Update.
1204 * cfgbuild.c (compute_outgoing_frequencies): Update.
1205 (find_many_sub_basic_blocks): Update.
1206 * cfgcleanup.c (try_forward_edges): Update.
1207 (try_crossjump_to_edge): Update
1208 * cfgexpand.c (expand_gimple_cond): Update
1209 (expand_gimple_tailcall): Update
1210 (construct_exit_block): Update
1211 * cfghooks.c (verify_flow_info): Update
1212 (redirect_edge_succ_nodup): Update
1213 (split_edge): Update
1214 (make_forwarder_block): Update
1215 (duplicate_block): Update
1216 (account_profile_record): Update
1217 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
1218 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
1219 * cfgloopmanip.c (scale_loop_profile): Update.
1221 (lv_adjust_loop_entry_edge): Update.
1222 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
1223 (force_nonfallthru_and_redirect): Update.
1224 (purge_dead_edges): Update.
1225 (rtl_flow_call_edges_add): Update.
1226 * cgraphunit.c (init_lowered_empty_function): Update.
1227 (cgraph_node::expand_thunk): Update.
1228 * gimple-pretty-print.c (dump_probability): Update.
1229 (dump_edge_probability): Update.
1230 * gimple-ssa-isolate-paths.c (isolate_path): Update.
1231 * haifa-sched.c (sched_create_recovery_edges): Update.
1232 * hsa-gen.c (convert_switch_statements): Update.
1233 * ifcvt.c (dead_or_predicable): Update.
1234 * ipa-inline-transform.c (inline_transform): Update.
1235 * ipa-split.c (split_function): Update.
1236 * ipa-utils.c (ipa_merge_profiles): Update.
1237 * loop-doloop.c (add_test): Update.
1238 * loop-unroll.c (unroll_loop_runtime_iterations): Update.
1239 * lto-streamer-in.c (input_cfg): Update.
1240 (input_function): Update.
1241 * lto-streamer-out.c (output_cfg): Update.
1242 * modulo-sched.c (sms_schedule): Update.
1243 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
1244 * predict.c (maybe_hot_edge_p): Update.
1245 (unlikely_executed_edge_p): Update.
1246 (probably_never_executed_edge_p): Update.
1247 (dump_prediction): Update.
1248 (drop_profile): Update.
1249 (propagate_unlikely_bbs_forward): Update.
1250 (determine_unlikely_bbs): Update.
1251 (force_edge_cold): Update.
1252 * profile.c (compute_branch_probabilities): Update.
1253 * reg-stack.c (better_edge): Update.
1254 * shrink-wrap.c (handle_simple_exit): Update.
1255 * tracer.c (better_p): Update.
1256 * trans-mem.c (expand_transaction): Update.
1257 (split_bb_make_tm_edge): Update.
1258 * tree-call-cdce.c: Update.
1259 * tree-cfg.c (gimple_find_sub_bbs): Update.
1260 (gimple_split_edge): Update.
1261 (gimple_duplicate_sese_region): Update.
1262 (gimple_duplicate_sese_tail): Update.
1263 (gimple_flow_call_edges_add): Update.
1264 (insert_cond_bb): Update.
1265 (execute_fixup_cfg): Update.
1266 * tree-cfgcleanup.c (cleanup_control_expr_graph): Update.
1267 * tree-complex.c (expand_complex_div_wide): Update.
1268 * tree-eh.c (lower_resx): Update.
1269 (unsplit_eh): Update.
1270 (cleanup_empty_eh_move_lp): Update.
1271 * tree-inline.c (copy_edges_for_bb): Update.
1272 (freqs_to_counts): Update.
1273 (copy_cfg_body): Update.
1274 * tree-ssa-dce.c (remove_dead_stmt): Update.
1275 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
1276 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
1277 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
1278 (unloop_loops): Update.
1279 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
1280 * tree-ssa-loop-split.c (connect_loops): Update.
1281 (split_loop): Update.
1282 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
1283 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
1284 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
1285 * tree-ssa-reassoc.c (branch_fixup): Update.
1286 * tree-ssa-tail-merge.c (replace_block_by): Update.
1287 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
1288 (compute_path_counts): Update.
1289 (update_profile): Update.
1290 (recompute_probabilities): Update.
1291 (update_joiner_offpath_counts): Update.
1292 (estimated_freqs_path): Update.
1293 (freqs_to_counts_path): Update.
1294 (clear_counts_path): Update.
1295 (ssa_fix_duplicate_block_edges): Update.
1296 (duplicate_thread_path): Update.
1297 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
1298 (case_bit_test_cmp): Update.
1299 (collect_switch_conv_info): Update.
1300 (gen_inbound_check): Update.
1301 (do_jump_if_equal): Update.
1302 (emit_cmp_and_jump_insns): Update.
1303 * tree-tailcall.c (decrease_profile): Update.
1304 (eliminate_tail_call): Update.
1305 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
1306 (vect_do_peeling): Update.
1307 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
1308 * ubsan.c (ubsan_expand_null_ifn): Update.
1309 (ubsan_expand_ptr_ifn): Update.
1310 * value-prof.c (gimple_divmod_fixed_value): Update.
1311 (gimple_mod_pow2): Update.
1312 (gimple_mod_subtract): Update.
1313 (gimple_ic): Update.
1314 (gimple_stringop_fixed_value): Update.
1316 2017-10-19 Uros Bizjak <ubizjak@gmail.com>
1319 * config/i386/i386.md (sub to cmp): New peephole2 pattern.
1321 2017-10-19 Alexander Monakov <amonakov@ispras.ru>
1323 PR rtl-optimization/82395
1324 * ira-color.c (allocno_priority_compare_func): Fix comparison step
1325 based on non_spilled_static_chain_regno_p.
1327 2017-10-19 Uros Bizjak <ubizjak@gmail.com>
1329 * config/i386/i386.c (output_387_binary_op): Rewrite SSE part.
1330 (ix86_emit_mode_set): Rewrite insn mnemonic construction.
1331 (ix86_prepare_fp_compare_args): Redefine is_sse as bool.
1333 2017-10-19 Martin Sebor <msebor@redhat.com>
1335 PR tree-optimization/82596
1336 * tree.c (array_at_struct_end_p): Handle STRING_CST.
1338 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
1340 * asan.c (handle_builtin_alloca): Deal with all alloca variants.
1341 (get_mem_refs_of_builtin_call): Likewise.
1342 * builtins.c (expand_builtin_apply): Adjust call to
1343 allocate_dynamic_stack_space.
1344 (expand_builtin_alloca): For __builtin_alloca_with_align_and_max, pass
1345 the third argument to allocate_dynamic_stack_space, otherwise -1.
1346 (expand_builtin): Deal with all alloca variants.
1347 (is_inexpensive_builtin): Likewise.
1348 * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN_AND_MAX): New.
1349 * calls.c (special_function_p): Deal with all alloca variants.
1350 (initialize_argument_information): Adjust call to
1351 allocate_dynamic_stack_space.
1352 (expand_call): Likewise.
1353 * cfgexpand.c (expand_call_stmt): Deal with all alloca variants.
1354 * doc/extend.texi (Built-ins): Add __builtin_alloca_with_align_and_max
1355 * explow.c (allocate_dynamic_stack_space): Add MAX_SIZE parameter and
1356 use it for the stack usage computation.
1357 * explow.h (allocate_dynamic_stack_space): Adjust prototype.
1358 * function.c (gimplify_parameters): Call build_alloca_call_expr.
1359 * gimple-ssa-warn-alloca.c (alloca_call_type): Simplify control flow.
1360 Take into account 3rd argument of __builtin_alloca_with_align_and_max.
1361 (in_loop_p): Remove first argument and useless check.
1362 (pass_walloca::execute): Remove useless test and adjust call to above.
1363 * gimple.c (gimple_build_call_from_tree): Deal with all alloc variants
1364 * gimplify.c (gimplify_vla_decl): Call build_alloca_call_expr.
1365 (gimplify_call_expr): Deal with all alloca variants.
1366 * hsa-gen.c (gen_hsa_alloca): Likewise.
1367 (gen_hsa_insns_for_call): Likewise.
1368 * ipa-pure-const.c (special_builtin_state): Likewise.
1369 * tree-chkp.c (chkp_build_returned_bound): Likewise.
1370 * tree-object-size.c (alloc_object_size): Likewise.
1371 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
1372 (call_may_clobber_ref_p_1): Likewise.
1373 * tree-ssa-ccp.c (evaluate_stmt): Likewise.
1374 (ccp_fold_stmt): Likewise.
1375 (optimize_stack_restore): Likewise.
1376 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
1377 (mark_all_reaching_defs_necessary_1): Likewise.
1378 (propagate_necessity): Likewise.
1379 (eliminate_unnecessary_stmts): Likewise.
1380 * tree.c (build_common_builtin_nodes): Build
1381 BUILT_IN_ALLOCA_WITH_ALIGN_AND_MAX.
1382 (build_alloca_call_expr): New function.
1383 * tree.h (ALLOCA_FUNCTION_CODE_P): New macro.
1384 (CASE_BUILT_IN_ALLOCA): Likewise.
1385 (build_alloca_call_expr): Declare.
1386 * varasm.c (incorporeal_function_p): Deal with all alloca variants.
1388 2017-10-19 Eric Botcazou <ebotcazou@adacore.com>
1391 * dwarf2out.c (new_die_raw): New static inline function.
1392 (new_die): Use it to create the DIE.
1393 (add_AT_external_die_ref): Likewise.
1394 (clone_die): Likewise.
1395 (clone_as_declaration): Likewise.
1396 (dwarf2out_vms_debug_main_pointer): Likewise.
1397 (base_type_die): Likewise. Remove early return for corner cases.
1398 Do not call add_pubtype on the DIE here.
1399 (is_base_type): Remove ERROR_MARK and return 0 for VOID_TYPE.
1400 (modified_type_die): Adjust the lookup for reverse order DIEs. Skip
1401 typedefs for base types with DW_AT_endianity. Make sure a DIE with
1402 native order exists for base types, attach the DIE manually and call
1403 add_pubtype on it. Do not equate a reverse order DIE to the type.
1405 2017-10-19 Richard Earnshaw <rearnsha@arm.com>
1407 * config/arm/arm.c (align_ok_ldrd_strd): New function.
1408 (mem_ok_for_ldrd_strd): New parameter align. Extract the alignment of
1410 (gen_operands_ldrd_strd): Validate the alignment of the accesses.
1412 2017-10-19 Jakub Jelinek <jakub@redhat.com>
1414 * flag-types.h (enum sanitize_code): Add SANITIZE_BUILTIN. Or
1415 SANITIZE_BUILTIN into SANITIZE_UNDEFINED.
1416 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN,
1417 BUILT_IN_UBSAN_HANDLE_INVALID_BUILTIN_ABORT): New builtins.
1418 * opts.c (sanitizer_opts): Add builtin.
1419 * ubsan.c (instrument_builtin): New function.
1420 (pass_ubsan::execute): Call it.
1421 (pass_ubsan::gate): Enable even for SANITIZE_BUILTIN.
1422 * doc/invoke.texi: Document -fsanitize=builtin.
1424 * ubsan.c (ubsan_expand_null_ifn): Use _v1 suffixed type mismatch
1425 builtins, store max (log2 (align), 0) into uchar field instead of
1426 align into uptr field.
1427 (ubsan_expand_objsize_ifn): Use _v1 suffixed type mismatch builtins,
1428 store uchar 0 field instead of uptr 0 field.
1429 (instrument_nonnull_return): Use _v1 suffixed nonnull return builtin,
1430 instead of passing one address of struct with 2 locations pass
1431 two addresses of structs with 1 location each.
1432 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH,
1433 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
1434 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
1435 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): Removed.
1436 (BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1,
1437 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_V1_ABORT,
1438 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1,
1439 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_V1_ABORT): New builtins.
1441 2017-10-19 Martin Liska <mliska@suse.cz>
1444 * file-find.c (remove_prefix): Remove.
1445 * file-find.h (remove_prefix): Likewise.
1446 * gcc-ar.c: Remove smartness of lookup.
1448 2017-10-19 Segher Boessenkool <segher@kernel.crashing.org>
1450 * config/rs6000/rs6000.md (*call_indirect_aix<mode>,
1451 *call_value_indirect_aix<mode>, *call_indirect_elfv2<mode>,
1452 *call_value_indirect_elfv2<mode>): Add correct mode to the unspec.
1454 2017-10-19 Jakub Jelinek <jakub@redhat.com>
1457 * config/i386/i386.md (setcc + movzbl to xor + setcc): New peephole2.
1458 (setcc + and to xor + setcc): New peephole2.
1460 2017-10-19 Tom de Vries <tom@codesourcery.com>
1462 * doc/sourcebuild.texi (Test Directives, Variants of
1463 dg-require-support): Add dg-require-stack-size.
1465 2017-10-19 Martin Liska <mliska@suse.cz>
1468 * gimplify.c (gimplify_decl_expr): Do not instrument variables
1469 that have a large alignment.
1470 (gimplify_target_expr): Likewise.
1472 2017-10-18 Segher Boessenkool <segher@kernel.crashing.org>
1474 PR rtl-optimization/82602
1475 * ira.c (rtx_moveable_p): Return false for volatile asm.
1477 2017-10-18 Uros Bizjak <ubizjak@gmail.com>
1480 * config/i386/i386-modes.def (CCGZ): New CC mode.
1481 * config/i386/i386.md (sub<mode>3_carry_ccgz): New insn pattern.
1482 * config/i386/predicates.md (ix86_comparison_operator):
1484 * config/i386/i386.c (ix86_expand_branch) <case E_TImode>:
1485 Emulate LE, LEU, GT, GTU, LT, LTU, GE and GEU double-word comparisons
1486 with double-word subtraction.
1487 (put_condition_code): Handle CCGZmode.
1489 2017-10-18 Aldy Hernandez <aldyh@redhat.com>
1491 * wide-int.cc (debug (const wide_int &)): New.
1492 (debug (const wide_int *)): New.
1493 (debug (const widest_int &)): New.
1494 (debug (const widest_int *)): New.
1496 2017-10-18 Vladimir Makarov <vmakarov@redhat.com>
1499 * lra-constraints.c (curr_insn_transform): Use non-input operand
1500 instead of output one for matched reload.
1502 2017-10-18 Bin Cheng <bin.cheng@arm.com>
1504 * tree-loop-distribution.c (INCLUDE_ALGORITHM): New header file.
1505 (tree-ssa-loop-ivopts.h): New header file.
1506 (struct builtin_info): New fields.
1507 (classify_builtin_1): Compute and record base and offset parts for
1508 memset builtin partition by calling strip_offset.
1509 (offset_cmp, fuse_memset_builtins): New functions.
1510 (finalize_partitions): Fuse adjacent memset partitions by calling
1512 * tree-ssa-loop-ivopts.c (strip_offset): Delete static declaration.
1513 Expose the interface.
1514 * tree-ssa-loop-ivopts.h (strip_offset): New declaration.
1516 2017-10-18 Bin Cheng <bin.cheng@arm.com>
1518 PR tree-optimization/82574
1519 * tree-loop-distribution.c (find_single_drs): New parameter. Check
1520 that data reference must be executed exactly once per iteration
1521 against the outermost loop in nest.
1522 (classify_partition): Update call to above function.
1524 2017-10-18 Richard Biener <rguenther@suse.de>
1526 PR tree-optimization/82591
1527 * graphite.c (graphite_transform_loops): Move code gen message
1529 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
1530 Here. Handle scop_to_isl_ast failing.
1531 (scop_to_isl_ast): Limit the number of ISL operations.
1533 2017-10-18 Richard Biener <rguenther@suse.de>
1535 * graphite-isl-ast-to-gimple.c
1536 (translate_isl_ast_to_gimple::set_rename): Simplify.
1537 (translate_isl_ast_to_gimple::set_rename_for_each_def): Inline...
1538 (graphite_copy_stmts_from_block): ... here.
1539 (copy_bb_and_scalar_dependences): Simplify.
1540 (add_parameters_to_ivs_params): Canonicalize.
1541 (generate_entry_out_of_ssa_copies): Simplify.
1542 * graphite-sese-to-poly.c (extract_affine_name): Simplify
1543 by passing in ISL dimension.
1544 (parameter_index_in_region_1): Rename to ...
1545 (parameter_index_in_region): ... this.
1546 (extract_affine): Adjust assert, pass down parameter index.
1547 (add_param_constraints): Use range-info when available.
1548 (build_scop_context): Adjust.
1549 * sese.c (new_sese_info): Adjust.
1550 (free_sese_info): Likewise.
1551 * sese.h (bb_map_t, rename_map_t, phi_rename, init_back_edge_pair_t):
1552 Remove unused typedefs.
1553 (struct sese_info_t): Simplify rename_map, remove incomplete_phis.
1555 2017-10-18 Martin Liska <mliska@suse.cz>
1557 * combine.c (simplify_compare_const): Add gcc_fallthrough.
1559 2017-10-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
1561 * config/s390/s390.c (s390_bb_fallthru_entry_likely): New function.
1562 (s390_sched_init): Do not reset s390_sched_state if we entered the
1563 current basic block via a fallthru edge and all others are unlikely.
1565 2017-10-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
1567 * config/s390/s390.c (NUM_SIDES): New variable.
1568 (LONGRUNNING_THRESHOLD): New variable.
1569 (LATENCY_FACTOR): New variable.
1570 (s390_sched_score): Decrease score for long-running instructions on
1572 (s390_sched_variable_issue): Perform bookkeeping for long-running
1575 2017-10-18 Richard Biener <rguenther@suse.de>
1577 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1578 Simplify with removal of the parameter rename map.
1579 (set_rename): Likewise.
1580 (should_copy_to_new_region): Likewise.
1581 (graphite_copy_stmts_from_block): Likewise.
1582 (copy_bb_and_scalar_dependences): Remove initialization of
1583 unused copied_bb_map.
1585 (copy_internal_parameters): Likewise.
1586 (graphite_regenerate_ast_isl): Do not call copy_internal_parameters.
1587 * graphite-scop-detection.c (scop_detection::stmt_simple_for_scop_p):
1588 Use INTEGRAL_TYPE_P.
1589 (parameter_index_in_region_1): Rename to ...
1590 (assign_parameter_index_in_region): ... this. Assert we have
1591 a parameter we handle.
1592 (scan_tree_for_params): Adjust.
1593 * sese.h (parameter_rename_map_t): Remove.
1594 (struct sese_info_t): Remove unused parameter_rename_map and
1595 copied_bb_map members.
1596 * sese.c (new_sese_info): Adjust.
1597 (free_sese_info): Likewise.
1599 2017-10-18 Martin Liska <mliska@suse.cz>
1602 * asan.c (asan_expand_poison_ifn): Do not put gimple stmt
1603 on an abnormal edge.
1605 2017-10-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
1607 * doc/invoke.texi (ffunction-sections and fdata-sections):
1610 2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
1612 * tree-ssa-loop-ivopts.c (add_autoinc_candidates): Bail out only if
1613 the use statement can throw internally.
1615 2017-10-17 Eric Botcazou <ebotcazou@adacore.com>
1617 * config/visium/visium.c (visium_select_cc_mode): Return CCmode for
1618 any RTX present on the RHS of a SET.
1619 * compare-elim.c (try_eliminate_compare): Restore comment.
1621 2017-10-17 Jakub Jelinek <jakub@redhat.com>
1623 * langhooks.h (struct lang_hooks): Document that tree_size langhook
1624 may be also called on tcc_type nodes.
1625 * langhooks.c (lhd_tree_size): Likewise.
1627 2017-10-17 David Malcolm <dmalcolm@redhat.com>
1629 * gimple-ssa-sprintf.c (fmtwarn): Update for changed signature of
1630 format_warning_at_substring.
1631 (maybe_warn): Convert source_range * param to a location_t. Pass
1632 UNKNOWN_LOCATION rather than NULL to fmtwarn.
1633 (format_directive): Remove code to extract source_ranges and
1634 source_range * in favor of just a location_t.
1635 (parse_directive): Pass UNKNOWN_LOCATION rather than NULL to
1637 * substring-locations.c (format_warning_va): Convert
1638 source_range * param to a location_t.
1639 (format_warning_at_substring): Likewise.
1640 * substring-locations.h (format_warning_va): Likewise.
1641 (format_warning_at_substring): Likewise.
1643 2017-10-17 Jan Hubicka <hubicka@ucw.cz>
1645 * target.h (enum vect_cost_for_stmt): Add vec_gather_load and
1647 * tree-vect-stmts.c (record_stmt_cost): Make difference between normal
1648 and scatter/gather ops.
1650 * aarch64/aarch64.c (aarch64_builtin_vectorization_cost): Add
1651 vec_gather_load and vec_scatter_store.
1652 * arm/arm.c (arm_builtin_vectorization_cost): Likewise.
1653 * powerpcspe/powerpcspe.c (rs6000_builtin_vectorization_cost): Likewise.
1654 * rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Likewise.
1655 * s390/s390.c (s390_builtin_vectorization_cost): Likewise.
1656 * spu/spu.c (spu_builtin_vectorization_cost): Likewise.
1657 * i386/i386.c (x86_builtin_vectorization_cost): Likewise.
1659 2017-10-17 Uros Bizjak <ubizjak@gmail.com>
1661 * reg-stack.c (compare_for_stack_reg): Add bool argument.
1662 Detect FTST instruction and handle its register pops. Only pop
1663 second operand if can_pop_second_op is true.
1664 (subst_stack_regs_pat) <case COMPARE>: Detect FCOMI instruction to
1665 set can_pop_second_op to false in the compare_for_stack_reg call.
1667 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Only call
1668 output_fp_compare for stack register operands.
1669 * config/i386/i386.c (output_fp_compare): Do not output SSE compare
1670 instructions here. Do not emit stack register pops here. Assert
1671 that FCOMPP pops next to top stack register. Rewrite function.
1673 2017-10-17 Nathan Sidwell <nathan@acm.org>
1676 * alias.c (compare_base_decls): Check HAS_DECL_ASSEMBLER_NAME_P,
1677 use DECL_ASSEMBLER_NAME_RAW.
1680 * tree.c (tree_code_size): Reformat. Punt to lang hook for unknown
1683 2017-10-17 Qing Zhao <qing.zhao@oracle.com>
1684 Wilco Dijkstra <wilco.dijkstra@arm.com>
1686 * builtins.c (expand_builtin_update_setjmp_buf): Add a
1687 converstion to Pmode from the buf_addr.
1689 2017-10-17 Richard Biener <rguenther@suse.de>
1691 * graphite-dependences.c (scop_get_reads_and_writes): Change
1692 output parameters to references.
1694 2017-10-17 Jackson Woodruff <jackson.woodruff@arm.com>
1696 PR 71026/tree-optimization
1697 * fold-const.c (distribute_real_division): Removed.
1698 (fold_binary_loc): Remove calls to distribute_real_divison.
1700 2017-10-17 Richard Biener <rguenther@suse.de>
1702 * graphite-scop-detection.c
1703 (scop_detection::stmt_has_simple_data_refs_p): Always use
1704 the full nest as region.
1705 (try_generate_gimple_bb): Likewise.
1706 * sese.c (scalar_evolution_in_region): Simplify now that
1707 SCEV can handle instantiation in regions.
1708 * tree-scalar-evolution.c (instantiate_scev_name): Also instantiate
1709 in the non-loop part of a function if requested.
1711 2017-10-17 Richard Biener <rguenther@suse.de>
1713 PR tree-optimization/82563
1714 * graphite-isl-ast-to-gimple.c (generate_entry_out_of_ssa_copies):
1716 (graphite_regenerate_ast_isl): Call it.
1717 * graphite-scop-detection.c (build_scops): Remove entry edge split.
1719 2017-10-17 Jakub Jelinek <jakub@redhat.com>
1721 PR tree-optimization/82549
1722 * fold-const.c (optimize_bit_field_compare, fold_truth_andor_1):
1723 Formatting fixes. Instead of calling make_bit_field_ref with negative
1726 2017-10-17 Olga Makhotina <olga.makhotina@intel.com>
1728 * config/i386/avx512dqintrin.h (_mm_mask_reduce_sd,
1729 _mm_maskz_reduce_sd, _mm_mask_reduce_ss,=20
1730 _mm_maskz_reduce_ss): New.
1731 * config/i386/i386-builtin.def (__builtin_ia32_reducesd_mask,
1732 __builtin_ia32_reducess_mask): Ditto..
1733 (__builtin_ia32_reducesd, __builtin_ia32_reducess): Remove.
1734 * config/i386/sse.md (reduces<mode>): Renamed to ...
1735 (reduces<mode><mask_scalar_name>): ... this.
1736 (vreduce<ssescalarmodesuffix>\t{%3, %2, %1, %0|%0, %1, %2, %3}): Changed
1738 (vreduce<ssescalarmodesuffix>\t{%3, %2, %1, %0<mask_scalar_operand4>|
1739 %0<mask_scalar_operand4>, %1, %2, %3}): ... this.
1741 2017-10-16 David Malcolm <dmalcolm@redhat.com>
1743 * Makefile.in (OBJS): Add unique-ptr-tests.o.
1744 * selftest-run-tests.c (selftest::run_tests): Call
1745 selftest::unique_ptr_tests_cc_tests.
1746 * selftest.h (selftest::unique_ptr_tests_cc_tests): New decl.
1747 * unique-ptr-tests.cc: New file.
1749 2017-10-16 Vladimir Makarov <vmakarov@redhat.com>
1752 * lra.c (collect_non_operand_hard_regs): Don't ignore operator
1754 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
1755 (make_hard_regno_born, make_hard_regno_dead): Update
1756 bb_killed_pseudos and bb_gen_pseudos for fixed regs.
1758 2017-10-16 Jeff Law <law@redhat.com>
1760 * tree-ssa-dse.c (live_bytes_read): Fix thinko.
1762 2017-10-16 Jan Hubicka <hubicka@ucw.cz>
1764 * x86-tune-costs.h (znver1_cost): Fix move cost tables.
1766 2017-10-16 Olivier Hainque <hainque@adacore.com>
1768 * gcc/config.gcc (powerpc*-*-*spe*): Pick 8548 as the default
1769 with_cpu if we were configured for an e500v2 target cpu name.
1771 2017-10-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
1773 * config/arm/arm-cpus.in (cortex-m33): Add nodsp option.
1774 * doc/invoke.texi: Document +nodsp as a valid extension for
1777 2017-10-16 Martin Liska <mliska@suse.cz>
1779 * sbitmap.c (bitmap_bit_in_range_p_checking): New function.
1780 (test_set_range): Likewise.
1781 (test_range_functions): Rename to ...
1782 (test_bit_in_range): ... this.
1783 (sbitmap_c_tests): Add new test.
1785 2017-10-16 Tamar Christina <tamar.christina@arm.com>
1787 * config/aarch64/arm_neon.h (vdot_u32, vdotq_u32, vdot_s32, vdotq_s32): New.
1788 (vdot_lane_u32, vdot_laneq_u32, vdotq_lane_u32, vdotq_laneq_u32): New.
1789 (vdot_lane_s32, vdot_laneq_s32, vdotq_lane_s32, vdotq_laneq_s32): New.
1791 2017-10-16 Tamar Christina <tamar.christina@arm.com>
1793 * config/aarch64/aarch64-builtins.c
1794 (aarch64_types_quadopu_lane_qualifiers): New.
1795 (TYPES_QUADOPU_LANE): New.
1796 * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>): New.
1797 (<sur>dot_prod<vsi2qi>, aarch64_<sur>dot_lane<vsi2qi>): New.
1798 (aarch64_<sur>dot_laneq<vsi2qi>): New.
1799 * config/aarch64/aarch64-simd-builtins.def (sdot, udot): New.
1800 (sdot_lane, udot_lane, sdot_laneq, udot_laneq): New.
1801 * config/aarch64/iterators.md (sur): Add UNSPEC_SDOT, UNSPEC_UDOT.
1802 (Vdottype, DOTPROD): New.
1803 (sur): Add SDOT and UDOT.
1805 2017-10-16 Tamar Christina <tamar.christina@arm.com>
1807 * config/aarch64/aarch64.h (AARCH64_FL_DOTPROD): New.
1808 (AARCH64_ISA_DOTPROD, TARGET_DOTPROD): New.
1809 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add TARGET_DOTPROD.
1810 * config/aarch64/aarch64-option-extensions.def (dotprod): New.
1811 * config/aarch64/aarch64-cores.def (cortex-a55, cortex-a75): Enable TARGET_DOTPROD.
1812 (cortex-a75.cortex-a55): Likewise.
1813 * doc/invoke.texi (aarch64-feature-modifiers): Document dotprod.
1815 2017-10-16 Tamar Christina <tamar.christina@arm.com>
1817 * config/arm/arm-builtins.c (arm_unsigned_uternop_qualifiers): New.
1818 (UTERNOP_QUALIFIERS, arm_umac_lane_qualifiers, UMAC_LANE_QUALIFIERS): New.
1819 * config/arm/arm_neon_builtins.def (sdot, udot, sdot_lane, udot_lane): new.
1820 * config/arm/iterators.md (DOTPROD, VSI2QI, vsi2qi): New.
1821 (UNSPEC_DOT_S, UNSPEC_DOT_U, opsuffix): New.
1822 * config/arm/neon.md (neon_<sup>dot<vsi2qi>): New.
1823 (neon_<sup>dot_lane<vsi2qi>, <sup>dot_prod<vsi2qi>): New.
1824 * config/arm/types.md (neon_dot, neon_dot_q): New.
1825 * config/arm/unspecs.md (sup): Add UNSPEC_DOT_S, UNSPEC_DOT_U.
1827 2017-10-16 Tamar Christina <tamar.christina@arm.com>
1829 * config/arm/arm.h (TARGET_DOTPROD): New.
1830 * config/arm/arm.c (arm_arch_dotprod): New.
1831 (arm_option_reconfigure_globals): Add arm_arch_dotprod.
1832 * config/arm/arm-c.c (__ARM_FEATURE_DOTPROD): New.
1833 * config/arm/arm-cpus.in (armv8.2-a): Enabled +dotprod.
1834 (feature dotprod, group dotprod, ALL_SIMD_INTERNAL): New.
1835 (ALL_FPU_INTERNAL): Use ALL_SIMD_INTERNAL.
1836 * config/arm/t-multilib (v8_2_a_simd_variants): Add dotprod.
1837 * doc/invoke.texi (armv8.2-a): Document dotprod
1839 2017-10-14 Jan Hubicka <hubicka@ucw.cz>
1841 * i386.c (ix86_vec_cost): New function.
1842 (ix86_rtx_costs): Handle vector operations better.
1843 * i386.h (struct processor_costs): Add sse_op, fmasd, fmass.
1844 * x86-tune-costs.h: Add new costs to all tables.
1846 2017-10-14 Jan Hubicka <hubicka@ucw.cz>
1848 * i386.c (ix86_rtx_costs): Make difference between x87 and SSE
1850 * i386.h (struct processor_costs): Add addss, mulss, mulsd, divss,
1851 divsd, sqrtss and sqrtsd
1852 * x86-tune-costs.h: Add new entries to all costs.
1853 (znver1_cost): Fix to match real instruction latencies.
1855 2017-10-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1856 Michael Collison <michael.collison@arm.com>
1858 * compare-elim.c: Include emit-rtl.h.
1859 (can_merge_compare_into_arith): New function.
1860 (try_validate_parallel): Likewise.
1861 (try_merge_compare): Likewise.
1862 (try_eliminate_compare): Call the above when no previous clobber
1864 (execute_compare_elim_after_reload): Add DF_UD_CHAIN and DF_DU_CHAIN
1867 2017-10-14 Jakub Jelinek <jakub@redhat.com>
1871 * tree-ssa-phiopt.c (value_replacement): Comment fix. Handle
1872 up to 2 preparation statements for ASSIGN in MIDDLE_BB.
1876 * tree-ssa-forwprop.c (simplify_rotate): Allow def_arg1[N]
1877 to be any operand_equal_p operands. For & (B - 1) require
1878 B to be power of 2. Recognize
1879 (X << (Y & (B - 1))) | (X >> ((-Y) & (B - 1))) and similar patterns.
1881 2017-10-14 Uros Bizjak <ubizjak@gmail.com>
1884 * optabs.c (expand_memory_blockage): Fix call of
1885 targetm.have_memory_blockage.
1887 2017-10-14 Jakub Jelinek <jakub@redhat.com>
1890 * config.gcc (*-*-solaris2*, i[34567]86-*-cygwin*,
1891 x86_64-*-cygwin*, i[34567]86-*-mingw* | x86_64-*-mingw*): Append
1892 objects to extra_objs instead of overwriting it.
1894 2017-10-14 Uros Bizjak <ubizjak@gmail.com>
1896 * config/i386/sync.md (FILD_ATOMIC/FIST_ATOMIC FP load peephole2):
1897 Use any_fp_register_operand as operand[3] predicate. Simplify
1898 equality test for operands[2] and operands[4] memory location.
1899 (LDX_ATOMIC/STX_ATOMIC FP load peephole2): Ditto.
1900 (FILD_ATOMIC/FIST_ATOMIC FP load peephole2 with mem blockage): New.
1901 (LDX_ATOMIC/LDX_ATOMIC FP load peephole2 with mem blockage): Ditto.
1902 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2): Use
1903 any_fp_register_operand as operand[1] predicate. Simplify
1904 equality test for operands[0] and operands[3] memory location.
1905 (LDX_ATOMIC/STX_ATOMIC FP store peephole2): Ditto.
1906 (FILD_ATOMIC/FIST_ATOMIC FP store peephole2 with mem blockage): New.
1907 (LDX_ATOMIC/LDX_ATOMIC FP storepeephole2 with mem blockage): Ditto.
1909 2017-10-14 Uros Bizjak <ubizjak@gmail.com>
1911 * target-insns.def: Add memory_blockage.
1912 * optabs.c (expand_memory_blockage): New function.
1913 (expand_asm_memory_barrier): Rename ...
1914 (expand_asm_memory_blockage): ... to this.
1915 (expand_mem_thread_fence): Call expand_memory_blockage
1916 instead of expand_asm_memory_barrier.
1917 (expand_mem_singnal_fence): Ditto.
1918 (expand_atomic_load): Ditto.
1919 (expand_atomic_store): Ditto.
1920 * doc/md.texi (Standard Pattern Names For Generation):
1921 Document memory_blockage instruction pattern.
1923 2017-10-13 Sebastian Perta <sebastian.perta@renesas.com>
1925 * config/rl78/rl78.c (rl78_emit_libcall): New function.
1926 * config/rl78/rl78-protos.h (rl78_emit_libcall): New function.
1927 * config/rl78/rl78.md: New define_expand "adddi3".
1929 2017-10-13 Jan Hubicka <hubicka@ucw.cz>
1931 * cfghooks.c (verify_flow_info): Disable check that all probabilities
1934 2017-10-13 Jeff Law <law@redhat.com>
1936 * tree-ssa-reassoc.c (reassociate_bb): Clarify code slighly.
1938 2017-10-13 Jakub Jelinek <jakub@redhat.com>
1941 * internal-fn.c (expand_mul_overflow): If both operands have
1942 the same highpart of -1 or 0 and the topmost bit of lowpart
1943 is different, overflow is if res <= 0 rather than res < 0.
1945 2017-10-13 Pat Haugen <pthaugen@us.ibm.com>
1947 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Remove
1948 TARGET_P9_VECTOR code for unaligned_load case.
1950 2017-10-13 Jan Hubicka <hubicka@ucw.cz>
1952 * cfghooks.c (verify_flow_info): Check that edge probabilities are set.
1954 2017-10-13 Nathan Sidwell <nathan@acm.org>
1956 * tree-core.h (tree_contains_struct): Make bool.
1957 * tree.c (tree_contains_struct): Likewise.
1958 * tree.h (MARK_TS_BASE): Remove do ... while (0) idiom.
1959 (MARK_TS_TYPED, MARK_TS_COMMON, MARK_TS_TYPE_COMMON,
1960 MARK_TS_TYPE_WITH_LANG_SPECIFIC, MARK_TS_DECL_MINIMAL,
1961 MARK_TS_DECL_COMMON, MARK_TS_DECL_WRTL, MARK_TS_DECL_WITH_VIS,
1962 MARK_TS_DECL_NON_COMMON): Likewise, use comma operator.
1964 2017-10-13 Richard Biener <rguenther@suse.de>
1966 * graphite-isl-ast-to-gimple.c
1967 (translate_isl_ast_to_gimple::get_rename_from_scev): Remove unused
1968 parameters and dominance check.
1969 (translate_isl_ast_to_gimple::graphite_copy_stmts_from_block): Adjust.
1970 (translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences): Likewise.
1971 (translate_isl_ast_to_gimple::graphite_regenerate_ast_isl):
1972 Do not update SSA form here or do intermediate IL verification.
1973 * graphite.c: Include tree-ssa.h and tree-into-ssa.h.
1974 (graphite_initialize): Remove check on the number of loops in
1975 the function and inline into graphite_transform_loops.
1976 (graphite_finalize): Inline into graphite_transform_loops.
1977 (graphite_transform_loops): Perform SSA update and IL verification
1979 * params.def (PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION): Remove.
1981 2017-10-13 Richard Biener <rguenther@suse.de>
1983 * graphite-isl-ast-to-gimple.c (max_mode_int_precision,
1984 graphite_expression_type_precision): Avoid global constructor
1986 (translate_isl_ast_to_gimple::translate_isl_ast_to_gimple): Here.
1987 (translate_isl_ast_to_gimple::graphite_expr_type): Add type member.
1988 (translate_isl_ast_to_gimple::translate_isl_ast_node_for): Use it.
1989 (translate_isl_ast_to_gimple::build_iv_mapping): Likewise.
1990 (translate_isl_ast_to_gimple::graphite_create_new_guard): Likewise.
1991 * graphite-sese-to-poly.c (build_original_schedule): Return nothing.
1993 2017-10-13 H.J. Lu <hongjiu.lu@intel.com>
1996 * config/i386/i386.h (ix86_red_zone_size): New.
1997 * config/i386/i386.md (push peephole2s): Replace
1998 "!ix86_using_red_zone ()" with "ix86_red_zone_size == 0".
2000 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
2001 Alan Hayward <alan.hayward@arm.com>
2002 David Sherwood <david.sherwood@arm.com>
2004 * combine.c (can_change_dest_mode): Reject changes in
2005 REGMODE_NATURAL_SIZE.
2007 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
2008 Alan Hayward <alan.hayward@arm.com>
2009 David Sherwood <david.sherwood@arm.com>
2011 * cfgexpand.c (expand_debug_expr): Use GET_MODE_UNIT_BITSIZE.
2012 (expand_debug_source_expr): Likewise.
2013 * combine.c (combine_simplify_rtx): Likewise.
2014 * cse.c (fold_rtx): Likewise.
2015 * fwprop.c (canonicalize_address): Likewise.
2016 * targhooks.c (default_shift_truncation_mask): Likewise.
2018 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
2019 Alan Hayward <alan.hayward@arm.com>
2020 David Sherwood <david.sherwood@arm.com>
2022 * optabs.c (add_equal_note): Use GET_MODE_UNIT_SIZE.
2023 (widened_mode): Likewise.
2024 (expand_unop): Likewise.
2025 * ree.c (transform_ifelse): Likewise.
2026 (merge_def_and_ext): Likewise.
2027 (combine_reaching_defs): Likewise.
2028 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2030 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
2031 Alan Hayward <alan.hayward@arm.com>
2032 David Sherwood <david.sherwood@arm.com>
2034 * caller-save.c (replace_reg_with_saved_mem): Use byte_lowpart_offset.
2035 * combine.c (gen_lowpart_for_combine): Likewise.
2036 * dwarf2out.c (rtl_for_decl_location): Likewise.
2037 * final.c (alter_subreg): Likewise.
2038 * rtlhooks.c (gen_lowpart_general): Likewise.
2039 (gen_lowpart_if_possible): Likewise.
2041 2017-10-13 Richard Sandiford <richard.sandiford@linaro.org>
2042 Alan Hayward <alan.hayward@arm.com>
2043 David Sherwood <david.sherwood@arm.com>
2045 * calls.c (expand_call): Use subreg_lowpart_offset.
2046 * cse.c (cse_insn): Likewise.
2047 * regcprop.c (copy_value): Likewise.
2048 (copyprop_hardreg_forward_1): Likewise.
2050 2017-10-13 Jakub Jelinek <jakub@redhat.com>
2053 * config/i386/i386.md (addqi_ext_1, andqi_ext_1,
2054 *andqi_ext_1_cc, *<code>qi_ext_1, *xorqi_ext_1_cc): Change
2055 =Q constraints to +Q and into insn condition add check
2056 that operands[0] and operands[1] are equal.
2057 (*addqi_ext_2, *andqi_ext_2, *<code>qi_ext_2): Change
2058 =Q constraints to +Q and into insn condition add check
2059 that operands[0] is equal to either operands[1] or operands[2].
2062 * fold-const.c (fold_binary_loc) <bit_rotate>: Code cleanups,
2063 instead of handling MINUS_EXPR twice (once for each argument),
2064 canonicalize operand order and handle just once, use rtype where
2065 possible. Handle (A << B) | (A >> (-B & (Z - 1))).
2068 * config/i386/ia32intrin.h (__rold, __rord, __rolq, __rorq): Allow
2069 any values of __C while still being pattern recognizable as a simple
2072 2017-10-13 Richard Biener <rguenther@suse.de>
2074 PR tree-optimization/82451
2076 2017-10-02 Richard Biener <rguenther@suse.de>
2078 PR tree-optimization/82355
2079 * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
2080 a mapping for the enclosing loop but avoid generating one for
2082 (copy_bb_and_scalar_dependences): Remove premature codegen
2083 error on PHIs in blocks duplicated into multiple places.
2084 * graphite-scop-detection.c
2085 (scop_detection::stmt_has_simple_data_refs_p): For a loop not
2086 in the region use it as loop and nest to analyze the DR in.
2087 (try_generate_gimple_bb): Likewise.
2088 * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
2089 (add_loop_constraints): For blocks in a loop not in the region
2090 create a dimension with a single iteration.
2091 * sese.h (gbb_loop_at_index): Remove assert.
2093 * cfgloop.c (loop_preheader_edge): For the loop tree root
2094 return the single successor of the entry block.
2095 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
2096 Reset the SCEV hashtable and niters.
2097 * graphite-scop-detection.c
2098 (scop_detection::graphite_can_represent_scev): Add SCOP parameter,
2099 assert that we only have POLYNOMIAL_CHREC that vary in loops
2100 contained in the region.
2101 (scop_detection::graphite_can_represent_expr): Adjust.
2102 (scop_detection::stmt_has_simple_data_refs_p): For loops
2103 not in the region set loop to NULL. The nest is now the
2104 entry edge to the region.
2105 (try_generate_gimple_bb): Likewise.
2106 * sese.c (scalar_evolution_in_region): Adjust for
2107 instantiate_scev change.
2108 * tree-data-ref.h (graphite_find_data_references_in_stmt):
2109 Make nest parameter the edge into the region.
2110 (create_data_ref): Likewise.
2111 * tree-data-ref.c (dr_analyze_indices): Make nest parameter an
2112 entry edge into a region and adjust instantiate_scev calls.
2113 (create_data_ref): Likewise.
2114 (graphite_find_data_references_in_stmt): Likewise.
2115 (find_data_references_in_stmt): Pass the loop preheader edge
2116 from the nest argument.
2117 * tree-scalar-evolution.h (instantiate_scev): Make instantiate_below
2118 parameter the edge into the region.
2119 (instantiate_parameters): Use the loop preheader edge as entry.
2120 * tree-scalar-evolution.c (analyze_scalar_evolution): Handle
2122 (get_instantiated_value_entry): Make instantiate_below parameter
2123 the edge into the region.
2124 (instantiate_scev_name): Likewise. Adjust dominance checks,
2125 when we cannot use loop-based instantiation instantiate by
2126 walking use-def chains.
2127 (instantiate_scev_poly): Adjust.
2128 (instantiate_scev_binary): Likewise.
2129 (instantiate_scev_convert): Likewise.
2130 (instantiate_scev_not): Likewise.
2131 (instantiate_array_ref): Remove.
2132 (instantiate_scev_3): Likewise.
2133 (instantiate_scev_2): Likewise.
2134 (instantiate_scev_1): Likewise.
2135 (instantiate_scev_r): Do not blindly handle N-operand trees.
2136 Do not instantiate array-refs. Handle all constants and invariants.
2137 (instantiate_scev): Make instantiate_below parameter
2138 the edge into the region.
2139 (resolve_mixers): Use the loop preheader edge for the region
2140 parameter to instantiate_scev_r.
2141 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Adjust.
2143 2017-10-13 Richard Biener <rguenther@suse.de>
2145 PR tree-optimization/82525
2146 * graphite-isl-ast-to-gimple.c
2147 (translate_isl_ast_to_gimple::widest_int_from_isl_expr_int): Split
2149 (translate_isl_ast_to_gimple::gcc_expression_from_isl_expr_int): Here.
2150 Fail code generation when we cannot represent the isl integer.
2151 (binary_op_to_tree): Elide modulo operations that are no-ops
2152 in the type we code generate. Remove now superfluous code
2155 2017-10-13 Richard Biener <rguenther@suse.de>
2157 * graphite-scop-detection.c (loop_ivs_can_be_represented): Remove.
2158 (scop_detection::harmful_loop_in_region): Remove premature
2159 IV type restriction.
2160 (scop_detection::graphite_can_represent_scev): We can handle
2161 pointer IVs just fine.
2163 2017-10-13 Alan Modra <amodra@gmail.com>
2165 * doc/extend.texi (Extended Asm <Clobbers>): Rename to
2166 "Clobbers and Scratch Registers". Add paragraph on
2167 alternative to clobbers for scratch registers and OpenBLAS
2170 2017-10-13 Alan Modra <amodra@gmail.com>
2172 * doc/extend.texi (Clobbers): Correct vax example. Delete old
2173 example of a memory input for a string of known length. Move
2174 commentary out of table. Add a number of new examples
2175 covering array memory inputs.
2177 2017-10-12 Martin Liska <mliska@suse.cz>
2179 PR tree-optimization/82493
2180 * sbitmap.c (bitmap_bit_in_range_p): Fix the implementation.
2181 (test_range_functions): New function.
2182 (sbitmap_c_tests): Likewise.
2183 * selftest-run-tests.c (selftest::run_tests): Run new tests.
2184 * selftest.h (sbitmap_c_tests): New function.
2186 * tree-ssa-dse.c (live_bytes_read): Fix thinko.
2188 2017-10-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2190 * config/rs6000/amo.h: Fix spacing issue.
2192 2017-10-12 Jakub Jelinek <jakub@redhat.com>
2195 * config/i386/i386.md (*ashl<mode>3_mask_1,
2196 *<shift_insn><mode>3_mask_1, *<rotate_insn><mode>3_mask_1,
2197 *<btsc><mode>_mask_1, *btr<mode>_mask_1): New define_insn_and_split
2200 2017-10-12 Jan Hubicka <hubicka@ucw.cz>
2202 * profile-count.h (safe_scale_64bit): Fix GCC4.x path.
2203 (profile_probability): Set max_probability
2204 to (uint32_t) 1 << (n_bits - 2) and update accessors to avoid overlfows
2206 * profile-count.c (profile_probability::differs_from_p): Do not
2207 rely on max_probaiblity == 10000
2209 2017-10-12 Jeff Law <law@redhat.com>
2211 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject ao_refs with
2214 2017-10-12 Martin Sebor <msebor@redhat.com>
2218 * cgraphunit.c (maybe_diag_incompatible_alias): New function.
2219 (handle_alias_pairs): Call it.
2220 * common.opt (-Wattribute-alias): New option.
2221 * doc/extend.texi (ifunc attribute): Discuss C++ specifics.
2222 * doc/invoke.texi (-Wattribute-alias): Document.
2224 2017-10-12 Vladimir Makarov <vmakarov@redhat.com>
2227 2017-10-11 Vladimir Makarov <vmakarov@redhat.com>
2229 * lra.c (collect_non_operand_hard_regs): Don't ignore operator
2231 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
2232 (make_hard_regno_born, make_hard_regno_dead): Update
2233 bb_killed_pseudos and bb_gen_pseudos.
2235 2017-10-12 Jan Hubicka <hubicka@ucw.cz>
2237 * config/i386/x86-tune-sched.c (ix86_adjust_cost): Fix Zen support.
2239 2017-10-12 Uros Bizjak <ubizjak@gmail.com>
2241 * config/alpha/alpha.c (alpha_split_conditional_move):
2242 Use std::swap instead of manually swapping.
2243 (alpha_stdarg_optimize_hook): Ditto.
2244 (alpha_canonicalize_comparison): Ditto.
2246 2017-10-12 Bin Cheng <bin.cheng@arm.com>
2248 * tree-loop-distribution.c (struct builtin_info): New struct.
2249 (struct partition): Refactor fields into struct builtin_info.
2250 (partition_free): Free struct builtin_info.
2251 (build_size_arg_loc, build_addr_arg_loc): Delete.
2252 (generate_memset_builtin, generate_memcpy_builtin): Get memory range
2253 information from struct builtin_info.
2254 (find_single_drs): New function refactored from classify_partition.
2255 Also moved builtin validity checks to this function.
2256 (compute_access_range, alloc_builtin): New functions.
2257 (classify_builtin_st, classify_builtin_ldst): New functions.
2258 (classify_partition): Refactor code into functions find_single_drs,
2259 classify_builtin_st and classify_builtin_ldst.
2260 (distribute_loop): Don't do runtime alias check when distributing
2262 (find_seed_stmts_for_distribution): New function.
2263 (pass_loop_distribution::execute): Refactor code finding seed
2264 stmts into above function. Support distribution for the innermost
2265 two-level loop nest. Adjust dump information.
2267 2017-10-12 Bin Cheng <bin.cheng@arm.com>
2269 * tree-loop-distribution.c: Adjust the general comment.
2270 (NUM_PARTITION_THRESHOLD): New macro.
2271 (ssa_name_has_uses_outside_loop_p): Support loop nest distribution.
2272 (classify_partition): Skip builtin pattern of loop nest's inner loop.
2273 (merge_dep_scc_partitions): New parameter ignore_alias_p and use it
2274 in call to build_partition_graph.
2275 (finalize_partitions): New parameter. Make loop distribution more
2276 conservative by fusing more partitions.
2277 (distribute_loop): Don't do runtime alias check in case of loop nest
2279 (find_seed_stmts_for_distribution): New function.
2280 (prepare_perfect_loop_nest): New function.
2281 (pass_loop_distribution::execute): Refactor code finding seed stmts
2282 and loop nest into above functions. Support loop nest distribution.
2283 Adjust dump information accordingly.
2285 2017-10-12 Bin Cheng <bin.cheng@arm.com>
2287 * tree-loop-distribution.c (break_alias_scc_partitions): Add comment
2288 and set PTYPE_SEQUENTIAL for merged partition.
2290 2017-10-12 Richard Biener <rguenther@suse.de>
2292 PR tree-optimization/69728
2294 2017-09-19 Richard Biener <rguenther@suse.de>
2296 PR tree-optimization/69728
2297 * graphite-sese-to-poly.c (schedule_error): New global.
2298 (add_loop_schedule): Handle empty domain by failing the
2300 (build_original_schedule): Handle schedule_error.
2302 * graphite-sese-to-poly.c (add_loop_schedule): Handle empty
2303 domain by returning an unchanged schedule.
2305 2017-10-12 Jakub Jelinek <jakub@redhat.com>
2307 * genrecog.c (validate_pattern): For VEC_SELECT verify that
2308 CONST_INT selectors are 0 to GET_MODE_NUNITS (imode) - 1.
2310 2017-10-12 Aldy Hernandez <aldyh@redhat.com>
2312 * Makefile.in (TAGS): Merge all the *.def files into one pattern.
2315 2017-10-12 Jakub Jelinek <jakub@redhat.com>
2318 * expr.c (store_field): Don't optimize away bitsize == 0 store
2319 from CALL_EXPR with addressable return type.
2321 2017-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2323 * config/rs6000/rs6000.h (TARGET_ISEL64): Delete.
2324 * config/rs6000/rs6000.md (sel): Delete mode attribute.
2325 (mov<mode>cc, isel_signed_<mode>, isel_unsigned_<mode>,
2326 *isel_reversed_signed_<mode>, *isel_reversed_unsigned_<mode>): Use
2327 TARGET_ISEL instead of TARGET_ISEL<sel>.
2329 2017-10-11 David Edelsohn <dje.gcc@gmail.com>
2331 * config/rs6000/rs6000.c
2332 (rs6000_xcoff_asm_output_aligned_decl_common): Test for NULL decl.
2334 2017-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2336 * config/rs6000/predicates.md (zero_constant, all_ones_constant):
2338 (reg_or_cint_operand): Fix comment.
2339 (reg_or_zero_operand): New predicate.
2340 * config/rs6000/rs6000-protos.h (output_isel): Delete.
2341 * config/rs6000/rs6000.c (output_isel): Delete.
2342 * config/rs6000/rs6000.md (isel_signed_<mode>): Use reg_or_zero_operand
2343 instead of reg_or_cint_operand. Output instruction directly (not via
2345 (isel_unsigned_<mode>): Ditto.
2346 (*isel_reversed_signed_<mode>): Use reg_or_zero_operand instead of
2347 gpc_reg_operand. Add an instruction alternative for this. Output
2348 instruction directly.
2349 (*isel_reversed_unsigned_<mode>): Ditto.
2351 2017-10-11 Uros Bizjak <ubizjak@gmail.com>
2353 * config/i386/i386.c (ix86_canonicalize_comparison): New function.
2354 (TARGET_CANONICALIZE_COMPARISON): Define.
2356 2017-10-11 Qing Zhao <qing.zhao@oracle.com>
2359 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
2360 Check whether the dest is REG before adding REG_EQUIV note.
2362 2017-10-11 Vladimir Makarov <vmakarov@redhat.com>
2365 * lra.c (collect_non_operand_hard_regs): Don't ignore operator
2367 * lra-lives.c (bb_killed_pseudos, bb_gen_pseudos): Move up.
2368 (make_hard_regno_born, make_hard_regno_dead): Update
2369 bb_killed_pseudos and bb_gen_pseudos.
2371 2017-10-11 Nathan Sidwell <nathan@acm.org>
2373 * incpath.h (enum incpath_kind): Name enum, prefix values.
2374 (add_path, add_cpp_dir_path, get_added_cpp_dirs): Use incpath_kind.
2375 * incpath.c (heads, tails): Use INC_MAX.
2376 (add_env_var_paths, add_standard_paths): Use incpath_kind.
2377 (merge_include_chains, split_quote_chain,
2378 register_include_chains): Update incpath_kind names.
2379 (add_cpp_dir_path, add_path, get_added_cpp_dirs): Use incpath_kind.
2380 * config/darwin-c.c (add_system_framework_path): Update incpath_kind
2382 (add_framework_path, darwin_register_objc_includes): Likewise.
2383 * config/vms/vms-c.c (vms_c_register_includes): Likewise.
2385 2017-10-11 Uros Bizjak <ubizjak@gmail.com>
2387 * config/i386/i386.md (*cmp<X87MODEF:mode>_<SWI24:mode>_i387):
2388 Do not use float_operator operator predicate.
2389 (*cmp<X87MODEF:mode>_<SWI24:mode>_cc_i387): Ditto.
2390 * config/i386/predicates.md (float_operator): Remove predicate.
2392 2017-10-11 Uros Bizjak <ubizjak@gmail.com>
2394 * config/i386/i386.md (*jcc<mode>_0_i387): Remove insn pattern.
2395 (*jccxf_i387): Ditto.
2396 (*jcc<mode>_i387): Ditto.
2397 (*jccu<mode>_i387): Ditto.
2398 (*jcc<X87MODEF:mode>_<SWI24:mode>_i387): Ditto.
2399 (*jcc_*_i387 splitters): Remove.
2400 * config/i386/i386-protos.h (ix86_split_fp_branch): Remove prototype.
2401 * config/i386/i386.c (ix86_split_fp_branch): Remove.
2402 * config/i386/predicates.md (ix86_swapped_fp_comparison_operator):
2405 2017-10-11 Jan Hubicka <hubicka@ucw.cz>
2407 * profile-count.h (slow_safe_scale_64bit): New function.
2408 (safe_scale_64bit): New inline.
2409 (profile_count::max_safe_multiplier): Remove; use safe_scale_64bit.
2410 * profile-count.c: Include wide-int.h
2411 (slow_safe_scale_64bit): New.
2413 2017-10-11 Nathan Sidwell <nathan@acm.org>
2415 * tree.h (DECL_ASSEMBLER_NAME_SET_P): Don't check
2416 HAS_DECL_ASSEMBLER_NAME_P.
2417 * gimple-expr.c (gimple_decl_printable_name: Check
2418 HAS_DECL_ASSEMBLER_NAME_P too.
2419 * ipa-utils.h (type_in_anonymous_namespace_p): Check
2420 DECL_ASSEMBLER_NAME_SET_P of TYPE_NAME.
2421 (odr_type_p): No need to assert TYPE_NAME is a TYPE_DECL.
2422 * passes.c (rest_of_decl_compilation): Check
2423 HAS_DECL_ASSEMBLER_NAME_P too.
2424 * recog.c (verify_changes): Likewise.
2425 * tree-pretty-print.c (dump_decl_name): Likewise.
2426 * tree-ssa-structalias.c (alias_get_name): Likewise. Reimplement.
2428 * tree.h (DECL_ASSEMBLER_NAME_RAW): New.
2429 (SET_DECL_ASSEMBLER_NAME): Use it.
2430 (DECL_ASSEMBLER_NAME_SET_P): Likewise.
2431 (COPY_DECL_ASSEMBLER_NAME): Likewise.
2432 * tree.c (decl_assembler_name): Use DECL_ASSEMBLER_NAME_RAW.
2434 2017-10-11 Jan Hubicka <hubicka@ucw.cz>
2436 * config.gcc (i386, x86_64): Add extra objects.
2437 * config/i386/i386-protos.h (ix86_rip_relative_addr_p): Declare.
2438 (ix86_min_insn_size): Declare.
2439 (ix86_issue_rate): Declare.
2440 (ix86_adjust_cost): Declare.
2441 (ia32_multipass_dfa_lookahead): Declare.
2442 (ix86_macro_fusion_p): Declare.
2443 (ix86_macro_fusion_pair_p): Declare.
2444 (ix86_bd_has_dispatch): Declare.
2445 (ix86_bd_do_dispatch): Declare.
2446 (ix86_core2i7_init_hooks): Declare.
2447 (ix86_atom_sched_reorder): Declare.
2448 * config/i386/i386.c Move all CPU cost tables to x86-tune-costs.h.
2449 (COSTS_N_BYTES): Move to x86-tune-costs.h.
2450 (DUMMY_STRINGOP_ALGS):Move to x86-tune-costs.h.
2451 (rip_relative_addr_p): Rename to ...
2452 (ix86_rip_relative_addr_p): ... this one; export.
2453 (memory_address_length): Update.
2454 (ix86_issue_rate): Move to x86-tune-sched.c.
2455 (ix86_flags_dependent): Move to x86-tune-sched.c.
2456 (ix86_agi_dependent): Move to x86-tune-sched.c.
2457 (exact_dependency_1): Move to x86-tune-sched.c.
2458 (exact_store_load_dependency): Move to x86-tune-sched.c.
2459 (ix86_adjust_cost): Move to x86-tune-sched.c.
2460 (ia32_multipass_dfa_lookahead): Move to x86-tune-sched.c.
2461 (ix86_macro_fusion_p): Move to x86-tune-sched.c.
2462 (ix86_macro_fusion_pair_p): Move to x86-tune-sched.c.
2463 (do_reorder_for_imul): Move to x86-tune-sched-atom.c.
2464 (swap_top_of_ready_list): Move to x86-tune-sched-atom.c.
2465 (ix86_sched_reorder): Move to x86-tune-sched-atom.c.
2466 (core2i7_first_cycle_multipass_init): Move to x86-tune-sched-core.c.
2467 (core2i7_dfa_post_advance_cycle): Move to x86-tune-sched-core.c.
2468 (min_insn_size): Rename to ...
2469 (ix86_min_insn_size): ... this one; export.
2470 (core2i7_first_cycle_multipass_begin): Move to x86-tune-sched-core.c.
2471 (core2i7_first_cycle_multipass_issue): Move to x86-tune-sched-core.c.
2472 (core2i7_first_cycle_multipass_backtrack): Move to
2473 x86-tune-sched-core.c.
2474 (core2i7_first_cycle_multipass_end): Move to x86-tune-sched-core.c.
2475 (core2i7_first_cycle_multipass_fini): Move to x86-tune-sched-core.c.
2476 (ix86_sched_init_global): Break up logic to ix86_core2i7_init_hooks.
2477 (ix86_avoid_jump_mispredicts): Update.
2478 (TARGET_SCHED_DISPATCH): Move to ix86-tune-sched-bd.c.
2479 (TARGET_SCHED_DISPATCH_DO): Move to ix86-tune-sched-bd.c.
2480 (TARGET_SCHED_REORDER): Move to ix86-tune-sched-bd.c.
2481 (DISPATCH_WINDOW_SIZE): Move to ix86-tune-sched-bd.c.
2482 (MAX_DISPATCH_WINDOWS): Move to ix86-tune-sched-bd.c.
2483 (MAX_INSN): Move to ix86-tune-sched-bd.c.
2484 (MAX_IMM): Move to ix86-tune-sched-bd.c.
2485 (MAX_IMM_SIZE): Move to ix86-tune-sched-bd.c.
2486 (MAX_IMM_32): Move to ix86-tune-sched-bd.c.
2487 (MAX_IMM_64): Move to ix86-tune-sched-bd.c.
2488 (MAX_LOAD): Move to ix86-tune-sched-bd.c.
2489 (MAX_STORE): Move to ix86-tune-sched-bd.c.
2490 (BIG): Move to ix86-tune-sched-bd.c.
2491 (enum dispatch_group): Move to ix86-tune-sched-bd.c.
2492 (enum insn_path): Move to ix86-tune-sched-bd.c.
2493 (get_mem_group): Move to ix86-tune-sched-bd.c.
2494 (is_cmp): Move to ix86-tune-sched-bd.c.
2495 (dispatch_violation): Move to ix86-tune-sched-bd.c.
2496 (is_branch): Move to ix86-tune-sched-bd.c.
2497 (is_prefetch): Move to ix86-tune-sched-bd.c.
2498 (init_window): Move to ix86-tune-sched-bd.c.
2499 (allocate_window): Move to ix86-tune-sched-bd.c.
2500 (init_dispatch_sched): Move to ix86-tune-sched-bd.c.
2501 (is_end_basic_block): Move to ix86-tune-sched-bd.c.
2502 (process_end_window): Move to ix86-tune-sched-bd.c.
2503 (allocate_next_window): Move to ix86-tune-sched-bd.c.
2504 (find_constant): Move to ix86-tune-sched-bd.c.
2505 (get_num_immediates): Move to ix86-tune-sched-bd.c.
2506 (has_immediate): Move to ix86-tune-sched-bd.c.
2507 (get_insn_path): Move to ix86-tune-sched-bd.c.
2508 (get_insn_group): Move to ix86-tune-sched-bd.c.
2509 (count_num_restricted): Move to ix86-tune-sched-bd.c.
2510 (fits_dispatch_window): Move to ix86-tune-sched-bd.c.
2511 (add_insn_window): Move to ix86-tune-sched-bd.c.
2512 (add_to_dispatch_window): Move to ix86-tune-sched-bd.c.
2513 (debug_dispatch_window_file): Move to ix86-tune-sched-bd.c.
2514 (debug_dispatch_window): Move to ix86-tune-sched-bd.c.
2515 (debug_insn_dispatch_info_file): Move to ix86-tune-sched-bd.c.
2516 (debug_ready_dispatch): Move to ix86-tune-sched-bd.c.
2517 (do_dispatch): Move to ix86-tune-sched-bd.c.
2518 (has_dispatch): Move to ix86-tune-sched-bd.c.
2519 * config/i386/t-i386: Add new object files.
2520 * config/i386/x86-tune-costs.h: New file.
2521 * config/i386/x86-tune-sched-atom.c: New file.
2522 * config/i386/x86-tune-sched-bd.c: New file.
2523 * config/i386/x86-tune-sched-core.c: New file.
2524 * config/i386/x86-tune-sched.c: New file.
2526 2017-10-11 Liu Hao <lh_mouse@126.com>
2528 * pretty-print.c [_WIN32] (colorize_init): Remove. Use
2529 the generic version below instead.
2530 (should_colorize): Recognize Windows consoles as terminals
2532 * pretty-print.c [__MINGW32__] (write_all): New function.
2533 [__MINGW32__] (find_esc_head): Likewise.
2534 [__MINGW32__] (find_esc_terminator): Likewise.
2535 [__MINGW32__] (eat_esc_sequence): Likewise.
2536 [__MINGW32__] (mingw_ansi_fputs): New function that handles
2538 (pp_write_text_to_stream): Use mingw_ansi_fputs instead of fputs
2541 2017-10-11 Richard Biener <rguenther@suse.de>
2543 * tree-ssa-loop-niter.c (infer_loop_bounds_from_pointer_arith):
2544 Properly call analyze_scalar_evolution with the loop of the stmt.
2546 2017-10-11 Richard Biener <rguenther@suse.de>
2548 * tree.def (POLYNOMIAL_CHREC): Remove CHREC_VARIABLE tree operand.
2549 * tree-core.h (tree_base): Add chrec_var union member.
2550 * tree.h (CHREC_VAR): Remove.
2551 (CHREC_LEFT, CHREC_RIGHT, CHREC_VARIABLE): Adjust.
2552 * tree-chrec.h (build_polynomial_chrec): Adjust.
2553 * tree-chrec.c (reset_evolution_in_loop): Use build_polynomial_chrec.
2554 * tree-pretty-print.c (dump_generic_node): Use CHREC_VARIABLE.
2556 2017-10-11 Marc Glisse <marc.glisse@inria.fr>
2558 * fold-const.c (fold_binary_loc) [X +- Y CMP X]: Move ...
2559 * match.pd: ... here.
2560 ((T) X == (T) Y): Relax condition.
2562 2017-10-11 Bin Cheng <bin.cheng@arm.com>
2564 PR tree-optimization/82472
2565 * tree-loop-distribution.c (sort_partitions_by_post_order): Refine
2567 (break_alias_scc_partitions): Update postorder number.
2569 2017-10-11 Martin Liska <mliska@suse.cz>
2572 * opts.c (parse_no_sanitize_attribute): Do not use error_value
2574 * opts.h (parse_no_sanitize_attribute): Remove last argument.
2576 2017-10-11 Martin Liska <mliska@suse.cz>
2578 * print-rtl.c (print_insn): Move declaration of idbuf
2579 to same scope as name.
2581 2017-10-11 Martin Liska <mliska@suse.cz>
2586 * sanopt.c (sanitize_rewrite_addressable_params): Do not handle
2589 2017-10-11 Martin Liska <mliska@suse.cz>
2592 * sanopt.c (sanitize_rewrite_addressable_params): Do not handle
2595 2017-10-11 Adhemerval Zanella <adhemerval.zanella@linaro.org>
2597 * config.gcc (default_gnu_indirect_function): Default to yes for
2598 arm*-*-linux* with glibc.
2600 2017-10-11 Richard Biener <rguenther@suse.de>
2602 * tree-scalar-evolution.c (get_scalar_evolution): Handle
2603 default-defs and types we do not want to analyze.
2604 (interpret_loop_phi): Replace unreachable code with an assert.
2605 (compute_scalar_evolution_in_loop): Remove and inline ...
2606 (analyze_scalar_evolution_1): ... here, replacing condition with
2607 what makes the intent clearer. Remove handling of cases
2608 get_scalar_evolution now handles.
2610 2017-10-10 Jim Wilson <wilson@tuliptree.org>
2612 PR rtl-optimization/81434
2613 * haifa-sched.c (prune_ready_list): Init min_cost_group to 0. Update
2614 comment for main loop. In sched_group_found if, also add checks for
2615 pass and min_cost_group.
2617 2017-10-10 Segher Boessenkool <segher@kernel.crashing.org>
2619 * config/rs6000/rs6000.c (TARGET_INSN_COST): New.
2620 (rs6000_insn_cost): New function.
2621 * config/rs6000/rs6000.md (cost): New attribute.
2623 2017-10-10 Jakub Jelinek <jakub@redhat.com>
2624 H.J. Lu <hongjiu.lu@intel.com>
2628 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Add
2629 OPTION_MASK_ISA_MMX for __builtin_ia32_maskmovq,
2630 __builtin_ia32_vec_ext_v4hi and __builtin_ia32_vec_set_v4hi.
2631 (ix86_expand_builtin): Treat OPTION_MASK_ISA_MMX similarly
2632 to OPTION_MASK_ISA_AVX512VL - builtins that have both
2633 OPTION_MASK_ISA_MMX and some other bit set require both
2634 mmx and the ISAs without the mmx bit.
2635 * config/i386/i386-builtin.def (__builtin_ia32_cvtps2pi,
2636 __builtin_ia32_cvttps2pi, __builtin_ia32_cvtpi2ps,
2637 __builtin_ia32_pavgb, __builtin_ia32_pavgw, __builtin_ia32_pmulhuw,
2638 __builtin_ia32_pmaxub, __builtin_ia32_pmaxsw, __builtin_ia32_pminub,
2639 __builtin_ia32_pminsw, __builtin_ia32_psadbw, __builtin_ia32_pmovmskb,
2640 __builtin_ia32_pshufw, __builtin_ia32_cvtpd2pi,
2641 __builtin_ia32_cvttpd2pi, __builtin_ia32_cvtpi2pd,
2642 __builtin_ia32_pmuludq, __builtin_ia32_pabsb, __builtin_ia32_pabsw,
2643 __builtin_ia32_pabsd, __builtin_ia32_phaddw, __builtin_ia32_phaddd,
2644 __builtin_ia32_phaddsw, __builtin_ia32_phsubw, __builtin_ia32_phsubd,
2645 __builtin_ia32_phsubsw, __builtin_ia32_pmaddubsw,
2646 __builtin_ia32_pmulhrsw, __builtin_ia32_pshufb, __builtin_ia32_psignb,
2647 __builtin_ia32_psignw, __builtin_ia32_psignd, __builtin_ia32_movntq,
2648 __builtin_ia32_paddq, __builtin_ia32_psubq, __builtin_ia32_palignr):
2649 Add OPTION_MASK_ISA_MMX.
2651 2017-10-10 Andreas Tobler <andreast@gcc.gnu.org>
2653 * config.gcc (armv7*-*-freebsd*): New target.
2654 (armv6*-*-freebsd*): Remove obsolete TARGET_FREEBSD_ARMv6 define.
2656 2017-10-10 Jan Hubicka <hubicka@ucw.cz>
2658 * x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI,
2659 X86_TUNE_ADJUST_UNROLL, X86_TUNE_ONE_IF_CONV_INSN): Move to right
2662 2017-10-10 Richard Sandiford <richard.sandiford@linaro.org>
2664 * wide-int.h (wide_int_ref_storage): Make host_dependent_precision
2665 a template parameter.
2666 (WIDE_INT_REF_FOR): Update accordingly.
2667 * tree.h (wi::int_traits <const_tree>): Delete.
2668 (wi::tree_to_widest_ref, wi::tree_to_offset_ref): New typedefs.
2669 (wi::to_widest, wi::to_offset): Use them. Expand commentary.
2670 (wi::tree_to_wide_ref): New typedef.
2671 (wi::to_wide): New function.
2672 * calls.c (get_size_range): Use wi::to_wide when operating on
2674 * cgraph.c (cgraph_node::create_thunk): Likewise.
2675 * config/i386/i386.c (ix86_data_alignment): Likewise.
2676 (ix86_local_alignment): Likewise.
2677 * dbxout.c (stabstr_O): Likewise.
2678 * dwarf2out.c (add_scalar_info, gen_enumeration_type_die): Likewise.
2679 * expr.c (const_vector_from_tree): Likewise.
2680 * fold-const-call.c (host_size_t_cst_p, fold_const_call_1): Likewise.
2681 * fold-const.c (may_negate_without_overflow_p, negate_expr_p)
2682 (fold_negate_expr_1, int_const_binop_1, const_binop)
2683 (fold_convert_const_int_from_real, optimize_bit_field_compare)
2684 (all_ones_mask_p, sign_bit_p, unextend, extract_muldiv_1)
2685 (fold_div_compare, fold_single_bit_test, fold_plusminus_mult_expr)
2686 (pointer_may_wrap_p, expr_not_equal_to, fold_binary_loc)
2687 (fold_ternary_loc, multiple_of_p, fold_negate_const, fold_abs_const)
2688 (fold_not_const, round_up_loc): Likewise.
2689 * gimple-fold.c (gimple_fold_indirect_ref): Likewise.
2690 * gimple-ssa-warn-alloca.c (alloca_call_type_by_arg): Likewise.
2691 (alloca_call_type): Likewise.
2692 * gimple.c (preprocess_case_label_vec_for_gimple): Likewise.
2693 * godump.c (go_output_typedef): Likewise.
2694 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
2695 * internal-fn.c (get_min_precision): Likewise.
2696 * ipa-cp.c (ipcp_store_vr_results): Likewise.
2697 * ipa-polymorphic-call.c
2698 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Likewise.
2699 * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Likewise.
2700 (ipa_modify_call_arguments): Likewise.
2701 * match.pd: Likewise.
2702 * omp-low.c (scan_omp_1_op, lower_omp_ordered_clauses): Likewise.
2703 * print-tree.c (print_node_brief, print_node): Likewise.
2704 * stmt.c (expand_case): Likewise.
2705 * stor-layout.c (layout_type): Likewise.
2706 * tree-affine.c (tree_to_aff_combination): Likewise.
2707 * tree-cfg.c (group_case_labels_stmt): Likewise.
2708 * tree-data-ref.c (dr_analyze_indices): Likewise.
2709 (prune_runtime_alias_test_list): Likewise.
2710 * tree-dump.c (dequeue_and_dump): Likewise.
2711 * tree-inline.c (remap_gimple_op_r, copy_tree_body_r): Likewise.
2712 * tree-predcom.c (is_inv_store_elimination_chain): Likewise.
2713 * tree-pretty-print.c (dump_generic_node): Likewise.
2714 * tree-scalar-evolution.c (iv_can_overflow_p): Likewise.
2715 (simple_iv_with_niters): Likewise.
2716 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
2717 * tree-ssa-ccp.c (ccp_finalize, evaluate_stmt): Likewise.
2718 * tree-ssa-loop-ivopts.c (constant_multiple_of): Likewise.
2719 * tree-ssa-loop-niter.c (split_to_var_and_offset)
2720 (refine_value_range_using_guard, number_of_iterations_ne_max)
2721 (number_of_iterations_lt_to_ne, number_of_iterations_lt)
2722 (get_cst_init_from_scev, record_nonwrapping_iv)
2723 (scev_var_range_cant_overflow): Likewise.
2724 * tree-ssa-phiopt.c (minmax_replacement): Likewise.
2725 * tree-ssa-pre.c (compute_avail): Likewise.
2726 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Likewise.
2727 (vn_reference_maybe_forwprop_address, valueized_wider_op): Likewise.
2728 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
2729 * tree-ssa-uninit.c (is_pred_expr_subset_of): Likewise.
2730 * tree-ssanames.c (set_nonzero_bits, get_nonzero_bits): Likewise.
2731 * tree-switch-conversion.c (collect_switch_conv_info, array_value_type)
2732 (dump_case_nodes, try_switch_expansion): Likewise.
2733 * tree-vect-loop-manip.c (vect_gen_vector_loop_niters): Likewise.
2734 (vect_do_peeling): Likewise.
2735 * tree-vect-patterns.c (vect_recog_bool_pattern): Likewise.
2736 * tree-vect-stmts.c (vectorizable_load): Likewise.
2737 * tree-vrp.c (compare_values_warnv, vrp_int_const_binop): Likewise.
2738 (zero_nonzero_bits_from_vr, ranges_from_anti_range): Likewise.
2739 (extract_range_from_binary_expr_1, adjust_range_with_scev): Likewise.
2740 (overflow_comparison_p_1, register_edge_assert_for_2): Likewise.
2741 (is_masked_range_test, find_switch_asserts, maybe_set_nonzero_bits)
2742 (vrp_evaluate_conditional_warnv_with_ops, intersect_ranges): Likewise.
2743 (range_fits_type_p, two_valued_val_range_p, vrp_finalize): Likewise.
2744 (evrp_dom_walker::before_dom_children): Likewise.
2745 * tree.c (cache_integer_cst, real_value_from_int_cst, integer_zerop)
2746 (integer_all_onesp, integer_pow2p, integer_nonzerop, tree_log2)
2747 (tree_floor_log2, tree_ctz, mem_ref_offset, tree_int_cst_sign_bit)
2748 (tree_int_cst_sgn, get_unwidened, int_fits_type_p): Likewise.
2749 (get_type_static_bounds, num_ending_zeros, drop_tree_overflow)
2750 (get_range_pos_neg): Likewise.
2751 * ubsan.c (ubsan_expand_ptr_ifn): Likewise.
2752 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
2753 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Likewise.
2754 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
2755 * config/avr/avr.c (avr_fold_builtin): Likewise.
2756 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
2757 * config/msp430/msp430.c (msp430_attr): Likewise.
2758 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
2759 * config/powerpcspe/powerpcspe-c.c
2760 (altivec_resolve_overloaded_builtin): Likewise.
2761 * config/powerpcspe/powerpcspe.c (rs6000_aggregate_candidate)
2762 (rs6000_expand_ternop_builtin): Likewise.
2763 * config/rs6000/rs6000-c.c
2764 (altivec_resolve_overloaded_builtin): Likewise.
2765 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Likewise.
2766 (rs6000_expand_ternop_builtin): Likewise.
2767 * config/s390/s390.c (s390_handle_hotpatch_attribute): Likewise.
2769 2017-10-10 Bin Cheng <bin.cheng@arm.com>
2771 * tree-vect-loop-manip.c (rename_variables_in_bb): Rename PHI nodes
2772 when copying loop nest with only one inner loop.
2774 2017-10-10 Richard Biener <rguenther@suse.de>
2776 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Avoid compacting
2777 blocks if SCEV is active.
2778 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Remove
2780 (analyze_scalar_evolution): Handle cached evolutions the obvious way.
2781 (scev_initialize): Assert we are not yet initialized.
2783 2017-10-10 Bin Cheng <bin.cheng@arm.com>
2785 * tree-loop-distribution.c (generate_loops_for_partition): Remove
2786 inner loop's exit stmt by making it always exit the loop, otherwise
2787 we would generate an infinite empty loop.
2789 2017-10-10 Bin Cheng <bin.cheng@arm.com>
2791 * tree-vect-loop-manip.c (slpeel_tree_duplicate_loop_to_edge_cfg): Skip
2792 renaming variables in new preheader if it's deleted.
2794 2017-10-10 Bin Cheng <bin.cheng@arm.com>
2796 * tree-loop-distribution.c (struct partition): Remove unused field
2797 loops of the structure.
2798 (partition_alloc, partition_free): Ditto.
2799 (build_rdg_partition_for_vertex): Ditto.
2801 2017-10-09 Jeff Law <law@redhat.com>
2803 * targhooks.c (default_stack_clash_protection_final_dynamic_probe): Fix
2804 return type to match prototype and documentation.
2806 2010-10-09 Segher Boessenkool <segher@kernel.crashing.org>
2808 * config/rs6000/rs6000.c (processor_costs): Move to ...
2809 * config/rs6000/rs6000.h: ... here.
2810 (rs6000_cost): Declare.
2812 2017-10-09 Eric Botcazou <ebotcazou@adacore.com>
2814 * except.c (setjmp_fn): New global variable.
2815 (init_eh): Initialize it if DONT_USE_BUILTIN_SETJMP is defined.
2816 (sjlj_emit_function_enter): Call it instead of BUILTIN_SETJMP
2817 if DONT_USE_BUILTIN_SETJMP is defined.
2819 2017-10-09 Segher Boessenkool <segher@kernel.crashing.org>
2821 * target.def (insn_cost): New hook.
2822 * doc/tm.texi.in (TARGET_INSN_COST): New hook.
2823 * doc/tm.texi: Regenerate.
2824 * rtlanal.c (insn_cost): Use the new hook.
2826 2017-10-09 Segher Boessenkool <segher@kernel.crashing.org>
2828 * combine.c (combine_validate_cost): Compute the new insn_cost,
2829 not just pattern_cost.
2830 (try_combine): Adjust comment.
2832 2017-10-09 Segher Boessenkool <segher@kernel.crashing.org>
2834 * cfgrtl.c (rtl_account_profile_record): Replace insn_rtx_cost with
2836 * combine.c (uid_insn_cost): Adjust comment.
2837 (combine_validate_cost): Adjust comment. Use pattern_cost instead
2839 (combine_instructions): Use insn_cost instead of insn_rtx_cost.
2840 * dse.c (find_shift_sequence): Ditto.
2841 * ifcvt.c (cheap_bb_rtx_cost_p): Ditto.
2842 (bb_valid_for_noce_process_p): Use pattern_cost.
2843 * rtl.h (insn_rtx_cost): Delete.
2844 (pattern_cost): New prototype.
2845 (insn_cost): New prototype.
2846 * rtlanal.c (insn_rtx_cost): Rename to...
2847 (pattern_cost): ... this.
2850 2017-10-09 Uros Bizjak <ubizjak@gmail.com>
2852 * config/i386/i386.md (*jcc_2): Remove insn pattern.
2853 (*jcc<mode>_0_r_i387): Ditto.
2854 (*jccxf_r_i387): Ditto.
2855 (*jcc<mode>_r_i387): Ditto.
2856 (*jccu<mode>_r_i387): Ditto.
2857 (*jcc<X87MODEF:mode>_<SWI24:mode>_r_i387): Ditto.
2858 (*jcc): Rename from *jcc_1.
2860 2017-10-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2862 * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Process
2863 deferred rescans after the lvx/stvx recombination pre-pass.
2865 2017-10-09 Michael Meissner <meissner@linux.vnet.ibm.com>
2867 * config/rs6000/amo.h: New include file to provide ISA 3.0 atomic
2868 memory operation instruction support.
2869 * config.gcc (powerpc*-*-*): Include amo.h as an extra header.
2870 (rs6000-ibm-aix[789]*): Likewise.
2871 * doc/extend.texi (PowerPC Atomic Memory Operation Functions):
2872 Document new functions.
2874 2017-10-09 Richard Biener <rguenther@suse.de>
2876 PR tree-optimization/82397
2877 * tree-data-ref.c (data_ref_compare_tree): Make sure to return
2878 equality only for semantically equal trees.
2880 2017-10-09 Richard Biener <rguenther@suse.de>
2882 PR tree-optimization/82449
2883 * sese.c (scev_analyzable_p): Check whether the SCEV is linear.
2884 * tree-chrec.h (evolution_function_is_constant_p): Adjust to
2885 allow constant addresses.
2886 * tree-chrec.c (scev_is_linear_expression): Constant evolutions
2889 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2891 * config/s390/s390-builtins.def (vec_nabs, vec_vfi): Fix builtin
2894 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2897 * config/s390/vecintrin.h (vec_madd, vec_msub): Fix macro
2900 2017-10-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2903 * config/s390/s390-builtins.def (vec_sqrt): Fix builtin flags.
2905 2017-10-09 Jakub Jelinek <jakub@redhat.com>
2908 * config/s390/s390-builtins.def (s390_vec_xor_flt_a,
2909 s390_vec_xor_flt_b, s390_vec_xor_flt_c): New.
2911 2017-10-09 Richard Sandiford <richard.sandiford@linaro.org>
2913 * wide-int.h (WI_BINARY_OPERATOR_RESULT): New macro.
2914 (WI_BINARY_PREDICATE_RESULT): Likewise.
2915 (wi::binary_traits::operator_result): New type.
2916 (wi::binary_traits::predicate_result): Likewise.
2917 (generic_wide_int::operator~, unary generic_wide_int::operator-)
2918 (generic_wide_int::operator==, generic_wide_int::operator!=)
2919 (generic_wide_int::operator&, generic_wide_int::and_not)
2920 (generic_wide_int::operator|, generic_wide_int::or_not)
2921 (generic_wide_int::operator^, generic_wide_int::operator+
2922 (binary generic_wide_int::operator-, generic_wide_int::operator*):
2924 (operator~, unary operator-, operator==, operator!=, operator&)
2925 (operator|, operator^, operator+, binary operator-, operator*): New
2927 * expr.c (get_inner_reference): Use wi::bit_and_not.
2928 * fold-const.c (fold_binary_loc): Likewise.
2929 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
2930 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
2931 (bit_value_binop): Likewise.
2932 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
2933 * tree-vrp.c (zero_nonzero_bits_from_vr): Likewise.
2934 (extract_range_from_binary_expr_1): Likewise.
2935 (masked_increment): Likewise.
2936 (simplify_bit_ops_using_ranges): Likewise.
2938 2017-10-09 Martin Jambor <mjambor@suse.cz>
2941 * hsa-common.h (hsa_op_with_type): New method extend_int_to_32bit.
2942 * hsa-gen.c (hsa_extend_inttype_to_32bit): New function.
2943 (hsa_type_for_scalar_tree_type): Use it. Always force min32int for
2945 (hsa_fixup_mov_insn_type): New function.
2946 (hsa_op_with_type::get_in_type): Use it.
2947 (hsa_build_append_simple_mov): Likewise. Allow sub-32bit
2948 immediates in an assert.
2949 (hsa_op_with_type::extend_int_to_32bit): New method.
2950 (gen_hsa_insns_for_bitfield): Fixup instruction and intermediary
2951 types. Convert to dest type if necessary.
2952 (gen_hsa_insns_for_bitfield_load): Fixup load type if necessary.
2953 (reg_for_gimple_ssa): Pass false as min32int to
2954 hsa_type_for_scalar_tree_type.
2955 (gen_hsa_addr): Fixup type when creating addresable temporary.
2956 (gen_hsa_cmp_insn_from_gimple): Extend operands if necessary.
2957 (gen_hsa_unary_operation): Extend operands and convert to dest type if
2958 necessary. Call hsa_fixup_mov_insn_type.
2959 (gen_hsa_binary_operation): Changed operand types to hsa_op_with_type,
2960 extend operands and convert to dest type if necessary.
2961 (gen_hsa_insns_for_operation_assignment): Extend operands and convert
2962 to dest type if necessary.
2963 (set_output_in_type): Call hsa_fixup_mov_insn_type. Just ude dest
2964 if conversion nt necessary and size matches.
2965 (gen_hsa_insns_for_load): Call hsa_fixup_mov_insn_type, convert
2966 to dest type if necessary.
2967 (gen_hsa_insns_for_store): Call hsa_fixup_mov_insn_type.
2968 (gen_hsa_insns_for_switch_stmt): Likewise. Also extend operands if
2970 (gen_hsa_clrsb): Likewise.
2971 (gen_hsa_ffs): Likewise.
2972 (gen_hsa_divmod): Extend operands and convert to dest type if
2974 (gen_hsa_atomic_for_builtin): Change type of op to hsa_op_with_type.
2976 2017-10-08 Segher Boessenkool <segher@kernel.crashing.org>
2978 * config/rs6000/rs6000.md (conditional branch): Clean up formatting.
2979 Remove empty default arguments. Use a brace block as output
2981 (conditional return): Ditto.
2983 (indirect_jump): Ditto. Use b%T0 instead of bctr/blr.
2984 (tablejump, tablejumpsi, tablejumpdi, *tablejump<mode>_internal1):
2986 (group_ending_nop): Ditto.
2987 (doloop_end): Ditto.
2988 (ctr<mode>, ctr<mode>_internal1, ctr<mode>_internal2): Ditto.
2989 (splitters for those): Ditto.
2991 2017-10-08 Segher Boessenkool <segher@kernel.crashing.org>
2993 * config/rs6000/rs6000-string.c (expand_strncmp_align_check): Invert
2994 a conditional jump (and the compare for it) so that pc_rtx is the
2996 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Adjust
2997 for the deleted and renamed ctr<mode>_internal[234] patterns.
2998 * config/rs6000/rs6000.md: Delete second conditional branch pattern.
2999 Delete second conditional return pattern.
3000 (ctr<mode>_internal2): Delete this second bdnz pattern.
3001 (ctr<mode>_internal3): Rename to ctr<mode>_internal2.
3002 (ctr<mode>_internal4): Delete this second bdz pattern.
3004 2017-10-08 Eric Botcazou <ebotcazou@adacore.com>
3006 * tree-outof-ssa.h (ssaexpand): Add partitions_for_undefined_values.
3007 (always_initialized_rtx_for_ssa_name_p): New predicate.
3008 * tree-outof-ssa.c (remove_ssa_form): Initialize new field of SA.
3009 (finish_out_of_ssa): Free new field of SA.
3010 * tree-ssa-coalesce.h (get_undefined_value_partitions): Declare.
3011 * tree-ssa-coalesce.c: Include tree-ssa.h.
3012 (get_parm_default_def_partitions): Remove extern keyword.
3013 (get_undefined_value_partitions): New function.
3014 * expr.c (expand_expr_real_1) <expand_decl_rtl>: For a SSA_NAME, do
3015 not set SUBREG_PROMOTED_VAR_P on the sub-register if it may contain
3017 * loop-iv.c (iv_get_reaching_def): Disqualify all subregs.
3019 2017-10-08 Eric Botcazou <ebotcazou@adacore.com>
3021 * builtins.def (BUILT_IN_SETJMP): Revert latest change.
3023 2017-10-08 Jan Hubicka <hubicka@ucw.cz>
3025 * config/i386/i386.c (ix86_expand_set_or_movmem): Disable 512bit loops
3026 for targets that preffer 128bit.
3028 2017-10-08 Jan Hubicka <hubicka@ucw.cz>
3030 * config/i386/i386.c (has_dispatch): Disable for Ryzen.
3032 2017-10-08 Olivier Hainque <hainque@adacore.com>
3034 * config/arm/arm.c (arm_set_return_address): Use MEM_VOLATILE_P
3035 on the target mem instead of RTX_FRAME_RELATED_P on the insn to
3037 (thumb_set_return_address): Likewise.
3039 2017-10-08 Olivier Hainque <hainque@adacore.com>
3041 * common/config/arm/arm-common.c (arm_except_unwind_info):
3042 Handle DWARF2_UNWIND_INFO.
3044 2017-10-07 Michael Collison <michael.collison@arm.com>
3046 * config/aarch64/aarch64.md (*aarch64_reg_<optab>_minus<mode>3):
3049 2017-10-07 Eric Botcazou <ebotcazou@adacore.com>
3051 * builtins.def (BUILT_IN_SETJMP): Declare as library builtin instead
3052 of GCC builtin if DONT_USE_BUILTIN_SETJMP is defined.
3053 * except.c (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is
3054 defined, force the creation of a new block for a dispatch label.
3056 2017-10-07 Jan Hubicka <hubicka@ucw.cz>
3058 * invoke.texi (Wsuggest-attribute=cold): Document.
3059 * common.opt (Wsuggest-attribute=cold): New
3060 * ipa-pure-const.c (warn_function_cold): New function.
3061 * predict.c (compute_function_frequency): Use it.
3062 * predict.h (warn_function_cold): Declare.
3064 2017-10-06 Jan Hubicka <hubicka@ucw.cz>
3066 * tree-switch-conversion.c (do_jump_if_equal, emit_cmp_and_jump_insns):
3069 2017-10-06 Martin Liska <mliska@suse.cz>
3071 * sanopt.c (struct sanopt_tree_triplet_hash): Remove inline
3072 keyword for member functions.
3073 (struct sanopt_tree_couple): New struct.
3074 (struct sanopt_tree_couple_hash): New function.
3075 (struct sanopt_ctx): Add new hash_map.
3076 (has_dominating_ubsan_ptr_check): New function.
3077 (record_ubsan_ptr_check_stmt): Likewise.
3078 (maybe_optimize_ubsan_ptr_ifn): Likewise.
3079 (sanopt_optimize_walker): Handle IFN_UBSAN_PTR.
3080 (pass_sanopt::execute): Handle also SANITIZE_POINTER_OVERFLOW.
3082 2017-10-06 Sudakshina Das <sudi.das@arm.com>
3085 * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): Only call
3086 aarch64_simd_valid_immediate on CONST_VECTORs.
3087 (aarch64_reg_or_bic_imm): Likewise.
3089 2017-10-06 Wilco Dijkstra <wdijkstr@arm.com>
3091 PR rtl-optimization/82396
3092 * haifa-sched.c (ready_sort_real): Disable qsort checking.
3094 2017-10-06 Sebastian Pop <sebpop@gmail.com>
3096 * graphite-dependences.c (scop_get_reads): Move code to...
3097 (scop_get_must_writes): Move code to...
3098 (scop_get_may_writes): Move code to...
3099 (scop_get_reads_and_writes): ... here.
3100 (scop_get_dependences): Call scop_get_reads_and_writes.
3102 2017-10-06 Jakub Jelinek <jakub@redhat.com>
3104 PR tree-optimization/82434
3105 * fold-const.h (can_native_encode_type_p,
3106 can_native_encode_string_p): Remove.
3107 * fold-const.c (native_encode_int): Formatting fixes. If ptr is NULL,
3108 don't encode anything, just return what would be otherwise returned.
3109 (native_encode_fixed, native_encode_complex, native_encode_vector):
3111 (native_encode_string): Likewise. Inline by hand
3112 can_native_encode_string_p.
3113 (can_native_encode_type_p): Remove.
3114 (can_native_encode_string_p): Remove.
3115 * tree-vect-stmts.c (vectorizable_store): Instead of testing just
3116 STRING_CSTs using can_native_encode_string_p, test all
3117 CONSTANT_CLASS_P values using native_encode_expr with NULL ptr.
3118 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Remove last
3119 argument from native_encode_expr.
3120 (rhs_valid_for_store_merging_p): Use native_encode_expr with NULL ptr.
3121 (pass_store_merging::execute): Don't unnecessarily look for 3 stmts,
3124 2017-10-06 Richard Biener <rguenther@suse.de>
3126 PR tree-optimization/82397
3127 * tree-vect-data-refs.c (dr_group_sort_cmp): Do not use
3128 operand_equal_p but rely on data_ref_compare_tree for detecting
3130 (vect_analyze_data_ref_accesses): Use data_ref_compare_tree
3131 to match up with dr_group_sort_cmp.
3133 2017-10-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3136 * config/s390/s390-builtins.def (s390_vfi): Define new overloaded
3138 * config/s390/s390-builtin-types.def: Regenerate.
3140 2017-10-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3143 * config/s390/s390-builtin-types.def: Regenerate.
3144 * config/s390/s390-builtins.def (s390_vfmaxdb_4, s390_vfmindb_4):
3145 Change flag from B_VXE to B_VX.
3146 (s390_vec_min_dbl): Remove B_VXE flag.
3148 2017-10-06 Richard Biener <rguenther@suse.de>
3150 * graphite-isl-ast-to-gimple.c: Include ssa.h and tree-ssa.h.
3151 (translate_isl_ast_to_gimple::translate_pending_phi_nodes,
3152 translate_isl_ast_to_gimple::is_valid_rename,
3153 translate_isl_ast_to_gimple::get_rename,
3154 translate_isl_ast_to_gimple::get_def_bb_for_const,
3155 translate_isl_ast_to_gimple::get_new_name,
3156 translate_isl_ast_to_gimple::collect_all_ssa_names,
3157 translate_isl_ast_to_gimple::copy_loop_phi_args,
3158 translate_isl_ast_to_gimple::collect_all_ssa_names,
3159 translate_isl_ast_to_gimple::copy_loop_phi_args,
3160 translate_isl_ast_to_gimple::copy_loop_phi_nodes,
3161 translate_isl_ast_to_gimple::add_close_phis_to_merge_points,
3162 translate_isl_ast_to_gimple::add_close_phis_to_outer_loops,
3163 translate_isl_ast_to_gimple::copy_loop_close_phi_args,
3164 translate_isl_ast_to_gimple::copy_loop_close_phi_nodes,
3165 translate_isl_ast_to_gimple::copy_cond_phi_args,
3166 translate_isl_ast_to_gimple::copy_cond_phi_nodes,
3167 translate_isl_ast_to_gimple::edge_for_new_close_phis,
3168 translate_isl_ast_to_gimple::add_phi_arg_for_new_expr,
3169 translate_isl_ast_to_gimple::rename_uses,
3170 translate_isl_ast_to_gimple::rename_all_uses): Remove.
3171 (translate_isl_ast_to_gimple::get_rename_from_scev): Simplify.
3172 (set_rename_for_each_def): Likewise.
3173 (graphite_copy_stmts_from_block): Handle debug stmt resetting
3174 here. Handle rewriting SCEV analyzable uses here.
3175 (copy_bb_and_scalar_dependences): Generate code for PHI
3177 (graphite_regenerate_ast_isl): Adjust.
3178 * graphite-scop-detection.c (trivially_empty_bb_p): Move to sese.[ch].
3179 (add_write, add_read): New functions.
3180 (build_cross_bb_scalars_def): Use it and simplify.
3181 (build_cross_bb_scalars_use): Likewise.
3182 (graphite_find_cross_bb_scalar_vars): Inline into...
3183 (try_generate_gimple_bb): ...here. Add dependences for PHIs,
3184 simulating out-of-SSA. Compute liveout and add dependencies.
3185 (build_scops): Force an empty entry block.
3186 * sese.h (sese_info_t::liveout, sese_info_t::debug_liveout): New
3188 (sese_build_liveouts): Declare.
3189 (sese_trivially_empty_bb_p): Likewise.
3190 * sese.c (sese_build_liveouts_bb): Properly handle PHIs,
3191 compute liveout and debug_liveout.
3192 (sese_bad_liveouts_use): Remove.
3193 (sese_reset_debug_liveouts_bb): Likewise.
3194 (sese_reset_debug_liveouts): Rewrite in terms of debug_liveout.
3195 (sese_build_liveouts): Build liveout and debug_liveout and store
3197 (new_sese_info): Adjust.
3198 (free_sese_info): Likewise.
3199 (sese_insert_phis_for_liveouts): Reset debug stmts from here,
3200 do not build liveout here.
3201 (move_sese_in_condition): Adjust region entry.
3202 (scev_analyzable_p): Match up with chrec_apply requirements.
3203 (sese_trivially_empty_bb_p): New.
3204 * tree-into-ssa.c (get_reaching_def): Properly support generating
3205 default-defs for incremental rewrite of anonymous names.
3207 2017-10-06 Richard Biener <rguenther@suse.de>
3209 * graphite-sese-to-poly.c (extract_affine): For casts increasing
3210 precision do not perform modulo reduction.
3212 2017-10-06 Richard Biener <rguenther@suse.de>
3214 PR tree-optimization/82436
3215 * tree-vect-slp.c (vect_supported_load_permutation_p): More
3216 conservatively choose the vectorization factor when checking
3217 whether we can perform the required load permutation.
3218 (vect_transform_slp_perm_load): Assert when we may not fail.
3220 2017-10-05 Segher Boessenkool <segher@kernel.crashing.org>
3222 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Correct error
3223 message for incompatible -msdata=* and -mcall-* options.
3225 2017-10-05 Jan Hubicka <hubicka@ucw.cz>
3227 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Default to issue
3228 rate for post-reload scheduling.
3230 2017-10-05 Tamar Christina <tamar.christina@arm.com>
3232 * doc/sourcebuild.texi (vect_sizes_16B_8B, vect_sizes_32B_16B): New.
3234 2017-10-05 Jan Hubicka <hubicka@ucw.cz>
3236 * config/i386/i386.c (znver1_cost): Set branch_cost to 3 (instead of 2)
3237 to improve monte carlo in scimark.
3239 2017-10-05 Jan Hubicka <hubicka@ucw.cz>
3241 * config/i386/i386.c (ix86_size_cost, i386_cost, i486_cost,
3242 pentium_cost, lakemont_cost, pentiumpro_cost, geode_cost, k6_cost,
3243 athlon_cost, k8_cost, amdfam10_cost, btver1_cost, btver2_cost,
3244 pentium4_cost, nocona_cost): Set reassociation width to 1.
3245 (bdver1_cost, bdver2_cost, bdver3_cost, bdver4_cost): Set reassociation
3246 width to 2 for fp operations and 1 otherwise.
3247 (znver1_cost): Set scalar reassoc width to 4 and vector to 3 and 6
3249 (atom_cost): Set reassociation width to 2.
3250 (slm_cost, generic_cost): Set fp reassociation width
3251 to 2 and 1 otherwise.
3252 (intel_cost): Set fp reassociation width to 4 and 1 otherwise.
3253 (core_cost): Set fp reassociation width to 4 and vector to 2.
3254 (ix86_reassociation_width): Rewrite using cost table; special case
3255 plus/minus on Zen; honor X86_TUNE_SSE_SPLIT_REGS
3256 and TARGET_AVX128_OPTIMAL.
3257 * config/i386/i386.h (processor_costs): Add
3258 reassoc_int, reassoc_fp, reassoc_vec_int, reassoc_vec_fp.
3259 (TARGET_VECTOR_PARALLEL_EXECUTION, TARGET_REASSOC_INT_TO_PARALLEL,
3260 TARGET_REASSOC_FP_TO_PARALLEL): Remove.
3261 * x86-tune.def (X86_TUNE_REASSOC_INT_TO_PARALLEL): Remove.
3262 (X86_TUNE_REASSOC_FP_TO_PARALLEL): Remove.
3263 (X86_TUNE_VECTOR_PARALLEL_EXECUTION): Remove.
3265 2017-10-05 Nathan Sidwell <nathan@acm.org>
3267 * doc/invoke.texi (Wparentheses): Document C++ MVP behaviour.
3269 2017-10-05 Tamar Christina <tamar.christina@arm.com>
3271 * config/arm/arm.c (arm_test_fpu_data): New.
3272 (arm_run_selftests): Call arm_test_fpu_data.
3274 2017-10-04 Nathan Sidwell <nathan@acm.org>
3276 * toplev.c (toplev::main): Remove excess parens on pretty_printer
3278 * caller-save.c (insert_save): Remove excess parens on TO_SAVE parm.
3280 2017-10-04 Sudakshina Das <sudi.das@arm.com>
3282 * config/aarch64/aarch64-protos.h (enum simd_immediate_check): New
3283 check type for aarch64_simd_valid_immediate.
3284 (aarch64_output_simd_mov_immediate): Update prototype.
3285 (aarch64_simd_valid_immediate): Update prototype.
3286 * config/aarch64/aarch64-simd.md (orr<mode>3): modified pattern to add
3287 support for ORR-immediate.
3288 (and<mode>3): modified pattern to add support for BIC-immediate.
3289 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Function
3290 now checks for valid immediate for BIC and ORR based on new enum
3292 (aarch64_output_simd_mov_immediate): Function now used to output
3293 BIC/ORR imm as well based on new enum argument.
3294 * config/aarch64/constraints.md (Do): New vector immediate constraint.
3296 * config/aarch64/predicates.md (aarch64_reg_or_orr_imm): New predicate.
3297 (aarch64_reg_or_bic_imm): Likewise.
3299 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3301 * config/s390/vx-builtins.md ("vec_mergeh<mode>")
3302 ("vec_mergel<mode>"): Change mode iterator to V_128_NOSINGLE.
3304 2017-10-04 Wilco Dijkstra <wdijkstr@arm.com>
3308 PR rtl-optimization/82396
3309 * haifa-sched.c (autopref_multipass_init): Simplify
3311 (autopref_rank_data): Simplify sort order.
3312 * sched-int.h (autopref_multipass_data_): Remove
3313 multi_mem_insn_p, min_offset and max_offset.
3315 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3317 * doc/sourcebuild.texi: Document vect_peeling_profitable.
3319 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3321 * doc/sourcebuild.texi: Document vect_intdouble_cvt and
3324 2017-10-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3326 * doc/sourcebuild.texi: Document vect_long_mult.
3328 2017-10-04 Richard Sandiford <richard.sandiford@linaro.org>
3330 PR tree-optimization/82413
3331 * fold-const.c (build_range_check): Use widest_int when comparing
3332 the maximum ETYPE value with HIGH.
3334 2017-10-04 Wilco Dijkstra <wdijkstr@arm.com>
3336 PR rtl-optimization/82396
3337 * haifa-sched.c (autopref_multipass_init): Simplify
3339 (autopref_rank_data): Simplify sort order.
3340 * sched-int.h (autopref_multipass_data_): Remove
3341 multi_mem_insn_p, min_offset and max_offset.
3343 2017-10-04 Jakub Jelinek <jakub@redhat.com>
3345 PR tree-optimization/82381
3346 * tree-ssa-reassoc.c (sort_by_operand_rank): Check for different
3347 oeN->rank first. Return 1 or -1 if one op is SSA_NAME and the other
3350 PR tree-optimization/82374
3351 * omp-low.c (create_omp_child_function): Copy DECL_ATTRIBUTES,
3352 DECL_FUNCTION_SPECIFIC_OPTIMIZATION,
3353 DECL_FUNCTION_SPECIFIC_TARGET and DECL_FUNCTION_VERSIONED from
3354 current_function_decl to the new decl.
3356 2017-10-03 Michael Meissner <meissner@linux.vnet.ibm.com>
3358 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2_HW): Define new
3359 helper macro for IEEE float128 hardware built-in functions.
3360 (SQRTF128_ODD): Add built-in functions with the round-to-odd
3362 (TRUNCF128_ODD): Likewise.
3363 (ADDF128_ODD): Likewise.
3364 (SUBF128_ODD): Likewise.
3365 (MULF128_ODD): Likewise.
3366 (DIVF128_ODD): Likewise.
3367 (FMAF128_ODD): Likewise.
3368 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): Rename to
3369 UNSPEC_TRUNC_ROUND_TO_ODD.
3370 (UNSPEC_TRUNC_ROUND_TO_ODD): Likewise.
3371 (UNSPEC_ADD_ROUND_TO_ODD): New unspec codes for the IEEE 128-bit
3372 floating point round to odd instructions.
3373 (UNSPEC_SUB_ROUND_TO_ODD): Likewise.
3374 (UNSPEC_MUL_ROUND_TO_ODD): Likewise.
3375 (UNSPEC_DIV_ROUND_TO_ODD): Likewise.
3376 (UNSPEC_FMA_ROUND_TO_ODD): Likewise.
3377 (UNSPEC_SQRT_ROUND_TO_ODD): Likewise.
3378 (trunc<mode>sf2_hw): Change the truncate with round to odd
3379 expansion to use UNSPEC_TRUNC_ROUND_TO_ODD.
3380 (add<mode>3_odd): Add insns for IEEE 128-bit floating point round
3381 to odd hardware instructions.
3382 (sub<mode>3_odd): Likewise.
3383 (mul<mode>3_odd): Likewise.
3384 (div<mode>3_odd): Likewise.
3385 (sqrt<mode>2_odd): Likewise.
3386 (fma<mode>4_odd): Likewise.
3387 (fms<mode>4_odd): Likewise.
3388 (nfma<mode>4_odd): Likewise.
3389 (nfms<mode>4_odd): Likewise.
3390 (trunc<mode>df2_odd): Change the truncate with round to odd
3391 expansion to use UNSPEC_TRUNC_ROUND_TO_ODD. Add a generator
3393 * doc/extend.texi (PowerPC built-in functions): Update documentation
3394 for existing IEEE float128-bit built-in functions. Add built-in
3395 functions that generate the IEEE 128-bit floating point round to
3398 2017-10-03 Segher Boessenkool <segher@kernel.crashing.org>
3400 PR rtl-optimization/77729
3401 * simplify-rtx.c (simplify_binary_operation_1): Delete the (X&C1)|C2
3402 to (X&(C1&~C2))|C2 transformations.
3404 2017-10-03 Martin Jambor <mjambor@suse.cz>
3406 PR tree-optimization/82363
3407 * tree-sra.c (propagate_subaccesses_across_link): In unrecoverable
3408 mismatch, mark lacc written regardless of racc.
3410 2017-10-03 Jakub Jelinek <jakub@redhat.com>
3412 PR tree-optimization/82381
3413 * tree-ssa-reassoc.c (sort_by_operand_rank): Don't check
3414 stmt_to_insert nor wheather SSA_NAMEs are default defs.
3415 Return 1 or -1 if one of bba and bbb is NULL. If bb_rank is equal,
3416 fallthrough into reassoc_stmt_dominates_stmt_p.
3419 * combine.c (combine_instructions): Don't combine in unreachable
3422 2017-08-18 Peter Bergner <bergner@vnet.ibm.com>
3425 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rewrite
3426 function to not use the have_cpu variable. Do not set cpu_index,
3427 rs6000_cpu_index or rs6000_tune_index if we end up using TARGET_DEFAULT
3429 (rs6000_valid_attribute_p): Remove duplicate initializations of
3430 old_optimize and func_optimize.
3431 (rs6000_pragma_target_parse): Call rs6000_activate_target_options ().
3432 (rs6000_activate_target_options): Make global.
3433 * config/rs6000/rs6000-protos.h (rs6000_activate_target_options): Add
3436 2017-10-02 Jakub Jelinek <jakub@redhat.com>
3438 * tree-dfa.c (get_ref_base_and_extent): Set *pmax_size to -1
3439 if *poffset + *pmax_size overflows in HOST_WIDE_INT.
3440 Set *poffset to 0 and *psize and *pmax_size to -1 if
3441 *poffset + *psize overflows in HOST_WIDE_INT.
3443 PR tree-optimization/82387
3444 PR tree-optimization/82388
3445 PR tree-optimization/82389
3446 * tree-ssa-dse.c (dse_classify_store): Test byte_tracking_enabled
3447 instead of live_bytes non-NULL.
3449 2017-10-02 Georg-Johann Lay <avr@gjlay.de>
3452 * confg/avr/avr.md (*iorhi3.ashift8-ext.zerox): Add "r,r,0"
3455 2017-10-02 Richard Biener <rguenther@suse.de>
3457 * graphite-isl-ast-to-gimple.c (set_codegen_error): With
3458 -fchecking and --param graphite-allow-codegen-errors=0 ICE.
3459 * params.def (PARAM_GRAPHITE_ALLOW_CODEGEN_ERRORS): New param.
3461 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
3463 * tree.h (wi::int_traits <const_tree>::decompose): Assert that the
3464 requested precision matches the type's.
3465 * calls.c (alloc_max_size): Calculate the new candidate size as
3466 a widest_int and use wi::to_widest when comparing it with the
3467 current candidate size.
3468 * gimple-ssa-warn-alloca.c (pass_walloca::execute): Compare with
3469 zero rather than integer_zero_node.
3470 * match.pd: Check for a no-op conversion before using wi::add
3471 rather than after. Use tree_to_uhwi when summing small shift
3472 counts into an unsigned int.
3474 2017-10-02 Richard Sandiford <richard.sandiford@linaro.org>
3475 Alan Hayward <alan.hayward@arm.com>
3476 David Sherwood <david.sherwood@arm.com>
3479 * config/aarch64/aarch64.h (POINTER_AND_FP_REGS): New reg class.
3480 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
3481 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Handle
3482 POINTER_AND_FP_REGS.
3484 2017-10-02 Richard Biener <rguenther@suse.de>
3486 PR tree-optimization/82355
3487 * graphite-isl-ast-to-gimple.c (build_iv_mapping): Also build
3488 a mapping for the enclosing loop but avoid generating one for
3490 (copy_bb_and_scalar_dependences): Remove premature codegen
3491 error on PHIs in blocks duplicated into multiple places.
3492 * graphite-scop-detection.c
3493 (scop_detection::stmt_has_simple_data_refs_p): For a loop not
3494 in the region use it as loop and nest to analyze the DR in.
3495 (try_generate_gimple_bb): Likewise.
3496 * graphite-sese-to-poly.c (extract_affine_chrec): Adjust.
3497 (add_loop_constraints): For blocks in a loop not in the region
3498 create a dimension with a single iteration.
3499 * sese.h (gbb_loop_at_index): Remove assert.
3501 2017-10-01 Kevin Buettner <kevinb@redhat.com>
3503 * omp-expand.c (adjust_context_scope): New function.
3504 (expand_parallel_call): Call adjust_context_scope.
3506 2017-10-01 Jeff Law <law@redhat.com>
3508 * tree-ssa-dom.c (optimize_stmt): Make this a method within the
3509 dom_opt_dom_walker class with direct access to private members.
3510 Add comments. Call test_for_singularity.
3511 (dom_opt_dom_walker::before_dom_children): Corresponding changes.
3512 (dom_opt_dom_walker::after_dom_children): Do not lazily initialize
3513 m_dummy_cond anymore.
3514 (class dom_opt_dom_walker): Initialize m_dummy_cond member in the
3516 (pass_dominator:execute): Build the dummy_cond here and pass it
3517 to the dom_opt_dom_walker ctor.
3518 (test_for_singularity): New function.
3520 2017-09-30 Krister Walfridsson <krister.walfridsson@gmail.com>
3521 Maya Rashish <coypu@sdf.org>
3523 * config.gcc (*-*-netbsd*): New variable nbsd_tm_file containing
3524 netbsd.h, netbsd-stdint.h, and netbsd-elf.h.
3525 (alpha*-*-netbsd*) Use nbsd_tm_file.
3526 (arm*-*-netbsdelf*) Likewise.
3527 (i[34567]86-*-netbsdelf*) Likewise.
3528 (x86_64-*-netbsd*) Likewise.
3529 (mips*-*-netbsd*) Likewise.
3530 (powerpc-*-netbsd*) Likewise.
3531 (sh*-*-netbsd*) Likewise.
3532 (sparc-*-netbsdelf*) Likewise.
3533 (sparc64-*-netbsd*) Likewise.
3534 (m68k*-*-netbsdelf*) Use nbsd_tm_file and add CHAR_FAST8/SHORT_FAST16
3536 (vax-*-netbsdelf*) Likewise.
3537 * config/netbsd-stdint.h (INT_FAST8_TYPE): Check CHAR_FAST8.
3538 (UINT_FAST8_TYPE) Likewise.
3539 (INT_FAST16_TYPE) Check CHAR_FAST16.
3540 (UINT_FAST16_TYPE) Likewise.
3542 2017-09-30 Jakub Jelinek <jakub@redhat.com>
3545 * config/i386/i386.md
3546 (TARGET_USE_8BIT_IDIV zext divmodsi4 splitter): New define_split.
3547 (divmodsi4_zext_1, divmodsi4_zext_2, *divmodsi4_zext_1,
3548 *divmodsi4_zext_2): New define_insn_and_split.
3549 (*divmodsi4_noext_zext_1, *divmodsi4_noext_zext_2): New define_insn.
3550 (TARGET_USE_8BIT_IDIV zext udivmodsi4 splitter): New define_split.
3551 (udivmodsi4_zext_1, udivmodsi4_zext_2, *udivmodsi4_zext_1,
3552 *udivmodsi4_zext_2, *udivmodsi4_pow2_zext_1, *udivmodsi4_pow2_zext_2):
3553 New define_insn_and_split.
3554 (*udivmodsi4_noext_zext_1, *udivmodsi4_noext_zext_2): New define_insn.
3555 * config/i386/i386.c (ix86_split_idivmod): Handle operands[0] or
3556 operands[1] having DImode when mode is SImode.
3558 * config/i386/i386.c (ix86_split_idivmod): Use mode instead of
3559 always SImode for DIV and MOD in REG_EQUAL notes.
3561 2017-09-29 Yury Gribov <tetra2005@gmail.com>
3564 * match.pd: Fix handling of NaNs in pattern.
3566 2017-09-29 Jeff Law <law@redhat.com>
3568 * sbitmap.c (bitmap_bit_in_range_p): New function.
3569 * sbitmap.h (bitmap_bit_in_range_p): Prototype.
3570 * tree-ssa-dse.c (live_bytes_read): New function.
3571 (dse_classify_store): Ignore reads of dead bytes.
3573 * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash): Fix
3574 typos and whitespace errors.
3575 * config/i386/predicates.md (address_no_seg_operand): Likewise.
3576 * config/s390/s390.c (s390_emit_prologue): Likewise.
3578 2017-09-29 Vladimir Makarov <vmakarov@redhat.com>
3581 * ira-costs.c (scan_one_insn): Don't take into account PIC equiv
3582 with a symbol for LRA.
3584 2017-09-29 Vladimir Makarov <vmakarov@redhat.com>
3586 PR rtl-optimization/82338
3587 * lra-constraints.c (inherit_in_ebb): Check usage_insns check.
3589 2017-09-29 Alexander Monakov <amonakov@ispras.ru>
3591 * genmodes.c (calc_wider_mode): Suppress qsort macro.
3592 * system.h [CHECKING_P] (qsort): Redirect to qsort_chk.
3593 (qsort_chk): Declare.
3594 * vec.c [CHECKING_P] (qsort_chk_error): New static function.
3595 (qsort_chk): New function.
3597 2017-09-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3599 PR tree-optimization/82337
3600 * gimple-ssa-strength-reduction.c (find_phi_def): Don't record a
3601 phi definition if the PHI result appears in an abnormal PHI.
3602 (find_basis_for_base_expr): Don't record a basis if the LHS of the
3603 basis appears in an abnormal PHI.
3605 2017-09-29 Richard Biener <rguenther@suse.de>
3607 * graphite-isl-ast-to-gimple.c
3608 (translate_isl_ast_to_gimple::set_codegen_error): New function.
3609 (binary_op_to_tree): Use it.
3610 (get_rename_from_scev): Likewise.
3611 (copy_loop_phi_nodes): Likewise.
3612 (copy_bb_and_scalar_dependences): Likewise.
3613 (translate_pending_phi_nodes): Likewise.
3615 2017-09-29 Jakub Jelinek <jakub@redhat.com>
3618 * config/i386/i386.md (*movdi_internal peephole2): New -Os peephole
3619 for movabsq $(i32 << shift), r64.
3621 2017-09-28 Uros Bizjak <ubizjak@gmail.com>
3623 * config/i386/i386.c (ix86_print_operand_address_as): Do not check
3624 index when encoding %esp as %rsp to avoid 0x67 prefix.
3626 2017-09-28 Sergey Shalnov <Sergey.Shalnov@intel.com>
3628 * config/i386/i386.md (*movsf_internal, *movdf_internal):
3629 Return 256-bit AVX modes for TARGET_PREFER_AVX256.
3631 2017-09-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
3633 * config/arm/arm.c (arm_option_override): Forbid ARMv8-M Security
3634 Extensions with more than 16 double VFP registers.
3635 (cmse_nonsecure_entry_clear_before_return): Remove second entry of
3636 to_clear_mask and all code related to it. Replace the remaining
3637 entry by a sbitmap and adapt code accordingly.
3639 2017-09-28 Henry Linjamäki <henry.linjamaki@parmance.com>
3641 * brig-builtins.def: Change pure attributes to const.
3643 2017-09-28 Joseph Myers <joseph@codesourcery.com>
3645 * config.gcc (default_gnu_indirect_function): Default to yes for
3646 sparc*-*-linux* with glibc.
3648 2017-09-28 Joseph Myers <joseph@codesourcery.com>
3650 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor)
3651 (aarch64_elf_asm_destructor): Pass SECTION_NOTYPE to get_section
3652 when creating .init_array and .fini_array sections with priority
3655 2017-09-27 Christophe Lyon <christophe.lyon@linaro.org>
3658 * config/aarch64/aarch64.c
3659 (aarch64_builtin_support_vector_misalignment): Always return false
3660 when misalignment is unknown.
3662 2017-09-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
3664 * config/rs6000/rs6000-p8swap.c (const_load_sequence_p): Revise
3665 this function to return false if the definition used by the swap
3666 instruction is artificial, or if the memory address from which the
3667 constant value is loaded is not represented by a base address held
3668 in a register or if the base address register is a frame or stack
3669 pointer. Additionally, return false if the base address of the
3670 loaded constant is a SYMBOL_REF but is not considered to be a
3672 (replace_swapped_load_constant): New function.
3673 (rs6000_analyze_swaps): Add a new pass to replace a swap of a
3674 loaded constant vector with a load of a swapped constant vector.
3676 2017-09-27 Carl Love <cel@us.ibm.com>
3678 * config/rs6000/rs6000-builtin.def (BU_FP_1MISC_1): Add define macro.
3679 (FCTID, FCTIW): Add BU_FP_MISC_1 macro expansion for builtins.
3680 * config/rs6000/rs6000.md (lrintsfsi2): Add define_insn for the
3683 2017-09-27 Alexander Monakov <amonakov@ispras.ru>
3685 * haifa-sched.c (autopref_rank_for_schedule): Order 'irrelevant' insns
3686 first, always call autopref_rank_data otherwise.
3688 2017-09-27 Richard Biener <rguenther@suse.de>
3690 * graphite-scop-detection.c (find_scop_parameters): Move
3691 loop bound handling ...
3692 (gather_bbs::before_dom_children): ... here, avoiding the need
3693 to build scop_info->loop_nest.
3694 (record_loop_in_sese): Remove.
3695 * sese.h (sese_info_t::loop_nest): Remove.
3696 * sese.c (new_sese_info): Do not allocate loop_nest.
3697 (free_sese_info): Do not free loop_nest.
3699 2017-09-27 Jakub Jelinek <jakub@redhat.com>
3702 * gimplify.c (gimplify_modify_expr): Don't optimize away zero sized
3703 lhs from calls if the lhs has addressable type.
3705 2017-09-27 Richard Biener <rguenther@suse.de>
3707 * graphite.h (scop::max_alias_set): New member.
3708 * graphite-scop-detection.c: Remove references to non-existing
3709 --param in comments.
3710 (build_alias_sets): Record the maximum alias set used for drs.
3711 (build_scops): Support zero as unlimited for
3712 --param graphite-max-arrays-per-scop.
3713 * graphite-sese-to-poly.c (add_scalar_version_numbers): Remove
3715 (build_poly_sr_1): ... here. Compute alias set based on the
3716 maximum alias set used for drs rather than
3717 PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP
3719 2017-09-27 Richard Biener <rguenther@suse.de>
3721 * graphite-optimize-isl.c (get_schedule_for_node_st): Allow
3722 --param loop-block-tile-size=0 to disable tiling.
3724 2017-09-27 Richard Biener <rguenther@suse.de>
3726 * doc/invoke.texi (graphite-max-bbs-per-function): Remove.
3727 (graphite-max-nb-scop-params): Document special value zero.
3728 * domwalk.h (dom_walker::STOP): New symbolical constant.
3729 (dom_walker::dom_walker): Add optional parameter for bb to
3731 (dom_walker::~dom_walker): Declare.
3732 (dom_walker::before_dom_children): Document STOP return value.
3733 (dom_walker::m_user_bb_to_rpo): New member.
3734 (dom_walker::m_bb_to_rpo): Likewise.
3735 * domwalk.c (dom_walker::dom_walker): Compute bb to RPO
3736 mapping here if not provided by the user.
3737 (dom_walker::~dom_walker): Free bb to RPO mapping if not
3738 provided by the user.
3739 (dom_walker::STOP): Define.
3740 (dom_walker::walk): Do not compute bb to RPO mapping here.
3741 Support STOP return value from before_dom_children to stop
3743 * graphite-optimize-isl.c (optimize_isl): If the schedule
3744 is the same still generate code if -fgraphite-identity
3745 or -floop-parallelize-all are given.
3746 * graphite-scop-detection.c: Include cfganal.h.
3747 (gather_bbs::gather_bbs): Get and pass through bb to RPO
3749 (gather_bbs::before_dom_children): Return STOP for BBs
3751 (build_scops): Compute bb to RPO mapping and pass it to
3752 the domwalk. Treat --param graphite-max-nb-scop-params=0
3753 as not limiting the number of params.
3754 * graphite.c (graphite_initialize): Remove limit on the
3755 number of basic-blocks in a function.
3756 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Remove.
3757 (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Adjust to documented
3758 default value of 10.
3760 2017-09-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3762 * config/rs6000/vsx.md (peephole for optimizing move SF to GPR):
3763 Adjust code to eliminate needing to do the shift right 32-bits
3764 operation after XSCVDPSPN.
3766 2017-09-26 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3768 * match.pd ((X / Y) == 0 -> X < Y): New pattern.
3769 ((X / Y) != 0 -> X >= Y): Likewise.
3771 2017-09-26 Carl Love <cel@us.ibm.com>
3773 * config/rs6000/rs6000-c.c (P9V_BUILTIN_VEC_XL_LEN_R,
3774 P9V_BUILTIN_VEC_XST_LEN_R): Add support for builtins
3775 vector unsigned char vec_xl_len_r (unsigned char *, size_t);
3776 void vec_xst_len_r (vector unsigned char, unsigned char *, size_t);
3777 * config/rs6000/altivec.h (vec_xl_len_r, vec_xst_len_r): Add defines.
3778 * config/rs6000/rs6000-builtin.def (XL_LEN_R, XST_LEN_R): Add
3779 definitions and overloading.
3780 * config/rs6000/rs6000.c (altivec_expand_builtin): Add case
3781 statement for P9V_BUILTIN_XST_LEN_R.
3782 (altivec_init_builtins): Add def_builtin for P9V_BUILTIN_STXVLL.
3783 * config/rs6000/vsx.md (lxvll, stxvll, xl_len_r, xst_len_r): Add
3784 define_expand and define_insn for the instructions and builtins.
3785 * doc/extend.texi: Update the built-in documentation file for the new
3787 * config/rs6000/altivec.md (altivec_lvsl_reg, altivec_lvsr_reg): Add
3788 define_insn for the instructions
3790 2017-09-26 Krister Walfridsson <krister.walfridsson@gmail.com>
3793 * gcc/config/netbsd-protos.h: New file.
3794 * gcc/config/netbsd.c: New file.
3795 * gcc/config/netbsd.h (SUBTARGET_INIT_BUILTINS): Define.
3796 * gcc/config/t-netbsd: New file.
3797 * gcc/config.gcc (tm_p_file): Add netbsd-protos.h.
3798 (tmake_file) Add t-netbsd.
3799 (extra_objs) Add netbsd.o.
3801 2017-09-26 Janus Weil <janus@gcc.gnu.org>
3805 * doc/sourcebuild.texi: Document fortran_real_10 and fortran_real_16.
3807 2017-09-26 Michael Meissner <meissner@linux.vnet.ibm.com>
3809 * config/rs6000/rs6000.md (extendsi<mode>2): Add a splitter to do
3810 sign extension from a vector register to a GPR by doing a 32-bit
3811 direct move and then an EXTSW.
3812 (extendsi<mode>2 splitter): Likewise.
3813 (movsi_from_sf): Adjust code to eliminate doing a 32-bit shift
3814 right or vector extract after doing XSCVDPSPN. Use
3815 zero_extendsidi2 instead of p8_mfvsrd_4_disf to move the value to
3817 (movdi_from_sf_zero_ext): Likewise.
3818 (reload_gpr_from_vsxsf): Likewise.
3819 (p8_mfvsrd_4_disf): Delete, no longer used.
3820 (movsi_from_df): Optimize converting a DFmode to a SFmode, and
3821 then needing to move the SFmode to a GPR to use the XSCVDPSP
3822 instruction instead of FRSP and XSCVDPSPN.
3823 * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Move insn so that
3824 it is adjacent to the other XSCVSPDP insns.
3825 (vsx_xscvdpsp_scalar): Use "ww" constraint instead of "f" to allow
3826 SFmode to be in traditional Altivec registers.
3827 (vsx_xscvdpspn): Eliminate useless alternative constraint.
3828 (vsx_xscvspdpn): Likewise.
3829 (vsx_xscvspdpn_scalar): Likewise.
3831 2017-09-26 Martin Jambor <mjambor@suse.cz>
3833 * tree-sra.c (compare_access_positions): Put integral types first,
3834 stabilize sorting of integral types, remove conditions putting
3835 non-full-precision integers last.
3836 (sort_and_splice_var_accesses): Disable scalarization if a
3837 non-integert would be represented by a non-full-precision integer.
3839 2017-09-26 Joseph Myers <joseph@codesourcery.com>
3841 * config/microblaze/linux.h (TARGET_ASM_FILE_END): Likewise.
3842 * config/pa/pa.h (NEED_INDICATE_EXEC_STACK): Likewise.
3843 * config/pa/pa-linux.h (NEED_INDICATE_EXEC_STACK): Likewise.
3844 * config/pa/pa.c (pa_hpux_file_end): Rename to pa_file_end.
3845 Define unconditionally, with [ASM_OUTPUT_EXTERNAL_REAL]
3846 conditionals inside the function instead of around it. Call
3847 file_end_indicate_exec_stack if NEED_INDICATE_EXEC_STACK.
3848 (TARGET_ASM_FILE_END): Define unconditionally to pa_file_end.
3850 2017-09-26 Richard Biener <rguenther@suse.de>
3852 * graphite-scop-detection.c (scop_detection::build_scop_depth): Rewrite,
3854 (scop_detection::build_scop_breadth): ... this. Removed.
3855 (scop_detection::loop_is_valid_in_scop): Fold into single caller.
3856 (scop_detection::harmful_stmt_in_bb): Likewise.
3857 (scop_detection::graphite_can_represent_stmt): Likewise.
3858 (scop_detection::loop_body_is_valid_scop): Likewise. Remove recursion.
3859 (scop_detection::can_represent_loop): Remove recursion, fold in ...
3860 (scop_detection::can_represent_loop_1): ... this. Removed.
3861 (scop_detection::harmful_loop_in_region): Simplify after inlining
3862 the above and remove more quadraticness.
3863 (build_scops): Adjust.
3864 * tree-data-ref.c (loop_nest_has_data_refs): Remove pointless
3867 2017-09-26 Jakub Jelinek <jakub@redhat.com>
3870 * config/i386/i386.c (ix86_print_operand_address_as): Only test
3871 REGNO (base) == SP_REG if base is a REG.
3874 * tree-ssa-reassoc.c (update_range_test): Dump r->exp each time
3875 if it is different SSA_NAME.
3876 (optimize_range_tests_cmp_bitwise): New function.
3877 (optimize_range_tests): Call it.
3879 2017-09-26 Richard Biener <rguenther@suse.de>
3881 PR tree-optimization/82321
3882 * graphite.c (canonicalize_loop_closed_ssa): Properly check
3883 for the def being inside the loop.
3885 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3887 * config/s390/vx-builtins.md ("vmslg"): Add missing operand in
3889 * config/s390/s390-builtins.def: Fix constraint on op4.
3891 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3893 * config/s390/s390.c (s390_expand_vec_compare): Use the new mode
3894 independent expanders.
3895 * config/s390/vector.md ("vec_cmpuneq", "vec_cmpltgt")
3896 ("vec_ordered", "vec_unordered"): New expanders.
3898 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3900 * config/s390/s390.c (s390_preferred_simd_mode): Return V4SFmode
3903 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3905 * config/s390/vector.md ("vec_unpacks_low_v16qi"): Rename to
3906 vec_unpacks_lo_v16qi.
3907 ("vec_unpacku_low_v16qi"): Rename to vec_unpacku_lo_v16qi.
3909 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3911 * config/s390/vector.md ("vec_unpacks_lo_v4sf")
3912 ("vec_unpacks_hi_v4sf", "vec_unpacks_lo_v2df")
3913 ("vec_unpacks_hi_v2df", "vec_pack_trunc_v2df"): New expanders.
3915 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3917 * config/s390/predicates.md ("const_shift_by_byte_operand"): New
3919 * config/s390/vector.md ("*vec_srb<mode>"): Change modes to V_128
3921 ("*vec_slb<mode>"): New insn pattern.
3922 ("vec_shr_<mode>"): New expander.
3923 * config/s390/vx-builtins.md ("vec_slb<mode>"): Turn into expander
3924 and force the shift count operand to V16QImode.
3925 ("vec_srb<mode>"): Set shift count mode to V16QI.
3927 2017-09-26 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3929 * config/s390/vector.md ("vec_widen_umult_lo_<mode>")
3930 ("vec_widen_umult_hi_<mode>", "vec_widen_smult_lo_<mode>")
3931 ("vec_widen_smult_hi_<mode>"): New expander definitions.
3933 2017-09-26 Richard Earnshaw <rearnsha@arm.com>
3936 * config/arm/arm.h (DRIVER_SELF_SPECS): Separate sub-rules with commas.
3938 2017-09-26 Richard Biener <rguenther@suse.de>
3940 PR tree-optimization/82320
3941 * tree-ssa-sccvn.c (set_ssa_val_to): Changing undef to undef
3944 2017-09-25 Jeff Law <law@redhat.com>
3946 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Update
3947 prototype for new argument.
3948 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack_1): New function,
3949 mostly extracted from rs6000_emit_allocate_stack.
3950 (rs6000_emit_probe_stack_range_stack_clash): New function.
3951 (rs6000_emit_allocate_stack): Call
3952 rs6000_emit_probe_stack_range_stack_clash as needed.
3953 (rs6000_emit_probe_stack_range): Add additional argument
3954 to call to gen_probe_stack_range{si,di}.
3955 (output_probe_stack_range): New.
3956 (output_probe_stack_range_1): Renamed from output_probe_stack_range.
3957 (output_probe_stack_range_stack_clash): New.
3958 (rs6000_emit_prologue): Emit notes into dump file as requested.
3959 * rs6000.md (allocate_stack): Handle -fstack-clash-protection.
3960 (probe_stack_range<P:mode>): Operand 0 is now early-clobbered.
3961 Add additional operand and pass it to output_probe_stack_range.
3963 2017-09-25 Bin Cheng <bin.cheng@arm.com>
3965 PR tree-optimization/82163
3966 * tree-ssa-loop-manip.h (verify_loop_closed_ssa): New parameter.
3967 (checking_verify_loop_closed_ssa): New parameter.
3968 * tree-ssa-loop-manip.c (check_loop_closed_ssa_use): Delete.
3969 (check_loop_closed_ssa_stmt): Delete.
3970 (check_loop_closed_ssa_def, check_loop_closed_ssa_bb): New functions.
3971 (verify_loop_closed_ssa): Check loop closed ssa form for LOOP.
3972 (tree_transform_and_unroll_loop): Check loop closed ssa form only for
3975 2017-09-25 Pekka Jaaskelainen <pekka@parmance.com>
3977 * brig-builtins.def: Treat HSAIL barrier builtins as
3978 setjmp/longjump style functions.
3980 2017-09-25 Richard Sandiford <richard.sandiford@linaro.org>
3982 * target.def (constant_alignment): New hook.
3983 * defaults.h (CONSTANT_ALIGNMENT): Delete.
3984 * doc/tm.texi.in (CONSTANT_ALIGNMENT): Replace with...
3985 (TARGET_CONSTANT_ALIGNMENT): ...this new hook.
3986 * doc/tm.texi: Regenerate.
3987 * targhooks.h (default_constant_alignment): Declare.
3988 (constant_alignment_word_strings): Likewise.
3989 * targhooks.c (default_constant_alignment): New function.
3990 (constant_alignment_word_strings): Likewise.
3991 * builtins.c (get_object_alignment_2): Use targetm.constant_alignment
3992 instead of CONSTANT_ALIGNMENT.
3993 * varasm.c (align_variable, get_variable_align, build_constant_desc)
3994 (force_const_mem): Likewise.
3995 * config/aarch64/aarch64.h (CONSTANT_ALIGNMENT): Delete.
3996 * config/aarch64/aarch64.c (aarch64_constant_alignment): New function.
3997 (aarch64_classify_address): Call it instead of CONSTANT_ALIGNMENT.
3998 (TARGET_CONSTANT_ALIGNMENT): Redefine.
3999 * config/alpha/alpha.h (CONSTANT_ALIGNMENT): Delete commented-out
4001 * config/arc/arc.h (CONSTANT_ALIGNMENT): Delete.
4002 * config/arc/arc.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4003 constant_alignment_word_strings.
4004 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR): Delete.
4005 (CONSTANT_ALIGNMENT): Likewise.
4006 * config/arm/arm.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4007 (arm_constant_alignment): New function.
4008 * config/bfin/bfin.h (CONSTANT_ALIGNMENT): Delete.
4009 * config/bfin/bfin.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4010 constant_alignment_word_strings.
4011 * config/cr16/cr16.h (CONSTANT_ALIGNMENT): Delete.
4012 * config/cr16/cr16.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4013 constant_alignment_word_strings.
4014 * config/cris/cris.h (CONSTANT_ALIGNMENT): Delete.
4015 * config/cris/cris.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4016 (cris_constant_alignment): New function.
4017 * config/epiphany/epiphany.h (CONSTANT_ALIGNMENT): Delete.
4018 * config/epiphany/epiphany.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4019 (epiphany_constant_alignment): New function.
4020 * config/fr30/fr30.h (CONSTANT_ALIGNMENT): Delete.
4021 * config/fr30/fr30.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4022 constant_alignment_word_strings.
4023 * config/frv/frv.h (CONSTANT_ALIGNMENT): Delete.
4024 * config/frv/frv.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4025 constant_alignment_word_strings.
4026 * config/ft32/ft32.h (CONSTANT_ALIGNMENT): Delete.
4027 * config/ft32/ft32.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4028 constant_alignment_word_strings.
4029 * config/i386/i386.h (CONSTANT_ALIGNMENT): Delete.
4030 * config/i386/i386-protos.h (ix86_constant_alignment): Delete.
4031 * config/i386/i386.c (ix86_constant_alignment): Make static.
4032 Use the same interface as the target hook.
4033 (TARGET_CONSTANT_ALIGNMENT): Redefine.
4034 * config/ia64/ia64.h (CONSTANT_ALIGNMENT): Delete.
4035 * config/ia64/ia64.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4036 constant_alignment_word_strings.
4037 * config/iq2000/iq2000.h (CONSTANT_ALIGNMENT): Delete.
4038 * config/iq2000/iq2000.c (iq2000_constant_alignment): New function.
4039 (TARGET_CONSTANT_ALIGNMENT): Redefine.
4040 * config/lm32/lm32.h (CONSTANT_ALIGNMENT): Delete.
4041 * config/lm32/lm32.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4042 constant_alignment_word_strings.
4043 * config/m32r/m32r.h (CONSTANT_ALIGNMENT): Delete.
4044 * config/m32r/m32r.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4045 constant_alignment_word_strings.
4046 * config/mcore/mcore.h (CONSTANT_ALIGNMENT): Delete.
4047 * config/mcore/mcore.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4048 constant_alignment_word_strings.
4049 * config/microblaze/microblaze.h (CONSTANT_ALIGNMENT): Delete.
4050 * config/microblaze/microblaze.c (microblaze_constant_alignment):
4052 (TARGET_CONSTANT_ALIGNMENT): Redefine.
4053 * config/mips/mips.h (CONSTANT_ALIGNMENT): Delete.
4054 * config/mips/mips.c (mips_constant_alignment): New function.
4055 (TARGET_CONSTANT_ALIGNMENT): Redefine.
4056 * config/mmix/mmix.h (CONSTANT_ALIGNMENT): Delete.
4057 * config/mmix/mmix-protos.h (mmix_constant_alignment): Delete.
4058 * config/mmix/mmix.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4059 (mmix_constant_alignment): Make static. Use the same interface
4061 * config/moxie/moxie.h (CONSTANT_ALIGNMENT): Delete.
4062 * config/moxie/moxie.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4063 constant_alignment_word_strings.
4064 * config/nios2/nios2.h (CONSTANT_ALIGNMENT): Delete.
4065 * config/nios2/nios2.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4066 constant_alignment_word_strings.
4067 * config/pa/pa.h (CONSTANT_ALIGNMENT): Delete.
4068 * config/pa/pa.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4069 constant_alignment_word_strings.
4070 * config/powerpcspe/powerpcspe.h (CONSTANT_ALIGNMENT): Delete.
4071 * config/powerpcspe/powerpcspe.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4072 (rs6000_constant_alignment): New function.
4073 * config/riscv/riscv.h (CONSTANT_ALIGNMENT): Delete.
4074 * config/riscv/riscv.c (riscv_constant_alignment): New function.
4075 (TARGET_CONSTANT_ALIGNMENT): Redefine.
4076 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Delete.
4077 * config/rs6000/rs6000.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4078 (rs6000_constant_alignment): New function.
4079 * config/s390/s390.h (CONSTANT_ALIGNMENT): Delete.
4080 * config/s390/s390.c (s390_constant_alignment): New function.
4081 (TARGET_CONSTANT_ALIGNMENT): Redefine.
4082 * config/sh/sh.h (CONSTANT_ALIGNMENT): Delete.
4083 * config/sh/sh.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4084 constant_alignment_word_strings.
4085 * config/sparc/sparc.h (CONSTANT_ALIGNMENT): Delete.
4086 * config/sparc/sparc.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4087 (sparc_constant_alignment): New function.
4088 * config/spu/spu.h (CONSTANT_ALIGNMENT): Delete.
4089 * config/spu/spu.c (spu_constant_alignment): New function.
4090 (TARGET_CONSTANT_ALIGNMENT): Redefine.
4091 * config/stormy16/stormy16.h (CONSTANT_ALIGNMENT): Delete.
4092 * config/stormy16/stormy16.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4093 constant_alignment_word_strings.
4094 * config/tilegx/tilegx.h (CONSTANT_ALIGNMENT): Delete.
4095 * config/tilegx/tilegx.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4096 constant_alignment_word_strings.
4097 * config/tilepro/tilepro.h (CONSTANT_ALIGNMENT): Delete.
4098 * config/tilepro/tilepro.c (TARGET_CONSTANT_ALIGNMENT): Redefine to
4099 constant_alignment_word_strings.
4100 * config/visium/visium.h (CONSTANT_ALIGNMENT): Delete.
4101 * config/visium/visium.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4102 (visium_constant_alignment): New function.
4103 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT): Delete.
4104 * config/xtensa/xtensa.c (TARGET_CONSTANT_ALIGNMENT): Redefine.
4105 (xtensa_constant_alignment): New function.
4106 * system.h (CONSTANT_ALIGNMENT): Poison.
4108 2017-09-25 Will Schmidt <will_schmidt@vnet.ibm.com>
4110 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4111 for early folding of vector stores (ALTIVEC_BUILTIN_ST_*).
4112 (rs6000_builtin_valid_without_lhs): New helper function.
4113 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4114 Remove obsoleted code for handling ALTIVEC_BUILTIN_VEC_ST.
4116 2017-09-25 Richard Sandiford <richard.sandiford@linaro.org>
4118 * target.h (vec_perm_indices): Use unsigned short rather than
4120 (auto_vec_perm_indices): Likewise.
4121 * config/aarch64/aarch64.c (aarch64_vectorize_vec_perm_const_ok):
4122 Use unsigned int rather than unsigned char.
4123 * config/arm/arm.c (arm_vectorize_vec_perm_const_ok): Likewise.
4125 2017-09-25 Richard Biener <rguenther@suse.de>
4127 * cfgloop.h (sort_sibling_loops): Declare.
4128 * cfgloop.c (sort_sibling_loops_cmp): New helper.
4129 (sort_sibling_loops): New function sorting the sibling loop list
4131 * graphite.c (graphite_transform_loops): Sort sibling loops.
4133 2017-09-25 Richard Sandiford <richard.sandifird@linaro.org>
4135 * target.def (vec_perm_const_ok): Change sel parameter to
4137 * optabs-query.c (can_vec_perm_p): Update accordingly.
4138 * doc/tm.texi: Regenerate.
4139 * config/aarch64/aarch64.c (expand_vec_perm_d): Change perm to
4140 auto_vec_perm_indices and remove separate nelt field.
4141 (aarch64_evpc_trn, aarch64_evpc_uzp, aarch64_evpc_zip)
4142 (aarch64_evpc_ext, aarch64_evpc_rev, aarch64_evpc_dup)
4143 (aarch64_evpc_tbl, aarch64_expand_vec_perm_const_1)
4144 (aarch64_expand_vec_perm_const): Update accordingly.
4145 (aarch64_vectorize_vec_perm_const_ok): Likewise. Change sel
4146 to vec_perm_indices.
4147 * config/arm/arm.c (expand_vec_perm_d): Change perm to
4148 auto_vec_perm_indices and remove separate nelt field.
4149 (arm_evpc_neon_vuzp, arm_evpc_neon_vzip, arm_evpc_neon_vrev)
4150 (arm_evpc_neon_vtrn, arm_evpc_neon_vext, arm_evpc_neon_vtbl)
4151 (arm_expand_vec_perm_const_1, arm_expand_vec_perm_const): Update
4153 (arm_vectorize_vec_perm_const_ok): Likewise. Change sel
4154 to vec_perm_indices.
4155 * config/i386/i386.c (ix86_vectorize_vec_perm_const_ok): Change
4156 sel to vec_perm_indices.
4157 * config/ia64/ia64.c (ia64_vectorize_vec_perm_const_ok): Likewise.
4158 * config/mips/mips.c (mips_vectorize_vec_perm_const_ok): Likewise.
4159 * config/powerpcspe/powerpcspe.c (rs6000_vectorize_vec_perm_const_ok):
4161 * config/rs6000/rs6000.c (rs6000_vectorize_vec_perm_const_ok):
4164 2017-09-25 Pierre-Marie de Rodat <derodat@adacore.com>
4167 * dwarf2out.c (dwarf2out_early_global_decl): Call dwarf2out_decl
4168 on the FUNCTION_DECL function context if it has a DIE that is a
4171 2017-09-25 Richard Biener <rguenther@suse.de>
4173 PR tree-optimization/82285
4174 * tree-vect-patterns.c (vect_recog_bool_pattern): Also handle
4177 2017-09-25 Tom de Vries <tom@codesourcery.com>
4181 * config/nvptx/nvptx.c (nvptx_output_call_insn): Add exit after call to
4184 2017-09-25 Richard Biener <rguenther@suse.de>
4186 * graphite-optimize-isl.c (optimize_isl): Fail and dump if
4187 ISL errors other than isl_error_quota happen. Dump if the
4188 schedule is the same.
4189 * graphite-sese-to-poly.c (build_poly_scop): Fail on ISL
4190 errors instead of aborting inside ISL.
4192 2017-09-25 Iain Sandoe <iain@codesourcery.com>
4195 * config/i386/darwin.h (REAL_LIB_SPEC): New; put libSystem ahead
4196 of libgcc_eh for m64.
4197 * config/i386/darwin64.h: Likewise.
4199 2017-09-25 Richard Biener <rguenther@suse.de>
4202 * dwarf2out.c (gen_enumeration_type_die): Do not add alignment
4203 attribute for incomplete types nor twice for complete ones.
4205 2017-09-24 Uros Bizjak <ubizjak@gmail.com>
4208 * config/i386/i386.c (ix86_print_operand_address_as): Encode
4209 %esp as %rsp to avoid 0x67 prefix if there is no index or base
4212 2017-09-23 Uros Bizjak <ubizjak@gmail.com>
4215 * config/i386/i386.opt (mprefer-avx256): Use
4216 ix86_target_flags variable.
4217 * config/i386/i386.c (ix86_target_string): Move
4218 -mprefer-avx256 to flag2_opts.
4220 2017-09-22 Jakub Jelinek <jakub@redhat.com>
4223 * match.pd: Simplify x == -1 & y == -1 into (x & y) == -1
4224 and x != -1 | y != -1 into (x & y) != -1.
4226 2017-09-22 Steve Ellcey <sellcey@cavium.com>
4228 * config.gcc: Add new case statement to set
4229 default_gnu_indirect_function. Remove it from x86_64-*-linux*,
4230 i[34567]86-*, powerpc*-*-linux*spe*, powerpc*-*-linux*, s390-*-linux*,
4231 s390x-*-linux* case statements. Added aarch64 to the list of
4232 supported architectures.
4234 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4236 PR tree-optimization/82289
4237 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Check
4238 STMT_VINFO_RELEVANT_P.
4240 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4241 Alan Hayward <alan.hayward@arm.com>
4242 David Sherwood <david.sherwood@arm.com>
4244 * tree-vrp.c (extract_range_from_multiplicative_op_1): Assert
4245 for VR_RANGE only; don't allow VR_ANTI_RANGE.
4246 (extract_range_from_binary_expr_1): Don't call
4247 extract_range_from_multiplicative_op_1 if !range_int_cst_p.
4249 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4250 Alan Hayward <alan.hayward@arm.com>
4251 David Sherwood <david.sherwood@arm.com>
4253 * target.def (preferred_vector_alignment): New hook.
4254 * doc/tm.texi.in (TARGET_VECTORIZE_PREFERRED_VECTOR_ALIGNMENT): New
4256 * doc/tm.texi: Regenerate.
4257 * targhooks.h (default_preferred_vector_alignment): Declare.
4258 * targhooks.c (default_preferred_vector_alignment): New function.
4259 * tree-vectorizer.h (dataref_aux): Add a target_alignment field.
4261 (DR_TARGET_ALIGNMENT): New macro.
4262 (aligned_access_p): Update commentary.
4263 (vect_known_alignment_in_bytes): New function.
4264 * tree-vect-data-refs.c (vect_calculate_required_alignment): New
4266 (vect_compute_data_ref_alignment): Set DR_TARGET_ALIGNMENT.
4267 Calculate the misalignment based on the target alignment rather than
4269 (vect_update_misalignment_for_peel): Use DR_TARGET_ALIGMENT
4270 rather than TYPE_ALIGN / BITS_PER_UNIT to update the misalignment.
4271 (vect_enhance_data_refs_alignment): Mask the byte misalignment with
4272 the target alignment, rather than masking the element misalignment
4273 with the number of elements in a vector. Also use the target
4274 alignment when calculating the maximum number of peels.
4275 (vect_find_same_alignment_drs): Use vect_calculate_required_alignment
4276 instead of TYPE_ALIGN_UNIT.
4277 (vect_duplicate_ssa_name_ptr_info): Remove stmt_info parameter.
4278 Measure DR_MISALIGNMENT relative to DR_TARGET_ALIGNMENT.
4279 (vect_create_addr_base_for_vector_ref): Update call accordingly.
4280 (vect_create_data_ref_ptr): Likewise.
4281 (vect_setup_realignment): Realign by ANDing with
4282 -DR_TARGET_MISALIGNMENT.
4283 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Calculate
4284 the number of peels based on DR_TARGET_ALIGNMENT.
4285 * tree-vect-stmts.c (get_group_load_store_type): Compare the gap
4286 with the guaranteed alignment boundary when deciding whether
4288 (vectorizable_mask_load_store): Interpret DR_MISALIGNMENT
4289 relative to DR_TARGET_ALIGNMENT instead of TYPE_ALIGN_UNIT.
4290 (ensure_base_align): Remove stmt_info parameter. Get the
4291 target base alignment from DR_TARGET_ALIGNMENT.
4292 (vectorizable_store): Update call accordingly. Interpret
4293 DR_MISALIGNMENT relative to DR_TARGET_ALIGNMENT instead of
4295 (vectorizable_load): Likewise.
4297 2017-09-22 Richard Sandiford <richard.sandiford@linaro.org>
4298 Alan Hayward <alan.hayward@arm.com>
4299 David Sherwood <david.sherwood@arm.com>
4301 * tree-vectorizer.h (vect_get_scalar_dr_size): New function.
4302 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Use it.
4303 (vect_enhance_data_refs_alignment): Likewise.
4305 2017-09-22 Richard Earnshaw <richard.earnshaw@arm.com>
4307 * config/arm/parsecpu.awk (fatal): Note that we've encountered an
4308 error. Only quit immediately if parsing is complete.
4309 (BEGIN): Initialize fatal_err and parse_done.
4310 (begin fpu, end fpu): Check number of arguments.
4311 (begin arch, end arch): Likewise.
4312 (begin cpu, end cpu): Likewise.
4313 (cname, tune for, tune flags, architecture, fpu, option): Likewise.
4314 (optalias): Likewise.
4316 2017-09-22 Richard Earnshaw <richard.earnshaw@arm.com>
4318 * config.gcc (arm*-*-*): Don't add arm-isa.h to tm_p_file.
4319 * config/arm/arm-isa.h: Delete. Move definitions to ...
4320 * arm-cpus.in: ... here. Use new feature and fgroup values.
4321 * config/arm/arm.c (arm_option_override): Use lower case for feature
4323 * config/arm/arm.h (TARGET_HARD_FLOAT): Likewise.
4324 (TARGET_VFP3, TARGET_VFP5, TARGET_FMA): Likewise.
4325 * config/arm/parsecpu.awk (END): Add new command 'isa'.
4327 (print_isa_bits_for): New function.
4328 (gen_isa): New function.
4329 (gen_comm_data): Use print_isa_bits_for.
4330 (define feature): New keyword.
4331 (define fgroup): New keyword.
4332 * config/arm/t-arm (TM_H): Remove.
4333 (GTM_H): Add arm-isa.h.
4334 (arm-isa.h): Add rule to generate file.
4335 * common/config/arm/arm-common.c: (arm_canon_arch_option): Use lower
4336 case for feature bit names.
4338 2017-09-22 Richard Biener <rguenther@suse.de>
4340 * graphite-isl-ast-to-gimple.c (graphite_verify): Inline into
4342 (graphite_regenerate_ast_isl): Do not reset SCEV. Move debug
4343 print of no dependency loops ...
4344 * graphite.c (graphite_transform_loops): ... here.
4345 (canonicalize_loop_closed_ssa_form): Work from inner to outer
4347 (same_close_phi_node, remove_duplicate_close_phi,
4348 make_close_phi_nodes_unique, defined_in_loop_p): Fold into ...
4349 (canonicalize_loop_closed_ssa): ... here and simplify.
4350 * graphite-optimize-isl.c: Include tree-vectorizer.h.
4351 (optimize_isl): Use dump_printf_loc to tell when we stopped
4352 optimizing because of an ISL timeout.
4354 2017-09-22 Richard Biener <rguenther@suse.de>
4356 PR tree-optimization/82291
4357 * tree-if-conv.c (predicate_mem_writes): Make sure to
4358 remove writes in blocks predicated with false.
4360 2017-09-22 Richard Biener <rguenther@suse.de>
4362 * sese.c: Include cfganal.h.
4363 (if_region_set_false_region): Remove.
4364 (create_if_region_on_edge): Likewise.
4365 (move_sese_in_condition): Re-implement without destroying
4368 2017-09-22 Richard Biener <rguenther@suse.de>
4370 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes):
4371 Verify both BBs contain loop PHI nodes before dispatching to
4373 (graphite_regenerate_ast_isl): Do not recompute dominators,
4374 do not verify three times. Restructure for clarity.
4375 * graphite-scop-detection.c (same_close_phi_node,
4376 remove_duplicate_close_phi, make_close_phi_nodes_unique,
4377 defined_in_loop_p, canonicalize_loop_closed_ssa,
4378 canonicalize_loop_closed_ssa_form): Simplify, remove excess
4379 checking and SSA rewrite, move to ...
4380 * graphite.c: ... here. Include ssa.h and tree-ssa-loop-manip.h.
4381 (graphite_initialize): Do not pass in ctx, do not reset the
4382 SCEV cache, compute only dominators.
4383 (graphite_transform_loops): Allocate ISL ctx after
4384 graphite_initialize. Call canonicalize_loop_closed_ssa_form.
4385 Maintain post-dominators only around build_scops.
4386 * sese.c (if_region_set_false_region): Make static. Free
4387 and recompute dominators.
4388 (move_sese_in_condition): Assert we don't get called with
4389 post-dominators computed.
4390 * sese.h (if_region_set_false_region): Remove.
4392 2017-09-22 Sergey Shalnov <sergey.shalnov@intel.com>
4394 * config/i386/sse.md ("mov<mode>_internal"): Use <sseinsnmode>
4395 mode attribute for TARGET_AVX512VL.
4397 2017-09-21 Sergey Shalnov <sergey.shalnov@intel.com>
4399 * config/i386/i386.opt (mprefer-avx256): New option.
4400 * config/i386/i386.c (ix86_target_string): Add -mprefer-avx256
4402 (ix86_preferred_simd_mode): Return 256-bit AVX modes
4403 for TARGET_PREFER_AVX256.
4404 * doc/invoke.texi (x86 Options): Document -mprefer-avx256.
4406 2017-09-21 Jeff Law <law@redhat.com>
4408 * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash):
4409 Fix dump output if the only stack space is for pushed registers.
4411 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
4413 * config/spu/spu.c (spu_sched_adjust_cost): Update after renaming
4416 2017-09-21 Martin Sebor <msebor@redhat.com>
4419 * doc/extend.texi (attribute ifunc): Avoid relying on ill-formed
4420 code (in C++) or code that triggers warnings.
4422 2017-09-21 Eric Botcazou <ebotcazou@adacore.com>
4424 * stor-layout.c (bit_from_pos): Do not distribute the conversion.
4426 2017-09-21 Segher Boessenkool <segher@kernel.crashing.org>
4428 * haifa-sched.c: Rename insn_cost to insn_sched_cost.
4429 * sched-rgn.c: Ditto.
4430 * sel-sched-ir.c: Ditto.
4432 2017-09-21 Alexander Monakov <amonakov@ispras.ru>
4434 * toplev.h (set_random_seed): Adjust return type.
4435 * toplev.c (init_local_tick): Move eager initialization of random_seed
4436 to get_random_seed. Adjust comment.
4437 (init_random_seed): Inline to get_random_seed, delete.
4438 (get_random_seed): Initialize random_seed lazily.
4439 (set_random_seed): Do not return previous value.
4440 (print_switch_value): Do not call get_random_seed.
4442 2017-09-21 Evgeny Kudryashov <kudryashov@ispras.ru>
4444 * cgraph.c (delete_function_version): New, broken out from...
4445 (cgraph_node::delete_function_version): ...here. Rename to
4446 cgraph_node::delete_function_version_by_decl. Update all uses.
4447 (cgraph_node::remove): Call delete_function_version.
4449 2017-09-21 Jakub Jelinek <jakub@redhat.com>
4452 * tree-inline.c (expand_call_inline): Emit clobber stmts for
4453 VAR_DECLs to which addressable non-volatile parameters are mapped
4454 and for id->retvar after the return value assignment. Clear
4455 id->retval and id->retbnd after inlining.
4457 2017-09-21 Richard Biener <rguenther@suse.de>
4459 PR tree-optimization/82276
4460 PR tree-optimization/82244
4461 * tree-vrp.c (build_assert_expr_for): Set
4462 SSA_NAME_OCCURS_IN_ABNORMAL_PHI if the variable we assert on
4464 (remove_range_assertions): Revert earlier change.
4466 2017-09-21 Wilco Dijkstra <wdijkstr@arm.com>
4469 * config/aarch64/aarch64.h (LIBGCC2_UNWIND_ATTRIBUTE): Define.
4471 2017-09-21 Richard Biener <rguenther@suse.de>
4473 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
4474 Restore valid IL after code generation errors.
4475 * graphite.c (graphite_transform_loops): Diagnose code
4476 generation issues as MSG_MISSED_OPTIMIZATION and continue
4477 with processing SCOPs.
4479 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
4480 Alan Hayward <alan.hayward@arm.com>
4481 David Sherwood <david.sherwood@arm.com>
4483 * calls.c (compute_argument_addresses): Use simplify_gen_binary
4484 rather than choosing between plus_constant and gen_rtx_<CODE>.
4485 * expr.c (emit_push_insn): Likewise.
4486 (expand_expr_real_2): Likewise.
4488 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
4489 Alan Hayward <alan.hayward@arm.com>
4490 David Sherwood <david.sherwood@arm.com>
4492 * loop-unroll.c (split_iv): Call copy_rtx on the step.
4494 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
4495 Alan Hayward <alan.hayward@arm.com>
4496 David Sherwood <david.sherwood@arm.com>
4498 * tree.c (find_atomic_core_type): Check tree_fits_uhwi_p before
4499 calling tree_to_uhwi.
4501 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
4502 Alan Hayward <alan.hayward@arm.com>
4503 David Sherwood <david.sherwood@arm.com>
4505 * tree-ssa-ccp.c (get_value_for_expr): Use a positive test for
4506 INTEGER_CST rather than a negative test for ADDR_EXPR.
4508 2017-09-21 Richard Sandiford <richard.sandiford@linaro.org>
4509 Alan Hayward <alan.hayward@arm.com>
4510 David Sherwood <david.sherwood@arm.com>
4512 * tree-vrp.c (extract_range_from_binary_expr_1): Check
4513 int_cst_rangeN before calling value_range_constant_singleton (&vrN).
4515 2017-09-21 Richard Biener <rguenther@suse.de>
4517 PR tree-optimization/71351
4518 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple::
4519 graphite_create_new_loop_guard): Remove, fold remaining parts
4521 (translate_isl_ast_node_for): ... here and simplify.
4523 2017-09-21 Jakub Jelinek <jakub@redhat.com>
4526 * config/i386/i386.md (*movqi_internal): Replace (=q,q) alternative
4527 with (=Q,Q), (=R,R) and (=r,r) alternatives, only enable the
4528 latter two for 64-bit, renumber alternatives, for -Os imov (=q,n)
4529 alternative always use QI mode, for -Os imov (=R,R) alternative
4530 always use SI mode, for imov (=Q,Q) or (=r,r) alternatives
4533 2017-09-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4534 Jeff Law <law@redhat.com>
4536 * config/s390/s390.c (MIN_UNROLL_PROBES): Define.
4537 (allocate_stack_space): New function, partially extracted from
4539 (s390_emit_prologue): Track offset to most recent stack probe.
4540 Code to allocate space moved into allocate_stack_space.
4541 Dump actions when no stack is allocated.
4542 (s390_prologue_plus_offset): New function.
4543 (s390_emit_stack_probe): Likewise.
4545 2017-09-20 Alexandre Oliva <aoliva@redhat.com>
4547 * common.opt (Wa, Wl, Wp, g, gz=): Add
4549 (gno-column-info): Remove.
4550 (gcolumn-info): Drop RejectNegative.
4552 (gno-record-gcc-switches): Remove.
4553 (grecord-gcc-switches): Drop RejectNegative.
4554 (gno-split-dwarf): Remove.
4555 (gsplit-dwarf): Drop RejectNegative.
4556 (gno-strict-dwarf): Remove.
4557 (gstrict-dwarf): Drop RejectNegative.
4558 * config/darwin.opt (gfull, gused): Add RejectNegative.
4559 * dwarf2out.c (gen_producer_string): Drop
4560 gno-record-gcc-switches handler.
4561 * optc-gen.awk: Add g to prefixes with negative forms.
4562 * opts-common.c (remapping_prefix_p): New.
4563 (find_opt): Check it.
4564 (generate_canonical_option): Test g prefix.
4565 (option_map): Add -gno- mapping.
4566 (add_misspelling_candidates): Check remapping_prefix_p.
4568 2017-09-20 Jeff Law <law@redhat.com>
4570 * config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Fix
4571 thinko in stack clash protection support.
4573 * explow.c (compute_stack_clash_protection_loop_data): Use
4574 CONST_INT_P instead of explicit test. Verify object is a
4575 CONST_INT_P before looking at INTVAL.
4576 (anti_adjust_stack_and_probe_stack_clash): Use CONST_INT_P
4577 instead of explicit test.
4579 2017-09-20 Segher Boessenkool <segher@kernel.crashing.org>
4582 * config/rs6000/rs6000.md (stack_restore_tie): Store to a scratch
4583 address instead of to r1 and r11.
4585 2017-09-20 Sebastian Peryt <sebastian.peryt@intel.com>
4587 * config.gcc: Support "knm".
4588 * config/i386/driver-i386.c (host_detect_local_cpu): Detect "knm".
4589 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4591 * config/i386/i386.c (m_KNM): Define.
4592 (processor_target_table): Add "knm".
4594 (ix86_option_override_internal): Add "knm".
4595 (ix86_issue_rate): Add PROCESSOR_KNM.
4596 (ix86_adjust_cost): Ditto.
4597 (ia32_multipass_dfa_lookahead): Ditto.
4598 (get_builtin_code_for_version): Handle PROCESSOR_KNM.
4599 (fold_builtin_cpu): Add M_INTEL_KNM.
4600 * config/i386/i386.h (processor_costs): Define TARGET_KNM.
4601 (processor_type): Add PROCESSOR_KNM.
4602 * config/i386/x86-tune.def: Add m_KNM.
4603 * doc/invoke.texi: Add knm as x86 -march=/-mtune= CPU type.
4605 2017-09-20 Richard Biener <rguenther@suse.de>
4607 PR tree-optimization/80213
4608 * graphite-scop-detection.c (trivially_empty_bb_p): Labels
4609 are allowed in empty BBs as well.
4610 (canonicalize_loop_closed_ssa): Also look for other complex
4612 (scop_detection::get_sese): Include the loop-closed PHI block
4614 (scop_detection::merge_sese): Remove code adding extra blocks.
4615 (scop_detection::region_has_one_loop): Adjust for get_sese changes.
4616 (build_scops): Assert the final returned scop is invalid.
4618 2017-09-20 Richard Biener <rguenther@suse.de>
4620 PR tree-optimization/82264
4621 * tree-ssa-sccvn.c (vn_phi_eq): Use safe_dyn_cast to check
4623 (vn_phi_lookup): Likewise.
4624 (vn_phi_insert): Likewise.
4626 2017-09-20 Jakub Jelinek <jakub@redhat.com>
4628 * dwarf2out.c (tree_add_const_value_attribute): For INTEGER_CST
4629 that fits into uhwi or shwi, add DW_AT_const_value regardless
4630 of early_dwarf without going through RTL, using add_AT_unsigned
4633 * dwarf2out.c (DEBUG_LTO_DWO_INFO_SECTION): Reorder defines.
4634 (DEBUG_LTO_ABBREV_SECTION): Likewise.
4635 (DEBUG_LTO_MACINFO_SECTION): Likewise.
4636 (DEBUG_MACRO_SECTION): Likewise.
4637 (DEBUG_LTO_MACRO_SECTION): Likewise.
4638 (DEBUG_STR_DWO_SECTION): Likewise.
4639 (DEBUG_LTO_STR_DWO_SECTION): Likewise.
4640 (DEBUG_LTO_LINE_SECTION): Drop .dwo suffix from the name.
4641 (DEBUG_LTO_DWO_LINE_SECTION): Define.
4642 (DEBUG_LTO_LINE_STR_SECTION): Define.
4643 (init_sections_and_labels): Initialize debug_line_str_section
4644 variable. Initialize debug_loc_section for -gdwarf-5 to
4645 DEBUG_LOCLISTS_SECTION. Formatting fixes.
4647 2017-09-20 Richard Biener <rguenther@suse.de>
4649 * graphite-sese-to-poly.c (extract_affine): Properly handle
4650 POINTER_PLUS_EXPR, BIT_NOT_EXPR and conversion to signed.
4652 2017-09-20 Richard Biener <rguenther@suse.de>
4654 PR tree-optimization/81373
4655 * graphite-scop-detection.c (build_cross_bb_scalars_def):
4656 Force SESE live-out defs to be handled even if they are
4659 2017-09-19 Jeff Law <law@redhat.com>
4661 * combine-stack-adj.c (combine_stack_adjustments_for_block): Do
4662 nothing for stack adjustments with REG_STACK_CHECK.
4663 * sched-deps.c (parse_add_or_inc): Reject insns with
4664 REG_STACK_CHECK from dependency breaking.
4665 * config/i386/i386.c (pro_epilogue_adjust_stack): Return insn.
4666 (ix86_adjust_satck_and_probe_stack_clash): Add REG_STACK_NOTEs.
4667 * reg-notes.def (STACK_CHECK): New note.
4669 * config/i386/i386.c (ix86_adjust_stack_and_probe_stack_clash): New.
4670 (ix86_expand_prologue): Dump stack clash info as needed.
4671 Call ix86_adjust_stack_and_probe_stack_clash as needed.
4673 * function.c (dump_stack_clash_frame_info): New function.
4674 * function.h (dump_stack_clash_frame_info): Prototype.
4675 (enum stack_clash_probes): New enum.
4677 * config/alpha/alpha.c (alpha_expand_prologue): Also check
4678 flag_stack_clash_protection.
4679 * config/arm/arm.c (arm_compute_static_chain_stack_bytes): Likewise.
4680 (arm_expand_prologue, thumb1_expand_prologue): Likewise.
4681 (arm_frame_pointer_required): Likewise.
4682 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4683 (ia64_expand_prologue): Likewise.
4684 * config/mips/mips.c (mips_expand_prologue): Likewise.
4685 * config/powerpcspe/powerpcspe.c (rs6000_expand_prologue): Likewise.
4686 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4687 (sparc_flat_expand_prologue): Likewise.
4688 * config/spu/spu.c (spu_expand_prologue): Likewise.
4690 * explow.c: Include "params.h".
4691 (anti_adjust_stack_and_probe_stack_clash): New function.
4692 (get_stack_check_protect): Likewise.
4693 (compute_stack_clash_protection_loop_data): Likewise.
4694 (emit_stack_clash_protection_loop_start): Likewise.
4695 (emit_stack_clash_protection_loop_end): Likewise.
4696 (allocate_dynamic_stack_space): Use get_stack_check_protect.
4697 Use anti_adjust_stack_and_probe_stack_clash.
4698 * explow.h (compute_stack_clash_protection_loop_data): Prototype.
4699 (emit_stack_clash_protection_loop_start): Likewise.
4700 (emit_stack_clash_protection_loop_end): Likewise.
4701 * rtl.h (get_stack_check_protect): Prototype.
4702 * target.def (stack_clash_protection_final_dynamic_probe): New hook.
4703 * targhooks.c (default_stack_clash_protection_final_dynamic_probe): New.
4704 * targhooks.h (default_stack_clash_protection_final_dynamic_probe):
4706 * doc/tm.texi.in (TARGET_STACK_CLASH_PROTECTION_FINAL_DYNAMIC_PROBE):
4708 * doc/tm.texi: Rebuilt.
4709 * config/aarch64/aarch64.c (aarch64_expand_prologue): Use
4710 get_stack_check_protect.
4711 * config/alpha/alpha.c (alpha_expand_prologue): Likewise.
4712 * config/arm/arm.c (arm_expand_prologue): Likewise.
4713 (arm_frame_pointer_required): Likewise.
4714 * config/i386/i386.c (ix86_expand_prologue): Likewise.
4715 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
4716 * config/mips/mips.c (mips_expand_prologue): Likewise.
4717 * config/powerpcspe/powerpcspe.c (rs6000_emit_prologue): Likewise.
4718 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
4719 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
4720 (sparc_flat_expand_prologue): Likewise.
4722 * common.opt (-fstack-clash-protection): New option.
4723 * flag-types.h (enum stack_check_type): Note difference between
4724 -fstack-check= and -fstack-clash-protection.
4725 * params.def (PARAM_STACK_CLASH_PROTECTION_GUARD_SIZE): New PARAM.
4726 (PARAM_STACK_CLASH_PROTECTION_PROBE_INTERVAL): Likewise.
4727 * toplev.c (process_options): Issue warnings/errors for cases
4728 not handled with -fstack-clash-protection.
4729 * doc/invoke.texi (-fstack-clash-protection): Document new option.
4730 (-fstack-check): Note additional problem with -fstack-check=generic.
4731 Note that -fstack-check is primarily for Ada and refer users
4732 to -fstack-clash-protection for stack-clash-protection.
4733 Document new params for stack clash protection.
4735 2017-09-19 Uros Bizjak <ubizjak@gmail.com>
4737 * config/i386/i386.c (ix86_split_long_move): Do not handle
4738 address used for LEA in a special way.
4740 2017-09-19 Segher Boessenkool <segher@kernel.crashing.org>
4742 * simplify-rtx.c (simplify_binary_operation_1): Fix typo in comment.
4744 2017-09-19 Martin Sebor <msebor@redhat.com>
4747 * cgraphunit.c (handle_alias_pairs): Reject aliases between functions
4748 of incompatible types.
4750 2017-09-19 Will Schmidt <will_schmidt@vnet.ibm.com>
4752 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
4753 for early folding of vector loads (ALTIVEC_BUILTIN_LVX_*).
4754 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
4755 Remove obsoleted code for handling ALTIVEC_BUILTIN_VEC_LD.
4757 2017-09-19 Richard Biener <rguenther@suse.de>
4759 PR tree-optimization/82244
4760 * tree-vrp.c (remove_range_assertions): Do not propagate
4761 a constant to abnormals but replace the assert with a copy.
4763 2017-09-19 Alexander Monakov <amonakov@ispras.ru>
4765 PR rtl-optimization/57878
4766 PR rtl-optimization/68988
4767 * lra-assigns.c (reload_pseudo_compare_func): Remove fragmentation
4768 avoidance test involving non_reload_pseudos. Move frequency test
4769 below the general fragmentation avoidance test.
4771 2017-09-19 Richard Biener <rguenther@suse.de>
4773 PR tree-optimization/69728
4774 * graphite-sese-to-poly.c (schedule_error): New global.
4775 (add_loop_schedule): Handle empty domain by failing the
4777 (build_original_schedule): Handle schedule_error.
4779 2017-09-19 Richard Biener <rguenther@suse.de>
4781 * graphite-scop-detection.c (scop_detection::can_represent_loop):
4782 Do not iterate to sibling loops but only to siblings of inner
4785 2017-09-18 Andreas Schwab <schwab@linux-m68k.org>
4788 * config/m68k/m68k.md (moveq feeding equality comparison): Check
4789 that the registers are different.
4791 2017-09-18 Uros Bizjak <ubizjak@gmail.com>
4793 * config/i386/i386.c (fold_builtin_cpu): Add M_AMDFAM17H
4794 to processor_model and "amdfam17h" to arch_names_table.
4795 * doc/extend.texi (__builtin_cpu_is): Document amdfam17h CPU name.
4797 2017-09-18 Jakub Jelinek <jakub@redhat.com>
4800 * doc/extend.texi: Add @findex entry for __builtin_shuffle.
4802 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
4803 Alan Hayward <alan.hayward@arm.com>
4804 David Sherwood <david.sherwood@arm.com>
4806 * tree-vectorizer.h (vect_slp_analyze_operations): Replace parameters
4808 * tree-vect-loop.c (vect_analyze_loop_operations): Update call
4810 * tree-vect-slp.c (vect_slp_analyze_node_operations): Add vec_info *
4811 parameter. Set SLP_TREE_NUMBER_OF_VEC_STMTS here rather than in
4812 vect_schedule_slp_instance.
4813 (vect_slp_analyze_operations): Replace parameters with a vec_info *.
4814 Update call to vect_slp_analyze_node_operations. Simplify return
4816 (vect_slp_analyze_bb_1): Update call accordingly.
4817 (vect_schedule_slp_instance): Remove vectorization_factor parameter.
4818 Don't calculate SLP_TREE_NUMBER_OF_VEC_STMTS here.
4819 (vect_schedule_slp): Update call accordingly.
4821 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
4822 Alan Hayward <alan.hayward@arm.com>
4823 David Sherwood <david.sherwood@arm.com>
4825 * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Cope
4826 with types that aren't in fact scalar.
4828 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
4830 * tree-vect-slp.c (vect_record_max_nunits): New function,
4832 (vect_build_slp_tree_1): ...here.
4833 (vect_build_slp_tree_2): Call it for phis too.
4835 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
4837 * tree-vect-stmts.c (vectorizable_mask_load_store): Pass mask_vectype
4838 to vect_get_vec_def_for_operand when getting the mask operand.
4840 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
4841 Alan Hayward <alan.hayward@arm.com>
4842 David Sherwood <david.sherwood@arm.com>
4844 * tree-vect-loop.c (vectorizable_live_operation): Fix type of
4847 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
4848 Alan Hayward <alan.hayward@arm.com>
4849 David Sherwood <david.sherwood@arm.com>
4851 * tree-vect-loop.c (vectorizable_live_operation): Fix element size
4852 calculation for vector booleans.
4854 2017-09-18 Richard Sandiford <richard.sandiford@linaro.org>
4855 Alan Hayward <alan.hayward@arm.com>
4856 David Sherwood <david.sherwood@arm.com>
4858 * tree-vect-stmts.c (can_vectorize_live_stmts): New function,
4860 (vect_transform_stmt): ...here.
4861 (vect_analyze_stmt): Use it instead of calling
4862 vectorizable_live_operation directly.
4864 2017-09-18 Cesar Philippidis <cesar@codesourcery.com>
4866 * omp-offload.c (oacc_xform_loop): Enable SIMD vectorization on
4867 non-SIMT targets in acc vector loops.
4869 2017-09-18 Claudiu Zissulescu <claziss@synopsys.com>
4871 * configure.ac: Add arc and check if assembler supports gdwarf2.
4872 * configure: Regenerate.
4874 2017-09-18 Richard Biener <rguenther@suse.de>
4876 PR tree-optimization/82220
4877 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Exclude
4878 epilogue niters from the min_profitable_iters compute.
4880 2017-09-18 Jakub Jelinek <jakub@redhat.com>
4883 * config/i386/i386.c (ix86_init_large_pic_reg): Revert 2017-09-01
4884 changes. Turn CODE_LABEL into NOTE_INSN_DELETED_LABEL immediately.
4885 (ix86_init_pic_reg): Revert 2017-09-01 changes.
4887 2017-09-18 Eric Botcazou <ebotcazou@adacore.com>
4890 * dwarf2cfi.c (add_cfis_to_fde): Do not generate DW_CFA_set_loc after
4891 switching to a new text section.
4893 2017-09-18 Richard Biener <rguenther@suse.de>
4895 * graphite-scop-detection.c (scop_detection::stmt_has_simple_data_ref):
4897 (build_alias_set): Reject aliases with no access function.
4899 2017-09-18 Richard Biener <rguenther@suse.de>
4901 PR tree-optimization/79622
4902 * graphite-scop-detection.c (build_cross_bb_scalars_def): Properly
4904 (build_cross_bb_scalars_use): Likewise.
4906 2017-09-18 Pierre-Marie de Rodat <derodat@adacore.com>
4908 * cgraph.h (cgraph_thunk_info): Fix a typo in a comment.
4910 2017-09-18 Alan Modra <amodra@gmail.com>
4913 * gcc/config/rs6000/rs6000.c (rs6000_return_addr): Use
4914 stack_pointer_rtx for count 0. Update comments. Break up
4915 large rtl expression.
4917 2017-09-17 Daniel Santos <daniel.santos@pobox.com>
4919 * config/i386/i386.c (xlogue_layout::STUB_NAME_MAX_LEN):
4920 Increase to 20 bytes.
4921 (xlogue_layout::s_stub_names): Add an additional size-2 diminsion.
4922 (xlogue_layout::get_stub_name): Modify to select the appropairate sse
4923 or avx version of the stub.
4925 2017-09-17 H.J. Lu <hongjiu.lu@intel.com>
4928 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Properly
4929 compute the minimum stack alignment. Also update preferred stack
4930 boundary for leaf functions.
4932 2017-09-16 Richard Sandiford <richard.sandiford@linaro.org>
4934 PR tree-optimization/82228
4935 * tree-vect-loop.c (vectorizable_live_operation): Move initialization
4938 2017-09-16 Chung-Ju Wu <jasonwucj@gmail.com>
4940 * common/config/nds32/nds32-common.c
4941 (nds32_option_optimization_table): Refine formatting.
4942 (nds32_option_optimization_table): Use -fsched-pressure and
4943 -fomit-frame-pointer for specific optimization level.
4945 2017-09-16 Chung-Ju Wu <jasonwucj@gmail.com>
4947 * config/nds32/nds32.c: Refine formatting and comments.
4948 * config/nds32/nds32.h: Likewise.
4949 * config/nds32/nds32.md: Likewise.
4950 * config/nds32/nds32-cost.c: Likewise.
4951 * config/nds32/nds32-isr.c: Likewise.
4952 * config/nds32/nds32-md-auxiliary.c: Likewise.
4953 * config/nds32/nds32-multiple.md: Likewise.
4954 * config/nds32/nds32-predicates.c: Likewise.
4956 2017-09-15 Andrew Sutton <andrew.n.sutton@gmail.com>
4957 Jakub Jelinek <jakub@redhat.com>
4959 Add support for -std=c++2a.
4960 * doc/cpp.texi (__cplusplus): Document value for -std=c++2a
4962 * doc/invoke.texi: Document -std=c++2a and -std=gnu++2a.
4964 2017-09-15 Steve Ellcey <sellcey@cavium.com>
4967 * doc/extend.texi (Common Function Attributes): Add
4968 references to ARM, AArch64, and S/390 specific attributes.
4969 (Function Specific Option Pragmas): Add AArch64 and S/390
4970 to list of back ends that support the target pragma.
4972 2017-09-15 Nathan Sidwell <nathan@acm.org>
4974 * doc/standards.texi: Fix C++17 description. Update URLs for
4977 2017-09-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
4979 * common.opt (Wcast-align=strict): New warning option.
4980 * doc/invoke.texi: Document -Wcast-align=strict.
4982 2017-09-15 Pierre-Marie de Rodat <derodat@adacore.com>
4984 * cgraph.h (cgraph_thunk_info): Add comments.
4985 * cgraph.c (cgraph_node::create_thunk): Adjust comment, make
4986 assert for VIRTUAL_* arguments stricter.
4988 2017-09-15 Jackson Woodruff <jackson.woodruff@arm.com>
4990 PR tree-optimization/71026
4991 * match.pd: Move RDIV patterns from fold-const.c
4992 * fold-const.c (distribute_real_division): Removed.
4993 (fold_binary_loc): Remove calls to distribute_real_divison.
4995 2017-09-15 Jakub Jelinek <jakub@redhat.com>
4997 * doc/invoke.texi: Document -std=c++17 and -std=gnu++17 and document
4998 c++1z and gnu++1z as deprecated. Change other references to
4999 -std=c++1z to -std=c++17 and -std=gnu++1z to -std=gnu++17.
5000 Change -Wc++1z-compat to -Wc++17-compat.
5001 * doc/cpp.texi: Document -std=c++17 defines __cplusplus 201703L.
5002 * dwarf2out.c (highest_c_language): Handle C++17.
5003 (gen_compile_unit_die): Likewise.
5005 2017-09-15 Jakub Jelinek <jakub@redhat.com>
5007 PR rtl-optimization/82192
5008 * combine.c (make_extraction): Don't look through non-paradoxical
5009 SUBREGs or TRUNCATE if pos + len is or might be bigger than
5012 2017-09-15 Richard Sandiford <richard.sandiford@linaro.org>
5013 Alan Hayward <alan.hayward@arm.com>
5014 David Sherwood <david.sherwood@arm.com>
5016 * target.def (function_arg_offset): New hook.
5017 * targhooks.h (default_function_arg_offset): Declare.
5018 * targhooks.c (default_function_arg_offset): New function.
5019 * function.c (locate_and_pad_parm): Use
5020 targetm.calls.function_arg_offset instead of FUNCTION_ARG_OFFSET.
5021 * doc/tm.texi.in (FUNCTION_ARG_OFFSET): Replace with...
5022 (TARGET_FUNCTION_ARG_OFFSET): ...this.
5023 * doc/tm.texi: Regenerate.
5024 * config/spu/spu.h (FUNCTION_ARG_OFFSET): Delete.
5025 * config/spu/spu.c (spu_function_arg_offset): New function.
5026 (TARGET_FUNCTION_ARG_OFFSET): Redefine.
5027 * system.h (FUNCTION_ARG_OFFSET): Poison.
5029 2017-09-15 Richard Sandiford <richard.sandiford@linaro.org>
5030 Alan Hayard <alan.hayward@arm.com>
5031 David Sherwood <david.sherwood@arm.com>
5033 * target.def (truly_noop_truncation): New hook.
5034 (mode_rep_extended): Refer to TARGET_TRULY_NOOP_TRUNCATION rather
5035 than TRULY_NOOP_TRUNCATION.
5036 * hooks.h (hook_bool_uint_uint_true): Declare.
5037 * hooks.c (hook_bool_uint_uint_true): New function.
5038 * doc/tm.texi.in (TRULY_NOOP_TRUNCATION): Replace with...
5039 (TARGET_TRULY_NOOP_TRUNCATION): ...this.
5040 * doc/tm.texi: Regenerate.
5041 * combine.c (make_extraction): Refer to TARGET_TRULY_NOOP_TRUNCATION
5042 rather than TRULY_NOOP_TRUNCATION in comments.
5043 (simplify_comparison): Likewise.
5044 (record_truncated_value): Likewise.
5045 * expmed.c (extract_bit_field_1): Likewise.
5046 (extract_split_bit_field): Likewise.
5047 * convert.c (convert_to_integer_1): Use targetm.truly_noop_truncation
5048 instead of TRULY_NOOP_TRUNCATION.
5049 * function.c (assign_parm_setup_block): Likewise.
5050 * machmode.h (TRULY_NOOP_TRUNCATION_MODES_P): Likewise.
5051 * rtlhooks.c: Include target.h.
5052 * config/aarch64/aarch64.h (TRULY_NOOP_TRUNCATION): Delete.
5053 * config/alpha/alpha.h (TRULY_NOOP_TRUNCATION): Delete.
5054 * config/arc/arc.h (TRULY_NOOP_TRUNCATION): Delete.
5055 * config/arm/arm.h (TRULY_NOOP_TRUNCATION): Delete.
5056 * config/avr/avr.h (TRULY_NOOP_TRUNCATION): Delete.
5057 * config/bfin/bfin.h (TRULY_NOOP_TRUNCATION): Delete.
5058 * config/c6x/c6x.h (TRULY_NOOP_TRUNCATION): Delete.
5059 * config/cr16/cr16.h (TRULY_NOOP_TRUNCATION): Delete.
5060 * config/cris/cris.h (TRULY_NOOP_TRUNCATION): Delete.
5061 * config/epiphany/epiphany.h (TRULY_NOOP_TRUNCATION): Delete.
5062 * config/fr30/fr30.h (TRULY_NOOP_TRUNCATION): Delete.
5063 * config/frv/frv.h (TRULY_NOOP_TRUNCATION): Delete.
5064 * config/ft32/ft32.h (TRULY_NOOP_TRUNCATION): Delete.
5065 * config/h8300/h8300.h (TRULY_NOOP_TRUNCATION): Delete.
5066 * config/i386/i386.h (TRULY_NOOP_TRUNCATION): Delete.
5067 * config/ia64/ia64.h (TRULY_NOOP_TRUNCATION): Delete.
5068 * config/iq2000/iq2000.h (TRULY_NOOP_TRUNCATION): Delete.
5069 * config/lm32/lm32.h (TRULY_NOOP_TRUNCATION): Delete.
5070 * config/m32c/m32c.h (TRULY_NOOP_TRUNCATION): Delete.
5071 * config/m32r/m32r.h (TRULY_NOOP_TRUNCATION): Delete.
5072 * config/m68k/m68k.h (TRULY_NOOP_TRUNCATION): Delete.
5073 * config/mcore/mcore.h (TRULY_NOOP_TRUNCATION): Delete.
5074 * config/microblaze/microblaze.h (TRULY_NOOP_TRUNCATION): Delete.
5075 * config/mips/mips.h (TRULY_NOOP_TRUNCATION): Delete.
5076 * config/mips/mips.c (mips_truly_noop_truncation): New function.
5077 (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
5078 * config/mips/mips.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
5079 rather than TRULY_NOOP_TRUNCATION in comments.
5080 * config/mmix/mmix.h (TRULY_NOOP_TRUNCATION): Delete.
5081 * config/mn10300/mn10300.h (TRULY_NOOP_TRUNCATION): Delete.
5082 * config/moxie/moxie.h (TRULY_NOOP_TRUNCATION): Delete.
5083 * config/msp430/msp430.h (TRULY_NOOP_TRUNCATION): Delete.
5084 * config/nds32/nds32.h (TRULY_NOOP_TRUNCATION): Delete.
5085 * config/nios2/nios2.h (TRULY_NOOP_TRUNCATION): Delete.
5086 * config/nvptx/nvptx.h (TRULY_NOOP_TRUNCATION): Delete.
5087 * config/pa/pa.h (TRULY_NOOP_TRUNCATION): Delete.
5088 * config/pdp11/pdp11.h (TRULY_NOOP_TRUNCATION): Delete.
5089 * config/powerpcspe/powerpcspe.h (TRULY_NOOP_TRUNCATION): Delete.
5090 * config/riscv/riscv.h (TRULY_NOOP_TRUNCATION): Delete.
5091 * config/riscv/riscv.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
5092 rather than TRULY_NOOP_TRUNCATION in comments.
5093 * config/rl78/rl78.h (TRULY_NOOP_TRUNCATION): Delete.
5094 * config/rs6000/rs6000.h (TRULY_NOOP_TRUNCATION): Delete.
5095 * config/rx/rx.h (TRULY_NOOP_TRUNCATION): Delete.
5096 * config/s390/s390.h (TRULY_NOOP_TRUNCATION): Delete.
5097 * config/sh/sh.h (MAYBE_BASE_REGISTER_RTX_P): Remove
5098 TRULY_NOOP_TRUNCATION condition.
5099 (MAYBE_INDEX_REGISTER_RTX_P): Likewise.
5100 (TRULY_NOOP_TRUNCATION): Delete.
5101 * config/sparc/sparc.h (TRULY_NOOP_TRUNCATION): Delete.
5102 * config/spu/spu.h (TRULY_NOOP_TRUNCATION): Delete.
5103 * config/spu/spu.c (spu_truly_noop_truncation): New function.
5104 (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
5105 * config/stormy16/stormy16.h (TRULY_NOOP_TRUNCATION): Delete.
5106 * config/tilegx/tilegx.h (TRULY_NOOP_TRUNCATION): Delete.
5107 * config/tilegx/tilegx.c (tilegx_truly_noop_truncation): New fuction.
5108 (TARGET_TRULY_NOOP_TRUNCATION): Redefine.
5109 * config/tilegx/tilegx.md: Refer to TARGET_TRULY_NOOP_TRUNCATION
5110 rather than TRULY_NOOP_TRUNCATION in comments.
5111 * config/tilepro/tilepro.h (TRULY_NOOP_TRUNCATION): Delete.
5112 * config/v850/v850.h (TRULY_NOOP_TRUNCATION): Delete.
5113 * config/vax/vax.h (TRULY_NOOP_TRUNCATION): Delete.
5114 * config/visium/visium.h (TRULY_NOOP_TRUNCATION): Delete.
5115 * config/xtensa/xtensa.h (TRULY_NOOP_TRUNCATION): Delete.
5116 * system.h (TRULY_NOOP_TRUNCATION): Poison.
5118 2017-09-15 Christophe Lyon <christophe.lyon@linaro.org>
5121 * config/arm/arm.md (*cmp_and): Add enabled_for_depr_it attribute.
5122 (*cmp_ior): Likewise.
5123 (*ior_scc_scc): Add alternative for enabled_for_depr_it attribute.
5124 (*ior_scc_scc_cmp): Likewise.
5125 (*and_scc_scc): Likewise.
5126 (*and_scc_scc_cmp): Likewise.
5128 2017-09-15 Richard Sandiford <richard.sandiford@linaro.org>
5129 Alan Hayard <alan.hayward@arm.com>
5130 David Sherwood <david.sherwood@arm.com>
5132 * target.def (can_change_mode_class): New hook.
5133 (mode_rep_extended): Refer to it instead of CANNOT_CHANGE_MODE_CLASS.
5134 (hard_regno_nregs): Likewise.
5135 * hooks.h (hook_bool_mode_mode_reg_class_t_true): Declare.
5136 * hooks.c (hook_bool_mode_mode_reg_class_t_true): New function.
5137 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Replace with...
5138 (TARGET_CAN_CHANGE_MODE_CLASS): ...this.
5139 (LOAD_EXTEND_OP): Update accordingly.
5140 * doc/tm.texi: Regenerate.
5141 * doc/rtl.texi: Refer to TARGET_CAN_CHANGE_MODE_CLASS instead of
5142 CANNOT_CHANGE_MODE_CLASS.
5143 * hard-reg-set.h (REG_CANNOT_CHANGE_MODE_P): Replace with...
5144 (REG_CAN_CHANGE_MODE_P): ...this new macro.
5145 * combine.c (simplify_set): Update accordingly.
5146 * emit-rtl.c (validate_subreg): Likewise.
5147 * recog.c (general_operand): Likewise.
5148 * regcprop.c (mode_change_ok): Likewise.
5149 * reload1.c (choose_reload_regs): Likewise.
5150 (inherit_piecemeal_p): Likewise.
5151 * rtlanal.c (simplify_subreg_regno): Likewise.
5152 * postreload.c (reload_cse_simplify_set): Use REG_CAN_CHANGE_MODE_P
5153 instead of CANNOT_CHANGE_MODE_CLASS.
5154 (reload_cse_simplify_operands): Likewise.
5155 * reload.c (push_reload): Use targetm.can_change_mode_class
5156 instead of CANNOT_CHANGE_MODE_CLASS.
5157 (push_reload): Likewise. Also use REG_CAN_CHANGE_MODE_P instead of
5158 REG_CANNOT_CHANGE_MODE_P.
5159 * config/alpha/alpha.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5160 * config/alpha/alpha.c (alpha_can_change_mode_class): New function.
5161 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5162 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5163 * config/arm/arm.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5164 (arm_can_change_mode_class): New function.
5165 * config/arm/neon.md: Refer to TARGET_CAN_CHANGE_MODE_CLASS rather
5166 than CANNOT_CHANGE_MODE_CLASS in comments.
5167 * config/i386/i386.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5168 * config/i386/i386-protos.h (ix86_cannot_change_mode_class): Delete.
5169 * config/i386/i386.c (ix86_cannot_change_mode_class): Replace with...
5170 (ix86_can_change_mode_class): ...this new function, inverting the
5171 sense of the return value.
5172 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5173 * config/ia64/ia64.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5174 * config/ia64/ia64.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5175 (ia64_can_change_mode_class): New function.
5176 * config/m32c/m32c.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5177 * config/m32c/m32c-protos.h (m32c_cannot_change_mode_class): Delete.
5178 * config/m32c/m32c.c (m32c_cannot_change_mode_class): Replace with...
5179 (m32c_can_change_mode_class): ...this new function, inverting the
5180 sense of the return value.
5181 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5182 * config/mips/mips.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5183 * config/mips/mips-protos.h (mips_cannot_change_mode_class): Delete.
5184 * config/mips/mips.c (mips_cannot_change_mode_class): Replace with...
5185 (mips_can_change_mode_class): ...this new function, inverting the
5186 sense of the return value.
5187 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5188 * config/msp430/msp430.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5189 * config/msp430/msp430.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5190 (msp430_can_change_mode_class): New function.
5191 * config/nvptx/nvptx.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5192 * config/nvptx/nvptx.c (nvptx_can_change_mode_class): New function.
5193 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5194 * config/pa/pa32-regs.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5195 * config/pa/pa64-regs.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5196 * config/pa/pa-protos.h (pa_cannot_change_mode_class): Delete.
5197 * config/pa/pa.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5198 (pa_cannot_change_mode_class): Replace with...
5199 (pa_can_change_mode_class): ...this new function, inverting the
5200 sense of the return value.
5201 (pa_modes_tieable_p): Refer to TARGET_CAN_CHANGE_MODE_CLASS rather
5202 than CANNOT_CHANGE_MODE_CLASS in comments.
5203 * config/pdp11/pdp11.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5204 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class): Delete.
5205 * config/pdp11/pdp11.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5206 (pdp11_cannot_change_mode_class): Replace with...
5207 (pdp11_can_change_mode_class): ...this new function, inverting the
5208 sense of the return value.
5209 * config/powerpcspe/powerpcspe.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5210 * config/powerpcspe/powerpcspe-protos.h
5211 (rs6000_cannot_change_mode_class_ptr): Delete.
5212 * config/powerpcspe/powerpcspe.c
5213 (rs6000_cannot_change_mode_class_ptr): Delete.
5214 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5215 (rs6000_option_override_internal): Assign to
5216 targetm.can_change_mode_class instead of
5217 rs6000_cannot_change_mode_class_ptr.
5218 (rs6000_cannot_change_mode_class): Replace with...
5219 (rs6000_can_change_mode_class): ...this new function, inverting the
5220 sense of the return value.
5221 (rs6000_debug_cannot_change_mode_class): Replace with...
5222 (rs6000_debug_can_change_mode_class): ...this new function.
5223 * config/riscv/riscv.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5224 * config/riscv/riscv.c (riscv_can_change_mode_class): New function.
5225 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5226 * config/rs6000/rs6000.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5227 * config/rs6000/rs6000-protos.h (rs6000_cannot_change_mode_class_ptr):
5229 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class_ptr): Delete.
5230 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5231 (rs6000_option_override_internal): Assign to
5232 targetm.can_change_mode_class instead of
5233 rs6000_cannot_change_mode_class_ptr.
5234 (rs6000_cannot_change_mode_class): Replace with...
5235 (rs6000_can_change_mode_class): ...this new function, inverting the
5236 sense of the return value.
5237 (rs6000_debug_cannot_change_mode_class): Replace with...
5238 (rs6000_debug_can_change_mode_class): ...this new function.
5239 * config/s390/s390.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5240 * config/s390/s390-protos.h (s390_cannot_change_mode_class): Delete.
5241 * config/s390/s390.c (s390_cannot_change_mode_class): Replace with...
5242 (s390_can_change_mode_class): ...this new function, inverting the
5243 sense of the return value.
5244 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5245 * config/sh/sh.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5246 * config/sh/sh-protos.h (sh_cannot_change_mode_class): Delete.
5247 * config/sh/sh.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5248 (sh_cannot_change_mode_class): Replace with...
5249 (sh_can_change_mode_class): ...this new function, inverting the
5250 sense of the return value.
5251 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5252 * config/sparc/sparc.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5253 (sparc_can_change_mode_class): New function.
5254 * config/spu/spu.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5255 * config/spu/spu.c (spu_can_change_mode_class): New function.
5256 (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5257 * config/visium/visium.h (CANNOT_CHANGE_MODE_CLASS): Delete.
5258 * config/visium/visium.c (TARGET_CAN_CHANGE_MODE_CLASS): Redefine.
5259 (visium_can_change_mode_class): New function.
5260 * system.h (CANNOT_CHANGE_MODE_CLASS): Poison.
5262 2017-09-15 Richard Biener <rguenther@suse.de>
5264 PR tree-optimization/82217
5265 * tree-ssa-sccvn.c (visit_phi): Properly handle all VN_TOP
5266 but not undefined case.
5268 2017-09-15 Jakub Jelinek <jakub@redhat.com>
5271 * postreload.c (reload_cse_simplify_operands): Skip
5272 NOTE_INSN_DELETED_LABEL similarly to skipping CODE_LABEL.
5274 2017-09-15 Richard Biener <rguenther@suse.de>
5276 PR tree-optimization/68823
5277 * graphite-scop-detection.c (build_alias_set): If we have a
5278 possible dependence check whether we can handle them by just
5279 looking at the DRs DR_ACCESS_FNs.
5280 (build_scops): If build_alias_set fails, fail the SCOP.
5282 2017-09-14 Michael Meissner <meissner@linux.vnet.ibm.com>
5284 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_1_HW): New macros
5285 to support float128 built-in functions that require the ISA 3.0
5287 (BU_FLOAT128_3_HW): Likewise.
5288 (SQRTF128): Add support for the IEEE 128-bit square root and fma
5290 (FMAF128): Likewise.
5292 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
5293 support for built-in functions that need the ISA 3.0 IEEE 128-bit
5294 floating point instructions.
5295 (rs6000_invalid_builtin): Likewise.
5296 (rs6000_builtin_mask_names): Likewise.
5297 * config/rs6000/rs6000.h (MASK_FLOAT128_HW): Likewise.
5298 (RS6000_BTM_FLOAT128_HW): Likewise.
5299 (RS6000_BTM_COMMON): Likewise.
5300 * config/rs6000/rs6000.md (fma<mode>4_hw): Add a generator
5302 * doc/extend.texi (RS/6000 built-in functions): Document the
5303 IEEE 128-bit floating point square root and fused multiply-add
5306 2017-09-14 Pat Haugen <pthaugen@us.ibm.com>
5308 * config/rs6000/rs6000.c (rs6000_set_up_by_prologue): Make sure the TOC
5309 reg (r2) isn't in the set of registers defined in the prologue.
5311 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5312 Alan Hayward <alan.hayward@arm.com>
5313 David Sherwood <david.sherwood@arm.com>
5315 * tree-vectorizer.h (_loop_vec_info): Add max_vectorization_factor.
5316 (LOOP_VINFO_MAX_VECT_FACTOR): New macro.
5317 (LOOP_VINFO_ORIG_VECT_FACTOR): Replace with...
5318 (LOOP_VINFO_ORIG_MAX_VECT_FACTOR): ...this new macro.
5319 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Update
5321 * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
5322 max_vectorization_factor.
5323 (vect_analyze_loop_2): Set LOOP_VINFO_MAX_VECT_FACTOR.
5325 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5326 Alan Hayward <alan.hayward@arm.com>
5327 David Sherwood <david.sherwood@arm.com>
5329 * tree-vectorizer.h (vect_min_worthwhile_factor): Delete.
5330 (vect_worthwhile_without_simd_p): Declare.
5331 * tree-vect-loop.c (vect_worthwhile_without_simd_p): New function.
5332 (vectorizable_reduction): Use it.
5333 * tree-vect-stmts.c (vectorizable_shift): Likewise.
5334 (vectorizable_operation): Likewise.
5336 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5337 Alan Hayward <alan.hayward@arm.com>
5338 David Sherwood <david.sherwood@arm.com>
5340 * tree-vectorizer.h (vect_get_num_copies): New function.
5341 * tree-vect-data-refs.c (vect_get_data_access_cost): Use it.
5342 * tree-vect-loop.c (vectorizable_reduction): Likewise.
5343 (vectorizable_induction): Likewise.
5344 (vectorizable_live_operation): Likewise.
5345 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
5346 (vectorizable_bswap): Likewise.
5347 (vectorizable_call): Likewise.
5348 (vectorizable_conversion): Likewise.
5349 (vectorizable_assignment): Likewise.
5350 (vectorizable_shift): Likewise.
5351 (vectorizable_operation): Likewise.
5352 (vectorizable_store): Likewise.
5353 (vectorizable_load): Likewise.
5354 (vectorizable_condition): Likewise.
5355 (vectorizable_comparison): Likewise.
5356 (vect_analyze_stmt): Pass the slp node to vectorizable_live_operation.
5358 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5359 Alan Hayward <alan.hayward@arm.com>
5360 David Sherwood <david.sherwood@arm.com>
5362 * tree-vect-loop.c (vectorizable_induction): Use gimple_build instead
5363 of vect_init_vector.
5365 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5366 Alan Hayward <alan.hayward@arm.com>
5367 David Sherwood <david.sherwood@arm.com>
5369 * gimple-fold.h (gimple_build_vector_from_val): Declare, and provide
5370 an inline wrapper that provides a location.
5371 (gimple_build_vector): Likewise.
5372 * gimple-fold.c (gimple_build_vector_from_val): New function.
5373 (gimple_build_vector): Likewise.
5374 * tree-vect-loop.c (get_initial_def_for_reduction): Use the new
5375 functions to build the initial value. Always return a gimple value.
5376 (get_initial_defs_for_reduction): Likewise. Only compute
5378 (vect_create_epilog_for_reduction): Don't call force_gimple_operand or
5379 vect_init_vector on the results from get_initial_def(s)_for_reduction.
5380 (vectorizable_induction): Use gimple_build_vector rather than
5383 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5384 Alan Hayward <alan.hayward@arm.com>
5385 David Sherwood <david.sherwood@arm.com>
5387 * target.h (vec_perm_indices): New typedef.
5388 (auto_vec_perm_indices): Likewise.
5389 * optabs-query.h: Include target.h
5390 (can_vec_perm_p): Take a vec_perm_indices *.
5391 * optabs-query.c (can_vec_perm_p): Likewise.
5392 (can_mult_highpart_p): Update accordingly. Use auto_vec_perm_indices.
5393 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
5394 * tree-vect-generic.c (lower_vec_perm): Likewise.
5395 * tree-vect-data-refs.c (vect_grouped_store_supported): Likewise.
5396 (vect_grouped_load_supported): Likewise.
5397 (vect_shift_permute_load_chain): Likewise.
5398 (vect_permute_store_chain): Use auto_vec_perm_indices.
5399 (vect_permute_load_chain): Likewise.
5400 * fold-const.c (fold_vec_perm): Take vec_perm_indices.
5401 (fold_ternary_loc): Update accordingly. Use auto_vec_perm_indices.
5402 Update uses of can_vec_perm_p.
5403 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Replace the
5404 mode with a number of elements. Take a vec_perm_indices *.
5405 (vect_create_epilog_for_reduction): Update accordingly.
5406 Use auto_vec_perm_indices.
5407 (have_whole_vector_shift): Likewise. Update call to can_vec_perm_p.
5408 * tree-vect-slp.c (vect_build_slp_tree_1): Likewise.
5409 (vect_transform_slp_perm_load): Likewise.
5410 (vect_schedule_slp_instance): Use auto_vec_perm_indices.
5411 * tree-vectorizer.h (vect_gen_perm_mask_any): Take a vec_perm_indices.
5412 (vect_gen_perm_mask_checked): Likewise.
5413 * tree-vect-stmts.c (vect_gen_perm_mask_any): Take a vec_perm_indices.
5414 (vect_gen_perm_mask_checked): Likewise.
5415 (vectorizable_mask_load_store): Use auto_vec_perm_indices.
5416 (vectorizable_store): Likewise.
5417 (vectorizable_load): Likewise.
5418 (perm_mask_for_reverse): Likewise. Update call to can_vec_perm_p.
5419 (vectorizable_bswap): Likewise.
5421 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5422 Alan Hayward <alan.hayward@arm.com>
5423 David Sherwood <david.sherwood@arm.com>
5425 * tree.h (build_vector): Take a vec<tree> instead of a tree *.
5426 * tree.c (build_vector): Likewise.
5427 (build_vector_from_ctor): Update accordingly.
5428 (build_vector_from_val): Likewise.
5429 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5430 * tree-ssa-forwprop.c (simplify_vector_constructor): Likewise.
5431 * tree-vect-generic.c (add_rshift): Likewise.
5432 (expand_vector_divmod): Likewise.
5433 (optimize_vector_constructor): Likewise.
5434 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
5435 (vect_transform_slp_perm_load): Likewise.
5436 (vect_schedule_slp_instance): Likewise.
5437 * tree-vect-stmts.c (vectorizable_bswap): Likewise.
5438 (vectorizable_call): Likewise.
5439 (vect_gen_perm_mask_any): Likewise. Add elements in order.
5440 * expmed.c (make_tree): Likewise.
5441 * fold-const.c (fold_negate_expr_1): Use auto_vec<tree> when building
5442 a vector passed to build_vector.
5443 (fold_convert_const): Likewise.
5444 (exact_inverse): Likewise.
5445 (fold_ternary_loc): Likewise.
5446 (fold_relational_const): Likewise.
5447 (const_binop): Likewise. Use VECTOR_CST_ELT directly when operating
5448 on VECTOR_CSTs, rather than going through vec_cst_ctor_to_array.
5449 (const_unop): Likewise. Store the reduction accumulator in a
5450 variable rather than an array.
5451 (vec_cst_ctor_to_array): Take the number of elements as a parameter.
5452 (fold_vec_perm): Update calls accordingly. Use auto_vec<tree> for
5453 the new vector, rather than constructing it after the input arrays.
5454 (native_interpret_vector): Use auto_vec<tree> when building
5455 a vector passed to build_vector. Add elements in order.
5456 * tree-vect-loop.c (get_initial_defs_for_reduction): Use
5457 auto_vec<tree> when building a vector passed to build_vector.
5458 (vect_create_epilog_for_reduction): Likewise.
5459 (vectorizable_induction): Likewise.
5460 (get_initial_def_for_reduction): Likewise. Fix indentation of
5462 * config/sparc/sparc.c (sparc_handle_vis_mul8x16): Change n_elts
5464 (sparc_fold_builtin): Use auto_vec<tree> when building a vector
5465 passed to build_vector.
5467 2017-09-14 Richard Sandiford <richard.sandiford@linaro.org>
5468 Alan Hayward <alan.hayward@arm.com>
5469 David Sherwood <david.sherwood@arm.com>
5471 * tree-core.h (tree_base::u): Add an "nelts" field.
5472 (tree_vector): Use VECTOR_CST_NELTS as the length.
5473 * tree.c (tree_size): Likewise.
5474 (make_vector): Initialize VECTOR_CST_NELTS.
5475 * tree.h (VECTOR_CST_NELTS): Use the u.nelts field.
5476 * cfgexpand.c (expand_debug_expr): Use VECTOR_CST_NELTS instead of
5477 TYPE_VECTOR_SUBPARTS.
5478 * expr.c (const_vector_mask_from_tree): Consistently use "units"
5479 as the number of units, setting it from VECTOR_CST_NELTS.
5480 (const_vector_from_tree): Likewise.
5481 * fold-const.c (negate_expr_p): Use VECTOR_CST_NELTS instead of
5482 TYPE_VECTOR_SUBPARTS for the number of elements in a VECTOR_CST.
5483 (fold_negate_expr_1): Likewise.
5484 (fold_convert_const): Likewise.
5485 (const_binop): Likewise. Differentiate the number of output and
5487 (const_unop): Likewise.
5488 (fold_ternary_loc): Use VECTOR_CST_NELTS for the number of elements
5489 in a VECTOR_CST, asserting that it is the same as TYPE_VECTOR_SUBPARTS
5490 in cases that did the opposite.
5492 2017-09-14 Richard Biener <rguenther@suse.de>
5494 * tree-ssa-sccvn.c (visit_phi): Merge undefined values similar
5497 2017-09-14 Eric Botcazou <ebotcazou@adacore.com>
5499 * dwarf2out.c (dwarf2out_source_line): Remove superfluous test.
5501 2017-09-14 Jakub Jelinek <jakub@redhat.com>
5504 * cfgbuild.c (find_bb_boundaries): Ignore debug insns in decisions
5505 if and where to split a bb, except for splitting before debug insn
5506 sequences followed by non-label real insn. Delete debug insns
5507 in between basic blocks.
5509 * combine.c (make_compound_operation_int): Formatting fixes.
5511 * config/alpha/elf.h (LINK_EH_SPEC): Add -static-pie support.
5512 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5513 * config/netbsd.h (LINK_EH_SPEC): Likewise.
5514 * config/sol2.h (LINK_EH_SPEC): Likewise.
5515 * config/arm/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5516 * config/s390/linux.h (LINK_SPEC): Likewise.
5517 * config/freebsd.h (LINK_EH_SPEC): Likewise.
5518 * config/openbsd.h (LINK_EH_SPEC): Likewise.
5519 * config/lm32/uclinux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5520 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Likewise.
5521 * config/powerpcspe/sysv4.h (LINK_EH_SPEC): Likewise.
5522 * config/bfin/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5523 * config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Fix a typo.
5524 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Formatting fix.
5526 2017-09-13 Jakub Jelinek <jakub@redhat.com>
5528 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Add -static-pie
5530 (ENDFILE_LINUX_SPEC): Likewise.
5531 (LINK_EH_SPEC): Likewise.
5532 * config/rs6000/linux64.h (LINK_SHLIB_SPEC): Likewise.
5533 (LINK_OS_LINUX_SPEC32): Likewise.
5534 (LINK_OS_LINUX_SPEC64): Likewise.
5535 * config/rs6000/linux.h (LINK_SHLIB_SPEC): Likewise.
5536 (LINK_OS_LINUX_SPEC): Likewise.
5538 2017-09-13 Martin Liska <mliska@suse.cz>
5541 * stmt.c (expand_sjlj_dispatch_table): Use CASE_LOW when
5542 CASE_HIGH is NULL_TREE.
5544 2017-09-13 Richard Sandiford <richard.sandiford@linaro.org>
5545 Alan Hayward <alan.hayward@arm.com>
5546 David Sherwood <david.sherwood@arm.com>
5548 * target.def (secondary_memory_needed): New hook.
5549 (secondary_reload): Refer to TARGET_SECONDARY_MEMORY_NEEDED
5550 instead of SECONDARY_MEMORY_NEEDED.
5551 (secondary_memory_needed_mode): Likewise.
5552 * hooks.h (hook_bool_mode_reg_class_t_reg_class_t_false): Declare.
5553 * hooks.c (hook_bool_mode_reg_class_t_reg_class_t_false): New function.
5554 * doc/tm.texi.in (SECONDARY_MEMORY_NEEDED): Replace with...
5555 (TARGET_SECONDARY_MEMORY_NEEDED): ...this.
5556 (SECONDARY_MEMORY_NEEDED_RTX): Update reference accordingly.
5557 * doc/tm.texi: Regenerate.
5558 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Delete.
5559 * config/alpha/alpha.c (alpha_secondary_memory_needed): New function.
5560 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5561 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED): Delete.
5562 * config/i386/i386-protos.h (ix86_secondary_memory_needed): Delete.
5563 * config/i386/i386.c (inline_secondary_memory_needed): Put the
5564 mode argument first and change the reg_class arguments to reg_class_t.
5565 (ix86_secondary_memory_needed): Likewise. Remove the strict parameter.
5566 Make static. Update the call to inline_secondary_memory_needed.
5567 (ix86_register_move_cost): Update the call to
5568 inline_secondary_memory_needed.
5569 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5570 * config/ia64/ia64.h (SECONDARY_MEMORY_NEEDED): Delete commented-out
5572 * config/ia64/ia64.c (spill_xfmode_rfmode_operand): Refer to
5573 TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
5575 * config/mips/mips.h (SECONDARY_MEMORY_NEEDED): Delete.
5576 * config/mips/mips-protos.h (mips_secondary_memory_needed): Delete.
5577 * config/mips/mips.c (mips_secondary_memory_needed): Make static
5578 and match hook interface. Add comment from mips.h.
5579 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5580 * config/mmix/mmix.md (truncdfsf2): Refer to
5581 TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
5583 * config/pa/pa-64.h (SECONDARY_MEMORY_NEEDED): Rename to...
5584 (PA_SECONDARY_MEMORY_NEEDED): ...this, and put the mode argument first.
5585 * config/pa/pa.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5586 (pa_secondary_memory_needed): New function.
5587 * config/pdp11/pdp11.h (SECONDARY_MEMORY_NEEDED): Delete.
5588 * config/pdp11/pdp11-protos.h (pdp11_secondary_memory_needed): Delete.
5589 * config/pdp11/pdp11.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5590 (pdp11_secondary_memory_needed): Make static and match hook interface.
5591 * config/powerpcspe/powerpcspe.h (SECONDARY_MEMORY_NEEDED): Delete.
5592 * config/powerpcspe/powerpcspe-protos.h
5593 (rs6000_secondary_memory_needed_ptr): Delete.
5594 * config/powerpcspe/powerpcspe.c (rs6000_secondary_memory_needed_ptr):
5596 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5597 (rs6000_option_override_internal): Assign to
5598 targetm.secondary_memory_needed rather than
5599 rs6000_secondary_memory_needed_ptr.
5600 (rs6000_secondary_memory_needed): Match hook interface.
5601 (rs6000_debug_secondary_memory_needed): Likewise.
5602 * config/riscv/riscv.h (SECONDARY_MEMORY_NEEDED): Delete.
5603 * config/riscv/riscv.c (riscv_secondary_memory_needed): New function.
5604 (riscv_register_move_cost): Use it instead of SECONDARY_MEMORY_NEEDED.
5605 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5606 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED): Delete.
5607 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_ptr):
5609 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_ptr): Delete.
5610 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5611 (rs6000_option_override_internal): Assign to
5612 targetm.secondary_memory_needed rather than
5613 rs6000_secondary_memory_needed_ptr.
5614 (rs6000_secondary_memory_needed): Match hook interface.
5615 (rs6000_debug_secondary_memory_needed): Likewise.
5616 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED): Delete.
5617 * config/s390/s390.c (s390_secondary_memory_needed): New function.
5618 (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5619 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Delete.
5620 * config/sparc/sparc.c (TARGET_SECONDARY_MEMORY_NEEDED): Redefine.
5621 (sparc_secondary_memory_needed): New function.
5622 * lra-constraints.c (check_and_process_move): Refer to
5623 TARGET_SECONDARY_MEMORY_NEEDED rather than SECONDARY_MEMORY_NEEDED
5625 (curr_insn_transform): Likewise.
5626 (process_alt_operands): Use targetm.secondary_memory_needed
5627 instead of TARGET_SECONDARY_MEMORY_NEEDED.
5628 (check_secondary_memory_needed_p): Likewise.
5629 (choose_split_class): Likewise.
5630 * reload.c: Unconditionally include code that was previously
5631 conditional on SECONDARY_MEMORY_NEEDED.
5632 (push_secondary_reload): Use targetm.secondary_memory_needed
5633 instead of TARGET_SECONDARY_MEMORY_NEEDED.
5634 (push_reload): Likewise.
5635 * reload1.c: Unconditionally include code that was previously
5636 conditional on SECONDARY_MEMORY_NEEDED.
5637 (choose_reload_regs): Use targetm.secondary_memory_needed
5638 instead of TARGET_SECONDARY_MEMORY_NEEDED.
5639 (gen_reload): Likewise.
5640 * system.h (SECONDARY_MEMORY_NEEDED): Poison.
5642 2017-09-13 Richard Sandiford <richard.sandiford@linaro.org>
5643 Alan Hayward <alan.hayward@arm.com>
5644 David Sherwood <david.sherwood@arm.com>
5646 * target.def (secondary_memory_needed_mode): New hook:
5647 * targhooks.c (default_secondary_memory_needed_mode): Declare.
5648 * targhooks.h (default_secondary_memory_needed_mode): New function.
5649 * doc/tm.texi.in (SECONDARY_MEMORY_NEEDED_MODE): Replace with...
5650 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): ...this.
5651 * doc/tm.texi: Regenerate.
5652 * lra-constraints.c (check_and_process_move): Use
5653 targetm.secondary_memory_needed_mode instead of
5654 TARGET_SECONDARY_MEMORY_NEEDED_MODE.
5655 (curr_insn_transform): Likewise.
5656 * reload.c (get_secondary_mem): Likewise.
5657 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5658 * config/alpha/alpha.c (alpha_secondary_memory_needed_mode): New
5660 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5661 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5662 * config/i386/i386.c (ix86_secondary_memory_needed_mode): New function.
5663 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5664 * config/powerpcspe/powerpcspe.h (SECONDARY_MEMORY_NEEDED_MODE):
5666 * config/powerpcspe/powerpcspe-protos.h
5667 (rs6000_secondary_memory_needed_mode): Delete.
5668 * config/powerpcspe/powerpcspe.c
5669 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5670 (rs6000_secondary_memory_needed_mode): Make static.
5671 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5672 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_mode):
5674 * config/rs6000/rs6000.c (TARGET_SECONDARY_MEMORY_NEEDED_MODE):
5676 (rs6000_secondary_memory_needed_mode): Make static.
5677 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5678 * config/s390/s390.c (s390_secondary_memory_needed_mode): New function.
5679 (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Redefine.
5680 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_MODE): Delete.
5681 * config/sparc/sparc.c (TARGET_SECONDARY_MEMORY_NEEDED_MODE):
5683 (sparc_secondary_memory_needed_mode): New function.
5684 * system.h (TARGET_SECONDARY_MEMORY_NEEDED_MODE): Poison.
5686 2017-09-13 Jackson Woodruff <jackson.woodruff@arm.com>
5688 * config/aarch64/constraints.md (Umq): New constraint.
5689 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>):
5691 (mov<mode>): Update condition.
5693 2017-09-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5695 * gimple-ssa-store-merging.c (sort_by_bitpos): Compare store order
5696 when bitposition is the same.
5698 2017-09-13 Richard Biener <rguenther@suse.de>
5700 * dwarf2out.c (output_die_symbol): Remove.
5701 (output_die): Do not output a DIEs symbol.
5703 2017-09-13 Richard Biener <rguenther@suse.de>
5706 * gimple-fold.c (gimple_fold_call): Update SSA name in-place to
5707 default-def to avoid breaking iterator update with the weird
5708 interaction with cgraph_update_edges_for_call_stmt_node.
5710 2017-09-13 Richard Biener <rguenther@suse.de>
5712 * tree-cfg.c (verify_gimple_assign_binary): Add verification
5713 for WIDEN_SUM_EXPR, VEC_WIDEN_MULT_{HI,LO,EVEN,ODD}_EXPR,
5714 VEC_PACK_{TRUNC,SAT,FIX_TRUNC}_EXPR.
5715 (verify_gimple_assign_ternary): Add verification for DOT_PROD_EXPR.
5717 2017-09-13 Kugan Vivekanandarajah <kuganv@linaro.org>
5719 * config/aarch64/aarch64.c (aarch64_override_options_after_change_1):
5720 Disable pc relative literal load irrespective of
5721 TARGET_FIX_ERR_A53_84341 for default.
5723 2017-09-12 Eric Botcazou <ebotcazou@adacore.com>
5725 * config/sparc/sparc.c (output_return): Output the source location of
5726 the insn in the delay slot, if any.
5727 (output_sibcall): Likewise.
5729 2017-09-12 H.J. Lu <hongjiu.lu@intel.com>
5732 * common.opt (-static-pie): New alias.
5733 (shared): Negate static-pie.
5734 (-no-pie): Update help text.
5736 (static-pie): New option.
5737 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Add
5738 -static-pie support.
5739 (GNU_USER_TARGET_ENDFILE_SPEC): Likewise.
5740 (LINK_EH_SPEC): Likewise.
5741 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5742 * config/i386/gnu-user.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
5743 * config/i386/gnu-user64.h (GNU_USER_TARGET_LINK_SPEC): Likewise.
5744 * gcc.c (LINK_COMMAND_SPEC): Likewise.
5745 (init_gcc_specs): Likewise.
5746 (init_spec): Likewise.
5747 (display_help): Update help message for -pie.
5748 * doc/invoke.texi: Update -pie, -no-pie and -static. Document
5751 2017-09-12 Wilco Dijkstra <wdijkstr@arm.com>
5753 * config/aarch64/aarch64.md (movsi_aarch64): Remove all '*'.
5754 (movdi_aarch64): Likewise.
5755 (movti_aarch64): Likewise.
5757 2017-09-12 Simon Wright <simon@pushface.org>
5760 * config/darwin-driver.c (darwin_find_version_from_kernel): Eliminate
5761 calculation of the minor version, always output as 0.
5763 2017-09-12 Jakub Jelinek <jakub@redhat.com>
5766 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
5767 ALTIVEC_BUILTIN_VEC_LD if arg1 has array type call default_conversion
5768 on it early, rather than manual conversion late. For
5769 ALTIVEC_BUILTIN_VEC_ST if arg2 has array type call default_conversion
5770 instead of performing manual conversion.
5772 2017-09-12 Carl Love <cel@us.ibm.com>
5774 * config/rs6000/altivec.md (vec_widen_umult_even_v4si,
5775 vec_widen_smult_even_v4si): Add define expands for vmuleuw, vmulesw,
5777 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
5778 VMULOSW): Add definitions.
5779 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5780 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
5781 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
5782 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
5783 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
5785 2017-09-12 James Greenhalgh <james.greenhalgh@arm.com>
5787 * config/aarch64/aarch64.md (movdi_aarch64): Set load/store
5789 (movti_aarch64): Likewise.
5790 (movdf_aarch64): Likewise.
5791 (movtf_aarch64): Likewise.
5792 (load_pairdi): Likewise.
5793 (store_pairdi): Likewise.
5794 (load_pairdf): Likewise.
5795 (store_pairdf): Likewise.
5796 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
5797 (storewb_pair<GPI:mode>_<P:mode>): Likewise.
5798 (ldr_got_small_<mode>): Likewise.
5799 (ldr_got_small_28k_<mode>): Likewise.
5800 (ldr_got_tiny): Likewise.
5801 * config/aarch64/iterators.md (ldst_sz): New.
5802 (ldpstp_sz): Likewise.
5803 * config/aarch64/thunderx.md (thunderx_storepair): Split store_8
5805 (thunderx_load): Split load_8 to load_16.
5806 * config/aarch64/thunderx2t99.md (thunderx2t99_loadpair): Split
5808 (thunderx2t99_storepair_basic): Split store_8 to store_16.
5809 * config/arm/xgene1.md (xgene1_load_pair): Split load_8 to load_16.
5810 (xgene1_store_pair): Split store_8 to store_16.
5811 * config/aarch64/falkor.md (falkor_ld_3_ld): Split load_8 to load_16.
5812 (falkor_st_0_st_sd): Split store_8 to store_16.
5814 2017-09-12 James Greenhalgh <james.greenhalgh@arm.com>
5816 * config/arm/types.md (type): Rename load1/2/3/4 to load_4/8/12/16
5817 and store1/2/3/4 to store_4/8/12/16.
5818 * config/aarch64/aarch64.md: Update for rename.
5819 * config/arm/arm.md: Likewise.: Likewise.
5820 * config/arm/arm.c: Likewise.
5821 * config/arm/thumb1.md: Likewise.
5822 * config/arm/thumb2.md: Likewise.
5823 * config/arm/vfp.md: Likewise.
5824 * config/arm/arm-generic.md: Likewise.
5825 * config/arm/arm1020e.md: Likewise.
5826 * config/arm/arm1026ejs.md: Likewise.
5827 * config/arm/arm1136jfs.md: Likewise.
5828 * config/arm/arm926ejs.md: Likewise.
5829 * config/arm/cortex-a15.md: Likewise.
5830 * config/arm/cortex-a17.md: Likewise.
5831 * config/arm/cortex-a5.md: Likewise.
5832 * config/arm/cortex-a53.md: Likewise.
5833 * config/arm/cortex-a57.md: Likewise.
5834 * config/arm/cortex-a7.md: Likewise.
5835 * config/arm/cortex-a8.md: Likewise.
5836 * config/arm/cortex-a9.md: Likewise.
5837 * config/arm/cortex-m4.md: Likewise.
5838 * config/arm/cortex-m7.md: Likewise.
5839 * config/arm/cortex-r4.md: Likewise.
5840 * config/arm/exynos-m1.md: Likewise.
5841 * config/arm/fa526.md: Likewise.
5842 * config/arm/fa606te.md: Likewise.
5843 * config/arm/fa626te.md: Likewise.
5844 * config/arm/fa726te.md: Likewise.
5845 * config/arm/fmp626.md: Likewise.
5846 * config/arm/iwmmxt.md: Likewise.
5847 * config/arm/ldmstm.md: Likewise.
5848 * config/arm/marvell-pj4.md: Likewise.
5849 * config/arm/xgene1.md: Likewise.
5850 * config/aarch64/thunderx.md: Likewise.
5851 * config/aarch64/thunderx2t99.md: Likewise.
5852 * config/aarch64/falkor.md: Likewise.
5854 2017-09-12 Martin Liska <mliska@suse.cz>
5856 * attribs.c (private_lookup_attribute): New function.
5857 * attribs.h (private_lookup_attribute): Declared here.
5858 (lookup_attribute): Called from this place.
5860 2017-09-12 Richard Biener <rguenther@suse.de>
5862 PR tree-optimization/82157
5863 * tree-ssa-pre.c (remove_dead_inserted_code): Do not remove
5864 stmts with side-effects.
5866 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
5867 Alan Hayward <alan.hayward@arm.com>
5868 David Sherwood <david.sherwood@arm.com>
5870 * target.def (hard_regno_nregs): New hook.
5871 (class_max_nregs): Refer to it instead of HARD_REGNO_NREGS.
5872 * targhooks.h (default_hard_regno_nregs): Declare.
5873 * targhooks.c (default_hard_regno_nregs): New function.
5874 * doc/tm.texi.in (HARD_REGNO_NREGS): Replace with...
5875 (TARGET_HARD_REGNO_NREGS): ...this hook.
5876 (HARD_REGNO_NREGS_HAS_PADDING): Update accordingly.
5877 (CLASS_MAX_NREGS): Likewise.
5878 * doc/tm.texi: Regenerate.
5879 * reginfo.c (init_reg_modes_target): Use targetm.hard_regno_nregs
5880 instead of HARD_REGNO_NREGS.
5881 * rtl.h (REG_NREGS): Refer to TARGET_HARD_REGNO_NREGS rather than
5882 HARD_REGNO_NREGS in the comment.
5883 * config/aarch64/aarch64.h (HARD_REGNO_NREGS): Delete.
5884 * config/aarch64/aarch64-protos.h (aarch64_hard_regno_nregs): Delete.
5885 * config/aarch64/aarch64.c (aarch64_hard_regno_nregs): Make static.
5886 Return an unsigned int.
5887 (TARGET_HARD_REGNO_NREGS): Redefine.
5888 * config/alpha/alpha.h (HARD_REGNO_NREGS): Delete.
5889 * config/arc/arc.h (HARD_REGNO_NREGS): Delete.
5890 * config/arc/arc.c (TARGET_HARD_REGNO_NREGS): Redefine.
5891 (arc_hard_regno_nregs): New function.
5892 * config/arm/arm.h (HARD_REGNO_NREGS): Delete.
5893 * config/arm/arm.c (TARGET_HARD_REGNO_NREGS): Redefine.
5894 (arm_hard_regno_nregs): New function.
5895 * config/avr/avr.h (HARD_REGNO_NREGS): Delete.
5896 * config/bfin/bfin.h (HARD_REGNO_NREGS): Delete.
5897 * config/bfin/bfin.c (bfin_hard_regno_nregs): New function.
5898 (TARGET_HARD_REGNO_NREGS): Redefine.
5899 * config/c6x/c6x.h (HARD_REGNO_NREGS): Delete.
5900 * config/cr16/cr16.h (LONG_REG_P): Use targetm.hard_regno_nregs.
5901 (HARD_REGNO_NREGS): Delete.
5902 * config/cr16/cr16.c (TARGET_HARD_REGNO_NREGS): Redefine.
5903 (cr16_hard_regno_nregs): New function.
5904 (cr16_memory_move_cost): Use it instead of HARD_REGNO_NREGS.
5905 * config/cris/cris.h (HARD_REGNO_NREGS): Delete.
5906 * config/cris/cris.c (TARGET_HARD_REGNO_NREGS): Redefine.
5907 (cris_hard_regno_nregs): New function.
5908 * config/epiphany/epiphany.h (HARD_REGNO_NREGS): Delete.
5909 * config/fr30/fr30.h (HARD_REGNO_NREGS): Delete.
5910 (CLASS_MAX_NREGS): Use targetm.hard_regno_nregs.
5911 * config/frv/frv.h (HARD_REGNO_NREGS): Delete.
5912 (CLASS_MAX_NREGS): Remove outdated copy of documentation.
5913 * config/frv/frv-protos.h (frv_hard_regno_nregs): Delete.
5914 * config/frv/frv.c (TARGET_HARD_REGNO_NREGS): Redefine.
5915 (frv_hard_regno_nregs): Make static. Take and return an
5917 (frv_class_max_nregs): Remove outdated copy of documentation.
5918 * config/ft32/ft32.h (HARD_REGNO_NREGS): Delete.
5919 * config/h8300/h8300.h (HARD_REGNO_NREGS): Delete.
5920 * config/h8300/h8300-protos.h (h8300_hard_regno_nregs): Delete.
5921 * config/h8300/h8300.c (h8300_hard_regno_nregs): Delete.
5922 * config/i386/i386.h (HARD_REGNO_NREGS): Delete.
5923 * config/i386/i386.c (ix86_hard_regno_nregs): New function.
5924 (TARGET_HARD_REGNO_NREGS): Redefine.
5925 * config/ia64/ia64.h (HARD_REGNO_NREGS): Delete.
5926 (CLASS_MAX_NREGS): Update comment.
5927 * config/ia64/ia64.c (TARGET_HARD_REGNO_NREGS): Redefine.
5928 (ia64_hard_regno_nregs): New function.
5929 * config/iq2000/iq2000.h (HARD_REGNO_NREGS): Delete.
5930 * config/lm32/lm32.h (HARD_REGNO_NREGS): Delete.
5931 * config/m32c/m32c.h (HARD_REGNO_NREGS): Delete.
5932 * config/m32c/m32c-protos.h (m32c_hard_regno_nregs): Delete.
5933 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Take and return
5935 (m32c_hard_regno_nregs): Likewise. Make static.
5936 (TARGET_HARD_REGNO_NREGS): Redefine.
5937 * config/m32r/m32r.h (HARD_REGNO_NREGS): Delete.
5938 * config/m68k/m68k.h (HARD_REGNO_NREGS): Delete.
5939 * config/m68k/m68k.c (TARGET_HARD_REGNO_NREGS): Redefine.
5940 (m68k_hard_regno_nregs): New function.
5941 * config/mcore/mcore.h (HARD_REGNO_NREGS): Delete.
5942 * config/microblaze/microblaze.h (HARD_REGNO_NREGS): Delete.
5943 * config/mips/mips.h (HARD_REGNO_NREGS): Delete.
5944 * config/mips/mips-protos.h (mips_hard_regno_nregs): Delete.
5945 * config/mips/mips.c (mips_hard_regno_nregs): Make static.
5946 Take and return an unsigned int.
5947 (TARGET_HARD_REGNO_NREGS): Redefine.
5948 * config/mmix/mmix.h (HARD_REGNO_NREGS): Delete.
5949 (CLASS_MAX_NREGS): Use targetm.hard_regno_nregs.
5950 * config/mn10300/mn10300.h (HARD_REGNO_NREGS): Delete.
5951 * config/moxie/moxie.h (HARD_REGNO_NREGS): Delete.
5952 * config/msp430/msp430.h (HARD_REGNO_NREGS): Delete.
5953 * config/msp430/msp430-protos.h (msp430_hard_regno_nregs): Delete.
5954 * config/msp430/msp430.c (TARGET_HARD_REGNO_NREGS): Redefine.
5955 (msp430_hard_regno_nregs): Make static. Take and return an
5957 * config/nds32/nds32.h (HARD_REGNO_NREGS): Delete.
5958 * config/nds32/nds32-protos.h (nds32_hard_regno_nregs): Delete.
5959 * config/nds32/nds32.c (nds32_hard_regno_nregs): Delete.
5960 (nds32_hard_regno_mode_ok): Use targetm.hard_regno_nregs.
5961 * config/nios2/nios2.h (HARD_REGNO_NREGS): Delete.
5962 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Delete.
5963 * config/nvptx/nvptx.c (nvptx_hard_regno_nregs): New function.
5964 (TARGET_HARD_REGNO_NREGS): Redefine.
5965 * config/pa/pa32-regs.h (HARD_REGNO_NREGS): Rename to...
5966 (PA_HARD_REGNO_NREGS): ...this.
5967 * config/pa/pa64-regs.h (HARD_REGNO_NREGS): Rename to...
5968 (PA_HARD_REGNO_NREGS): ...this.
5969 * config/pa/pa.c (TARGET_HARD_REGNO_NREGS): Redefine.
5970 (pa_hard_regno_nregs): New function.
5971 * config/pdp11/pdp11.h (HARD_REGNO_NREGS): Delete.
5972 * config/pdp11/pdp11.c (TARGET_HARD_REGNO_NREGS): Redefine.
5973 (pdp11_hard_regno_nregs): New function.
5974 * config/powerpcspe/powerpcspe.h (HARD_REGNO_NREGS): Delete.
5975 * config/powerpcspe/powerpcspe.c (TARGET_HARD_REGNO_NREGS): Redefine.
5976 (rs6000_hard_regno_nregs_hook): New function.
5977 * config/riscv/riscv.h (HARD_REGNO_NREGS): Delete.
5978 * config/riscv/riscv-protos.h (riscv_hard_regno_nregs): Delete.
5979 * config/riscv/riscv.c (riscv_hard_regno_nregs): Make static.
5980 Take and return an unsigned int. Move earlier in file.
5981 (TARGET_HARD_REGNO_NREGS): Redefine.
5982 * config/rl78/rl78.h (HARD_REGNO_NREGS): Delete.
5983 * config/rl78/rl78-protos.h (rl78_hard_regno_nregs): Delete.
5984 * config/rl78/rl78.c (TARGET_HARD_REGNO_NREGS): Reefine.
5985 (rl78_hard_regno_nregs): Make static. Take and return an
5987 * config/rs6000/rs6000.h (HARD_REGNO_NREGS): Delete.
5988 * config/rs6000/rs6000.c (TARGET_HARD_REGNO_NREGS): Redefine.
5989 (rs6000_hard_regno_nregs_hook): New function.
5990 * config/rx/rx.h (HARD_REGNO_NREGS): Delete.
5991 * config/rx/rx.c (rx_hard_regno_nregs): New function.
5992 (TARGET_HARD_REGNO_NREGS): Redefine.
5993 * config/s390/s390.h (HARD_REGNO_NREGS): Delete.
5994 * config/s390/s390.c (REGNO_PAIR_OK): Use s390_hard_regno_nregs
5995 instead of HARD_REGNO_NREGS.
5996 (s390_hard_regno_nregs): New function.
5997 (s390_hard_regno_mode_ok): Add comment from s390.h.
5998 (TARGET_HARD_REGNO_NREGS): Redefine.
5999 * config/sh/sh.h (HARD_REGNO_NREGS): Delete.
6000 * config/sh/sh.c (TARGET_HARD_REGNO_NREGS): Redefine.
6001 (sh_hard_regno_nregs): New function.
6002 (sh_pass_in_reg_p): Use it.
6003 * config/sparc/sparc.h (HARD_REGNO_NREGS): Delete.
6004 * config/sparc/sparc.c (TARGET_HARD_REGNO_NREGS): Redefine.
6005 (sparc_hard_regno_nregs): New function.
6006 * config/spu/spu.h (HARD_REGNO_NREGS): Delete.
6007 * config/spu/spu.c (spu_hard_regno_nregs): New function.
6008 (spu_function_arg_advance): Use it, supplying a valid register number.
6009 (TARGET_HARD_REGNO_NREGS): Redefine.
6010 * config/stormy16/stormy16.h (HARD_REGNO_NREGS): Delete.
6011 * config/tilegx/tilegx.h (HARD_REGNO_NREGS): Delete.
6012 * config/tilepro/tilepro.h (HARD_REGNO_NREGS): Delete.
6013 * config/v850/v850.h (HARD_REGNO_NREGS): Delete.
6014 * config/vax/vax.h (HARD_REGNO_NREGS): Delete.
6015 * config/visium/visium.h (HARD_REGNO_NREGS): Delete.
6016 (CLASS_MAX_NREGS): Remove copy of old documentation.
6017 * config/visium/visium.c (TARGET_HARD_REGNO_NREGS): Redefine.
6018 (visium_hard_regno_nregs): New function.
6019 (visium_hard_regno_mode_ok): Use it instead of HARD_REGNO_NREGS.
6020 * config/xtensa/xtensa.h (HARD_REGNO_NREGS): Delete.
6021 * config/xtensa/xtensa.c (TARGET_HARD_REGNO_NREGS): Redefine.
6022 xtensa_hard_regno_nregs): New function.
6023 * system.h (HARD_REGNO_NREGS): Poison.
6025 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6027 * config/arm/arm.h (THUMB_SECONDARY_INPUT_RELOAD_CLASS): Use
6028 hard_regno_nregs instead of HARD_REGNO_NREGS.
6029 (THUMB_SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
6030 * config/c6x/c6x.c (c6x_expand_prologue): Likewise.
6031 (c6x_expand_epilogue): Likewise.
6032 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
6033 (frv_read_iacc_argument): Likewise.
6034 * config/sh/sh.c: Include regs.h.
6035 (sh_print_operand): Use hard_regno_nregs instead of HARD_REGNO_NREGS.
6036 (regs_used): Likewise.
6037 (output_stack_adjust): Likewise.
6038 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Likewise.
6039 * expmed.c: Include regs.h.
6040 (store_bit_field_1): Use hard_regno_nregs instead of HARD_REGNO_NREGS.
6041 * ree.c: Include regs.h.
6042 (combine_reaching_defs): Use hard_regno_nregs instead of
6044 (add_removable_extension): Likewise.
6046 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6048 * regs.h (hard_regno_nregs): Turn into a function.
6049 (end_hard_regno): Update accordingly.
6050 * caller-save.c (setup_save_areas): Likewise.
6051 (save_call_clobbered_regs): Likewise.
6052 (replace_reg_with_saved_mem): Likewise.
6053 (insert_restore): Likewise.
6054 (insert_save): Likewise.
6055 * combine.c (can_change_dest_mode): Likewise.
6056 (move_deaths): Likewise.
6057 (distribute_notes): Likewise.
6058 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
6059 * config/powerpcspe/powerpcspe.c (rs6000_cannot_change_mode_class)
6060 (rs6000_split_multireg_move): Likewise.
6061 (rs6000_register_move_cost): Likewise.
6062 (rs6000_memory_move_cost): Likewise.
6063 * config/rs6000/rs6000.c (rs6000_cannot_change_mode_class): Likewise.
6064 (rs6000_split_multireg_move): Likewise.
6065 (rs6000_register_move_cost): Likewise.
6066 (rs6000_memory_move_cost): Likewise.
6067 * cselib.c (cselib_reset_table): Likewise.
6068 (cselib_lookup_1): Likewise.
6069 * emit-rtl.c (set_mode_and_regno): Likewise.
6070 * function.c (aggregate_value_p): Likewise.
6071 * ira-color.c (setup_profitable_hard_regs): Likewise.
6072 (check_hard_reg_p): Likewise.
6073 (calculate_saved_nregs): Likewise.
6074 (assign_hard_reg): Likewise.
6075 (improve_allocation): Likewise.
6076 (calculate_spill_cost): Likewise.
6077 * ira-emit.c (modify_move_list): Likewise.
6078 * ira-int.h (ira_hard_reg_set_intersection_p): Likewise.
6079 (ira_hard_reg_in_set_p): Likewise.
6080 * ira.c (setup_reg_mode_hard_regset): Likewise.
6081 (clarify_prohibited_class_mode_regs): Likewise.
6082 (check_allocation): Likewise.
6083 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6084 (lra_setup_reg_renumber): Likewise.
6085 (setup_try_hard_regno_pseudos): Likewise.
6086 (spill_for): Likewise.
6087 (assign_hard_regno): Likewise.
6088 (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
6089 * lra-constraints.c (in_class_p): Likewise.
6090 (lra_constraint_offset): Likewise.
6091 (simplify_operand_subreg): Likewise.
6092 (lra_constraints): Likewise.
6093 (split_reg): Likewise.
6094 (split_if_necessary): Likewise.
6095 (invariant_p): Likewise.
6096 (inherit_in_ebb): Likewise.
6097 * lra-lives.c (process_bb_lives): Likewise.
6098 * lra-remat.c (reg_overlap_for_remat_p): Likewise.
6099 (get_hard_regs): Likewise.
6100 (do_remat): Likewise.
6101 * lra-spills.c (assign_spill_hard_regs): Likewise.
6102 * mode-switching.c (create_pre_exit): Likewise.
6103 * postreload.c (reload_combine_recognize_pattern): Likewise.
6104 * recog.c (peep2_find_free_register): Likewise.
6105 * regcprop.c (kill_value_regno): Likewise.
6106 (set_value_regno): Likewise.
6107 (copy_value): Likewise.
6108 (maybe_mode_change): Likewise.
6109 (find_oldest_value_reg): Likewise.
6110 (copyprop_hardreg_forward_1): Likewise.
6111 * regrename.c (check_new_reg_p): Likewise.
6112 (regrename_do_replace): Likewise.
6113 * reload.c (push_reload): Likewise.
6114 (combine_reloads): Likewise.
6115 (find_dummy_reload): Likewise.
6116 (operands_match_p): Likewise.
6117 (find_reloads): Likewise.
6118 (find_equiv_reg): Likewise.
6119 (reload_adjust_reg_for_mode): Likewise.
6120 * reload1.c (count_pseudo): Likewise.
6121 (count_spilled_pseudo): Likewise.
6122 (find_reg): Likewise.
6123 (clear_reload_reg_in_use): Likewise.
6124 (free_for_value_p): Likewise.
6125 (allocate_reload_reg): Likewise.
6126 (choose_reload_regs): Likewise.
6127 (reload_adjust_reg_for_temp): Likewise.
6128 (emit_reload_insns): Likewise.
6129 (delete_output_reload): Likewise.
6130 * rtlanal.c (subreg_get_info): Likewise.
6131 * sched-deps.c (sched_analyze_reg): Likewise.
6132 * sel-sched.c (init_regs_for_mode): Likewise.
6133 (mark_unavailable_hard_regs): Likewise.
6134 (choose_best_reg_1): Likewise.
6135 (verify_target_availability): Likewise.
6136 * valtrack.c (dead_debug_insert_temp): Likewise.
6137 * var-tracking.c (track_loc_p): Likewise.
6138 (emit_note_insn_var_location): Likewise.
6139 * varasm.c (make_decl_rtl): Likewise.
6140 * reginfo.c (choose_hard_reg_mode): Likewise.
6141 (init_reg_modes_target): Refer directly to
6142 this_target_regs->x_hard_regno_nregs.
6144 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6146 * ira-costs.c (record_operand_costs): Use in_hard_reg_set_p
6147 instead of hard_regno_nregs.
6149 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6151 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Use
6152 end_hard_regno instead of hard_regno_nregs.
6153 * config/s390/s390.c (s390_reg_clobbered_rtx): Likewise.
6154 * config/sparc/sparc.h (ASM_DECLARE_REGISTER_GLOBAL): Likewise.
6155 * config/visium/visium.c (visium_hard_regno_mode_ok): Likewise.
6156 * ira-color.c (improve_allocation): Likewise.
6157 * lra-assigns.c (find_hard_regno_for_1): Likewise.
6158 * lra-lives.c (mark_regno_live): Likewise.
6159 (mark_regno_dead): Likewise.
6160 * lra-remat.c (operand_to_remat): Likewise.
6161 * lra.c (collect_non_operand_hard_regs): Likewise.
6162 * postreload.c (reload_combine_note_store): Likewise.
6163 (move2add_valid_value_p): Likewise.
6164 * reload.c (regno_clobbered_p): Likewise.
6166 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6168 * config/frv/frv.c (FOR_EACH_REGNO): Use END_REGNO instead of
6170 * config/v850/v850.c (v850_reorg): Likewise.
6171 * reload.c (refers_to_regno_for_reload_p): Likewise.
6172 (find_equiv_reg): Likewise.
6173 * reload1.c (reload_reg_reaches_end_p): Likewise.
6175 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6177 * caller-save.c (add_used_regs): Use REG_NREGS instead of
6179 * config/aarch64/aarch64.c (aarch64_split_combinev16qi): Likewise.
6180 * config/arm/arm.c (output_move_neon): Likewise.
6181 (arm_attr_length_move_neon): Likewise.
6182 (neon_split_vcombine): Likewise.
6183 * config/c6x/c6x.c (c6x_mark_reg_read): Likewise.
6184 (c6x_mark_reg_written): Likewise.
6185 (c6x_dwarf_register_span): Likewise.
6186 * config/i386/i386.c (ix86_save_reg): Likewise.
6187 * config/ia64/ia64.c (mark_reg_gr_used_mask): Likewise.
6188 (rws_access_reg): Likewise.
6189 * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6190 * mode-switching.c (create_pre_exit): Likewise.
6191 * ree.c (combine_reaching_defs): Likewise.
6192 (add_removable_extension): Likewise.
6193 * regcprop.c (find_oldest_value_reg): Likewise.
6194 (copyprop_hardreg_forward_1): Likewise.
6195 * reload.c (reload_inner_reg_of_subreg): Likewise.
6196 (push_reload): Likewise.
6197 (combine_reloads): Likewise.
6198 (find_dummy_reload): Likewise.
6199 (reload_adjust_reg_for_mode): Likewise.
6200 * reload1.c (find_reload_regs): Likewise.
6201 (forget_old_reloads_1): Likewise.
6202 (reload_reg_free_for_value_p): Likewise.
6203 (reload_adjust_reg_for_temp): Likewise.
6204 (emit_reload_insns): Likewise.
6205 (delete_output_reload): Likewise.
6206 * sel-sched.c (choose_best_reg_1): Likewise.
6207 (choose_best_pseudo_reg): Likewise.
6209 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6210 Alan Hayward <alan.hayward@arm.com>
6211 David Sherwood <david.sherwood@arm.com>
6213 * defaults.h (SLOW_UNALIGNED_ACCESS): Delete.
6214 * target.def (slow_unaligned_access): New hook.
6215 * targhooks.h (default_slow_unaligned_access): Declare.
6216 * targhooks.c (default_slow_unaligned_access): New function.
6217 * doc/tm.texi.in (SLOW_UNALIGNED_ACCESS): Replace with...
6218 (TARGET_SLOW_UNALIGNED_ACCESS): ...this.
6219 * doc/tm.texi: Regenerate.
6220 * config/alpha/alpha.h (SLOW_UNALIGNED_ACCESS): Delete.
6221 * config/arm/arm.h (SLOW_UNALIGNED_ACCESS): Delete.
6222 * config/i386/i386.h (SLOW_UNALIGNED_ACCESS): Delete commented-out
6224 * config/powerpcspe/powerpcspe.h (SLOW_UNALIGNED_ACCESS): Delete.
6225 * config/powerpcspe/powerpcspe.c (TARGET_SLOW_UNALIGNED_ACCESS):
6227 (rs6000_slow_unaligned_access): New function.
6228 (rs6000_emit_move): Use it instead of SLOW_UNALIGNED_ACCESS.
6229 (expand_block_compare): Likewise.
6230 (expand_strn_compare): Likewise.
6231 (rs6000_rtx_costs): Likewise.
6232 * config/riscv/riscv.h (SLOW_UNALIGNED_ACCESS): Delete.
6233 (riscv_slow_unaligned_access): Likewise.
6234 * config/riscv/riscv.c (riscv_slow_unaligned_access): Rename to...
6235 (riscv_slow_unaligned_access_p): ...this and make static.
6236 (riscv_option_override): Update accordingly.
6237 (riscv_slow_unaligned_access): New function.
6238 (TARGET_SLOW_UNALIGNED_ACCESS): Redefine.
6239 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Delete.
6240 * config/rs6000/rs6000.c (TARGET_SLOW_UNALIGNED_ACCESS): Redefine.
6241 (rs6000_slow_unaligned_access): New function.
6242 (rs6000_emit_move): Use it instead of SLOW_UNALIGNED_ACCESS.
6243 (rs6000_rtx_costs): Likewise.
6244 * config/rs6000/rs6000-string.c (expand_block_compare)
6245 (expand_strn_compare): Use targetm.slow_unaligned_access instead
6246 of SLOW_UNALIGNED_ACCESS.
6247 * config/tilegx/tilegx.h (SLOW_UNALIGNED_ACCESS): Delete.
6248 * config/tilepro/tilepro.h (SLOW_UNALIGNED_ACCESS): Delete.
6249 * calls.c (expand_call): Use targetm.slow_unaligned_access instead
6250 of SLOW_UNALIGNED_ACCESS.
6251 * expmed.c (simple_mem_bitfield_p): Likewise.
6252 * expr.c (alignment_for_piecewise_move): Likewise.
6253 (emit_group_load_1): Likewise.
6254 (emit_group_store): Likewise.
6255 (copy_blkmode_from_reg): Likewise.
6256 (emit_push_insn): Likewise.
6257 (expand_assignment): Likewise.
6258 (store_field): Likewise.
6259 (expand_expr_real_1): Likewise.
6260 * gimple-fold.c (gimple_fold_builtin_memory_op): Likewise.
6261 * lra-constraints.c (simplify_operand_subreg): Likewise.
6262 * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
6263 * gimple-ssa-store-merging.c: Likewise in block comment at start
6265 * tree-ssa-strlen.c: Include target.h.
6266 (handle_builtin_memcmp): Use targetm.slow_unaligned_access instead
6267 of SLOW_UNALIGNED_ACCESS.
6268 * system.h (SLOW_UNALIGNED_ACCESS): Poison.
6270 2017-09-12 Richard Sandiford <richard.sandiford@linaro.org>
6272 PR rtl-optimization/82185
6273 * expmed.c (emit_store_flag_int): Only test tem if it has been
6276 2017-09-12 Richard Biener <rguenther@suse.de>
6279 * match.pd ((FTYPE) N CMP CST): Fix typo.
6281 2017-09-12 Simon Atanasyan <simon.atanasyan@imgtec.com>
6283 * config/mips/mips.c (mips_attribute_table): Add 'short_call'
6285 (mips_near_type_p): Add 'short_call' attribute as a synonym
6287 * doc/extend.texi (short_call): Document new function attribute.
6289 2017-09-12 Jakub Jelinek <jakub@redhat.com>
6292 * c-common.c (sync_resolve_size): Instead of c_dialect_cxx ()
6293 assertion check that in the condition.
6294 (get_atomic_generic_size): Likewise. Before testing if parameter
6295 has pointer type, if it has array type, call for C++
6296 default_conversion to perform array-to-pointer conversion.
6298 2017-09-12 Richard Biener <rguenther@suse.de>
6300 * tree-vect-generic.c (expand_vector_operations_1): Do nothing
6301 for operations we cannot scalarize.
6303 2017-09-12 Aldy Hernandez <aldyh@redhat.com>
6305 * tree-ssa-threadbackward.c (fsm_find_thread_path): Make GC
6306 vectors heap vectors. Clean up comments.
6307 Make visited_bbs a reference.
6308 (profitable_jump_thread_path): Make GC
6309 vectors heap vectors. Clean up comments.
6311 (convert_and_register_jump_thread_path): Make GC vectors heap
6313 (check_subpath_and_update_thread_path): Same. Clean up comments.
6314 Make visited_bbs a reference.
6315 (handle_phi): Abstract common code to to
6316 register_jump_thread_path_if_profitable.
6317 Rename VAR_BB to DEF_BB.
6319 Make GC vectors heap vectors.
6320 Make visited_bbs a reference.
6321 (handle_assignment): Same.
6322 (register_jump_thread_path_if_profitable): New.
6323 (fsm_find_control_statement_thread_paths): Rename VAR_BB to
6325 Make GC vectors heap vectors. Clean up comments.
6326 Make visited_bbs a reference.
6327 (find_jump_threads_backwards): Make visited_bbs live in the stack.
6328 * tree-ssa-threadupdate.c (delete_jump_thread_path): Fix typo in
6331 2017-09-11 Max Filippov <jcmvbkbc@gmail.com>
6334 * config/xtensa/xtensa.c (xtensa_mem_offset): Check that both
6335 words of E_DImode object are reachable by xtensa_uimm8x4 access.
6337 2017-09-11 Vidya Praveen <vidyapraveen@arm.com>
6339 Revert r251800 and r251799.
6341 2017-09-11 Martin Jambor <mjambor@suse.cz>
6344 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Process ADDR_EXPRs in
6345 arguments in advance.
6346 * hsa-regalloc.c (naive_process_phi): New parameter predecessors,
6347 use it to find predecessor edges.
6348 (naive_outof_ssa): Collect vector of predecessors.
6350 2017-09-08 Jason Merrill <jason@redhat.com>
6352 PR c++/70029 - ICE with ref-qualifier and -flto
6353 * langhooks.h (struct lang_hooks_for_types): Add
6354 copy_lang_qualifiers.
6355 * attribs.c (build_type_attribute_qual_variant): Use it.
6356 * langhooks-def.h (LANG_HOOKS_COPY_LANG_QUALIFIERS): Default to
6358 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Use it.
6359 * tree.c (verify_type): Re-enable TYPE_CANONICAL main variant check.
6361 2017-09-08 Eric Botcazou <ebotcazou@adacore.com>
6364 * config/sparc/sparc.md (mulsi3): Rename into *mulsi3_sp32.
6365 (*mulsi3_sp64): New instruction.
6366 (mulsi3): New expander.
6368 2017-09-08 Uros Bizjak <ubizjak@gmail.com>
6370 * config/alpha/alpha.c (alpha_print_operand) <case 'S'>: Remove.
6372 2017-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6374 * sancov.c: Include memmodel.h.
6376 2017-09-07 Eric Botcazou <ebotcazou@adacore.com>
6379 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Deal with too
6382 2017-09-07 Carl Love <cel@us.ibm.com>
6384 * config/rs6000/vsx.md (define_insn "*stxvl"): Add missing argument to
6385 the sldi instruction.
6387 2017-09-07 David Edelsohn <dje.gcc@gmail.com>
6389 * sancov.c: Include tm_p.h.
6391 2017-09-07 Jakub Jelinek <jakub@redhat.com>
6394 * output.h (switch_to_other_text_partition): New declaration.
6395 * varasm.c (switch_to_other_text_partition): New function.
6396 * config/rs6000/rs6000.c (uses_TOC): Return 2 if
6397 NOTE_INSN_SWITCH_TEXT_SECTIONS is seen before finding load_toc_* insn.
6398 (rs6000_elf_declare_function_name): If uses_TOC returned 2, switch
6399 to the other text partition before emitting LCL label and switch back
6400 after emitting the word after it.
6402 2017-09-07 Richard Biener <rguenther@suse.de>
6404 * passes.def (pass_split_crit_edges): Remove instance before PRE.
6405 * tree-ssa-pre.c (pass_pre::execute): Instead manually split
6406 critical edges here, after loop init.
6407 (pass_data_pre): Remove PROP_no_crit_edges flags.
6408 * tree-ssa-sccvn.c (vn_reference_lookup_3): Use vn_valueize
6409 for valueization of call args to avoid leaking VN_TOP.
6410 (visit_use): Assert we do not visit default defs.
6411 (init_scc_vn): Use build_decl for VN_TOP to make name nicer.
6412 Use error_mark_node to more easily detect leaking VN_TOP.
6413 All default-defs are varying, not VN_TOP. Mark them visited.
6414 (run_scc_vn): Make code match comment.
6416 2017-09-07 Michael Meissner <meissner@linux.vnet.ibm.com>
6418 * config/rs6000/rs6000-cpus.def (OTHER_VSX_VECTOR_MASKS): Delete
6419 OPTION_MASK_FLOAT128_KEYWORD.
6420 (POWERPC_MASKS): Likewise.
6421 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Delete
6422 support for the -mfloat128-type option, and make -mfloat128
6423 default on PowerPC Linux systems. Define or undefine
6424 __FLOAT128__ and __FLOAT128_HARDWARE__ for the current options.
6425 Define __float128 to be __ieee128 if IEEE 128-bit support is
6426 enabled, or undefine it.
6427 (rs6000_cpu_cpp_builtins): Delete defining __FLOAT128__ here.
6428 Delete defining __FLOAT128_TYPE__.
6429 * config/rs6000/rs6000.opt (x_TARGET_FLOAT128_TYPE): Delete the
6430 -mfloat128-type option and make -mfloat128 default on PowerPC
6432 (TARGET_FLOAT128_TYPE): Likewise.
6433 (-mfloat128-type): Likewise.
6434 * config/rs6000/rs6000.c (rs6000_option_override_internal):
6435 Delete the -mfloat128-type option and make -mfloat128 default on
6436 PowerPC Linux systems. Always use __ieee128 to be the keyword for
6437 the IEEE 128-bit type, and map __float128 to __ieee128 if IEEE
6438 128-bit floating point is enabled. Change tests from using
6439 -mfloat128-type to -mfloat128.
6440 (rs6000_mangle_type): Use the correct mangling for the __float128
6441 type even if normal long double is restricted to 64-bits.
6442 (floatn_mode): Enable the _Float128 type by default on VSX Linux
6444 * config/rs6000/rs6000.h (MASK_FLOAT128_TYPE): Delete.
6445 (MASK_FLOAT128_KEYWORD): Define new shortcut macro.
6446 (RS6000BTM_FLOAT128): Define in terms of -mfloat128, not
6448 * doc/invoke.texi (RS/6000 and PowerPC Options): Update
6449 documentation for -mfloat128.
6451 2017-09-06 Olivier Hainque <hainque@adacore.com>
6453 * config.gcc (powerpc-wrs-vxworksspe): Now match as vxworks*spe.
6455 2017-09-06 Wish Wu <wishwu007@gmail.com>
6456 Jakub Jelinek <jakub@redhat.com>
6458 * asan.c (initialize_sanitizer_builtins): Add
6459 BT_FN_VOID_UINT8_UINT8, BT_FN_VOID_UINT16_UINT16,
6460 BT_FN_VOID_UINT32_UINT32, BT_FN_VOID_UINT64_UINT64,
6461 BT_FN_VOID_FLOAT_FLOAT, BT_FN_VOID_DOUBLE_DOUBLE and
6462 BT_FN_VOID_UINT64_PTR variables.
6463 * builtin-types.def (BT_FN_VOID_UINT8_UINT8): New fn type.
6464 (BT_FN_VOID_UINT16_UINT16): Likewise.
6465 (BT_FN_VOID_UINT32_UINT32): Likewise.
6466 (BT_FN_VOID_FLOAT_FLOAT): Likewise.
6467 (BT_FN_VOID_DOUBLE_DOUBLE): Likewise.
6468 (BT_FN_VOID_UINT64_PTR): Likewise.
6469 * common.opt (flag_sanitize_coverage): New variable.
6470 (fsanitize-coverage=trace-pc): Remove.
6471 (fsanitize-coverage=): Add.
6472 * flag-types.h (enum sanitize_coverage_code): New enum.
6473 * fold-const.c (fold_range_test): Disable non-short-circuit
6474 optimization if flag_sanitize_coverage.
6475 (fold_truth_andor): Likewise.
6476 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
6477 * opts.c (COVERAGE_SANITIZER_OPT): Define.
6478 (coverage_sanitizer_opts): New array.
6479 (get_closest_sanitizer_option): Add OPTS argument, handle also
6480 OPT_fsanitize_coverage_.
6481 (parse_sanitizer_options): Adjusted to also handle
6482 OPT_fsanitize_coverage_.
6483 (common_handle_option): Add OPT_fsanitize_coverage_.
6484 * sancov.c (instrument_comparison, instrument_switch): New function.
6485 (sancov_pass): Add trace-cmp support.
6486 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_CMP1,
6487 BUILT_IN_SANITIZER_COV_TRACE_CMP2, BUILT_IN_SANITIZER_COV_TRACE_CMP4,
6488 BUILT_IN_SANITIZER_COV_TRACE_CMP8,
6489 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP1,
6490 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP2,
6491 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP4,
6492 BUILT_IN_SANITIZER_COV_TRACE_CONST_CMP8,
6493 BUILT_IN_SANITIZER_COV_TRACE_CMPF, BUILT_IN_SANITIZER_COV_TRACE_CMPD,
6494 BUILT_IN_SANITIZER_COV_TRACE_SWITCH): New builtins.
6495 * doc/invoke.texi: Document -fsanitize-coverage=trace-cmp.
6497 2017-09-06 Richard Earnshaw <rearnsha@arm.com>
6499 * config/arm/parsecpu.awk (fatal): Note that we've encountered an
6500 error. Only quit immediately if parsing is complete.
6501 (BEGIN): Initialize fatal_err and parse_done.
6502 (begin fpu, end fpu): Check number of arguments.
6503 (begin arch, end arch): Likewise.
6504 (begin cpu, end cpu): Likewise.
6505 (cname, tune for, tune flags, architecture, fpu, option): Likewise.
6506 (optalias): Likewise.
6508 2017-09-06 Richard Earnshaw <rearnsha@arm.com>
6510 * config.gcc (arm*-*-*): Don't add arm-isa.h to tm_p_file.
6511 * config/arm/arm-isa.h: Delete. Move definitions to ...
6512 * arm-cpus.in: ... here. Use new feature and fgroup values.
6513 * config/arm/arm.c (arm_option_override): Use lower case for feature
6515 * config/arm/arm.h (TARGET_HARD_FLOAT): Likewise.
6516 (TARGET_VFP3, TARGET_VFP5, TARGET_FMA): Likewise.
6517 * config/arm/parsecpu.awk (END): Add new command 'isa'.
6519 (print_isa_bits_for): New function.
6520 (gen_isa): New function.
6521 (gen_comm_data): Use print_isa_bits_for.
6522 (define feature): New keyword.
6523 (define fgroup): New keyword.
6524 * config/arm/t-arm (OPTIONS_H_EXTRA): Add arm-isa.h
6525 (arm-isa.h): Add rule to generate file.
6526 * common/config/arm/arm-common.c: (arm_canon_arch_option): Use lower
6527 case for feature bit names.
6529 2017-09-06 Richard Biener <rguenther@suse.de>
6531 * tree-ssa-pre.c (NECESSARY): Remove.
6532 (create_expression_by_pieces): Do not touch pass-local flags.
6533 (insert_into_preds_of_block): Likewise.
6534 (do_pre_regular_insertion): Likewise.
6535 (eliminate_insert): Likewise.
6536 (eliminate_dom_walker::before_dom_children): Likewise.
6537 (fini_eliminate): Do not look at inserted_exprs.
6538 (mark_operand_necessary): Remove.
6539 (remove_dead_inserted_code): Replace with simple work-list
6540 algorithm based on inserted_exprs and SSA uses.
6541 (pass_pre::execute): Re-order fini_eliminate and
6542 remove_dead_inserted_code.
6544 2017-09-06 Olivier Hainque <hainque@adacore.com>
6546 * config/powerpcspe/vxworks.h (VXCPU_FOR_8548): Correct definition
6547 for VxWorks 7. Adjust surrounding comments.
6549 2017-09-06 Richard Biener <rguenther@suse.de>
6551 * gimple-ssa-strength-reduction.c
6552 (find_candidates_dom_walker::before_dom_children): Also allow
6555 2017-09-06 Richard Biener <rguenther@suse.de>
6557 PR tree-optimization/82108
6558 * tree-vect-stmts.c (vectorizable_load): Fix pointer adjustment
6559 for gap in the non-permutation SLP case.
6561 2017-09-06 Martin Jambor <mjambor@suse.cz>
6563 PR tree-optimization/82078
6564 * tree-sra.c (sort_and_splice_var_accesses): Move call to
6565 add_access_to_work_queue...
6566 (build_accesses_from_assign): ...here.
6567 (propagate_all_subaccesses): Make sure racc is the group
6568 representative, if there is one.
6570 2017-09-06 Jakub Jelinek <jakub@redhat.com>
6573 * varasm.c (categorize_decl_for_section): Use SECCAT_TBSS for TLS vars with
6576 2017-09-06 Richard Biener <rguenther@suse.de>
6578 * gimple-ssa-strength-reduction.c
6579 (find_candidates_dom_walker::before_doom_children): Use a
6580 type and not a mode check.
6582 2017-09-06 Bernd Edlinger <bernd.edlinger@hotmail.de>
6585 * config/arm/predicates.md (arm_general_adddi_operand): Create new
6587 * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Use new predicates.
6589 2017-09-05 Jeff Law <law@redhat.com>
6591 PR tree-optimization/64910
6592 * tree-ssa-reassoc.c (reassociate_bb): Restrict last change to
6593 cases where we have 3 or more operands.
6595 2017-09-05 Jakub Jelinek <jakub@redhat.com>
6598 * omp-low.c (lower_omp_for): Recompute tree invariant if
6599 gimple_omp_for_initial/final is ADDR_EXPR.
6602 * omp-expand.c (expand_omp_simd): Force second operands of COND_EXPR
6603 into gimple val before gimplification fo the COND_EXPR.
6605 2017-09-05 Aldy Hernandez <aldyh@redhat.com>
6607 * tree-ssa-threadupdate.c (duplicate_thread_path): Remove unused
6608 REGION_COPY argument.
6609 (thread_through_all_blocks): Remove unused argument to
6610 duplicate_thread_path.
6612 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6613 Alan Hayward <alan.hayward@arm.com>
6614 David Sherwood <david.sherwood@arm.com>
6616 * config/aarch64/aarch64-protos.h (aarch64_gen_adjusted_ldpstp):
6617 Take a scalar_mode rather than a machine_mode.
6618 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6619 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Likewise.
6620 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
6621 (aarch64_gen_adjusted_ldpstp): Likewise.
6622 (aarch64_expand_vector_init): Use scalar_mode instead of machine_mode.
6624 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6625 Alan Hayward <alan.hayward@arm.com>
6626 David Sherwood <david.sherwood@arm.com>
6628 * config/aarch64/aarch64-protos.h (aarch64_is_extend_from_extract):
6629 Take a scalar_int_mode instead of a machine_mode.
6630 (aarch64_mask_and_shift_for_ubfiz_p): Likewise.
6631 (aarch64_output_scalar_simd_mov_immediate): Likewise.
6632 (aarch64_simd_scalar_immediate_valid_for_move): Likewise.
6633 (aarch64_simd_attr_length_rglist): Delete.
6634 * config/aarch64/aarch64.c (aarch64_is_extend_from_extract): Take
6635 a scalar_int_mode instead of a machine_mode.
6636 (aarch64_add_offset): Likewise.
6637 (aarch64_internal_mov_immediate): Likewise
6638 (aarch64_add_constant_internal): Likewise.
6639 (aarch64_add_constant): Likewise.
6640 (aarch64_movw_imm): Likewise.
6641 (aarch64_rtx_arith_op_extract_p): Likewise.
6642 (aarch64_mask_and_shift_for_ubfiz_p): Likewise.
6643 (aarch64_simd_scalar_immediate_valid_for_move): Likewise.
6644 Remove assert that the mode isn't a vector.
6645 (aarch64_output_scalar_simd_mov_immediate): Likewise.
6646 (aarch64_expand_mov_immediate): Update calls after above changes.
6647 (aarch64_output_casesi): Use as_a <scalar_int_mode>.
6648 (aarch64_and_bitmask_imm): Check for scalar integer modes.
6649 (aarch64_move_imm): Likewise.
6650 (aarch64_can_const_movi_rtx_p): Likewise.
6651 (aarch64_strip_extend): Likewise.
6652 (aarch64_extr_rtx_p): Likewise.
6653 (aarch64_rtx_costs): Likewise, using wode_mode as the mode of
6654 a CONST_INT when the mode parameter is VOIDmode.
6655 (aarch64_float_const_rtx_p): Use scalar_int_mode for a temporary.
6657 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6659 * machmode.h (bitwise_mode_for_mode): Return opt_mode.
6660 * stor-layout.c (bitwise_mode_for_mode): Likewise.
6661 (bitwise_type_for_mode): Update accordingly.
6663 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6665 * stor-layout.h (mode_for_size_tree): Return an opt_mode.
6666 * stor-layout.c (mode_for_size_tree): Likewise.
6667 (mode_for_array): Update accordingly.
6668 (layout_decl): Likewise.
6669 (compute_record_mode): Likewise. Only set the mode once.
6671 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6673 * target.def (get_mask_mode): Change return type to opt_mode.
6675 * doc/tm.texi: Regenerate.
6676 * targhooks.h (default_get_mask_mode): Return an opt_mode.
6677 * targhooks.c (default_get_mask_mode): Likewise.
6678 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
6679 * optabs-query.c (can_vec_mask_load_store_p): Update use of
6680 targetm.get_mask_mode.
6681 * tree.c (build_truth_vector_type): Likewise.
6683 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6685 * machmode.h (mode_for_vector): Return an opt_mode.
6686 * stor-layout.c (mode_for_vector): Likewise.
6687 (mode_for_int_vector): Update accordingly.
6688 (layout_type): Likewise.
6689 * config/i386/i386.c (emit_memmov): Likewise.
6690 (ix86_expand_set_or_movmem): Likewise.
6691 (ix86_expand_vector_init): Likewise.
6692 (ix86_get_mask_mode): Likewise.
6693 * config/powerpcspe/powerpcspe.c (rs6000_expand_vec_perm_const_1):
6695 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Likewise.
6696 * expmed.c (extract_bit_field_1): Likewise.
6697 * expr.c (expand_expr_real_2): Likewise.
6698 * optabs-query.c (can_vec_perm_p): Likewise.
6699 (can_vec_mask_load_store_p): Likewise.
6700 * optabs.c (expand_vec_perm): Likewise.
6701 * targhooks.c (default_get_mask_mode): Likewise.
6702 * tree-vect-stmts.c (vectorizable_store): Likewise.
6703 (vectorizable_load): Likewise.
6704 (get_vectype_for_scalar_type_and_size): Likewise.
6706 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6708 * machmode.h (mode_for_int_vector): New function.
6709 * stor-layout.c (mode_for_int_vector): Likewise.
6710 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Use it.
6711 * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Likewise.
6712 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
6713 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
6714 (s390_expand_vcond): Likewise.
6716 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6718 * machmode.h (opt_machine_mode): New type.
6719 (opt_mode<T>): Allow construction from anything that can be
6721 (is_a, as_a, dyn_cast): Add overloads for opt_mode.
6722 (mode_for_size): Return an opt_machine_mode.
6723 * stor-layout.c (mode_for_size): Likewise.
6724 (mode_for_size_tree): Update call accordingly.
6725 (bitwise_mode_for_mode): Likewise.
6726 (make_fract_type): Likewise.
6727 (make_accum_type): Likewise.
6728 * caller-save.c (replace_reg_with_saved_mem): Update call
6730 * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6731 * config/i386/i386.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6732 * config/s390/s390.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6733 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED_MODE): Likewise.
6734 * expmed.c (extract_bit_field_1): Likewise.
6735 * reload.c (get_secondary_mem): Likewise.
6736 * varasm.c (assemble_integer): Likewise.
6737 * lower-subreg.c (simplify_subreg_concatn): Likewise. Move
6740 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6742 * machmode.h (decimal_float_mode_for_size): New function.
6743 * real.h (REAL_VALUE_TO_TARGET_LONG_DOUBLE): Use float_mode_for_size.
6744 (REAL_VALUE_TO_TARGET_DOUBLE): Likewise.
6745 (REAL_VALUE_TO_TARGET_SINGLE): Likewise.
6746 (REAL_VALUE_TO_TARGET_DECIMAL128): Use decimal_float_mode_for_size.
6747 (REAL_VALUE_TO_TARGET_DECIMAL64): Likewise.
6748 (REAL_VALUE_TO_TARGET_DECIMAL32): Likewise.
6750 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6752 * builtins.c (expand_builtin_powi): Use int_mode_for_size.
6753 (get_builtin_sync_mode): Likewise.
6754 (expand_ifn_atomic_compare_exchange): Likewise.
6755 (expand_builtin_atomic_clear): Likewise.
6756 (expand_builtin_atomic_test_and_set): Likewise.
6757 (fold_builtin_atomic_always_lock_free): Likewise.
6758 * calls.c (compute_argument_addresses): Likewise.
6759 (emit_library_call_value_1): Likewise.
6760 (store_one_arg): Likewise.
6761 * combine.c (combine_instructions): Likewise.
6762 * config/aarch64/aarch64.c (aarch64_function_value): Likewise.
6763 * config/arm/arm.c (arm_function_value): Likewise.
6764 (aapcs_allocate_return_reg): Likewise.
6765 * config/c6x/c6x.c (c6x_expand_movmem): Likewise.
6766 * config/i386/i386.c (construct_container): Likewise.
6767 (ix86_gimplify_va_arg): Likewise.
6768 (ix86_expand_sse_cmp): Likewise.
6769 (emit_memmov): Likewise.
6770 (emit_memset): Likewise.
6771 (expand_small_movmem_or_setmem): Likewise.
6772 (ix86_expand_pextr): Likewise.
6773 (ix86_expand_pinsr): Likewise.
6774 * config/lm32/lm32.c (lm32_block_move_inline): Likewise.
6775 * config/microblaze/microblaze.c (microblaze_block_move_straight):
6777 * config/mips/mips.c (mips_function_value_1) Likewise.
6778 (mips_block_move_straight): Likewise.
6779 (mips_expand_ins_as_unaligned_store): Likewise.
6780 * config/powerpcspe/powerpcspe.c
6781 (rs6000_darwin64_record_arg_advance_flush): Likewise.
6782 (rs6000_darwin64_record_arg_flush): Likewise.
6783 * config/rs6000/rs6000.c
6784 (rs6000_darwin64_record_arg_advance_flush): Likewise.
6785 (rs6000_darwin64_record_arg_flush): Likewise.
6786 * config/sparc/sparc.c (sparc_function_arg_1): Likewise.
6787 (sparc_function_value_1): Likewise.
6788 * config/spu/spu.c (adjust_operand): Likewise.
6789 (spu_emit_branch_or_set): Likewise.
6790 (arith_immediate_p): Likewise.
6791 * emit-rtl.c (gen_lowpart_common): Likewise.
6792 * expr.c (expand_expr_real_1): Likewise.
6793 * function.c (assign_parm_setup_block): Likewise.
6794 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Likewise.
6795 * reload1.c (alter_reg): Likewise.
6796 * stor-layout.c (mode_for_vector): Likewise.
6797 (layout_type): Likewise.
6799 2017-09-05 Richard Sandiford <richard.sandiford@linaro.org>
6801 * config/spu/spu.c (exp2_immediate_p): Use int_mode_for_mode.
6802 (spu_convert_move): Likewise.
6803 * lower-subreg.c (resolve_simple_move): Likewise.
6805 2017-09-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6808 * config/rs6000/altivec.md (altivec_vsum2sws): Convert from a
6809 define_insn to a define_expand.
6810 (altivec_vsum2sws_direct): New define_insn.
6811 (altivec_vsumsws): Convert from a define_insn to a define_expand.
6813 2017-09-05 Wilco Dijkstra <wdijkstr@arm.com>
6815 * config/arm/arm.c (arm_option_params_internal): Improve setting of
6818 2017-09-05 H.J. Lu <hongjiu.lu@intel.com>
6823 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Don't
6824 realign stack if stack alignment needed is less than incoming
6827 2017-09-05 Marek Polacek <polacek@redhat.com>
6830 * convert.c (convert_to_integer_1) <case NEGATE_EXPR>: Move the ubsan
6833 2017-09-05 Wilco Dijkstra <wdijkstr@arm.com>
6835 * explow.c (get_dynamic_stack_size): Improve dynamic alignment.
6837 2017-09-05 Richard Biener <rguenther@suse.de>
6839 PR tree-optimization/82084
6840 * fold-const.c (can_native_encode_string_p): Handle wide characters.
6842 2017-09-05 Richard Biener <rguenther@suse.de>
6844 PR tree-optimization/82102
6845 * tree-ssa-pre.c (fini_eliminate): Check if lhs is NULL.
6847 2017-09-05 Martin Liska <mliska@suse.cz>
6849 PR tree-optimization/82032
6850 * tree-cfg.c (generate_range_test): New function.
6851 * tree-cfg.h (generate_range_test): Declared here.
6852 * tree-cfgcleanup.c (convert_single_case_switch): New function.
6853 (cleanup_control_expr_graph): Use it.
6854 * tree-switch-conversion.c (try_switch_expansion): Remove
6856 (emit_case_nodes): Use generate_range_test.
6858 2017-09-04 Uros Bizjak <ubizjak@gmail.com>
6861 * config/i386/i386.md (*<btsc><mode>_mask): Add
6862 TARGET_USE_BT to insn constraint.
6863 (*btr<mode>_mask): Ditto.
6865 2017-09-04 Wilco Dijkstra <wdijkstr@arm.com>
6867 * config/arm/arm.c (arm_legitimate_index_p): Add comment.
6868 (thumb2_legitimate_index_p): Use correct range for DI/DF mode.
6870 2017-09-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6873 * config/arm/arm.md (*arm_adddi3, *arm_subdi3): Split early except for
6874 TARGET_NEON and TARGET_IWMMXT.
6875 (anddi3, iordi3, xordi3, one_cmpldi2): Split while expanding except for
6876 TARGET_NEON and TARGET_IWMMXT.
6877 (*one_cmpldi2_insn): Moved the body of one_cmpldi2 here.
6879 2017-09-04 Uros Bizjak <ubizjak@gmail.com>
6881 * config/i386/i386-protos.h (ix86_tls_address_pattern_p) New prototype.
6882 (ix86_rewrite_tls_address): Ditto.
6883 * config/i386/i386.c (ix86_tls_address_pattern_p) New function.
6884 (ix86_rewrite_tls_address_1): Ditto.
6885 (ix86_rewrite_tls_address): Ditto.
6886 * config/i386/predicates.md (tls_address_pattern): New predicate.
6887 * config/i386/i386.md (TLS address splitter): New splitter.
6889 2017-09-04 Richard Biener <rguenther@suse.de>
6891 PR tree-optimization/82084
6892 * fold-const.h (can_native_encode_string_p): Declare.
6893 * fold-const.c (can_native_encode_string_p): Factor out from ...
6894 (native_encode_string): ... here.
6895 * tree-vect-stmts.c (vectorizable_store): Call it to avoid
6896 vectorizing stores from constants we later cannot handle.
6898 2017-09-04 Marek Polacek <polacek@redhat.com>
6901 * doc/invoke.texi: Update -Wtautological-compare documentation.
6903 2017-09-04 Jeff Law <law@redhat.com>
6905 PR tree-optimization/64910
6906 * tree-ssa-reassoc.c (reassociate_bb): For bitwise binary ops,
6907 swap the first and last operand if the last is a constant.
6909 2017-09-04 Marek Polacek <polacek@redhat.com>
6912 * convert.c (do_narrow): When sanitizing signed integer overflows,
6913 bail out for signed types.
6914 (convert_to_integer_1) <case NEGATE_EXPR>: Likewise.
6916 2017-09-04 Richard Biener <rguenther@suse.de>
6918 PR tree-optimization/82060
6919 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
6920 Move devirtualization after stmt folding and before EH/AB/noreturn
6921 cleanup to get the stmt refs canonicalized. Use a bool instead
6922 of gimple_modified_p since that doesn't work for NOPs. Schedule
6923 NOPs generated by folding for removal.
6925 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
6926 Alan Hayward <alan.hayward@arm.com>
6927 David Sherwood <david.sherwood@arm.com>
6929 * coretypes.h (pad_direction): New enum.
6930 * defaults.h (DEFAULT_FUNCTION_ARG_PADDING): Delete.
6931 (FUNCTION_ARG_PADDING): Likewise.
6932 * target.def (function_arg_padding): New hook.
6933 * targhooks.h (default_function_arg_padding): Declare.
6934 * targhooks.c (default_function_arg_padding): New function.
6935 * doc/tm.texi.in (FUNCTION_ARG_PADDING): Replace with...
6936 (TARGET_FUNCTION_ARG_PADDING): ...this.
6937 * doc/tm.texi: Regenerate.
6938 * calls.c (store_unaligned_arguments_into_pseudos): Use pad_direction
6939 instead of direction.
6940 (compute_argument_addresses): Likewise.
6941 (load_register_parameters): Likewise.
6942 (emit_library_call_value_1): Likewise.
6943 (store_one_arg): Use targetm.calls.function_arg_padding instead
6944 of FUNCTION_ARG_PADDING.
6945 (must_pass_in_stack_var_size_or_pad): Likewise.
6946 * expr.c (emit_group_load_1): Use pad_direction instead of direction.
6947 (emit_group_store): Likewise.
6948 (emit_single_push_insn_1): Use targetm.calls.function_arg_padding
6949 instead of FUNCTION_ARG_PADDING.
6950 (emit_push_insn): Likewise, and propagate enum change throughout
6952 * function.h (direction): Delete.
6953 (locate_and_pad_arg_data::where_pad): Use pad_direction instead
6955 * function.c (assign_parm_find_stack_rtl): Likewise.
6956 (assign_parm_setup_block_p): Likewise.
6957 (assign_parm_setup_block): Likewise.
6958 (gimplify_parameters): Likewise.
6959 (locate_and_pad_parm): Use targetm.calls.function_arg_padding
6960 instead of FUNCTION_ARG_PADDING, and propagate enum change throughout
6962 * config/aarch64/aarch64.h (FUNCTION_ARG_PADDING): Delete.
6963 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
6964 * config/aarch64/aarch64-protos.h (aarch64_pad_arg_upward): Delete.
6965 * config/aarch64/aarch64.c (aarch64_pad_arg_upward): Replace with...
6966 (aarch64_function_arg_padding): ...this new function.
6967 (aarch64_gimplify_va_arg_expr): Use pad_direction instead of direction.
6968 (TARGET_FUNCTION_ARG_PADDING): Redefine.
6969 * config/arm/arm.h (FUNCTION_ARG_PADDING): Delete.
6970 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
6971 * config/arm/arm-protos.h (arm_pad_arg_upward): Delete.
6972 * config/arm/arm.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
6973 (arm_pad_arg_upward): Replace with...
6974 (arm_function_arg_padding): ...this new function.
6975 * config/c6x/c6x.h (BLOCK_REG_PADDING): Use pad_direction instead
6977 * config/ia64/hpux.h (FUNCTION_ARG_PADDING): Delete.
6978 * config/ia64/ia64-protos.h (ia64_hpux_function_arg_padding): Delete.
6979 * config/ia64/ia64.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
6980 (ia64_hpux_function_arg_padding): Replace with...
6981 (ia64_function_arg_padding): ...this new function. Use pad_direction
6982 instead of direction. Check for TARGET_HPUX.
6983 * config/iq2000/iq2000.h (FUNCTION_ARG_PADDING): Delete.
6984 * config/iq2000/iq2000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
6985 (iq2000_function_arg_padding): New function.
6986 * config/mips/mips-protos.h (mips_pad_arg_upward): Delete.
6987 * config/mips/mips.c (mips_pad_arg_upward): Replace with...
6988 (mips_function_arg_padding): ...this new function.
6989 (mips_pad_reg_upward): Update accordingly.
6990 (TARGET_FUNCTION_ARG_PADDING): Redefine.
6991 * config/mips/mips.h (PAD_VARARGS_DOWN): Use
6992 targetm.calls.function_arg_padding.
6993 (FUNCTION_ARG_PADDING): Delete.
6994 (BLOCK_REG_PADDING): Use pad_direction instead of direction.
6995 * config/nios2/nios2.h (FUNCTION_ARG_PADDING): Delete.
6996 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
6997 * config/nios2/nios2-protos.h (nios2_function_arg_padding): Delete.
6998 (nios2_block_reg_padding): Return pad_direction instead of direction.
6999 * config/nios2/nios2.c (nios2_block_reg_padding): Return pad_direction
7000 instead of direction.
7001 (nios2_function_arg_padding): Likewise. Make static.
7002 (TARGET_FUNCTION_ARG_PADDING): Redefine.
7003 * config/pa/pa.h (FUNCTION_ARG_PADDING): Delete.
7004 (BLOCK_REG_PADDING): Use targetm.calls.function_arg_padding.
7005 * config/pa/pa-protos.h (pa_function_arg_padding): Delete.
7006 * config/pa/pa.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7007 (pa_function_arg_padding): Make static. Return pad_direction instead
7009 * config/powerpcspe/powerpcspe.h (FUNCTION_ARG_PADDING): Delete.
7010 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
7011 * config/powerpcspe/aix.h (BLOCK_REG_PADDING): Use pad_direction
7012 instead of direction. Use targetm.calls.function_arg_padding.
7013 * config/powerpcspe/darwin.h (BLOCK_REG_PADDING): Likewise.
7014 * config/powerpcspe/freebsd64.h (BLOCK_REG_PADDING): Likewise.
7015 * config/powerpcspe/linux64.h (BLOCK_REG_PADDING): Likewise.
7016 * config/powerpcspe/powerpcspe-protos.h (function_arg_padding): Delete.
7017 * config/powerpcspe/powerpcspe.c (TARGET_FUNCTION_ARG_PADDING):
7019 (function_arg_padding): Rename to...
7020 (rs6000_function_arg_padding): ...this. Make static. Return
7021 pad_direction instead of direction.
7022 (rs6000_return_in_msb): Use rs6000_function_arg_padding.
7023 * config/rs6000/rs6000.h (FUNCTION_ARG_PADDING): Delete.
7024 (PAD_VARARGS_DOWN): Use targetm.calls.function_arg_padding.
7025 * config/rs6000/aix.h (BLOCK_REG_PADDING): Use pad_direction
7026 instead of direction. Use targetm.calls.function_arg_padding.
7027 * config/rs6000/darwin.h (BLOCK_REG_PADDING): Likewise.
7028 * config/rs6000/freebsd64.h (BLOCK_REG_PADDING): Likewise.
7029 * config/rs6000/linux64.h (BLOCK_REG_PADDING): Likewise.
7030 * config/rs6000/rs6000-protos.h (function_arg_padding): Delete.
7031 * config/rs6000/rs6000.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7032 (function_arg_padding): Rename to...
7033 (rs6000_function_arg_padding): ...this. Make static. Return
7034 pad_direction instead of direction.
7035 (rs6000_return_in_msb): Use rs6000_function_arg_padding.
7036 * config/s390/s390.h (FUNCTION_ARG_PADDING): Delete.
7037 * config/s390/s390.c (s390_function_arg_padding): New function.
7038 (TARGET_FUNCTION_ARG_PADDING): Redefine.
7039 * config/sparc/sparc.h (FUNCTION_ARG_PADDING): Delete.
7040 * config/sparc/sparc-protos.h (function_arg_padding): Delete.
7041 * config/sparc/sparc.c (TARGET_FUNCTION_ARG_PADDING): Redefine.
7042 (function_arg_padding): Rename to...
7043 (sparc_function_arg_padding): ...this. Make static. Return
7044 pad_direction instead of direction.
7045 * config/spu/spu.h (FUNCTION_ARG_PADDING): Delete.
7046 * config/spu/spu.c (spu_function_arg_padding): New function.
7047 (TARGET_FUNCTION_ARG_PADDING): Redefine.
7048 * system.h (FUNCTION_ARG_PADDING): Poison.
7050 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
7051 Alan Hayward <alan.hayward@arm.com>
7052 David Sherwood <david.sherwood@arm.com>
7054 * target.def (modes_tieable_p): New hook.
7055 * doc/tm.texi (MODES_TIEABLE_P): Replace with...
7056 (TARGET_MODES_TIEABLE_P): ...this.
7057 * doc/tm.texi.in: Regenerate.
7058 * hooks.h (hook_bool_mode_mode_true): Declare.
7059 * hooks.c (hook_bool_mode_mode_true): New function.
7060 * combine.c (subst): Use targetm.modes_tieable_p instead of
7062 * dse.c (find_shift_sequence): Likewise.
7063 * expmed.c (extract_low_bits): Likewise.
7064 * lower-subreg.c: Include target.h.
7065 (find_decomposable_subregs): Use targetm.modes_tieable_p instead of
7067 * rtlanal.c (rtx_cost): Likewise.
7068 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Delete.
7069 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): Delete.
7070 * config/aarch64/aarch64.c (aarch64_modes_tieable_p): Make static.
7071 (TARGET_MODES_TIEABLE_P): Redefine.
7072 * config/alpha/alpha.h (MODES_TIEABLE_P): Delete.
7073 * config/alpha/alpha.c (alpha_modes_tieable_p): New function.
7074 (TARGET_MODES_TIEABLE_P): Redefine.
7075 * config/arc/arc.h (MODES_TIEABLE_P): Delete.
7076 * config/arc/arc.c (TARGET_MODES_TIEABLE_P): Redefine.
7077 (arc_modes_tieable_p): New function.
7078 * config/arm/arm.h (MODES_TIEABLE_P): Delete.
7079 * config/arm/arm-protos.h (arm_modes_tieable_p): Delete.
7080 * config/arm/arm.c (TARGET_MODES_TIEABLE_P): Redefine.
7081 (arm_modes_tieable_p): Make static.
7082 * config/avr/avr.h (MODES_TIEABLE_P): Delete.
7083 * config/bfin/bfin.h (MODES_TIEABLE_P): Delete.
7084 * config/bfin/bfin.c (bfin_modes_tieable_p): New function.
7085 (TARGET_MODES_TIEABLE_P): Redefine.
7086 * config/c6x/c6x.h (MODES_TIEABLE_P): Delete.
7087 * config/c6x/c6x.c (c6x_modes_tieable_p): New function.
7088 (TARGET_MODES_TIEABLE_P): Redefine.
7089 * config/cr16/cr16.h (MODES_TIEABLE_P): Delete.
7090 * config/cr16/cr16.c (TARGET_MODES_TIEABLE_P): Redefine.
7091 (cr16_modes_tieable_p): New function.
7092 * config/cris/cris.h (MODES_TIEABLE_P): Delete.
7093 * config/epiphany/epiphany.h (MODES_TIEABLE_P): Delete.
7094 * config/fr30/fr30.h (MODES_TIEABLE_P): Delete.
7095 (TRULY_NOOP_TRUNCATION): Update comment.
7096 * config/frv/frv.h (MODES_TIEABLE_P): Delete.
7097 (TRULY_NOOP_TRUNCATION): Update comment.
7098 * config/frv/frv.c (TARGET_MODES_TIEABLE_P): Redefine.
7099 (frv_modes_tieable_p): New function.
7100 * config/ft32/ft32.h (MODES_TIEABLE_P): Delete.
7101 * config/h8300/h8300.h (MODES_TIEABLE_P): Delete.
7102 * config/h8300/h8300.c (h8300_modes_tieable_p): New function.
7103 (TARGET_MODES_TIEABLE_P): Redefine.
7104 * config/i386/i386.h (MODES_TIEABLE_P): Delete.
7105 * config/i386/i386-protos.h (ix86_modes_tieable_p): Delete.
7106 * config/i386/i386.c (ix86_modes_tieable_p): Make static.
7107 (TARGET_MODES_TIEABLE_P): Redefine.
7108 * config/ia64/ia64.h (MODES_TIEABLE_P): Delete.
7109 * config/ia64/ia64.c (TARGET_MODES_TIEABLE_P): Redefine.
7110 (ia64_modes_tieable_p): New function.
7111 * config/iq2000/iq2000.h (MODES_TIEABLE_P): Delete.
7112 * config/iq2000/iq2000.c (TARGET_MODES_TIEABLE_P): Redefine.
7113 (iq2000_modes_tieable_p): New function.
7114 * config/lm32/lm32.h (MODES_TIEABLE_P): Delete.
7115 * config/lm32/lm32.c (TARGET_MODES_TIEABLE_P): Redefine.
7116 (lm32_modes_tieable_p): New function.
7117 * config/m32c/m32c.h (MODES_TIEABLE_P): Delete.
7118 * config/m32c/m32c-protos.h (m32c_modes_tieable_p): Delete.
7119 * config/m32c/m32c.c (m32c_modes_tieable_p): Make static.
7120 (TARGET_MODES_TIEABLE_P): Redefine.
7121 * config/m32r/m32r.h (MODES_TIEABLE_P): Delete.
7122 * config/m32r/m32r.c (TARGET_MODES_TIEABLE_P): Redefine.
7123 (m32r_modes_tieable_p): New function.
7124 * config/m68k/m68k.h (MODES_TIEABLE_P): Delete.
7125 * config/m68k/m68k.c (TARGET_MODES_TIEABLE_P): Redefine.
7126 (m68k_modes_tieable_p): New function.
7127 * config/mcore/mcore.h (MODES_TIEABLE_P): Delete.
7128 * config/mcore/mcore.c (TARGET_MODES_TIEABLE_P): Redefine.
7129 (mcore_modes_tieable_p): New function.
7130 * config/microblaze/microblaze.h (MODES_TIEABLE_P): Delete.
7131 * config/microblaze/microblaze.c (microblaze_modes_tieable_p): New
7133 (TARGET_MODES_TIEABLE_P): Redefine.
7134 * config/mips/mips.h (MODES_TIEABLE_P): Delete.
7135 * config/mips/mips-protos.h (mips_modes_tieable_p): Delete.
7136 * config/mips/mips.c (mips_modes_tieable_p): Make static.
7137 (TARGET_MODES_TIEABLE_P): Redefine.
7138 * config/mmix/mmix.h (MODES_TIEABLE_P): Delete.
7139 * config/mn10300/mn10300.h (MODES_TIEABLE_P): Delete.
7140 * config/mn10300/mn10300-protos.h (mn10300_modes_tieable): Delete.
7141 * config/mn10300/mn10300.c (mn10300_modes_tieable): Rename to...
7142 (mn10300_modes_tieable_p): ...this and make static.
7143 (TARGET_MODES_TIEABLE_P): Redefine.
7144 * config/moxie/moxie.h (MODES_TIEABLE_P): Delete.
7145 * config/msp430/msp430.h (MODES_TIEABLE_P): Delete.
7146 * config/msp430/msp430-protos.h (msp430_modes_tieable_p): Delete.
7147 * config/msp430/msp430.c (TARGET_MODES_TIEABLE_P): Redefine.
7148 (msp430_modes_tieable_p): Make static.
7149 * config/nds32/nds32.h (MODES_TIEABLE_P): Delete.
7150 * config/nds32/nds32.c (nds32_modes_tieable_p): New function.
7151 (TARGET_MODES_TIEABLE_P): Redefine.
7152 * config/nios2/nios2.h (MODES_TIEABLE_P): Delete.
7153 * config/nvptx/nvptx.h (MODES_TIEABLE_P): Delete.
7154 * config/nvptx/nvptx.c (nvptx_modes_tieable_p): New function.
7155 (TARGET_MODES_TIEABLE_P): Redefine.
7156 * config/pa/pa.h (MODES_TIEABLE_P): Delete.
7157 * config/pa/pa-protos.h (pa_modes_tieable_p): Delete.
7158 * config/pa/pa.c (pa_modes_tieable_p): Make static.
7159 (TARGET_MODES_TIEABLE_P): Redefine.
7160 * config/pdp11/pdp11.h (MODES_TIEABLE_P): Delete.
7161 * config/pdp11/pdp11.c (TARGET_MODES_TIEABLE_P): Redefine.
7162 (pdp11_modes_tieable_p): New function.
7163 * config/powerpcspe/powerpcspe.h (MODES_TIEABLE_P): Delete.
7164 * config/powerpcspe/powerpcspe.c (TARGET_MODES_TIEABLE_P): Redefine.
7165 (rs6000_modes_tieable_p): New function.
7166 (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
7167 * config/powerpcspe/powerpcspe.md: Update comment.
7168 * config/riscv/riscv.h (MODES_TIEABLE_P): Delete.
7169 * config/riscv/riscv.c (riscv_modes_tieable_p): New function.
7170 (TARGET_MODES_TIEABLE_P): Redefine.
7171 * config/rl78/rl78.h (MODES_TIEABLE_P): Delete.
7172 * config/rl78/rl78.c (TARGET_MODES_TIEABLE_P): Redefine.
7173 (rl78_modes_tieable_p): New function.
7174 * config/rs6000/rs6000.h (MODES_TIEABLE_P): Delete.
7175 * config/rs6000/rs6000.c (TARGET_MODES_TIEABLE_P): Redefine.
7176 (rs6000_modes_tieable_p): New function.
7177 (rs6000_debug_reg_global): Use it instead of MODES_TIEABLE_P.
7178 * config/rs6000/rs6000.md: Update comment.
7179 * config/rx/rx.h (MODES_TIEABLE_P): Delete.
7180 * config/rx/rx.c (rx_modes_tieable_p): New function.
7181 (TARGET_MODES_TIEABLE_P): Redefine.
7182 * config/s390/s390.h (MODES_TIEABLE_P): Delete.
7183 * config/s390/s390.c (s390_modes_tieable_p): New function.
7184 (TARGET_MODES_TIEABLE_P): Redefine.
7185 * config/sh/sh.h (MODES_TIEABLE_P): Delete.
7186 * config/sh/sh.c (TARGET_MODES_TIEABLE_P): Redefine.
7187 (sh_modes_tieable_p): New function.
7188 * config/sparc/sparc.h (MODES_TIEABLE_P): Delete.
7189 * config/sparc/sparc-protos.h (sparc_modes_tieable_p): Delete.
7190 * config/sparc/sparc.c (TARGET_MODES_TIEABLE_P): Redefine.
7191 (sparc_modes_tieable_p): Make static.
7192 * config/spu/spu.h (MODES_TIEABLE_P): Delete.
7193 * config/spu/spu.c (spu_modes_tieable_p): New function.
7194 (TARGET_MODES_TIEABLE_P): Redefine.
7195 * config/stormy16/stormy16.h (MODES_TIEABLE_P): Delete.
7196 * config/stormy16/stormy16.c (xstormy16_modes_tieable_p): New function.
7197 (TARGET_MODES_TIEABLE_P): Redefine.
7198 * config/tilegx/tilegx.h (MODES_TIEABLE_P): Delete.
7199 * config/tilepro/tilepro.h (MODES_TIEABLE_P): Delete.
7200 * config/v850/v850.h (MODES_TIEABLE_P): Delete.
7201 * config/v850/v850.c (v850_modes_tieable_p): New function.
7202 (TARGET_MODES_TIEABLE_P): Redefine.
7203 * config/vax/vax.h (MODES_TIEABLE_P): Delete.
7204 * config/visium/visium.h (MODES_TIEABLE_P): Delete.
7205 * config/visium/visium.c (TARGET_MODES_TIEABLE_P): Redefine.
7206 (visium_modes_tieable_p): New function.
7207 * config/xtensa/xtensa.h (MODES_TIEABLE_P): Delete.
7208 * config/xtensa/xtensa.c (TARGET_MODES_TIEABLE_P): Redefine.
7209 (xtensa_modes_tieable_p): New function.
7210 * system.h (MODES_TIEABLE_P): Poison.
7212 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
7213 Alan Hayward <alan.hayward@arm.com>
7214 David Sherwood <david.sherwood@arm.com>
7216 * target.def (hard_regno_mode_ok): New hook.
7217 * doc/tm.texi (HARD_REGNO_MODE_OK): Replace with...
7218 (TARGET_HARD_REGNO_MODE_OK): ...this.
7219 * doc/tm.texi.in: Regenerate.
7220 * hooks.h (hook_bool_uint_mode_true): Declare.
7221 * hooks.c (hook_bool_uint_mode_true): New function.
7222 * doc/md.texi: Refer to targetm.hard_regno_mode_ok instead of
7224 * genpreds.c (write_insn_preds_c): Add an include of target.h.
7225 * alias.c (init_alias_target): Use targetm.hard_regno_mode_ok
7226 instead of HARD_REGNO_MODE_OK.
7227 * caller-save.c: Include target.h.
7228 (reg_save_code): Use targetm.hard_regno_mode_ok instead of
7230 * combine.c (can_combine_p): Likewise.
7231 (combinable_i3pat): Likewise.
7232 (can_change_dest_mode): Likewise.
7233 * expr.c (init_expr_target): Likewise.
7234 (convert_move): Likewise.
7235 (convert_modes): Likewise.
7236 * ira.c (setup_prohibited_class_mode_regs): Likewise.
7237 (setup_prohibited_mode_move_regs): Likewise.
7238 * ira.h (target_ira): Likewise.
7239 * lra-assigns.c (find_hard_regno_for_1): Likewise.
7240 * lra-constraints.c (process_alt_operands): Likewise.
7241 (split_reg): Likewise.
7242 * recog.c (peep2_find_free_register): Likewise.
7243 * ree.c (combine_reaching_defs): Likewise.
7244 * regcprop.c (maybe_mode_change): Likewise.
7245 * reginfo.c (init_reg_sets_1): Likewise.
7246 (choose_hard_reg_mode): Likewise.
7247 (simplifiable_subregs): Likewise.
7248 * regrename.c (check_new_reg_p): Likewise.
7249 * reload.c (find_valid_class): Likewise.
7250 (find_valid_class_1): Likewise.
7251 (reload_inner_reg_of_subreg): Likewise.
7252 (push_reload): Likewise.
7253 (combine_reloads): Likewise.
7254 (find_dummy_reload): Likewise.
7255 (find_reloads): Likewise.
7256 * reload1.c (find_reg): Likewise.
7257 (set_reload_reg): Likewise.
7258 (allocate_reload_reg): Likewise.
7259 (choose_reload_regs): Likewise.
7260 (reload_adjust_reg_for_temp): Likewise.
7261 * rtlanal.c (subreg_size_offset_from_lsb): Likewise.
7262 (simplify_subreg_regno): Likewise.
7263 * sel-sched.c (init_regs_for_mode): Likewise.
7264 * varasm.c (make_decl_rtl): Likewise.
7265 * config/aarch64/aarch64.h (HARD_REGNO_MODE_OK): Delete.
7266 (MODES_TIEABLE_P): Use targetm.hard_regno_mode_ok instead of
7268 * config/aarch64/aarch64-protos.h (aarch64_hard_regno_mode_ok): Delete.
7269 * config/aarch64/aarch64.c (aarch64_hard_regno_mode_ok): Make static.
7270 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7271 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Delete.
7272 * config/alpha/alpha.c (alpha_hard_regno_mode_ok): New function.
7273 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7274 * config/arc/arc.h (arc_hard_regno_mode_ok): Delete.
7275 (arc_mode_class): Delete.
7276 (HARD_REGNO_MODE_OK): Delete.
7277 * config/arc/arc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7278 (arc_hard_regno_mode_ok): Rename old array to...
7279 (arc_hard_regno_mode_ok_modes): ...this.
7280 (arc_conditional_register_usage): Update accordingly.
7281 (arc_mode_class): Make static.
7282 (arc_hard_regno_mode_ok): New function.
7283 * config/arm/arm.h (HARD_REGNO_MODE_OK): Delete.
7284 * config/arm/arm-protos.h (arm_hard_regno_mode_ok): Delete.
7285 * config/arm/arm.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7286 (arm_hard_regno_mode_ok): Make static.
7287 * config/arm/arm.md (movdi): Use targetm.hard_regno_mode_ok instead of
7289 * config/avr/avr-protos.h (avr_hard_regno_mode_ok): Delete.
7290 * config/avr/avr.h (HARD_REGNO_MODE_OK): Delete.
7291 * config/avr/avr.c (avr_hard_regno_mode_ok): Make static and
7293 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7294 * config/bfin/bfin-protos.h (hard_regno_mode_ok): Delete.
7295 * config/bfin/bfin.h (HARD_REGNO_MODE_OK): Delete.
7296 * config/bfin/bfin.c (hard_regno_mode_ok): Rename to...
7297 (bfin_hard_regno_mode_ok): ...this. Make static and return a bool.
7298 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7299 * config/bfin/predicates.md (valid_reg_operand): Use
7300 targetm.hard_regno_mode_ok instead of HARD_REGNO_MODE_OK.
7301 * config/c6x/c6x.h (HARD_REGNO_MODE_OK): Delete.
7302 * config/c6x/c6x.c (c6x_hard_regno_mode_ok): New function.
7303 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7304 * config/cr16/cr16.h (HARD_REGNO_MODE_OK): Delete.
7305 * config/cr16/cr16-protos.h (cr16_hard_regno_mode_ok): Delete.
7306 * config/cr16/cr16.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7307 (cr16_hard_regno_mode_ok): Make static and return a bool.
7308 * config/cris/cris.h (HARD_REGNO_MODE_OK): Delete.
7309 * config/cris/cris.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7310 (cris_hard_regno_mode_ok): New function.
7311 * config/epiphany/epiphany.h (epiphany_hard_regno_mode_ok): Delete.
7312 (epiphany_mode_class): Delete.
7313 (HARD_REGNO_MODE_OK): Delete.
7314 * config/epiphany/epiphany-protos.h (hard_regno_mode_ok): Delete.
7315 * config/epiphany/epiphany.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7316 (hard_regno_mode_ok): Rename to...
7317 (epiphany_hard_regno_mode_ok): ...this. Make static and return a bool.
7318 * config/fr30/fr30.h (HARD_REGNO_MODE_OK): Delete.
7319 * config/fr30/fr30.md: Refer to targetm.hard_regno_mode_ok instead of
7321 * config/frv/frv.h (HARD_REGNO_MODE_OK): Delete.
7322 * config/frv/frv-protos.h (frv_hard_regno_mode_ok): Delete.
7323 * config/frv/frv.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7324 (frv_hard_regno_mode_ok): Make static and return a bool.
7325 * config/frv/frv.md: Refer to targetm.hard_regno_mode_ok instead of
7327 * config/ft32/ft32.h (HARD_REGNO_MODE_OK): Delete.
7328 * config/h8300/h8300.h (HARD_REGNO_MODE_OK): Delete.
7329 * config/h8300/h8300-protos.h (h8300_hard_regno_mode_ok): Delete.
7330 * config/h8300/h8300.c (h8300_hard_regno_mode_ok): Make static
7332 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7333 * config/i386/i386.h (HARD_REGNO_MODE_OK): Delete.
7334 * config/i386/i386-protos.h (ix86_hard_regno_mode_ok): Delete.
7335 * config/i386/i386.c (ix86_hard_regno_mode_ok): Make static and
7337 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7338 * config/ia64/ia64.h (HARD_REGNO_MODE_OK): Delete.
7339 * config/ia64/ia64.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7340 (ia64_hard_regno_mode_ok): New function.
7341 * config/iq2000/iq2000.h (HARD_REGNO_MODE_OK): Delete.
7342 * config/iq2000/iq2000.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7343 (iq2000_hard_regno_mode_ok): New function.
7344 * config/lm32/lm32.h (HARD_REGNO_MODE_OK): Delete.
7345 * config/lm32/lm32.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7346 (lm32_hard_regno_mode_ok): New function.
7347 * config/m32c/m32c.h (HARD_REGNO_MODE_OK): Delete.
7348 * config/m32c/m32c-protos.h (m32c_hard_regno_ok): Delete.
7349 * config/m32c/m32c.c (class_can_hold_mode): Use m32c_hard_regno_mode_ok
7350 instead of HARD_REGNO_MODE_OK.
7351 (m32c_hard_regno_ok): Rename to...
7352 (m32c_hard_regno_mode_ok): ...this. Make static and return a bool.
7353 (m32c_cannot_change_mode_class): Update accordingly.
7354 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7355 * config/m32r/m32r.h (m32r_hard_regno_mode_ok): Delete.
7356 (m32r_mode_class): Delete.
7357 (HARD_REGNO_MODE_OK): Delete.
7358 * config/m32r/m32r.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7359 (m32r_hard_regno_mode_ok): Rename to...
7360 (m32r_hard_regno_modes): ...this.
7361 (m32r_mode_class): Make static.
7362 (m32r_hard_regno_mode_ok): New function.
7363 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Delete.
7364 * config/m68k/m68k-protos.h (m68k_regno_mode_ok): Delete.
7365 * config/m68k/m68k.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7366 (m68k_hard_regno_mode_ok): Make static.
7367 * config/mcore/mcore.h (HARD_REGNO_MODE_OK): Delete.
7368 * config/mcore/mcore.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7369 (mcore_hard_regno_mode_ok): New function.
7370 * config/microblaze/microblaze.h (microblaze_hard_regno_mode_ok)
7371 (HARD_REGNO_MODE_OK): Delete.
7372 * config/microblaze/microblaze.c (microblaze_hard_regno_mode_ok):
7374 (microblaze_hard_regno_mode_ok_p): ...this and make static.
7375 (microblaze_hard_regno_mode_ok): New function.
7376 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7377 * config/mips/mips.h (HARD_REGNO_MODE_OK): Delete.
7378 (mips_hard_regno_mode_ok): Delete.
7379 * config/mips/mips.c (mips_hard_regno_mode_ok): Rename to...
7380 (mips_hard_regno_mode_ok_p): ...this and make static.
7381 (mips_hard_regno_mode_ok_p): Rename to...
7382 (mips_hard_regno_mode_ok_uncached): ...this.
7383 (mips_hard_regno_mode_ok): New function.
7384 (mips_class_max_nregs): Use mips_hard_regno_mode_ok instead
7385 of HARD_REGNO_MODE_OK.
7386 (mips_option_override): Update after above name changes.
7387 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7388 * config/mmix/mmix.h (HARD_REGNO_MODE_OK): Delete.
7389 * config/mn10300/mn10300.h (HARD_REGNO_MODE_OK): Delete.
7390 * config/mn10300/mn10300-protos.h (mn10300_hard_regno_mode_ok): Delete.
7391 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Make static.
7392 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7393 * config/moxie/moxie.h (HARD_REGNO_MODE_OK): Delete.
7394 * config/msp430/msp430.h (HARD_REGNO_MODE_OK): Delete.
7395 * config/msp430/msp430-protos.h (msp430_hard_regno_mode_ok): Delete.
7396 * config/msp430/msp430.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7397 (msp430_hard_regno_mode_ok): Make static and return a bool.
7398 * config/nds32/nds32.h (HARD_REGNO_MODE_OK): Delete.
7399 * config/nds32/nds32-protos.h (nds32_hard_regno_mode_ok): Delete.
7400 * config/nds32/nds32.c (nds32_hard_regno_mode_ok): Make static
7402 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7403 * config/nios2/nios2.h (HARD_REGNO_MODE_OK): Delete.
7404 * config/nvptx/nvptx.h (HARD_REGNO_MODE_OK): Delete.
7405 * config/pa/pa.h (MODES_TIEABLE_P): Update commentary.
7406 * config/pa/pa32-regs.h (HARD_REGNO_MODE_OK): Rename to...
7407 (PA_HARD_REGNO_MODE_OK): ...this
7408 * config/pa/pa64-regs.h (HARD_REGNO_MODE_OK): Rename to...
7409 (PA_HARD_REGNO_MODE_OK): ...this.
7410 * config/pa/pa.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7411 (pa_hard_regno_mode_ok): New function.
7412 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Delete.
7413 * config/pdp11/pdp11.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7414 (pdp11_hard_regno_mode_ok): New function.
7415 * config/powerpcspe/powerpcspe.h (HARD_REGNO_MODE_OK): Delete.
7416 * config/powerpcspe/powerpcspe-protos.h (rs6000_hard_regno_mode_ok_p):
7418 * config/powerpcspe/powerpcspe.c (rs6000_hard_regno_mode_ok_p):
7420 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7421 (rs6000_hard_regno_mode_ok): Rename to...
7422 (rs6000_hard_regno_mode_ok_uncached): ...this.
7423 (rs6000_init_hard_regno_mode_ok): Update accordingly.
7424 (rs6000_hard_regno_mode_ok): New function.
7425 * config/riscv/riscv.h (HARD_REGNO_MODE_OK): Delete.
7426 * config/riscv/riscv-protos.h (riscv_hard_regno_mode_ok_p): Delete.
7427 * config/riscv/riscv.c (riscv_hard_regno_mode_ok_p): Rename to...
7428 (riscv_hard_regno_mode_ok): ...this and make static.
7429 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7430 * config/rl78/rl78.h (HARD_REGNO_MODE_OK): Delete.
7431 * config/rl78/rl78-protos.h (rl78_hard_regno_mode_ok): Delete.
7432 * config/rl78/rl78.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7433 (rl78_hard_regno_mode_ok): Make static and return bool.
7434 * config/rs6000/rs6000.h (HARD_REGNO_MODE_OK): Delete.
7435 * config/rs6000/rs6000-protos.h (rs6000_hard_regno_mode_ok_p):
7437 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok_p): Make static.
7438 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7439 (rs6000_hard_regno_mode_ok): Rename to...
7440 (rs6000_hard_regno_mode_ok_uncached): ...this.
7441 (rs6000_init_hard_regno_mode_ok): Update accordingly.
7442 (rs6000_hard_regno_mode_ok): New function.
7443 * config/rx/rx.h (HARD_REGNO_MODE_OK): Delete.
7444 * config/rx/rx.c (rx_hard_regno_mode_ok): New function.
7445 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7446 * config/s390/s390.h (HARD_REGNO_MODE_OK): Delete.
7447 * config/s390/s390-protos.h (s390_hard_regno_mode_ok): Delete.
7448 * config/s390/s390.c (s390_hard_regno_mode_ok): Make static.
7449 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7450 * config/sh/sh.h (HARD_REGNO_MODE_OK): Delete.
7451 * config/sh/sh-protos.h (sh_hard_regno_mode_ok): Delete.
7452 * config/sh/sh.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7453 (sh_hard_regno_mode_ok): Make static.
7454 * config/sparc/constraints.md: Refer to targetm.hard_regno_mode_ok
7455 instead of HARD_REGNO_MODE_OK.
7456 * config/sparc/sparc.h (hard_regno_mode_classes): Delete.
7457 (sparc_mode_class): Delete.
7458 (HARD_REGNO_MODE_OK): Delete.
7459 * config/sparc/sparc.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7460 (hard_regno_mode_classes): Make static.
7461 (sparc_mode_class): Likewise.
7462 (sparc_hard_regno_mode_ok): New function.
7463 * config/spu/spu.h (HARD_REGNO_MODE_OK): Delete.
7464 * config/stormy16/stormy16.h (HARD_REGNO_MODE_OK): Delete.
7465 * config/stormy16/stormy16.c (xstormy16_hard_regno_mode_ok): New
7467 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7468 * config/tilegx/tilegx.h (HARD_REGNO_MODE_OK): Delete.
7469 * config/tilepro/tilepro.h (HARD_REGNO_MODE_OK): Delete.
7470 * config/v850/v850.h (HARD_REGNO_MODE_OK): Delete.
7471 * config/v850/v850.c (v850_hard_regno_mode_ok): New function.
7472 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7473 * config/vax/vax.h (HARD_REGNO_MODE_OK): Delete.
7474 * config/visium/visium.h (HARD_REGNO_MODE_OK): Delete.
7475 * config/visium/visium.c (TARGET_HARD_REGNO_MODE_OK): Redefine.
7476 (visium_hard_regno_mode_ok): New function.
7477 * config/visium/visium.md: Refer to targetm.hard_regno_mode_ok
7478 instead of HARD_REGNO_MODE_OK.
7479 * config/xtensa/xtensa.h (xtensa_hard_regno_mode_ok): Delete.
7480 (HARD_REGNO_MODE_OK): Delete.
7481 * config/xtensa/xtensa.c (xtensa_hard_regno_mode_ok): Rename to...
7482 (xtensa_hard_regno_mode_ok_p): ...this and make static.
7483 (xtensa_option_override): Update accordingly.
7484 (TARGET_HARD_REGNO_MODE_OK): Redefine.
7485 (xtensa_hard_regno_mode_ok): New function.
7486 * system.h (HARD_REGNO_MODE_OK): Poison.
7488 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
7489 Alan Hayward <alan.hayward@arm.com>
7490 David Sherwood <david.sherwood@arm.com>
7492 * target.def (hard_regno_call_part_clobbered): New hook.
7493 * doc/tm.texi.in (HARD_REGNO_CALL_PART_CLOBBERED): Replace with...
7494 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): ...this hook.
7495 * doc/tm.texi: Regenerate.
7496 * hooks.h (hook_bool_uint_mode_false): Declare.
7497 * hooks.c (hook_bool_uint_mode_false): New function.
7498 * regs.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7499 * cselib.c (cselib_process_insn): Use
7500 targetm.hard_regno_call_part_clobbered instead of
7501 HARD_REGNO_CALL_PART_CLOBBERED.
7502 * ira-conflicts.c (ira_build_conflicts): Likewise.
7503 * ira-costs.c (ira_tune_allocno_costs): Likewise.
7504 * lra-constraints.c (need_for_call_save_p): Likewise.
7505 * lra-lives.c: Include target.h.
7506 (check_pseudos_live_through_calls): Use
7507 targetm.hard_regno_call_part_clobbered instead of
7508 HARD_REGNO_CALL_PART_CLOBBERED.
7509 * regcprop.c: Include target.h.
7510 (copyprop_hardreg_forward_1): Use
7511 targetm.hard_regno_call_part_clobbered instead of
7512 HARD_REGNO_CALL_PART_CLOBBERED.
7513 * reginfo.c (choose_hard_reg_mode): Likewise.
7514 * regrename.c (check_new_reg_p): Likewise.
7515 * reload.c (find_equiv_reg): Likewise.
7516 * reload1.c (emit_reload_insns): Likewise.
7517 * sched-deps.c (deps_analyze_insn): Likewise.
7518 * sel-sched.c (init_regs_for_mode): Likewise.
7519 (mark_unavailable_hard_regs): Likewise.
7520 * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
7521 * config/aarch64/aarch64.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7522 * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
7524 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7525 * config/avr/avr.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7526 * config/avr/avr-protos.h (avr_hard_regno_call_part_clobbered):
7528 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Make static
7530 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7531 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7532 * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): New
7534 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7535 * config/mips/mips.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7536 * config/mips/mips.c (mips_hard_regno_call_part_clobbered): New
7538 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7539 * config/powerpcspe/powerpcspe.h (HARD_REGNO_CALL_PART_CLOBBERED):
7541 * config/powerpcspe/powerpcspe.c
7542 (rs6000_hard_regno_call_part_clobbered): New function.
7543 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7544 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7545 * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
7547 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7548 * config/s390/s390.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7549 * config/s390/s390.c (s390_hard_regno_call_part_clobbered): New
7551 (TARGET_HARD_REGNO_CALL_PART_CLOBBERED): Redefine.
7552 * config/sh/sh.h (HARD_REGNO_CALL_PART_CLOBBERED): Delete.
7553 * system.h (HARD_REGNO_CALL_PART_CLOBBERED): Poison.
7555 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
7556 Alan Hayward <alan.hayward@arm.com>
7557 David Sherwood <david.sherwood@arm.com>
7559 * rtl.h (subreg_memory_offset): Declare.
7560 * emit-rtl.c (subreg_memory_offset): New function.
7561 * expmed.c (store_bit_field_1): Use it.
7562 * expr.c (undefined_operand_subword_p): Likewise.
7563 * simplify-rtx.c (simplify_subreg): Likewise.
7565 2017-09-04 Alexander Monakov <amonakov@ispras.ru>
7567 PR rtl-optimization/57448
7570 * optabs.c (expand_atomic_load): Place compiler memory barriers if
7571 using atomic_load pattern.
7572 (expand_atomic_store): Likewise.
7574 2017-09-04 Jakub Jelinek <jakub@redhat.com>
7577 * gimple-fold.c (gimple_fold_call): Optimize away useless UBSAN_PTR
7578 and UBSAN_BOUNDS internal calls. Clean up IFN_UBSAN_OBJECT_SIZE
7579 handling. Use replace_call_with_value with NULL instead of
7580 gsi_replace, unlink_stmt_vdef and release_defs.
7582 * gdbhooks.py (OptMachineModePrinter.to_string): Use 8 spaces
7585 * lra-remat.c (reg_overlap_for_remat_p): Fix a pasto.
7587 2017-09-04 Richard Sandiford <richard.sandiford@linaro.org>
7590 * rtl.h (emit_library_call_value_1): Declare.
7591 (emit_library_call): Replace declaration with a series of overloads.
7592 Remove the parameter count argument.
7593 (emit_library_call_value): Likewise.
7594 * calls.c (emit_library_call_value_1): Make global. Replace varargs
7595 with an "rtx_mode_t *".
7596 (emit_library_call_value): Delete.
7597 (emit_library_call): Likewise.
7598 * asan.c (asan_emit_stack_protection): Update calls accordingly.
7599 (asan_emit_allocas_unpoison): Likewise.
7600 * builtins.c (expand_builtin_powi): Likewise.
7601 (expand_asan_emit_allocas_unpoison): Likewise.
7602 * cfgexpand.c (expand_main_function): Likewise.
7603 * config/aarch64/aarch64.c (aarch64_trampoline_init): Likewise.
7604 * config/aarch64/aarch64.h (PROFILE_HOOK): Likewise.
7605 * config/alpha/alpha.c (alpha_trampoline_init): Likewise.
7606 * config/arm/arm.c (arm_trampoline_init): Likewise.
7607 (arm_call_tls_get_addr): Likewise.
7608 (arm_expand_divmod_libfunc): Likewise.
7609 * config/bfin/bfin.md (umulsi3_highpart): Likewise.
7610 (smulsi3_highpart): Likewise.
7611 * config/c6x/c6x.c (c6x_initialize_trampoline): Likewise.
7612 (c6x_expand_compare): Likewise.
7613 (c6x_expand_movmem): Likewise.
7614 * config/frv/frv.c (frv_trampoline_init): Likewise.
7615 * config/i386/i386.c (ix86_trampoline_init): Likewise.
7616 (ix86_expand_divmod_libfunc): Likewise.
7617 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
7618 (ia64_expand_compare): Likewise.
7619 (ia64_profile_hook): Likewise.
7620 * config/ia64/ia64.md (save_stack_nonlocal): Likewise.
7621 (nonlocal_goto): Likewise.
7622 (restore_stack_nonlocal): Likewise.
7623 * config/m32r/m32r.c (block_move_call): Likewise.
7624 (m32r_trampoline_init): Likewise.
7625 * config/m68k/linux.h (FINALIZE_TRAMPOLINE): Likewise.
7626 * config/m68k/m68k.c (m68k_call_tls_get_addr): Likewise.
7627 (m68k_call_m68k_read_tp): Likewise.
7628 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr)
7629 (microblaze_expand_divide): Likewise.
7630 * config/mips/mips.h (mips_args): Likewise.
7631 * config/mips/sdemtk.h (mips_sync_icache): Likewise.
7632 (MIPS_ICACHE_SYNC): Likewise.
7633 * config/nios2/nios2.c (nios2_emit_expensive_div): Likewise.
7634 (nios2_trampoline_init): Likewise.
7635 * config/pa/pa.c (hppa_tls_call): Likewise.
7636 (pa_trampoline_init): Likewise.
7637 * config/pa/pa.md (canonicalize_funcptr_for_compare): Likewise.
7638 * config/powerpcspe/powerpcspe.c (rs6000_legitimize_tls_address)
7639 (expand_strn_compare): Likewise.
7640 (rs6000_generate_compare): Likewise.
7641 (rs6000_expand_float128_convert): Likewise.
7642 (output_profile_hook): Likewise.
7643 (rs6000_trampoline_init): Likewise.
7644 * config/powerpcspe/powerpcspe.md (neg<mode>2): Likewise.
7645 * config/riscv/riscv.h (PROFILE_HOOK): Likewise.
7646 * config/rs6000/rs6000-string.c (expand_strn_compare): Likewise.
7647 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
7648 (rs6000_generate_compare): Likewise.
7649 (rs6000_expand_float128_convert): Likewise.
7650 (output_profile_hook): Likewise.
7651 (rs6000_trampoline_init): Likewise.
7652 * config/rs6000/rs6000.md (neg<mode>2): Likewise.
7653 * config/sh/sh.c (sh_trampoline_init): Likewise.
7654 * config/sparc/sparc.c (emit_soft_tfmode_libcall): Likewise.
7655 (sparc_emit_float_lib_cmp): Likewise.
7656 (sparc32_initialize_trampoline): Likewise.
7657 (sparc64_initialize_trampoline): Likewise.
7658 (sparc_profile_hook): Likewise.
7659 * config/spu/spu.c (ea_load_store): Likewise.
7660 * config/spu/spu.md (floatunssidf2): Likewise.
7661 * config/tilegx/tilegx.c (tilegx_trampoline_init): Likewise.
7662 * config/tilepro/tilepro.c (tilepro_trampoline_init): Likewise.
7663 * config/visium/visium.c (expand_block_move_4): Likewise.
7664 (expand_block_move_2): Likewise.
7665 (expand_block_move_1): Likewise.
7666 (expand_block_set_4): Likewise.
7667 (expand_block_set_2): Likewise.
7668 (expand_block_set_1): Likewise.
7669 (visium_trampoline_init): Likewise.
7670 (visium_profile_hook): Likewise.
7671 * config/xtensa/xtensa.c (xtensa_expand_nonlocal_goto): Likewise.
7672 (xtensa_setup_frame_addresses): Likewise.
7673 (xtensa_trampoline_init): Likewise.
7674 * except.c (sjlj_emit_function_enter): Likewise.
7675 (sjlj_emit_function_exit): Likewise.
7676 * explow.c (allocate_dynamic_stack_space): Likewise.
7677 (probe_stack_range): Likewise.
7678 * expr.c (convert_mode_scalar): Likewise.
7679 * optabs.c (expand_binop): Likewise.
7680 (expand_twoval_binop_libfunc): Likewise.
7681 (expand_unop): Likewise.
7682 (prepare_cmp_insn): Likewise.
7683 (prepare_float_lib_cmp): Likewise.
7684 (expand_float): Likewise.
7685 (expand_fix): Likewise.
7686 (expand_fixed_convert): Likewise.
7687 (maybe_emit_sync_lock_test_and_set): Likewise.
7688 (expand_atomic_compare_and_swap): Likewise.
7689 (expand_mem_thread_fence): Likewise.
7690 (expand_atomic_fetch_op): Likewise.
7692 2017-09-03 Gerald Pfeifer <gerald@pfeifer.com>
7694 * doc/generic.texi (OpenACC): Adjust URL.
7695 * doc/invoke.texi (C Dialect Options): Ditto.
7697 2017-09-03 Uros Bizjak <ubizjak@gmail.com>
7699 * config/i386/i386.md (*bt<mode>): Use nonimmediate_operand
7700 predicate for operand 1. Add (m,<S>) constraint.
7701 (*jcc_bt<mode>): Use nonimmediate_operand predicate for operand 1.
7702 Prevent memory operand 1 with register operand 2.
7704 2017-09-01 Segher Boessenkool <segher@kernel.crashing.org>
7706 PR rtl-optimization/82024
7707 * combine.c (try_combine): If the combination result is a PARALLEL,
7708 and we only need to retain the SET in there that would be placed
7709 at I2, check that we can place that at I3 instead, before doing so.
7711 2017-09-01 Jakub Jelinek <jakub@redhat.com>
7714 * config/i386/i386.c (ix86_init_large_pic_reg): Return label
7716 (ix86_init_pic_reg): Remember label from ix86_init_large_pic_reg,
7717 if non-NULL and preceded by NOTE_INSN_BASIC_BLOCK, swap the note
7720 2017-09-01 Joerg Sonnenberger <joerg@bec.de>
7721 Jeff Law <law@redhat.com>
7723 * varasm.c (bss_initializer_p): Do not put constants into .bss
7724 (categorize_decl_for_section): Handle bss_initializer_p returning
7725 false when DECL_INITIAL is NULL.
7727 2017-09-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7730 * config/s390/s390.c (s390_can_inline_p): New function.
7732 2017-09-01 Jeff Law <law@redhat.com>
7734 PR tree-optimization/82052
7735 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
7736 Always initialize the returned slot after a hash table miss
7737 when INSERT is true.
7739 2017-09-01 Alexander Monakov <amonakov@ispras.ru>
7741 * config/s390/s390.md (mem_signal_fence): Remove.
7742 * doc/md.texi (mem_signal_fence): Remove.
7743 * optabs.c (expand_mem_signal_fence): Remove uses of mem_signal_fence.
7745 * target-insns.def (mem_signal_fence): Remove.
7747 2017-09-01 Jakub Jelinek <jakub@redhat.com>
7750 * doc/invoke.texi: Document -fsanitize=pointer-overflow.
7753 * asan.c (create_odr_indicator): Strip name encoding from assembler
7754 name before appending it after __odr_asan_.
7756 2017-09-01 Martin Liska <mliska@suse.cz>
7758 PR tree-optimization/82059
7759 * gimple-ssa-isolate-paths.c (isolate_path): Add profile and
7760 frequency only when an edge is redirected.
7762 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
7764 * config/arc/arc-c.c (__ARC_LPC_WIDTH__): Add builtin define.
7765 * config/arc/arc.c (ARC_MAX_LOOP_LENGTH): Define.
7766 (arc_conditional_register_usage): Remove ARC600 lp_count
7768 (arc_file_start): Emit Tag_ARC_CPU_variation.
7769 (arc_can_use_doloop_p): New conditions to use ZOLs.
7770 (hwloop_fail): New function.
7771 (hwloop_optimize): Likewise.
7772 (hwloop_pattern_reg): Likewise.
7773 (arc_doloop_hooks): New struct, to be used with reorg_loops.
7774 (arc_reorg_loops): New function, calls reorg_loops.
7775 (arc_reorg): Call arc_reorg_loops. Remove old ZOL handling.
7776 (arc600_corereg_hazard): Remove ZOL checking, case handled by
7778 (arc_loop_hazard): Remove function, functionality moved into
7780 (arc_hazard): Remove arc_loop_hazard call.
7781 (arc_adjust_insn_length): Remove ZOL handling, functionality moved
7782 into hwloop_optimize.
7783 (arc_label_align): Remove ZOL handling.
7784 * config/arc/arc.h (LOOP_ALIGN): Changed to 0.
7785 * config/arc/arc.md (doloop_begin): Remove pattern.
7786 (doloop_begin_i): Likewise.
7787 (doloop_end_i): Likewise.
7788 (doloop_fallback): Likewise.
7789 (doloop_fallback_m): Likewise.
7790 (doloop_end): Reimplement expand.
7791 (arc_lp): New pattern for LP instruction.
7792 (loop_end): New pattern.
7793 (loop_fail): Likewise.
7794 (decrement_and_branch_until_zero): Likewise.
7795 * config/arc/arc.opt (mlpc-width): New option.
7796 * doc/invoke.texi (mlpc-width): Document option.
7798 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
7800 * config/arc/arc.c (arc_ifcvt): Remove use of merge_blocks call.
7801 (arc_ccfsm_advance): Fix checking for delay slots.
7802 (arc_reorg): Add rtl dump after each call to arc_ifcvt.
7804 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
7806 * config/arc/arc.md (movqi_insn): Add stores to save constant long
7808 (movhi_insn): Update store instruction constraint which are saving
7809 6-bit short immediates.
7810 (movsi_insn): Consider also short scaled load operations.
7811 (zero_extendhisi2_i): Use Usd constraint instead of T.
7812 (extendhisi2_i): Add q constraint.
7813 (arc_clzsi2): Add type and length attributes.
7814 (arc_ctzsi2): Likewise.
7815 * config/arc/constraints.md (Usc): Update constraint, the
7816 assembler can parse two relocations for a single instruction.
7818 2017-09-01 Claudiu Zissulescu <claziss@synopsys.com>
7820 * config/arc/arc.c (arc_use_anchors_for_symbol_p): New function.
7821 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Define.
7823 2017-08-31 Olivier Hainque <hainque@adacore.com>
7825 * config.gcc (powerpc-wrs-vxworks|vxworksae|vxworksmils): Now
7826 match as powerpc-wrs-vxworks*.
7828 2017-08-31 James Greenhalgh <james.greenhalgh@arm.com>
7830 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): Fix
7831 register constraint for by-element operand.
7832 (aarch64_mls_elt_merge<mode>): Likewise.
7834 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
7836 * config/arc/arc.c (arc_can_follow_jump): Check for short
7839 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
7841 * config.gcc: Use g.opt for arc.
7842 * config/arc/arc.c (LEGITIMATE_SCALED_ADDRESS_P): Deleted,
7843 functionality moved to ...
7844 (legitimate_scaled_address_p): New function, ...here.
7845 (LEGITIMATE_SMALL_DATA_OFFSET_P): New define.
7846 (LEGITIMATE_SMALL_DATA_ADDRESS_P): Use the above define.
7847 (legitimate_offset_address_p): Delete TARGET_NO_SDATA_SET
7849 (arc_override_options): Handle G option.
7850 (arc_output_pic_addr_const): Correct function definition.
7851 (arc_legitimate_address_p): Use legitimate_scaled_address_p.
7852 (arc_decl_anon_ns_mem_p): Delete.
7853 (arc_in_small_data_p): Overhaul this function to take into
7854 consideration the value given via G option.
7855 (arc_rewrite_small_data_1): Renamed and corrected old
7856 arc_rewrite_small_data function.
7857 (arc_rewrite_small_data): New function.
7858 (small_data_pattern): Don't use pic_offset_table_rtx.
7859 * config/arc/arc.h (CC1_SPEC): Recognize G option.
7860 * config/arc/simdext.md (movmisalignv2hi): Use
7861 prepare_move_operands function.
7863 (movmisalign*): Likewise.
7864 * doc/invoke.texi (ARC options): Document -G option.
7866 2017-08-31 Claudiu Zissulescu <claziss@synopsys.com>
7868 * config/arc/arc-protos.h (compact_sda_memory_operand): Update
7870 * config/arc/arc.c (arc_print_operand): Output scalled address for
7871 sdata whenever is possible.
7872 (arc_in_small_data_p): Allow sdata for 64bit datum when double
7873 load/stores are available.
7874 (compact_sda_memory_operand): Check for the alignment required by
7875 code density instructions.
7876 * config/arc/arc.md (movsi_insn): Use newly introduced Us0
7878 * config/arc/constraints.md (Usd): Update constraint.
7879 (Us0): New constraint.
7880 (Usc): Update constraint.
7882 2017-08-31 Richard Biener <rguenther@suse.de>
7885 * dwarf2out.c (dwarf2out_early_global_decl): Process each
7888 2017-08-31 Tamar Christina <tamar.christina@arm.com>
7890 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
7891 Resize type_signature.
7893 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
7894 Alan Hayward <alan.hayward@arm.com>
7895 David Sherwood <david.sherwood@arm.com>
7897 * config/aarch64/aarch64.c (aarch64_base_register_rtx_p): Only allow
7898 subregs whose inner modes can be stored in GPRs.
7899 (aarch64_classify_index): Likewise.
7901 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
7902 Alan Hayward <alan.hayward@arm.com>
7903 David Sherwood <david.sherwood@arm.com>
7905 * config/aarch64/iterators.md (V_cmp_result): Rename to...
7906 (V_INT_EQUIV): ...this.
7907 (v_cmp_result): Rename to...
7908 (v_int_equiv): ...this.
7909 * config/aarch64/aarch64.md (xorsign<mode>3): Update accordingly.
7910 * config/aarch64/aarch64-simd.md (xorsign<mode>3): Likewise.
7911 (copysign<mode>3): Likewise.
7912 (aarch64_simd_bsl<mode>_internal): Likewise.
7913 (aarch64_simd_bsl<mode>): Likewise.
7914 (vec_cmp<mode><mode>): Likewise.
7915 (vcond<mode><mode>): Likewise.
7916 (vcond<v_cmp_mixed><mode>): Likewise.
7917 (vcondu<mode><v_cmp_mixed>): Likewise.
7918 (aarch64_cm<optab><mode>): Likewise.
7919 (aarch64_cmtst<mode>): Likewise.
7920 (aarch64_fac<optab><mode>): Likewise.
7921 (vec_perm_const<mode>): Likewise.
7922 (vcond_mask_<mode><v_cmp_result>): Rename to...
7923 (vcond_mask_<mode><v_int_equiv>): ...this.
7924 (vec_cmp<mode><v_cmp_result>): Rename to...
7925 (vec_cmp<mode><v_int_equiv>): ...this.
7927 2017-08-31 Richard Sandiford <richard.sandiford@linaro.org>
7928 Alan Hayward <alan.hayward@arm.com>
7929 David Sherwood <david.sherwood@arm.com>
7931 * config/aarch64/aarch64-modes.def: Remove 32-, 48- and 64-byte
7933 * config/aarch64/iterators.md (VRL2, VRL3, VRL4): Delete.
7934 * config/aarch64/aarch64.md (UNSPEC_LD2_DREG, UNSPEC_LD3_DREG)
7935 (UNSPEC_LD4_DREG): New unspecs.
7936 * config/aarch64/aarch64-simd.md (aarch64_ld2<mode>_dreg_le)
7937 (aarch64_ld2<mode>_dreg_be): Replace with...
7938 (aarch64_ld2<mode>_dreg): ...this pattern and use the new DREG
7940 (aarch64_ld3<mode>_dreg_le)
7941 (aarch64_ld3<mode>_dreg_be): Replace with...
7942 (aarch64_ld3<mode>_dreg): ...this pattern and use the new DREG
7944 (aarch64_ld4<mode>_dreg_le)
7945 (aarch64_ld4<mode>_dreg_be): Replace with...
7946 (aarch64_ld4<mode>_dreg): ...this pattern and use the new DREG
7949 2017-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7951 PR tree-optimization/81987
7952 * gimple-ssa-strength-reduction.c (insert_initializers): Don't
7953 insert an initializer in a location not dominated by the stride
7956 2017-08-30 Eric Botcazou <ebotcazou@adacore.com>
7958 * tree-eh.c (lower_try_finally_switch): Set the location of the finally
7959 on the entire header of the finally block in the fallthru case.
7961 2017-08-30 Eric Botcazou <ebotcazou@adacore.com>
7963 * varasm.c (decode_addr_const): Deal with INDIRECT_REF <INTEGER_CST>.
7965 2017-08-30 Pat Haugen <pthaugen@us.ibm.com>
7967 * config/rs6000/rs6000.c (rs6000_emit_prologue_move_from_cr): Rename from
7968 rs6000_emit_move_from_cr and call renamed function.
7969 (rs6000_emit_prologue): Call renamed functions.
7970 * config/rs6000/rs6000.md (prologue_movesi_from_cr): Rename from
7971 movesi_from_cr, remove volatile CRs.
7973 2017-08-30 Jon Beniston <jon@beniston.com>
7974 Richard Biener <rguenther@suse.de>
7976 * tree-vect-patterns.c (vect_pattern_recog_1): Use VECTOR_TYPE_P instead
7977 of VECTOR_MODE_P check.
7978 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Allow single
7979 element vector types.
7981 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
7983 * df.h (df_read_modify_subreg_p): Remove in favor of...
7984 * rtl.h (read_modify_subreg_p): ...this new function. Take a
7985 const_rtx instead of an rtx.
7986 * cprop.c (local_cprop_find_used_regs): Update accordingly.
7987 * df-problems.c (df_word_lr_mark_ref): Likewise.
7988 * ira-lives.c (mark_pseudo_reg_live): Likewise.
7989 (mark_pseudo_reg_dead): Likewise.
7990 (mark_ref_dead): Likewise.
7991 * reginfo.c (init_subregs_of_mode): Likewise.
7992 * sched-deps.c (sched_analyze_1): Likewise.
7993 * df-scan.c (df_def_record_1): Likewise.
7994 (df_uses_record): Likewise.
7995 (df_read_modify_subreg_p): Remove in favor of...
7996 * rtlanal.c (read_modify_subreg_p): ...this new function. Take a
7997 const_rtx instead of an rtx.
7999 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8000 Alan Hayward <alan.hayward@arm.com>
8001 David Sherwood <david.sherwood@arm.com>
8003 * rtl.h (partial_subreg_p): New function.
8004 * caller-save.c (save_call_clobbered_regs): Use it.
8005 * calls.c (expand_call): Likewise.
8006 * combine.c (combinable_i3pat): Likewise.
8007 (simplify_set): Likewise.
8008 (make_extraction): Likewise.
8009 (make_compound_operation_int): Likewise.
8010 (gen_lowpart_or_truncate): Likewise.
8011 (force_to_mode): Likewise.
8012 (make_field_assignment): Likewise.
8013 (reg_truncated_to_mode): Likewise.
8014 (record_truncated_value): Likewise.
8015 (move_deaths): Likewise.
8016 * cse.c (record_jump_cond): Likewise.
8017 (cse_insn): Likewise.
8018 * cselib.c (cselib_lookup_1): Likewise.
8019 * expmed.c (extract_bit_field_using_extv): Likewise.
8020 * function.c (assign_parm_setup_reg): Likewise.
8021 * ifcvt.c (noce_convert_multiple_sets): Likewise.
8022 * ira-build.c (create_insn_allocnos): Likewise.
8023 * lra-coalesce.c (merge_pseudos): Likewise.
8024 * lra-constraints.c (match_reload): Likewise.
8025 (simplify_operand_subreg): Likewise.
8026 (curr_insn_transform): Likewise.
8027 * lra-lives.c (process_bb_lives): Likewise.
8028 * lra.c (new_insn_reg): Likewise.
8029 (lra_substitute_pseudo): Likewise.
8030 * regcprop.c (mode_change_ok): Likewise.
8031 (maybe_mode_change): Likewise.
8032 (copyprop_hardreg_forward_1): Likewise.
8033 * reload.c (push_reload): Likewise.
8034 (find_reloads): Likewise.
8035 (find_reloads_subreg_address): Likewise.
8036 * reload1.c (alter_reg): Likewise.
8037 (eliminate_regs_1): Likewise.
8038 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8040 2017-08-30 David Edelsohn <dje.gcc@gmail.com>
8042 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Revert
8043 back to if statements, including unpack.
8045 2017-08-30 Martin Liska <mliska@suse.cz>
8048 * ipa-icf-gimple.c (func_checker::compare_tree_list_operand):
8050 (func_checker::compare_asm_inputs_outputs): ... this function.
8051 (func_checker::compare_gimple_asm): Use the function to compare
8052 also ASM constrains.
8053 * ipa-icf-gimple.h: Rename the function.
8055 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8056 Alan Hayward <alan.hayward@arm.com>
8057 David Sherwood <david.sherwood@arm.com>
8059 * coretypes.h (complex_mode): New type.
8060 * gdbhooks.py (build_pretty_printer): Handle it.
8061 * machmode.h (complex_mode): New class.
8062 (complex_mode::includes_p): New function.
8063 (is_complex_int_mode): Likewise.
8064 (is_complex_float_mode): Likewise.
8065 * genmodes.c (get_mode_class): Handle complex mode classes.
8066 * function.c (expand_function_end): Use is_complex_int_mode.
8068 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8069 Alan Hayward <alan.hayward@arm.com>
8070 David Sherwood <david.sherwood@arm.com>
8072 * coretypes.h (scalar_mode_pod): New typedef.
8073 * gdbhooks.py (build_pretty_printer): Handle it.
8074 * machmode.h (gt_ggc_mx, gt_pch_nx): New functions.
8075 * fixed-value.h (fixed_value::mode): Change type to scalar_mode_pod.
8076 * fold-const.c (fold_convert_const_int_from_fixed): Use scalar_mode.
8077 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields): Use
8080 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8081 Alan Hayward <alan.hayward@arm.com>
8082 David Sherwood <david.sherwood@arm.com>
8084 * machmode.h (mode_for_vector): Take a scalar_mode instead
8086 * stor-layout.c (mode_for_vector): Likewise.
8087 * explow.c (promote_mode): Use as_a <scalar_mode>.
8088 * sdbout.c (sdbout_parms): Use is_a <scalar_mode>.
8090 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8091 Alan Hayward <alan.hayward@arm.com>
8092 David Sherwood <david.sherwood@arm.com>
8094 * target.def (preferred_simd_mode): Take a scalar_mode
8095 instead of a machine_mode.
8096 * targhooks.h (default_preferred_simd_mode): Likewise.
8097 * targhooks.c (default_preferred_simd_mode): Likewise.
8098 * config/arc/arc.c (arc_preferred_simd_mode): Likewise.
8099 * config/arm/arm.c (arm_preferred_simd_mode): Likewise.
8100 * config/c6x/c6x.c (c6x_preferred_simd_mode): Likewise.
8101 * config/epiphany/epiphany.c (epiphany_preferred_simd_mode): Likewise.
8102 * config/i386/i386.c (ix86_preferred_simd_mode): Likewise.
8103 * config/mips/mips.c (mips_preferred_simd_mode): Likewise.
8104 * config/nvptx/nvptx.c (nvptx_preferred_simd_mode): Likewise.
8105 * config/powerpcspe/powerpcspe.c (rs6000_preferred_simd_mode):
8107 * config/rs6000/rs6000.c (rs6000_preferred_simd_mode): Likewise.
8108 * config/s390/s390.c (s390_preferred_simd_mode): Likewise.
8109 * config/sparc/sparc.c (sparc_preferred_simd_mode): Likewise.
8110 * config/aarch64/aarch64.c (aarch64_preferred_simd_mode): Likewise.
8111 (aarch64_simd_scalar_immediate_valid_for_move): Update accordingly.
8112 * doc/tm.texi: Regenerate.
8113 * optabs-query.c (can_vec_mask_load_store_p): Return false for
8116 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8117 Alan Hayward <alan.hayward@arm.com>
8118 David Sherwood <david.sherwood@arm.com>
8120 * target.def (scalar_mode_supported_p): Take a scalar_mode
8121 instead of a machine_mode.
8122 * targhooks.h (default_scalar_mode_supported_p): Likewise.
8123 * targhooks.c (default_scalar_mode_supported_p): Likewise.
8124 * config/aarch64/aarch64.c (aarch64_scalar_mode_supported_p): Likewise.
8125 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
8126 * config/arm/arm.c (arm_scalar_mode_supported_p): Likewise.
8127 * config/avr/avr.c (avr_scalar_mode_supported_p): Likewise.
8128 * config/c6x/c6x.c (c6x_scalar_mode_supported_p): Likewise.
8129 * config/i386/i386.c (ix86_scalar_mode_supported_p): Likewise.
8130 * config/ia64/ia64.c (ia64_scalar_mode_supported_p): Likewise.
8131 * config/mips/mips.c (mips_scalar_mode_supported_p): Likewise.
8132 * config/msp430/msp430.c (msp430_scalar_mode_supported_p): Likewise.
8133 * config/pa/pa.c (pa_scalar_mode_supported_p): Likewise.
8134 * config/pdp11/pdp11.c (pdp11_scalar_mode_supported_p): Likewise.
8135 * config/powerpcspe/powerpcspe.c (rs6000_scalar_mode_supported_p):
8137 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Likewise.
8138 * config/s390/s390.c (s390_scalar_mode_supported_p): Likewise.
8139 * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
8140 * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
8141 * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p):
8143 * doc/tm.texi: Regenerate.
8145 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8146 Alan Hayward <alan.hayward@arm.com>
8147 David Sherwood <david.sherwood@arm.com>
8149 * coretypes.h (opt_scalar_mode): New typedef.
8150 * gdbhooks.py (build_pretty_printers): Handle it.
8151 * machmode.h (mode_iterator::get_2xwider): Add overload for
8153 * emit-rtl.c (init_emit_once): Use opt_scalar_mode when iterating
8155 * expr.c (convert_mode_scalar): Likewise.
8156 * omp-low.c (omp_clause_aligned_alignment): Likewise.
8157 * optabs.c (expand_float): Likewise.
8158 (expand_fix): Likewise.
8159 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8161 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8162 Alan Hayward <alan.hayward@arm.com>
8163 David Sherwood <david.sherwood@arm.com>
8165 * optabs.c (expand_float): Explicitly check for scalars before
8166 using a branching expansion.
8167 (expand_fix): Likewise.
8169 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8170 Alan Hayward <alan.hayward@arm.com>
8171 David Sherwood <david.sherwood@arm.com>
8173 * expr.c (convert_mode): Split scalar handling out into...
8174 (convert_mode_scalar): ...this new function. Treat the modes
8177 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8178 Alan Hayward <alan.hayward@arm.com>
8179 David Sherwood <david.sherwood@arm.com>
8181 * omp-expand.c (expand_omp_atomic): Use is_int_mode, is_float_mode
8183 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Likewise.
8185 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8186 Alan Hayward <alan.hayward@arm.com>
8187 David Sherwood <david.sherwood@arm.com>
8189 * fixed-value.h (fixed_from_double_int): Take a scalar_mode
8190 rather than a machine_mode.
8191 (fixed_from_string): Likewise.
8192 (fixed_convert): Likewise.
8193 (fixed_convert_from_int): Likewise.
8194 (fixed_convert_from_real): Likewise.
8195 (real_convert_from_fixed): Likewise.
8196 * fixed-value.c (fixed_from_double_int): Likewise.
8197 (fixed_from_string): Likewise.
8198 (fixed_convert): Likewise.
8199 (fixed_convert_from_int): Likewise.
8200 (fixed_convert_from_real): Likewise.
8201 (real_convert_from_fixed): Likewise.
8202 * config/avr/avr.c (avr_out_round): Use as_a <scalar_mode>.
8204 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8205 Alan Hayward <alan.hayward@arm.com>
8206 David Sherwood <david.sherwood@arm.com>
8208 * emit-rtl.c (immed_double_const): Use is_a <scalar_mode> instead
8209 of separate mode class checks. Do not allow vector modes here.
8210 (immed_wide_int_const): Use as_a <scalar_mode>.
8211 * explow.c (trunc_int_for_mode): Likewise.
8212 * rtl.h (wi::int_traits<rtx_mode_t>::get_precision): Likewise.
8213 (wi::shwi): Likewise.
8214 (wi::min_value): Likewise.
8215 (wi::max_value): Likewise.
8216 * dwarf2out.c (loc_descriptor): Likewise.
8217 * simplify-rtx.c (simplify_immed_subreg): Fix rtx_mode_t argument
8220 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8221 Alan Hayward <alan.hayward@arm.com>
8222 David Sherwood <david.sherwood@arm.com>
8224 * tree.h (SCALAR_TYPE_MODE): New macro.
8225 * expr.c (expand_expr_addr_expr_1): Use it.
8226 (expand_expr_real_2): Likewise.
8227 * fold-const.c (fold_convert_const_fixed_from_fixed): Likeise.
8228 (fold_convert_const_fixed_from_int): Likewise.
8229 (fold_convert_const_fixed_from_real): Likewise.
8230 (native_encode_fixed): Likewise
8231 (native_encode_complex): Likewise
8232 (native_encode_vector): Likewise.
8233 (native_interpret_fixed): Likewise.
8234 (native_interpret_real): Likewise.
8235 (native_interpret_complex): Likewise.
8236 (native_interpret_vector): Likewise.
8237 * omp-simd-clone.c (simd_clone_adjust_return_type): Likewise.
8238 (simd_clone_adjust_argument_types): Likewise.
8239 (simd_clone_init_simd_arrays): Likewise.
8240 (simd_clone_adjust): Likewise.
8241 * stor-layout.c (layout_type): Likewise.
8242 * tree.c (build_minus_one_cst): Likewise.
8243 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8244 * tree-inline.c (estimate_move_cost): Likewise.
8245 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Likewise.
8246 * tree-vect-loop.c (vect_create_epilog_for_reduction): Likewise.
8247 (vectorizable_reduction): Likewise.
8248 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Likewise.
8249 (vect_recog_mixed_size_cond_pattern): Likewise.
8250 (check_bool_pattern): Likewise.
8251 (adjust_bool_pattern): Likewise.
8252 (search_type_for_mask_1): Likewise.
8253 * tree-vect-slp.c (vect_schedule_slp_instance): Likewise.
8254 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8255 (vectorizable_load): Likewise.
8256 (vectorizable_store): Likewise.
8257 * ubsan.c (ubsan_encode_value): Likewise.
8258 * varasm.c (output_constant): Likewise.
8260 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8261 Alan Hayward <alan.hayward@arm.com>
8262 David Sherwood <david.sherwood@arm.com>
8264 * coretypes.h (scalar_mode): New class.
8265 * machmode.h (scalar_mode): Likewise.
8266 (scalar_mode::includes_p): New function.
8267 (mode_to_inner): Return a scalar_mode rather than a machine_mode.
8268 * gdbhooks.py (build_pretty_printers): Handle scalar_mode.
8269 * genmodes.c (get_mode_class): Handle remaining scalar modes.
8270 * cfgexpand.c (expand_debug_expr): Use scalar_mode.
8271 * expmed.c (store_bit_field_1): Likewise.
8272 (extract_bit_field_1): Likewise.
8273 * expr.c (write_complex_part): Likewise.
8274 (read_complex_part): Likewise.
8275 (emit_move_complex_push): Likewise.
8276 (expand_expr_real_2): Likewise.
8277 * function.c (assign_parm_setup_reg): Likewise.
8278 (assign_parms_unsplit_complex): Likewise.
8279 * optabs.c (expand_binop): Likewise.
8280 * rtlanal.c (subreg_get_info): Likewise.
8281 * simplify-rtx.c (simplify_immed_subreg): Likewise.
8282 * varasm.c (output_constant_pool_2): Likewise.
8284 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8285 Alan Hayward <alan.hayward@arm.com>
8286 David Sherwood <david.sherwood@arm.com>
8288 * expmed.c (extract_high_half): Use scalar_int_mode and remove
8290 (expmed_mult_highpart_optab): Likewise.
8291 (expmed_mult_highpart): Likewise.
8293 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8294 Alan Hayward <alan.hayward@arm.com>
8295 David Sherwood <david.sherwood@arm.com>
8297 * builtins.h (builtin_strncpy_read_str): Take a scalar_int_mode
8298 instead of a machine_mode.
8299 (builtin_memset_read_str): Likewise.
8300 * builtins.c (c_readstr): Likewise.
8301 (builtin_memcpy_read_str): Likewise.
8302 (builtin_strncpy_read_str): Likewise.
8303 (builtin_memset_read_str): Likewise.
8304 (builtin_memset_gen_str): Likewise.
8305 (expand_builtin_signbit): Use scalar_int_mode for local variables.
8306 * cfgexpand.c (convert_debug_memory_address): Take a scalar_int_mode
8307 instead of a machine_mode.
8308 * combine.c (simplify_if_then_else): Use scalar_int_mode for local
8310 (make_extraction): Likewise.
8311 (try_widen_shift_mode): Take and return scalar_int_modes instead
8313 * config/aarch64/aarch64.c (aarch64_libgcc_cmp_return_mode): Return
8314 a scalar_int_mode instead of a machine_mode.
8315 * config/avr/avr.c (avr_addr_space_address_mode): Likewise.
8316 (avr_addr_space_pointer_mode): Likewise.
8317 * config/cr16/cr16.c (cr16_unwind_word_mode): Likewise.
8318 * config/msp430/msp430.c (msp430_addr_space_pointer_mode): Likewise.
8319 (msp430_unwind_word_mode): Likewise.
8320 * config/spu/spu.c (spu_unwind_word_mode): Likewise.
8321 (spu_addr_space_pointer_mode): Likewise.
8322 (spu_addr_space_address_mode): Likewise.
8323 (spu_libgcc_cmp_return_mode): Likewise.
8324 (spu_libgcc_shift_count_mode): Likewise.
8325 * config/rl78/rl78.c (rl78_addr_space_address_mode): Likewise.
8326 (rl78_addr_space_pointer_mode): Likewise.
8327 (fl78_unwind_word_mode): Likewise.
8328 (rl78_valid_pointer_mode): Take a scalar_int_mode instead of a
8330 * config/alpha/alpha.c (vms_valid_pointer_mode): Likewise.
8331 * config/ia64/ia64.c (ia64_vms_valid_pointer_mode): Likewise.
8332 * config/mips/mips.c (mips_mode_rep_extended): Likewise.
8333 (mips_valid_pointer_mode): Likewise.
8334 * config/tilegx/tilegx.c (tilegx_mode_rep_extended): Likewise.
8335 * config/ft32/ft32.c (ft32_valid_pointer_mode): Likewise.
8336 (ft32_addr_space_pointer_mode): Return a scalar_int_mode instead
8338 (ft32_addr_space_address_mode): Likewise.
8339 * config/m32c/m32c.c (m32c_valid_pointer_mode): Take a
8340 scalar_int_mode instead of a machine_mode.
8341 (m32c_addr_space_pointer_mode): Return a scalar_int_mode instead
8343 (m32c_addr_space_address_mode): Likewise.
8344 * config/powerpcspe/powerpcspe.c (rs6000_abi_word_mode): Likewise.
8345 (rs6000_eh_return_filter_mode): Likewise.
8346 * config/rs6000/rs6000.c (rs6000_abi_word_mode): Likewise.
8347 (rs6000_eh_return_filter_mode): Likewise.
8348 * config/s390/s390.c (s390_libgcc_cmp_return_mode): Likewise.
8349 (s390_libgcc_shift_count_mode): Likewise.
8350 (s390_unwind_word_mode): Likewise.
8351 (s390_valid_pointer_mode): Take a scalar_int_mode rather than a
8353 * target.def (mode_rep_extended): Likewise.
8354 (valid_pointer_mode): Likewise.
8355 (addr_space.valid_pointer_mode): Likewise.
8356 (eh_return_filter_mode): Return a scalar_int_mode rather than
8358 (libgcc_cmp_return_mode): Likewise.
8359 (libgcc_shift_count_mode): Likewise.
8360 (unwind_word_mode): Likewise.
8361 (addr_space.pointer_mode): Likewise.
8362 (addr_space.address_mode): Likewise.
8363 * doc/tm.texi: Regenerate.
8364 * dojump.c (prefer_and_bit_test): Take a scalar_int_mode rather than
8366 (do_jump): Use scalar_int_mode for local variables.
8367 * dwarf2cfi.c (init_return_column_size): Take a scalar_int_mode
8368 rather than a machine_mode.
8369 * dwarf2out.c (convert_descriptor_to_mode): Likewise.
8370 (scompare_loc_descriptor_wide): Likewise.
8371 (scompare_loc_descriptor_narrow): Likewise.
8372 * emit-rtl.c (adjust_address_1): Use scalar_int_mode for local
8374 * except.c (sjlj_emit_dispatch_table): Likewise.
8375 (expand_builtin_eh_copy_values): Likewise.
8376 * explow.c (convert_memory_address_addr_space_1): Likewise.
8377 Take a scalar_int_mode rather than a machine_mode.
8378 (convert_memory_address_addr_space): Take a scalar_int_mode rather
8379 than a machine_mode.
8380 (memory_address_addr_space): Use scalar_int_mode for local variables.
8381 * expmed.h (expand_mult_highpart_adjust): Take a scalar_int_mode
8382 rather than a machine_mode.
8383 * expmed.c (mask_rtx): Likewise.
8384 (init_expmed_one_conv): Likewise.
8385 (expand_mult_highpart_adjust): Likewise.
8386 (extract_high_half): Likewise.
8387 (expmed_mult_highpart_optab): Likewise.
8388 (expmed_mult_highpart): Likewise.
8389 (expand_smod_pow2): Likewise.
8390 (expand_sdiv_pow2): Likewise.
8391 (emit_store_flag_int): Likewise.
8392 (adjust_bit_field_mem_for_reg): Use scalar_int_mode for local
8394 (extract_low_bits): Likewise.
8395 * expr.h (by_pieces_constfn): Take a scalar_int_mode rather than
8397 * expr.c (pieces_addr::adjust): Likewise.
8398 (can_store_by_pieces): Likewise.
8399 (store_by_pieces): Likewise.
8400 (clear_by_pieces_1): Likewise.
8401 (expand_expr_addr_expr_1): Likewise.
8402 (expand_expr_addr_expr): Use scalar_int_mode for local variables.
8403 (expand_expr_real_1): Likewise.
8404 (try_casesi): Likewise.
8405 * final.c (shorten_branches): Likewise.
8406 * fold-const.c (fold_convert_const_int_from_fixed): Change the
8407 type of "mode" to machine_mode.
8408 * internal-fn.c (expand_arith_overflow_result_store): Take a
8409 scalar_int_mode rather than a machine_mode.
8410 (expand_mul_overflow): Use scalar_int_mode for local variables.
8411 * loop-doloop.c (doloop_modify): Likewise.
8412 (doloop_optimize): Likewise.
8413 * optabs.c (expand_subword_shift): Take a scalar_int_mode rather
8414 than a machine_mode.
8415 (expand_doubleword_shift_condmove): Likewise.
8416 (expand_doubleword_shift): Likewise.
8417 (expand_doubleword_clz): Likewise.
8418 (expand_doubleword_popcount): Likewise.
8419 (expand_doubleword_parity): Likewise.
8420 (expand_absneg_bit): Use scalar_int_mode for local variables.
8421 (prepare_float_lib_cmp): Likewise.
8422 * rtl.h (convert_memory_address_addr_space_1): Take a scalar_int_mode
8423 rather than a machine_mode.
8424 (convert_memory_address_addr_space): Likewise.
8425 (get_mode_bounds): Likewise.
8426 (get_address_mode): Return a scalar_int_mode rather than a
8428 * rtlanal.c (get_address_mode): Likewise.
8429 * stor-layout.c (get_mode_bounds): Take a scalar_int_mode rather
8430 than a machine_mode.
8431 * targhooks.c (default_mode_rep_extended): Likewise.
8432 (default_valid_pointer_mode): Likewise.
8433 (default_addr_space_valid_pointer_mode): Likewise.
8434 (default_eh_return_filter_mode): Return a scalar_int_mode rather
8435 than a machine_mode.
8436 (default_libgcc_cmp_return_mode): Likewise.
8437 (default_libgcc_shift_count_mode): Likewise.
8438 (default_unwind_word_mode): Likewise.
8439 (default_addr_space_pointer_mode): Likewise.
8440 (default_addr_space_address_mode): Likewise.
8441 * targhooks.h (default_eh_return_filter_mode): Likewise.
8442 (default_libgcc_cmp_return_mode): Likewise.
8443 (default_libgcc_shift_count_mode): Likewise.
8444 (default_unwind_word_mode): Likewise.
8445 (default_addr_space_pointer_mode): Likewise.
8446 (default_addr_space_address_mode): Likewise.
8447 (default_mode_rep_extended): Take a scalar_int_mode rather than
8449 (default_valid_pointer_mode): Likewise.
8450 (default_addr_space_valid_pointer_mode): Likewise.
8451 * tree-ssa-address.c (addr_for_mem_ref): Use scalar_int_mode for
8453 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Take a scalar_int_mode
8454 rather than a machine_mode.
8455 * tree-switch-conversion.c (array_value_type): Use scalar_int_mode
8456 for local variables.
8457 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
8458 * var-tracking.c (use_narrower_mode): Take a scalar_int_mode rather
8459 than a machine_mode.
8461 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8462 Alan Hayward <alan.hayward@arm.com>
8463 David Sherwood <david.sherwood@arm.com>
8465 * dojump.c (do_jump_by_parts_greater_rtx): Change the type of
8466 the mode argument to scalar_int_mode.
8467 (do_jump_by_parts_zero_rtx): Likewise.
8468 (do_jump_by_parts_equality_rtx): Likewise.
8469 (do_jump_by_parts_greater): Take a mode argument.
8470 (do_jump_by_parts_equality): Likewise.
8471 (do_jump_1): Update calls accordingly.
8473 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8474 Alan Hayward <alan.hayward@arm.com>
8475 David Sherwood <david.sherwood@arm.com>
8477 * is-a.h (safe_dyn_cast): New function.
8478 * rtl.h (rtx_jump_table_data::get_data_mode): New function.
8479 (jump_table_for_label): Likewise.
8480 * final.c (final_addr_vec_align): Take an rtx_jump_table_data *
8481 instead of an rtx_insn *.
8482 (shorten_branches): Use dyn_cast instead of LABEL_P and
8483 JUMP_TABLE_DATA_P. Use jump_table_for_label and
8484 rtx_jump_table_data::get_data_mode.
8485 (final_scan_insn): Likewise.
8487 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8488 Alan Hayward <alan.hayward@arm.com>
8489 David Sherwood <david.sherwood@arm.com>
8491 * combine.c (try_combine): Use is_a <scalar_int_mode> when
8492 trying to combine a full-register integer set with a subreg
8495 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8496 Alan Hayward <alan.hayward@arm.com>
8497 David Sherwood <david.sherwood@arm.com>
8499 * expr.c (expand_expr_addr_expr): Add a new_tmode local variable
8500 that is always either address_mode or pointer_mode.
8502 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8503 Alan Hayward <alan.hayward@arm.com>
8504 David Sherwood <david.sherwood@arm.com>
8506 * expr.c (expand_expr_real_2): Use word_mode instead of innermode
8507 when the two are known to be equal.
8509 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8510 Alan Hayward <alan.hayward@arm.com>
8511 David Sherwood <david.sherwood@arm.com>
8513 * simplify-rtx.c (simplify_const_unary_operation): Use
8514 is_a <scalar_int_mode> instead of checking for a nonzero
8515 precision. Forcibly convert op_mode to a scalar_int_mode
8516 in that case. More clearly differentiate the operand and
8517 result modes and use the former when deciding what the value
8518 of a count-bits operation should be. Use is_int_mode instead
8519 of checking for a MODE_INT. Remove redundant check for whether
8520 this mode has a zero precision.
8522 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8523 Alan Hayward <alan.hayward@arm.com>
8524 David Sherwood <david.sherwood@arm.com>
8526 * optabs.c (widen_leading): Change the type of the mode argument
8527 to scalar_int_mode. Use opt_scalar_int_mode for the mode iterator.
8528 (widen_bswap): Likewise.
8529 (expand_parity): Likewise.
8530 (expand_ctz): Change the type of the mode argument to scalar_int_mode.
8531 (expand_ffs): Likewise.
8532 (epand_unop): Check for scalar integer modes before calling the
8535 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8536 Alan Hayward <alan.hayward@arm.com>
8537 David Sherwood <david.sherwood@arm.com>
8539 * expr.c (const_scalar_mask_from_tree): Add a mode argument.
8541 (expand_expr_real_1): Update call accordingly.
8543 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8544 Alan Hayward <alan.hayward@arm.com>
8545 David Sherwood <david.sherwood@arm.com>
8547 * expmed.c (store_bit_field_using_insv): Add op0_mode and
8548 value_mode arguments. Use scalar_int_mode internally.
8549 (store_bit_field_1): Rename the new integer mode from imode
8550 to op0_mode and use it instead of GET_MODE (op0). Update calls
8551 to store_split_bit_field, store_bit_field_using_insv and
8552 store_fixed_bit_field.
8553 (store_fixed_bit_field): Add op0_mode and value_mode arguments.
8554 Use scalar_int_mode internally. Use a bit count rather than a mode
8555 when calculating the largest bit size for get_best_mode.
8556 Update calls to store_split_bit_field and store_fixed_bit_field_1.
8557 (store_fixed_bit_field_1): Add mode and value_mode arguments.
8558 Remove assertion that OP0 has a scalar integer mode.
8559 (store_split_bit_field): Add op0_mode and value_mode arguments.
8560 Update calls to extract_fixed_bit_field.
8561 (extract_bit_field_using_extv): Add an op0_mode argument.
8562 Use scalar_int_mode internally.
8563 (extract_bit_field_1): Rename the new integer mode from imode to
8564 op0_mode and use it instead of GET_MODE (op0). Update calls to
8565 extract_split_bit_field, extract_bit_field_using_extv and
8566 extract_fixed_bit_field.
8567 (extract_fixed_bit_field): Add an op0_mode argument. Update calls
8568 to extract_split_bit_field and extract_fixed_bit_field_1.
8569 (extract_fixed_bit_field_1): Add a mode argument. Remove assertion
8570 that OP0 has a scalar integer mode. Use as_a <scalar_int_mode>
8572 (extract_split_bit_field): Add an op0_mode argument. Update call
8573 to extract_fixed_bit_field.
8575 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8576 Alan Hayward <alan.hayward@arm.com>
8577 David Sherwood <david.sherwood@arm.com>
8579 * cse.c (cse_insn): Use opt_scalar_int_mode for the mode iterator.
8580 * explow.c (hard_function_value): Likewise.
8581 * expmed.c (extract_fixed_bit_field_1): Likewise. Move the
8582 convert_to_mode call outside the loop.
8583 * expr.c (alignment_for_piecewise_move): Use opt_scalar_int_mode
8584 for the mode iterator. Require the mode specified by max_pieces
8586 (emit_block_move_via_movmem): Use opt_scalar_int_mode for the
8588 (copy_blkmode_to_reg): Likewise.
8589 (set_storage_via_setmem): Likewise.
8590 * optabs.c (prepare_cmp_insn): Likewise.
8591 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
8592 * stor-layout.c (finish_bitfield_representative): Likewise.
8594 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8595 Alan Hayward <alan.hayward@arm.com>
8596 David Sherwood <david.sherwood@arm.com>
8598 * rtl.h (subreg_unpromoted_mode, subreg_promoted_mode): New functions.
8599 * expr.c (convert_move): Use them.
8600 (convert_modes): Likewise.
8601 (store_expr_with_bounds): Likewise.
8603 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8604 Alan Hayward <alan.hayward@arm.com>
8605 David Sherwood <david.sherwood@arm.com>
8607 * rtl.h (rtl_hooks::reg_nonzero_bits): Add a scalar_int_mode
8608 parameter for the mode of "x". Remove the "known_x", "known_mode"
8609 and "known_ret" arguments. Change the type of the mode argument
8611 (rtl_hooks:reg_num_sign_bit_copies): Likewise.
8612 * combine.c (reg_nonzero_bits_for_combine): Update accordingly.
8613 (reg_num_sign_bit_copies_for_combine): Likewise.
8614 * rtlanal.c (nonzero_bits1): Likewise.
8615 (num_sign_bit_copies1): Likewise.
8616 * rtlhooks-def.h (reg_nonzero_bits_general): Likewise.
8617 (reg_num_sign_bit_copies_general): Likewise.
8618 * rtlhooks.c (reg_num_sign_bit_copies_general): Likewise.
8619 (reg_nonzero_bits_general): Likewise.
8621 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8622 Alan Hayward <alan.hayward@arm.com>
8623 David Sherwood <david.sherwood@arm.com>
8625 * rtlanal.c (num_sign_bit_copies): Handle VOIDmode here rather
8626 than in subroutines. Return 1 for non-integer modes.
8627 (cached_num_sign_bit_copies): Change the type of the mode parameter
8629 (num_sign_bit_copies1): Likewise. Remove early exit for other mode
8630 classes. Handle CONST_INT_P first and then check whether X also
8631 has a scalar integer mode. Check the same thing for inner registers
8632 of a SUBREG and for values that are being extended or truncated.
8634 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8635 Alan Hayward <alan.hayward@arm.com>
8636 David Sherwood <david.sherwood@arm.com>
8638 * rtlanal.c (nonzero_bits): Handle VOIDmode here rather than
8639 in subroutines. Return the mode mask for non-integer modes.
8640 (cached_nonzero_bits): Change the type of the mode parameter
8642 (nonzero_bits1): Likewise. Remove early exit for other mode
8643 classes. Handle CONST_INT_P first and then check whether X
8644 also has a scalar integer mode.
8646 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8647 Alan Hayward <alan.hayward@arm.com>
8648 David Sherwood <david.sherwood@arm.com>
8650 * expr.c (widest_int_mode_for_size): Make the comment match the code.
8651 Return a scalar_int_mode and assert that the size is greater than
8653 (by_pieces_ninsns): Update accordingly and remove VOIDmode handling.
8654 (op_by_pieces_d::op_by_pieces_d): Likewise.
8655 (op_by_pieces_d::run): Likewise.
8656 (can_store_by_pieces): Likewise.
8658 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8659 Alan Hayward <alan.hayward@arm.com>
8660 David Sherwood <david.sherwood@arm.com>
8662 * combine.c (extract_left_shift): Add a mode argument and update
8664 (make_compound_operation_int): Change the type of the mode parameter
8665 to scalar_int_mode and update the call to extract_left_shift.
8667 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8668 Alan Hayward <alan.hayward@arm.com>
8669 David Sherwood <david.sherwood@arm.com>
8671 * combine.c (simplify_and_const_int): Change the type of the mode
8672 parameter to scalar_int_mode.
8673 (simplify_and_const_int_1): Likewise. Update recursive call.
8675 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8676 Alan Hayward <alan.hayward@arm.com>
8677 David Sherwood <david.sherwood@arm.com>
8679 * combine.c (simplify_compare_const): Check that the mode is a
8680 scalar_int_mode (rather than VOIDmode) before testing its
8682 (simplify_comparison): Move COMPARISON_P handling out of the
8683 loop and restrict the latter part of the loop to scalar_int_modes.
8684 Check is_a <scalar_int_mode> before calling HWI_COMPUTABLE_MODE_P
8685 and when considering SUBREG_REGs. Use is_int_mode instead of
8686 checking GET_MODE_CLASS against MODE_INT.
8688 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8689 Alan Hayward <alan.hayward@arm.com>
8690 David Sherwood <david.sherwood@arm.com>
8692 * combine.c (try_widen_shift_mode): Move check for equal modes to...
8693 (simplify_shift_const_1): ...here. Use scalar_int_mode for
8694 shift_unit_mode and for modes involved in scalar shifts.
8696 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8697 Alan Hayward <alan.hayward@arm.com>
8698 David Sherwood <david.sherwood@arm.com>
8700 * combine.c (force_int_to_mode): New function, split out from...
8701 (force_to_mode): ...here. Keep xmode up-to-date and use it
8702 instead of GET_MODE (x).
8704 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8705 Alan Hayward <alan.hayward@arm.com>
8706 David Sherwood <david.sherwood@arm.com>
8708 * optabs-query.h (extraction_insn::struct_mode): Change type to
8709 opt_scalar_int_mode and update comment.
8710 (extraction_insn::field_mode): Change type to scalar_int_mode.
8711 (extraction_insn::pos_mode): Likewise.
8712 * combine.c (make_extraction): Update accordingly.
8713 * optabs-query.c (get_traditional_extraction_insn): Likewise.
8714 (get_optab_extraction_insn): Likewise.
8715 * recog.c (simplify_while_replacing): Likewise.
8716 * expmed.c (narrow_bit_field_mem): Change the type of the mode
8717 parameter to opt_scalar_int_mode.
8719 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8720 Alan Hayward <alan.hayward@arm.com>
8721 David Sherwood <david.sherwood@arm.com>
8723 * machmode.h (bit_field_mode_iterator::next_mode): Take a pointer
8724 to a scalar_int_mode instead of a machine_mode.
8725 (bit_field_mode_iterator::m_mode): Change type to opt_scalar_int_mode.
8726 (get_best_mode): Return a boolean and use a pointer argument to store
8727 the selected mode. Replace the limit mode parameter with a bit limit.
8728 * expmed.c (adjust_bit_field_mem_for_reg): Use scalar_int_mode
8729 for the values returned by bit_field_mode_iterator::next_mode.
8730 (store_bit_field): Update call to get_best_mode.
8731 (store_fixed_bit_field): Likewise.
8732 (extract_fixed_bit_field): Likewise.
8733 * expr.c (optimize_bitfield_assignment_op): Likewise.
8734 * fold-const.c (optimize_bit_field_compare): Likewise.
8735 (fold_truth_andor_1): Likewise.
8736 * stor-layout.c (bit_field_mode_iterator::next_mode): As above.
8737 Update for new type of m_mode.
8738 (get_best_mode): As above.
8740 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8741 Alan Hayward <alan.hayward@arm.com>
8742 David Sherwood <david.sherwood@arm.com>
8744 * expmed.c (strict_volatile_bitfield_p): Change the type of fieldmode
8745 to scalar_int_mode. Remove check for SCALAR_INT_MODE_P.
8746 (store_bit_field): Check is_a <scalar_int_mode> before calling
8747 strict_volatile_bitfield_p.
8748 (extract_bit_field): Likewise.
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 * target.def (cstore_mode): Return a scalar_int_mode.
8755 * doc/tm.texi: Regenerate.
8756 * config/sparc/sparc.c (sparc_cstore_mode): Return a scalar_int_mode.
8757 * targhooks.h (default_cstore_mode): Likewise.
8758 * targhooks.c (default_cstore_mode): Likewise, using a forced
8760 * expmed.c (emit_cstore): Expect the target of the cstore to be
8763 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8764 Alan Hayward <alan.hayward@arm.com>
8765 David Sherwood <david.sherwood@arm.com>
8767 * cfgloop.h (rtx_iv): Change type of extend_mode and mode to
8769 (niter_desc): Likewise mode.
8770 (iv_analyze): Add a mode parameter.
8772 (iv_analyze_expr): Pass the mode paraeter before the rtx it describes
8773 and change its type to scalar_int_mode.
8774 * loop-iv.c: Update commentary at head of file.
8775 (iv_constant): Pass the mode paraeter before the rtx it describes
8776 and change its type to scalar_int_mode. Remove VOIDmode handling.
8777 (iv_subreg): Change the type of the mode parameter to scalar_int_mode.
8778 (iv_extend): Likewise.
8779 (shorten_into_mode): Likewise.
8780 (iv_add): Use scalar_int_mode.
8781 (iv_mult): Likewise.
8782 (iv_shift): Likewise.
8783 (canonicalize_iv_subregs): Likewise.
8784 (get_biv_step_1): Pass the outer_mode parameter before the rtx
8785 it describes and change its mode to scalar_int_mode. Also change
8786 the type of the returned inner_mode to scalar_int_mode.
8787 (get_biv_step): Likewise, turning outer_mode from a pointer
8788 into a direct parameter. Update call to get_biv_step_1.
8789 (iv_analyze_biv): Add an outer_mode parameter. Update calls to
8790 iv_constant and get_biv_step.
8791 (iv_analyze_expr): Pass the mode parameter before the rtx it describes
8792 and change its type to scalar_int_mode. Don't initialise iv->mode
8793 to VOIDmode and remove later checks for its still being VOIDmode.
8794 Update calls to iv_analyze_op and iv_analyze_expr. Check
8795 is_a <scalar_int_mode> when changing the mode under consideration.
8796 (iv_analyze_def): Ignore registers that don't have a scalar_int_mode.
8797 Update call to iv_analyze_expr.
8798 (iv_analyze_op): Add a mode parameter. Reject subregs whose
8799 inner register is not also a scalar_int_mode. Update call to
8801 (iv_analyze): Add a mode parameter. Update call to iv_analyze_op.
8802 (biv_p): Add a mode parameter. Update call to iv_analyze_biv.
8803 (iv_number_of_iterations): Use is_a <scalar_int_mode> instead of
8804 separate mode class checks. Update calls to iv_analyze. Remove
8805 fix-up of VOIDmodes after iv_analyze_biv.
8806 * loop-unroll.c (analyze_iv_to_split_insn): Reject registers that
8807 don't have a scalar_int_mode. Update call to biv_p.
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 * cfgexpand.c (convert_debug_memory_address): Use
8814 as_a <scalar_int_mode>.
8815 * combine.c (expand_compound_operation): Likewise.
8816 (make_extraction): Likewise.
8817 (change_zero_ext): Likewise.
8818 (simplify_comparison): Likewise.
8819 * cse.c (cse_insn): Likewise.
8820 * dwarf2out.c (minmax_loc_descriptor): Likewise.
8821 (mem_loc_descriptor): Likewise.
8822 (loc_descriptor): Likewise.
8823 * expmed.c (init_expmed_one_mode): Likewise.
8824 (synth_mult): Likewise.
8825 (emit_store_flag_1): Likewise.
8826 (expand_divmod): Likewise. Use HWI_COMPUTABLE_MODE_P instead
8827 of a comparison with size.
8828 * expr.c (expand_assignment): Use as_a <scalar_int_mode>.
8829 (reduce_to_bit_field_precision): Likewise.
8830 * function.c (expand_function_end): Likewise.
8831 * internal-fn.c (expand_arith_overflow_result_store): Likewise.
8832 * loop-doloop.c (doloop_modify): Likewise.
8833 * optabs.c (expand_binop): Likewise.
8834 (expand_unop): Likewise.
8835 (expand_copysign_absneg): Likewise.
8836 (prepare_cmp_insn): Likewise.
8837 (maybe_legitimize_operand): Likewise.
8838 * recog.c (const_scalar_int_operand): Likewise.
8839 * rtlanal.c (get_address_mode): Likewise.
8840 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8841 (simplify_cond_clz_ctz): Likewise.
8842 * tree-nested.c (get_nl_goto_field): Likewise.
8843 * tree.c (build_vector_type_for_mode): Likewise.
8844 * var-tracking.c (use_narrower_mode): Likewise.
8846 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8847 Alan Hayward <alan.hayward@arm.com>
8848 David Sherwood <david.sherwood@arm.com>
8850 * tree.h (SCALAR_INT_TYPE_MODE): New macro.
8851 * builtins.c (expand_builtin_signbit): Use it.
8852 * cfgexpand.c (expand_debug_expr): Likewise.
8853 * dojump.c (do_jump): Likewise.
8854 (do_compare_and_jump): Likewise.
8855 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Likewise.
8856 * expmed.c (make_tree): Likewise.
8857 * expr.c (expand_expr_real_2): Likewise.
8858 (expand_expr_real_1): Likewise.
8859 (try_casesi): Likewise.
8860 * fold-const-call.c (fold_const_call_ss): Likewise.
8861 * fold-const.c (unextend): Likewise.
8862 (extract_muldiv_1): Likewise.
8863 (fold_single_bit_test): Likewise.
8864 (native_encode_int): Likewise.
8865 (native_encode_string): Likewise.
8866 (native_interpret_int): Likewise.
8867 * gimple-fold.c (gimple_fold_builtin_memset): Likewise.
8868 * internal-fn.c (expand_addsub_overflow): Likewise.
8869 (expand_neg_overflow): Likewise.
8870 (expand_mul_overflow): Likewise.
8871 (expand_arith_overflow): Likewise.
8872 * match.pd: Likewise.
8873 * stor-layout.c (layout_type): Likewise.
8874 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8875 * tree-ssa-math-opts.c (convert_mult_to_widen): Likewise.
8876 * tree-ssanames.c (get_range_info): Likewise.
8877 * tree-switch-conversion.c (array_value_type) Likewise.
8878 * tree-vect-patterns.c (vect_recog_rotate_pattern): Likewise.
8879 (vect_recog_divmod_pattern): Likewise.
8880 (vect_recog_mixed_size_cond_pattern): Likewise.
8881 * tree-vrp.c (extract_range_basic): Likewise.
8882 (simplify_float_conversion_using_ranges): Likewise.
8883 * tree.c (int_fits_type_p): Likewise.
8884 * ubsan.c (instrument_bool_enum_load): Likewise.
8885 * varasm.c (mergeable_string_section): Likewise.
8886 (narrowing_initializer_constant_valid_p): Likewise.
8887 (output_constant): Likewise.
8889 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8890 Alan Hayward <alan.hayward@arm.com>
8891 David Sherwood <david.sherwood@arm.com>
8893 * machmode.h (NARROWEST_INT_MODE): New macro.
8894 * expr.c (alignment_for_piecewise_move): Use it instead of
8895 GET_CLASS_NARROWEST_MODE (MODE_INT).
8896 (push_block): Likewise.
8897 * stor-layout.c (bit_field_mode_iterator::bit_field_mode_iterator):
8899 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
8901 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8902 Alan Hayward <alan.hayward@arm.com>
8903 David Sherwood <david.sherwood@arm.com>
8905 * postreload.c (move2add_valid_value_p): Change the type of the
8906 mode parameter to scalar_int_mode.
8907 (move2add_use_add2_insn): Add a mode parameter and use it instead
8909 (move2add_use_add3_insn): Likewise.
8910 (reload_cse_move2add): Update accordingly.
8912 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8913 Alan Hayward <alan.hayward@arm.com>
8914 David Sherwood <david.sherwood@arm.com>
8916 * expr.c (expand_expr_real_2): Use scalar_int_mode for the
8918 * lower-subreg.c (resolve_shift_zext): Use is_a <scalar_int_mode>.
8919 * optabs.c (expand_unop): Likewise.
8921 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8922 Alan Hayward <alan.hayward@arm.com>
8923 David Sherwood <david.sherwood@arm.com>
8925 * dwarf2out.c (typed_binop): Change mode parameter to scalar_int_mode.
8926 (clz_loc_descriptor): Likewise. Remove SCALAR_INT_MODE_P check.
8927 (popcount_loc_descriptor): Likewise.
8928 (bswap_loc_descriptor): Likewise.
8929 (rotate_loc_descriptor): Likewise.
8930 (mem_loc_descriptor): Add is_a <scalar_int_mode> checks before
8931 calling the functions above.
8933 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8934 Alan Hayward <alan.hayward@arm.com>
8935 David Sherwood <david.sherwood@arm.com>
8937 * combine.c (sign_extend_short_imm): Add is_a <scalar_int_mode>
8939 (try_combine): Likewise.
8940 (simplify_if_then_else): Likewise.
8941 * cse.c (cse_insn): Likewise.
8942 * dwarf2out.c (mem_loc_descriptor): Likewise.
8943 * emit-rtl.c (gen_lowpart_common): Likewise.
8944 * simplify-rtx.c (simplify_truncation): Likewise.
8945 (simplify_binary_operation_1): Likewise.
8946 (simplify_const_relational_operation): Likewise.
8947 (simplify_ternary_operation): Likewise.
8948 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
8950 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8951 Alan Hayward <alan.hayward@arm.com>
8952 David Sherwood <david.sherwood@arm.com>
8954 * cse.c (cse_insn): Add is_a <scalar_int_mode> checks.
8955 * reload.c (push_reload): Likewise.
8956 (find_reloads): Likewise.
8958 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8959 Alan Hayward <alan.hayward@arm.com>
8960 David Sherwood <david.sherwood@arm.com>
8962 * combine.c (find_split_point): Add is_a <scalar_int_mode> checks.
8963 (make_compound_operation_int): Likewise.
8964 (change_zero_ext): Likewise.
8965 * expr.c (convert_move): Likewise.
8966 (convert_modes): Likewise.
8967 * fwprop.c (forward_propagate_subreg): Likewise.
8968 * loop-iv.c (get_biv_step_1): Likewise.
8969 * optabs.c (widen_operand): Likewise.
8970 * postreload.c (move2add_valid_value_p): Likewise.
8971 * recog.c (simplify_while_replacing): Likewise.
8972 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8973 (simplify_binary_operation_1): Likewise. Remove redundant
8974 mode equality check.
8976 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8977 Alan Hayward <alan.hayward@arm.com>
8978 David Sherwood <david.sherwood@arm.com>
8980 * combine.c (combine_simplify_rtx): Add checks for
8981 is_a <scalar_int_mode>.
8982 (simplify_if_then_else): Likewise.
8983 (make_field_assignment): Likewise.
8984 (simplify_comparison): Likewise.
8985 * ifcvt.c (noce_try_bitop): Likewise.
8986 * loop-invariant.c (canonicalize_address_mult): Likewise.
8987 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
8989 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8990 Alan Hayward <alan.hayward@arm.com>
8991 David Sherwood <david.sherwood@arm.com>
8993 * gimple-fold.c (gimple_fold_builtin_memory_op): Use
8994 is_a <scalar_int_mode> instead of != BLKmode.
8996 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
8997 Alan Hayward <alan.hayward@arm.com>
8998 David Sherwood <david.sherwood@arm.com>
9000 * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>
9001 instead of != VOIDmode.
9002 * combine.c (if_then_else_cond): Likewise.
9003 (change_zero_ext): Likewise.
9004 * dwarf2out.c (mem_loc_descriptor): Likewise.
9005 (loc_descriptor): Likewise.
9006 * rtlanal.c (canonicalize_condition): Likewise.
9007 * simplify-rtx.c (simplify_relational_operation_1): Likewise.
9009 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9010 Alan Hayward <alan.hayward@arm.com>
9011 David Sherwood <david.sherwood@arm.com>
9013 * simplify-rtx.c (simplify_binary_operation_1): Use
9014 is_a <scalar_int_mode> instead of !VECTOR_MODE_P.
9016 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9017 Alan Hayward <alan.hayward@arm.com>
9018 David Sherwood <david.sherwood@arm.com>
9020 * wide-int.h (int_traits<unsigned char>) New class.
9021 (int_traits<unsigned short>) Likewise.
9022 * cfgexpand.c (expand_debug_expr): Use is_a <scalar_int_mode>.
9023 Use GET_MODE_UNIT_PRECISION and remove redundant test for
9025 * combine.c (set_nonzero_bits_and_sign_copies): Use
9026 is_a <scalar_int_mode>.
9027 (find_split_point): Likewise.
9028 (combine_simplify_rtx): Likewise.
9029 (simplify_logical): Likewise.
9030 (expand_compound_operation): Likewise.
9031 (expand_field_assignment): Likewise.
9032 (make_compound_operation): Likewise.
9033 (extended_count): Likewise.
9034 (change_zero_ext): Likewise.
9035 (simplify_comparison): Likewise.
9036 * dwarf2out.c (scompare_loc_descriptor): Likewise.
9037 (ucompare_loc_descriptor): Likewise.
9038 (minmax_loc_descriptor): Likewise.
9039 (mem_loc_descriptor): Likewise.
9040 (loc_descriptor): Likewise.
9041 * expmed.c (init_expmed_one_mode): Likewise.
9042 * lra-constraints.c (lra_constraint_offset): Likewise.
9043 * optabs.c (prepare_libcall_arg): Likewise.
9044 * postreload.c (move2add_note_store): Likewise.
9045 * reload.c (operands_match_p): Likewise.
9046 * rtl.h (load_extend_op): Likewise.
9047 * rtlhooks.c (gen_lowpart_general): Likewise.
9048 * simplify-rtx.c (simplify_truncation): Likewise.
9049 (simplify_unary_operation_1): Likewise.
9050 (simplify_binary_operation_1): Likewise.
9051 (simplify_const_binary_operation): Likewise.
9052 (simplify_const_relational_operation): Likewise.
9053 (simplify_subreg): Likewise.
9054 * stor-layout.c (bitwise_mode_for_mode): Likewise.
9055 * var-tracking.c (adjust_mems): Likewise.
9056 (prepare_call_arguments): Likewise.
9058 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9059 Alan Hayward <alan.hayward@arm.com>
9060 David Sherwood <david.sherwood@arm.com>
9062 * machmode.h (is_int_mode): New fuction.
9063 * combine.c (find_split_point): Use it.
9064 (combine_simplify_rtx): Likewise.
9065 (simplify_if_then_else): Likewise.
9066 (simplify_set): Likewise.
9067 (simplify_shift_const_1): Likewise.
9068 (simplify_comparison): Likewise.
9069 * config/aarch64/aarch64.c (aarch64_rtx_costs): Likewise.
9070 * cse.c (notreg_cost): Likewise.
9071 (cse_insn): Likewise.
9072 * cselib.c (cselib_lookup_1): Likewise.
9073 * dojump.c (do_jump_1): Likewise.
9074 (do_compare_rtx_and_jump): Likewise.
9075 * dse.c (get_call_args): Likewise.
9076 * dwarf2out.c (rtl_for_decl_init): Likewise.
9077 (native_encode_initializer): Likewise.
9078 * expmed.c (emit_store_flag_1): Likewise.
9079 (emit_store_flag): Likewise.
9080 * expr.c (convert_modes): Likewise.
9081 (store_field): Likewise.
9082 (expand_expr_real_1): Likewise.
9083 * fold-const.c (fold_read_from_constant_string): Likewise.
9084 * gimple-ssa-sprintf.c (get_format_string): Likewise.
9085 * optabs-libfuncs.c (gen_int_libfunc): Likewise.
9086 * optabs.c (expand_binop): Likewise.
9087 (expand_unop): Likewise.
9088 (expand_abs_nojump): Likewise.
9089 (expand_one_cmpl_abs_nojump): Likewise.
9090 * simplify-rtx.c (mode_signbit_p): Likewise.
9091 (val_signbit_p): Likewise.
9092 (val_signbit_known_set_p): Likewise.
9093 (val_signbit_known_clear_p): Likewise.
9094 (simplify_relational_operation_1): Likewise.
9095 * tree.c (vector_type_mode): Likewise.
9097 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9098 Alan Hayward <alan.hayward@arm.com>
9099 David Sherwood <david.sherwood@arm.com>
9101 * machmode.h (smallest_mode_for_size): Fix formatting.
9102 (smallest_int_mode_for_size): New function.
9103 * cfgexpand.c (expand_debug_expr): Use smallest_int_mode_for_size
9104 instead of smallest_mode_for_size.
9105 * combine.c (make_extraction): Likewise.
9106 * config/arc/arc.c (arc_expand_movmem): Likewise.
9107 * config/arm/arm.c (arm_expand_divmod_libfunc): Likewise.
9108 * config/i386/i386.c (ix86_get_mask_mode): Likewise.
9109 * config/s390/s390.c (s390_expand_insv): Likewise.
9110 * config/sparc/sparc.c (assign_int_registers): Likewise.
9111 * config/spu/spu.c (spu_function_value): Likewise.
9112 (spu_function_arg): Likewise.
9113 * coverage.c (get_gcov_type): Likewise.
9114 (get_gcov_unsigned_t): Likewise.
9115 * dse.c (find_shift_sequence): Likewise.
9116 * expmed.c (store_bit_field_1): Likewise.
9117 * expr.c (convert_move): Likewise.
9118 (store_field): Likewise.
9119 * internal-fn.c (expand_arith_overflow): Likewise.
9120 * optabs-query.c (get_best_extraction_insn): Likewise.
9121 * optabs.c (expand_twoval_binop_libfunc): Likewise.
9122 * stor-layout.c (layout_type): Likewise.
9123 (initialize_sizetypes): Likewise.
9124 * targhooks.c (default_get_mask_mode): Likewise.
9125 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Likewise.
9127 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9128 Alan Hayward <alan.hayward@arm.com>
9129 David Sherwood <david.sherwood@arm.com>
9131 * machmode.h (opt_mode::else_blk): New function.
9132 (int_mode_for_mode): Declare.
9133 * stor-layout.c (int_mode_for_mode): Return an opt_scalar_int_mode.
9134 * builtins.c (expand_builtin_signbit): Adjust for new int_mode_for_mode
9136 * cfgexpand.c (expand_debug_expr): Likewise.
9137 * combine.c (gen_lowpart_or_truncate): Likewise.
9138 (gen_lowpart_for_combine): Likewise.
9139 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Likewise.
9140 * config/avr/avr.c (avr_to_int_mode): Likewise.
9141 (avr_out_plus_1): Likewise.
9142 (avr_out_plus): Likewise.
9143 (avr_out_round): Likewise.
9144 * config/i386/i386.c (ix86_split_to_parts): Likewise.
9145 * config/s390/s390.c (s390_expand_vec_compare_cc): Likewise.
9146 (s390_expand_vcond): Likewise.
9147 * config/spu/spu.c (spu_split_immediate): Likewise.
9148 (spu_expand_mov): Likewise.
9149 * dse.c (get_stored_val): Likewise.
9150 * expmed.c (store_bit_field_1): Likewise.
9151 (convert_extracted_bit_field): Use int_mode_for_mode instead of
9153 (extract_bit_field_1): Adjust for new int_mode_for_mode return type.
9154 (extract_low_bits): Likewise.
9155 * expr.c (emit_group_load_1): Likewise. Separate out the BLKmode
9156 handling rather than repeating the check.
9157 (emit_group_store): Likewise.
9158 (emit_move_via_integer): Adjust for new int_mode_for_mode return type.
9159 * optabs.c (expand_absneg_bit): Likewise.
9160 (expand_copysign_absneg): Likewise.
9161 (expand_copysign_bit): Likewise.
9162 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
9163 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
9164 * tree-vect-stmts.c (vect_gen_perm_mask_any): Likewise.
9165 * var-tracking.c (prepare_call_arguments): Likewise.
9166 * config/powerpcspe/powerpcspe.c (rs6000_do_expand_vec_perm): Use
9167 int_mode_for_mode instead of mode_for_size.
9168 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
9170 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9171 Alan Hayward <alan.hayward@arm.com>
9172 David Sherwood <david.sherwood@arm.com>
9174 * machmode.h (int_mode_for_size): New function.
9175 * builtins.c (set_builtin_user_assembler_name): Use int_mode_for_size
9176 instead of mode_for_size.
9177 * calls.c (save_fixed_argument_area): Likewise. Make use of BLKmode
9179 * combine.c (expand_field_assignment): Use int_mode_for_size
9180 instead of mode_for_size.
9181 (make_extraction): Likewise.
9182 (simplify_shift_const_1): Likewise.
9183 (simplify_comparison): Likewise.
9184 * dojump.c (do_jump): Likewise.
9185 * dwarf2out.c (mem_loc_descriptor): Likewise.
9186 * emit-rtl.c (init_derived_machine_modes): Likewise.
9187 * expmed.c (flip_storage_order): Likewise.
9188 (convert_extracted_bit_field): Likewise.
9189 * expr.c (copy_blkmode_from_reg): Likewise.
9190 * graphite-isl-ast-to-gimple.c (max_mode_int_precision): Likewise.
9191 * internal-fn.c (expand_mul_overflow): Likewise.
9192 * lower-subreg.c (simple_move): Likewise.
9193 * optabs-libfuncs.c (init_optabs): Likewise.
9194 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
9195 * tree.c (vector_type_mode): Likewise.
9196 * tree-ssa-strlen.c (handle_builtin_memcmp): Likewise.
9197 * tree-vect-data-refs.c (vect_lanes_optab_supported_p): Likewise.
9198 * tree-vect-generic.c (expand_vector_parallel): Likewise.
9199 * tree-vect-stmts.c (vectorizable_load): Likewise.
9200 (vectorizable_store): Likewise.
9202 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9203 Alan Hayward <alan.hayward@arm.com>
9204 David Sherwood <david.sherwood@arm.com>
9206 * coretypes.h (pod_mode): New type.
9207 (scalar_int_mode_pod): New typedef.
9208 * machmode.h (pod_mode): New class.
9209 (int_n_data_t::m): Change type to scalar_int_mode_pod.
9210 * genmodes.c (emit_mode_int_n): Update accordingly.
9211 * lower-subreg.h (target_lower_subreg): Change type to
9212 scalar_int_mode_pod.
9213 * gdbhooks.py (build_pretty_printer): Handle pod_mode and
9214 scalar_int_mode_pod.
9216 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9217 Alan Hayward <alan.hayward@arm.com>
9218 David Sherwood <david.sherwood@arm.com>
9220 * config/powerpcspe/powerpcspe.h (rs6000_pmode): Change type from
9221 machine_mode to scalar_int_mode.
9222 * config/powerpcspe/powerpcspe.c (rs6000_pmode): Likewise.
9223 (rs6000_option_override_internal): Remove cast to int.
9224 * config/rs6000/rs6000.h (rs6000_pmode): Change type from
9225 machine_mode to scalar_int_mode.
9226 * config/rs6000/rs6000.c (rs6000_pmode): Likewise.
9227 (rs6000_option_override_internal): Remove cast to int.
9228 * config/s390/s390.h (Pmode): Remove cast to machine_mode.
9229 * config/epiphany/epiphany.h (RTX_OK_FOR_OFFSET_P): Add cast
9231 * config/s390/s390.c (s390_expand_builtin): Likewise.
9232 * coretypes.h (scalar_int_mode): New type.
9233 (opt_scalar_int_mode): New typedef.
9234 * machmode.h (scalar_int_mode): New class.
9235 (scalar_int_mode::includes_p): New function.
9236 (byte_mode): Change type to scalar_int_mode.
9237 (word_mode): Likewise.
9238 (ptr_mode): Likewise.
9239 * emit-rtl.c (byte_mode): Likewise.
9240 (word_mode): Likewise.
9241 (ptr_mode): Likewise.
9242 (init_derived_machine_modes): Update accordingly.
9243 * genmodes.c (get_mode_class): Return scalar_int_mode for MODE_INT
9244 and MODE_PARTIAL_INT.
9245 * gdbhooks.py (build_pretty_printer): Handle scalar_int_mode and
9246 opt_scalar_int_mode.
9248 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9249 Alan Hayward <alan.hayward@arm.com>
9250 David Sherwood <david.sherwood@arm.com>
9252 * target.def (libgcc_floating_mode_supported_p): Take a
9254 * doc/tm.texi: Regenerate.
9255 * targhooks.h (default_libgcc_floating_mode_supported_p): Take a
9257 * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
9258 * config/aarch64/aarch64.c (aarch64_libgcc_floating_mode_supported_p):
9261 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9262 Alan Hayward <alan.hayward@arm.com>
9263 David Sherwood <david.sherwood@arm.com>
9265 * target.def (default_floatn_mode): Return an opt_scalar_float_mode.
9266 * doc/tm.texi: Regenerate.
9267 * config/arm/arm.c (arm_floatn_mode): Return an opt_scalar_float_mode.
9268 * config/powerpcspe/powerpcspe.c (rs6000_floatn_mode): Likewise.
9269 * config/rs6000/rs6000.c (rs6000_floatn_mode): Likewise.
9270 * targhooks.h (default_floatn_mode): Likewise.
9271 * targhooks.c (default_floatn_mode): Likewise.
9272 * tree.c (build_common_tree_nodes): Update accordingly.
9274 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9275 Alan Hayward <alan.hayward@arm.com>
9276 David Sherwood <david.sherwood@arm.com>
9278 * machmode.h (mode_iterator::start): Provide overload for opt_modes.
9279 (mode_iterator::iterate_p): Likewise.
9280 (mode_iterator::get_wider): Likewise.
9281 * expr.c (init_expr_target): Use opt_scalar_float_mode.
9283 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9284 Alan Hayward <alan.hayward@arm.com>
9285 David Sherwood <david.sherwood@arm.com>
9287 * coretypes.h (opt_scalar_float_mode): New typedef.
9288 * machmode.h (float_mode_for_size): New function.
9289 * emit-rtl.c (double_mode): Delete.
9290 (init_emit_once): Use float_mode_for_size.
9291 * stor-layout.c (layout_type): Likewise.
9292 * gdbhooks.py (build_pretty_printer): Handle opt_scalar_float_mode.
9294 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9295 Alan Hayward <alan.hayward@arm.com>
9296 David Sherwood <david.sherwood@arm.com>
9298 * output.h (assemble_real): Take a scalar_float_mode.
9299 * config/arm/arm.c (arm_assemble_integer): Update accordingly.
9300 * config/arm/arm.md (consttable_4): Likewise.
9301 (consttable_8): Likewise.
9302 (consttable_16): Likewise.
9303 * config/mips/mips.md (consttable_float): Likewise.
9304 * config/s390/s390.c (s390_output_pool_entry): Likewise.
9305 * varasm.c (assemble_real): Take a scalar_float_mode.
9306 (output_constant_pool_2): Update accordingly.
9307 (output_constant): Likewise.
9309 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9310 Alan Hayward <alan.hayward@arm.com>
9311 David Sherwood <david.sherwood@arm.com>
9313 * tree.h (SCALAR_FLOAT_TYPE_MODE): New macro.
9314 * builtins.c (expand_builtin_signbit): Use it instead of TYPE_MODE.
9315 * fold-const.c (fold_convert_const_real_from_fixed): Likewise.
9316 (native_encode_real): Likewise.
9317 (native_interpret_real): Likewise.
9318 * hsa-brig.c (emit_immediate_scalar_to_buffer): Likewise.
9319 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
9321 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9322 Alan Hayward <alan.hayward@arm.com>
9323 David Sherwood <david.sherwood@arm.com>
9325 * optabs-libfuncs.c (gen_trunc_conv_libfunc): Use is_a
9326 <scalar_float_mode>. Simplify.
9327 (gen_extend_conv_libfunc): Likewise.
9329 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9330 Alan Hayward <alan.hayward@arm.com>
9331 David Sherwood <david.sherwood@arm.com>
9333 * coretypes.h (scalar_float_mode): New type.
9334 * machmode.h (mode_traits::from_int): Use machine_mode if
9335 USE_ENUM_MODES is defined.
9336 (is_a): New function.
9338 (dyn_cast): Likewise.
9339 (scalar_float_mode): New class.
9340 (scalar_float_mode::includes_p): New function.
9341 (is_float_mode): Likewise.
9342 * gdbhooks.py (MachineModePrinter): New class.
9343 (build_pretty_printer): Use it for scalar_float_mode.
9344 * real.h (FLOAT_MODE_FORMAT): Use as_a <scalar_float_mode>.
9345 (format_helper::format_helper): Turn into a template.
9346 * genmodes.c (get_mode_class): New function.
9347 (emit_insn_modes_h): Give modes the class returned by get_mode_class,
9348 or machine_mode if none.
9349 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Use
9350 as_a <scalar_float_mode>.
9351 * dwarf2out.c (mem_loc_descriptor): Likewise.
9352 (insert_float): Likewise.
9353 (add_const_value_attribute): Likewise.
9354 * simplify-rtx.c (simplify_immed_subreg): Likewise.
9355 * optabs.c (expand_absneg_bit): Take a scalar_float_mode.
9356 (expand_unop): Update accordingly.
9357 (expand_abs_nojump): Likewise.
9358 (expand_copysign_absneg): Take a scalar_float_mode.
9359 (expand_copysign_bit): Likewise.
9360 (expand_copysign): Update accordingly.
9362 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9363 Alan Hayward <alan.hayward@arm.com>
9364 David Sherwood <david.sherwood@arm.com>
9366 * coretypes.h (opt_mode): New class.
9367 * machmode.h (opt_mode): Likewise.
9368 (opt_mode::else_void): New function.
9369 (opt_mode::require): Likewise.
9370 (opt_mode::exists): Likewise.
9371 (GET_MODE_WIDER_MODE): Turn into a function and return an opt_mode.
9372 (GET_MODE_2XWIDER_MODE): Likewise.
9373 (mode_iterator::get_wider): Update accordingly.
9374 (mode_iterator::get_2xwider): Likewise.
9375 (mode_iterator::get_known_wider): Likewise, turning into a template.
9376 * combine.c (make_extraction): Update use of GET_MODE_WIDER_MODE,
9377 forcing a wider mode to exist.
9378 * config/cr16/cr16.h (LONG_REG_P): Likewise.
9379 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
9380 * config/c6x/c6x.c (c6x_rtx_costs): Update use of
9381 GET_MODE_2XWIDER_MODE, forcing a wider mode to exist.
9382 * lower-subreg.c (init_lower_subreg): Likewise.
9383 * optabs-libfuncs.c (init_sync_libfuncs_1): Likewise, but not
9384 on the final iteration.
9385 * config/i386/i386.c (ix86_expand_set_or_movmem): Check whether
9386 a wider mode exists before asking for a move pattern.
9387 (get_mode_wider_vector): Update use of GET_MODE_WIDER_MODE,
9388 forcing a wider mode to exist.
9389 (expand_vselect_vconcat): Update use of GET_MODE_2XWIDER_MODE,
9390 returning false if no such mode exists.
9391 * config/ia64/ia64.c (expand_vselect_vconcat): Likewise.
9392 * config/mips/mips.c (mips_expand_vselect_vconcat): Likewise.
9393 * expmed.c (init_expmed_one_mode): Update use of GET_MODE_WIDER_MODE.
9394 Avoid checking for a MODE_INT if we already know the mode is not a
9396 (extract_high_half): Update use of GET_MODE_WIDER_MODE,
9397 forcing a wider mode to exist.
9398 (expmed_mult_highpart_optab): Likewise.
9399 (expmed_mult_highpart): Likewise.
9400 * expr.c (expand_expr_real_2): Update use of GET_MODE_WIDER_MODE,
9402 * lto-streamer-in.c (lto_input_mode_table): Likewise.
9403 * optabs-query.c (find_widening_optab_handler_and_mode): Likewise.
9404 * stor-layout.c (bit_field_mode_iterator::next_mode): Likewise.
9405 * internal-fn.c (expand_mul_overflow): Update use of
9406 GET_MODE_2XWIDER_MODE.
9407 * omp-low.c (omp_clause_aligned_alignment): Likewise.
9408 * tree-ssa-math-opts.c (convert_mult_to_widen): Update use of
9409 GET_MODE_WIDER_MODE.
9410 (convert_plusminus_to_widen): Likewise.
9411 * tree-switch-conversion.c (array_value_type): Likewise.
9412 * var-tracking.c (emit_note_insn_var_location): Likewise.
9413 * tree-vrp.c (simplify_float_conversion_using_ranges): Likewise.
9414 Return false inside rather than outside the loop if no wider mode
9416 * optabs.c (expand_binop): Update use of GET_MODE_WIDER_MODE
9417 and GET_MODE_2XWIDER_MODE
9418 (can_compare_p): Use else_void.
9419 * gdbhooks.py (OptMachineModePrinter): New class.
9420 (build_pretty_printer): Use it for opt_mode.
9422 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9423 Alan Hayward <alan.hayward@arm.com>
9424 David Sherwood <david.sherwood@arm.com>
9426 * tree-switch-conversion.c (array_value_type): Only read TYPE_MODE
9427 once. Use get_narrowest_mode instead of GET_CLASS_NARROWEST_MODE.
9429 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9430 Alan Hayward <alan.hayward@arm.com>
9431 David Sherwood <david.sherwood@arm.com>
9433 * machmode.h (mode_traits): New structure.
9434 (get_narrowest_mode): New function.
9435 (mode_iterator::start): Likewise.
9436 (mode_iterator::iterate_p): Likewise.
9437 (mode_iterator::get_wider): Likewise.
9438 (mode_iterator::get_known_wider): Likewise.
9439 (mode_iterator::get_2xwider): Likewise.
9440 (FOR_EACH_MODE_IN_CLASS): New mode iterator.
9441 (FOR_EACH_MODE): Likewise.
9442 (FOR_EACH_MODE_FROM): Likewise.
9443 (FOR_EACH_MODE_UNTIL): Likewise.
9444 (FOR_EACH_WIDER_MODE): Likewise.
9445 (FOR_EACH_2XWIDER_MODE): Likewise.
9446 * builtins.c (expand_builtin_strlen): Use new mode iterators.
9447 * combine.c (simplify_comparison): Likewise
9448 * config/i386/i386.c (type_natural_mode): Likewise.
9449 * cse.c (cse_insn): Likewise.
9450 * dse.c (find_shift_sequence): Likewise.
9451 * emit-rtl.c (init_derived_machine_modes): Likewise.
9452 (init_emit_once): Likewise.
9453 * explow.c (hard_function_value): Likewise.
9454 * expmed.c (extract_fixed_bit_field_1): Likewise.
9455 (extract_bit_field_1): Likewise.
9456 (expand_divmod): Likewise.
9457 (emit_store_flag_1): Likewise.
9458 * expr.c (init_expr_target): Likewise.
9459 (convert_move): Likewise.
9460 (alignment_for_piecewise_move): Likewise.
9461 (widest_int_mode_for_size): Likewise.
9462 (emit_block_move_via_movmem): Likewise.
9463 (copy_blkmode_to_reg): Likewise.
9464 (set_storage_via_setmem): Likewise.
9465 (compress_float_constant): Likewise.
9466 * omp-low.c (omp_clause_aligned_alignment): Likewise.
9467 * optabs-query.c (get_best_extraction_insn): Likewise.
9468 * optabs.c (expand_binop): Likewise.
9469 (expand_twoval_unop): Likewise.
9470 (expand_twoval_binop): Likewise.
9471 (widen_leading): Likewise.
9472 (widen_bswap): Likewise.
9473 (expand_parity): Likewise.
9474 (expand_unop): Likewise.
9475 (prepare_cmp_insn): Likewise.
9476 (prepare_float_lib_cmp): Likewise.
9477 (expand_float): Likewise.
9478 (expand_fix): Likewise.
9479 (expand_sfix_optab): Likewise.
9480 * postreload.c (move2add_use_add2_insn): Likewise.
9481 * reg-stack.c (reg_to_stack): Likewise.
9482 * reginfo.c (choose_hard_reg_mode): Likewise.
9483 * rtlanal.c (init_num_sign_bit_copies_in_rep): Likewise.
9484 * stor-layout.c (mode_for_size): Likewise.
9485 (smallest_mode_for_size): Likewise.
9486 (mode_for_vector): Likewise.
9487 (finish_bitfield_representative): Likewise.
9488 * tree-ssa-math-opts.c (target_supports_divmod_p): Likewise.
9489 * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
9490 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
9491 * var-tracking.c (prepare_call_arguments): Likewise.
9493 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9494 Alan Hayward <alan.hayward@arm.com>
9495 David Sherwood <david.sherwood@arm.com>
9497 * genconditions.c (write_header): Add a "#define USE_ENUM_MODES".
9498 * genmodes.c (emit_insn_modes_h): Define FOOmode to E_FOOmode if
9499 USE_ENUM_MODES is defined and to ((void) 0, E_FOOmode) otherwise.
9500 * machmode.h (mode_size): Move earlier in file.
9501 (mode_precision): Likewise.
9502 (mode_inner): Likewise.
9503 (mode_nunits): Likewise.
9504 (mode_unit_size): Likewise.
9505 (unit_unit_precision): Likewise.
9506 (mode_wider): Likewise.
9507 (mode_2xwider): Likewise.
9508 (machine_mode): New class.
9509 (mode_to_bytes): New function.
9510 (mode_to_bits): Likewise.
9511 (mode_to_precision): Likewise.
9512 (mode_to_inner): Likewise.
9513 (mode_to_unit_size): Likewise.
9514 (mode_to_unit_precision): Likewise.
9515 (mode_to_nunits): Likewise.
9516 (GET_MODE_SIZE): Use mode_to_bytes.
9517 (GET_MODE_BITSIZE): Use mode_to_bits.
9518 (GET_MODE_PRECISION): Use mode_to_precision.
9519 (GET_MODE_INNER): Use mode_to_inner.
9520 (GET_MODE_UNIT_SIZE): Use mode_to_unit_size.
9521 (GET_MODE_UNIT_PRECISION): Use mode_to_unit_precision.
9522 (GET_MODE_NUNITS): Use mode_to_nunits.
9523 * system.h (ALWAYS_INLINE): New macro.
9524 * config/powerpcspe/powerpcspe-c.c
9525 (altivec_resolve_overloaded_builtin): Use machine_mode instead of
9526 int for arg1_mode and arg2_mode.
9528 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9529 Alan Hayward <alan.hayward@arm.com>
9530 David Sherwood <david.sherwood@arm.com>
9532 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
9533 Prefix mode names with E_ in case statements.
9534 * config/aarch64/aarch64-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9535 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Likewise.
9536 (aarch64_split_simd_move): Likewise.
9537 (aarch64_gen_storewb_pair): Likewise.
9538 (aarch64_gen_loadwb_pair): Likewise.
9539 (aarch64_gen_store_pair): Likewise.
9540 (aarch64_gen_load_pair): Likewise.
9541 (aarch64_get_condition_code_1): Likewise.
9542 (aarch64_constant_pool_reload_icode): Likewise.
9543 (get_rsqrte_type): Likewise.
9544 (get_rsqrts_type): Likewise.
9545 (get_recpe_type): Likewise.
9546 (get_recps_type): Likewise.
9547 (aarch64_gimplify_va_arg_expr): Likewise.
9548 (aarch64_simd_container_mode): Likewise.
9549 (aarch64_emit_load_exclusive): Likewise.
9550 (aarch64_emit_store_exclusive): Likewise.
9551 (aarch64_expand_compare_and_swap): Likewise.
9552 (aarch64_gen_atomic_cas): Likewise.
9553 (aarch64_emit_bic): Likewise.
9554 (aarch64_emit_atomic_swap): Likewise.
9555 (aarch64_emit_atomic_load_op): Likewise.
9556 (aarch64_evpc_trn): Likewise.
9557 (aarch64_evpc_uzp): Likewise.
9558 (aarch64_evpc_zip): Likewise.
9559 (aarch64_evpc_ext): Likewise.
9560 (aarch64_evpc_rev): Likewise.
9561 (aarch64_evpc_dup): Likewise.
9562 (aarch64_gen_ccmp_first): Likewise.
9563 (aarch64_gen_ccmp_next): Likewise.
9564 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): Likewise.
9565 (alpha_emit_xfloating_libcall): Likewise.
9566 (emit_insxl): Likewise.
9567 (alpha_arg_type): Likewise.
9568 * config/arc/arc.c (arc_vector_mode_supported_p): Likewise.
9569 (arc_preferred_simd_mode): Likewise.
9570 (arc_secondary_reload): Likewise.
9571 (get_arc_condition_code): Likewise.
9572 (arc_print_operand): Likewise.
9573 (arc_legitimate_constant_p): Likewise.
9574 * config/arc/arc.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9575 * config/arc/arc.md (casesi_load): Likewise.
9576 (casesi_compact_jump): Likewise.
9577 * config/arc/predicates.md (proper_comparison_operator): Likewise.
9578 (cc_use_register): Likewise.
9579 * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9580 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
9581 (arm_init_iwmmxt_builtins): Likewise.
9582 * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
9583 (neon_expand_vector_init): Likewise.
9584 (arm_attr_length_move_neon): Likewise.
9585 (maybe_get_arm_condition_code): Likewise.
9586 (arm_emit_vector_const): Likewise.
9587 (arm_preferred_simd_mode): Likewise.
9588 (arm_output_iwmmxt_tinsr): Likewise.
9589 (thumb1_output_casesi): Likewise.
9590 (thumb2_output_casesi): Likewise.
9591 (arm_emit_load_exclusive): Likewise.
9592 (arm_emit_store_exclusive): Likewise.
9593 (arm_expand_compare_and_swap): Likewise.
9594 (arm_evpc_neon_vuzp): Likewise.
9595 (arm_evpc_neon_vzip): Likewise.
9596 (arm_evpc_neon_vrev): Likewise.
9597 (arm_evpc_neon_vtrn): Likewise.
9598 (arm_evpc_neon_vext): Likewise.
9599 (arm_validize_comparison): Likewise.
9600 * config/arm/neon.md (neon_vc<cmp_op><mode>): Likewise.
9601 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
9602 * config/avr/avr.c (avr_rtx_costs_1): Likewise.
9603 * config/c6x/c6x.c (c6x_vector_mode_supported_p): Likewise.
9604 (c6x_preferred_simd_mode): Likewise.
9605 * config/epiphany/epiphany.c (get_epiphany_condition_code): Likewise.
9606 (epiphany_rtx_costs): Likewise.
9607 * config/epiphany/predicates.md (proper_comparison_operator):
9609 * config/frv/frv.c (condexec_memory_operand): Likewise.
9610 (frv_emit_move): Likewise.
9611 (output_move_single): Likewise.
9612 (output_condmove_single): Likewise.
9613 (frv_hard_regno_mode_ok): Likewise.
9614 (frv_matching_accg_mode): Likewise.
9615 * config/h8300/h8300.c (split_adds_subs): Likewise.
9616 (h8300_rtx_costs): Likewise.
9617 (h8300_print_operand): Likewise.
9618 (compute_mov_length): Likewise.
9619 (output_logical_op): Likewise.
9620 (compute_logical_op_length): Likewise.
9621 (compute_logical_op_cc): Likewise.
9622 (h8300_shift_needs_scratch_p): Likewise.
9623 (output_a_shift): Likewise.
9624 (compute_a_shift_length): Likewise.
9625 (compute_a_shift_cc): Likewise.
9626 (expand_a_rotate): Likewise.
9627 (output_a_rotate): Likewise.
9628 * config/i386/i386.c (classify_argument): Likewise.
9629 (function_arg_advance_32): Likewise.
9630 (function_arg_32): Likewise.
9631 (function_arg_64): Likewise.
9632 (function_value_64): Likewise.
9633 (ix86_gimplify_va_arg): Likewise.
9634 (ix86_legitimate_constant_p): Likewise.
9635 (put_condition_code): Likewise.
9636 (split_double_mode): Likewise.
9637 (ix86_avx256_split_vector_move_misalign): Likewise.
9638 (ix86_expand_vector_logical_operator): Likewise.
9639 (ix86_split_idivmod): Likewise.
9640 (ix86_expand_adjust_ufix_to_sfix_si): Likewise.
9641 (ix86_build_const_vector): Likewise.
9642 (ix86_build_signbit_mask): Likewise.
9643 (ix86_match_ccmode): Likewise.
9644 (ix86_cc_modes_compatible): Likewise.
9645 (ix86_expand_branch): Likewise.
9646 (ix86_expand_sse_cmp): Likewise.
9647 (ix86_expand_sse_movcc): Likewise.
9648 (ix86_expand_int_sse_cmp): Likewise.
9649 (ix86_expand_vec_perm_vpermi2): Likewise.
9650 (ix86_expand_vec_perm): Likewise.
9651 (ix86_expand_sse_unpack): Likewise.
9652 (ix86_expand_int_addcc): Likewise.
9653 (ix86_split_to_parts): Likewise.
9654 (ix86_vectorize_builtin_gather): Likewise.
9655 (ix86_vectorize_builtin_scatter): Likewise.
9656 (avx_vpermilp_parallel): Likewise.
9657 (inline_memory_move_cost): Likewise.
9658 (ix86_tieable_integer_mode_p): Likewise.
9659 (x86_maybe_negate_const_int): Likewise.
9660 (ix86_expand_vector_init_duplicate): Likewise.
9661 (ix86_expand_vector_init_one_nonzero): Likewise.
9662 (ix86_expand_vector_init_one_var): Likewise.
9663 (ix86_expand_vector_init_concat): Likewise.
9664 (ix86_expand_vector_init_interleave): Likewise.
9665 (ix86_expand_vector_init_general): Likewise.
9666 (ix86_expand_vector_set): Likewise.
9667 (ix86_expand_vector_extract): Likewise.
9668 (emit_reduc_half): Likewise.
9669 (ix86_emit_i387_round): Likewise.
9670 (ix86_mangle_type): Likewise.
9671 (ix86_expand_round_sse4): Likewise.
9672 (expand_vec_perm_blend): Likewise.
9673 (canonicalize_vector_int_perm): Likewise.
9674 (ix86_expand_vec_one_operand_perm_avx512): Likewise.
9675 (expand_vec_perm_1): Likewise.
9676 (expand_vec_perm_interleave3): Likewise.
9677 (expand_vec_perm_even_odd_pack): Likewise.
9678 (expand_vec_perm_even_odd_1): Likewise.
9679 (expand_vec_perm_broadcast_1): Likewise.
9680 (ix86_vectorize_vec_perm_const_ok): Likewise.
9681 (ix86_expand_vecop_qihi): Likewise.
9682 (ix86_expand_mul_widen_hilo): Likewise.
9683 (ix86_expand_sse2_abs): Likewise.
9684 (ix86_expand_pextr): Likewise.
9685 (ix86_expand_pinsr): Likewise.
9686 (ix86_preferred_simd_mode): Likewise.
9687 (ix86_simd_clone_compute_vecsize_and_simdlen): Likewise.
9688 * config/i386/sse.md (*andnot<mode>3): Likewise.
9689 (<mask_codefor><code><mode>3<mask_name>): Likewise.
9690 (*<code><mode>3): Likewise.
9691 * config/ia64/ia64.c (ia64_expand_vecint_compare): Likewise.
9692 (ia64_expand_atomic_op): Likewise.
9693 (ia64_arg_type): Likewise.
9694 (ia64_mode_to_int): Likewise.
9695 (ia64_scalar_mode_supported_p): Likewise.
9696 (ia64_vector_mode_supported_p): Likewise.
9697 (expand_vec_perm_broadcast): Likewise.
9698 * config/iq2000/iq2000.c (iq2000_move_1word): Likewise.
9699 (iq2000_function_arg_advance): Likewise.
9700 (iq2000_function_arg): Likewise.
9701 * config/m32c/m32c.c (m32c_preferred_reload_class): Likewise.
9702 * config/m68k/m68k.c (output_dbcc_and_branch): Likewise.
9703 (m68k_libcall_value): Likewise.
9704 (m68k_function_value): Likewise.
9705 (sched_attr_op_type): Likewise.
9706 * config/mcore/mcore.c (mcore_output_move): Likewise.
9707 * config/microblaze/microblaze.c (microblaze_function_arg_advance):
9709 (microblaze_function_arg): Likewise.
9710 * config/mips/mips.c (mips16_build_call_stub): Likewise.
9711 (mips_print_operand): Likewise.
9712 (mips_mode_ok_for_mov_fmt_p): Likewise.
9713 (mips_vector_mode_supported_p): Likewise.
9714 (mips_preferred_simd_mode): Likewise.
9715 (mips_expand_vpc_loongson_even_odd): Likewise.
9716 (mips_expand_vec_unpack): Likewise.
9717 (mips_expand_vi_broadcast): Likewise.
9718 (mips_expand_vector_init): Likewise.
9719 (mips_expand_vec_reduc): Likewise.
9720 (mips_expand_msa_cmp): Likewise.
9721 * config/mips/mips.md (casesi_internal_mips16_<mode>): Likewise.
9722 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
9723 (cc_flags_for_mode): Likewise.
9724 * config/msp430/msp430.c (msp430_print_operand): Likewise.
9725 * config/nds32/nds32-md-auxiliary.c (nds32_mem_format): Likewise.
9726 (nds32_output_casesi_pc_relative): Likewise.
9727 * config/nds32/nds32.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9728 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Likewise.
9729 (nvptx_gen_unpack): Likewise.
9730 (nvptx_gen_pack): Likewise.
9731 (nvptx_gen_shuffle): Likewise.
9732 (nvptx_gen_wcast): Likewise.
9733 (nvptx_preferred_simd_mode): Likewise.
9734 * config/pa/pa.c (pa_secondary_reload): Likewise.
9735 * config/pa/predicates.md (base14_operand): Likewise.
9736 * config/powerpcspe/powerpcspe-c.c
9737 (altivec_resolve_overloaded_builtin): Likewise.
9738 * config/powerpcspe/powerpcspe.c (rs6000_setup_reg_addr_masks):
9740 (rs6000_preferred_simd_mode): Likewise.
9741 (output_vec_const_move): Likewise.
9742 (rs6000_expand_vector_extract): Likewise.
9743 (rs6000_split_vec_extract_var): Likewise.
9744 (reg_offset_addressing_ok_p): Likewise.
9745 (rs6000_legitimate_offset_address_p): Likewise.
9746 (rs6000_legitimize_address): Likewise.
9747 (rs6000_emit_set_const): Likewise.
9748 (rs6000_const_vec): Likewise.
9749 (rs6000_emit_move): Likewise.
9750 (spe_build_register_parallel): Likewise.
9751 (rs6000_darwin64_record_arg_recurse): Likewise.
9752 (swap_selector_for_mode): Likewise.
9753 (spe_init_builtins): Likewise.
9754 (paired_init_builtins): Likewise.
9755 (altivec_init_builtins): Likewise.
9756 (do_load_for_compare): Likewise.
9757 (rs6000_generate_compare): Likewise.
9758 (rs6000_expand_float128_convert): Likewise.
9759 (emit_load_locked): Likewise.
9760 (emit_store_conditional): Likewise.
9761 (rs6000_output_function_epilogue): Likewise.
9762 (rs6000_handle_altivec_attribute): Likewise.
9763 (rs6000_function_value): Likewise.
9764 (emit_fusion_gpr_load): Likewise.
9765 (emit_fusion_p9_load): Likewise.
9766 (emit_fusion_p9_store): Likewise.
9767 * config/powerpcspe/predicates.md (easy_fp_constant): Likewise.
9768 (fusion_gpr_mem_load): Likewise.
9769 (fusion_addis_mem_combo_load): Likewise.
9770 (fusion_addis_mem_combo_store): Likewise.
9771 * config/rs6000/predicates.md (easy_fp_constant): Likewise.
9772 (fusion_gpr_mem_load): Likewise.
9773 (fusion_addis_mem_combo_load): Likewise.
9774 (fusion_addis_mem_combo_store): Likewise.
9775 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9777 * config/rs6000/rs6000-string.c (do_load_for_compare): Likewise.
9778 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
9779 (rs6000_preferred_simd_mode): Likewise.
9780 (output_vec_const_move): Likewise.
9781 (rs6000_expand_vector_extract): Likewise.
9782 (rs6000_split_vec_extract_var): Likewise.
9783 (reg_offset_addressing_ok_p): Likewise.
9784 (rs6000_legitimate_offset_address_p): Likewise.
9785 (rs6000_legitimize_address): Likewise.
9786 (rs6000_emit_set_const): Likewise.
9787 (rs6000_const_vec): Likewise.
9788 (rs6000_emit_move): Likewise.
9789 (rs6000_darwin64_record_arg_recurse): Likewise.
9790 (swap_selector_for_mode): Likewise.
9791 (paired_init_builtins): Likewise.
9792 (altivec_init_builtins): Likewise.
9793 (rs6000_expand_float128_convert): Likewise.
9794 (emit_load_locked): Likewise.
9795 (emit_store_conditional): Likewise.
9796 (rs6000_output_function_epilogue): Likewise.
9797 (rs6000_handle_altivec_attribute): Likewise.
9798 (rs6000_function_value): Likewise.
9799 (emit_fusion_gpr_load): Likewise.
9800 (emit_fusion_p9_load): Likewise.
9801 (emit_fusion_p9_store): Likewise.
9802 * config/rx/rx.c (rx_gen_move_template): Likewise.
9803 (flags_from_mode): Likewise.
9804 * config/s390/predicates.md (s390_alc_comparison): Likewise.
9805 (s390_slb_comparison): Likewise.
9806 * config/s390/s390.c (s390_handle_vectorbool_attribute): Likewise.
9807 (s390_vector_mode_supported_p): Likewise.
9808 (s390_cc_modes_compatible): Likewise.
9809 (s390_match_ccmode_set): Likewise.
9810 (s390_canonicalize_comparison): Likewise.
9811 (s390_emit_compare_and_swap): Likewise.
9812 (s390_branch_condition_mask): Likewise.
9813 (s390_rtx_costs): Likewise.
9814 (s390_secondary_reload): Likewise.
9815 (__SECONDARY_RELOAD_CASE): Likewise.
9816 (s390_expand_cs): Likewise.
9817 (s390_preferred_simd_mode): Likewise.
9818 * config/s390/vx-builtins.md (vec_packsu_u<mode>): Likewise.
9819 * config/sh/sh.c (sh_print_operand): Likewise.
9820 (dump_table): Likewise.
9821 (sh_secondary_reload): Likewise.
9822 * config/sh/sh.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9823 * config/sh/sh.md (casesi_worker_1): Likewise.
9824 (casesi_worker_2): Likewise.
9825 * config/sparc/predicates.md (icc_comparison_operator): Likewise.
9826 (fcc_comparison_operator): Likewise.
9827 * config/sparc/sparc.c (sparc_expand_move): Likewise.
9828 (emit_soft_tfmode_cvt): Likewise.
9829 (sparc_preferred_simd_mode): Likewise.
9830 (output_cbranch): Likewise.
9831 (sparc_print_operand): Likewise.
9832 (sparc_expand_vec_perm_bmask): Likewise.
9833 (vector_init_bshuffle): Likewise.
9834 * config/spu/spu.c (spu_scalar_mode_supported_p): Likewise.
9835 (spu_vector_mode_supported_p): Likewise.
9836 (spu_expand_insv): Likewise.
9837 (spu_emit_branch_or_set): Likewise.
9838 (spu_handle_vector_attribute): Likewise.
9839 (spu_builtin_splats): Likewise.
9840 (spu_builtin_extract): Likewise.
9841 (spu_builtin_promote): Likewise.
9842 (spu_expand_sign_extend): Likewise.
9843 * config/tilegx/tilegx.c (tilegx_scalar_mode_supported_p): Likewise.
9844 (tilegx_simd_int): Likewise.
9845 * config/tilepro/tilepro.c (tilepro_scalar_mode_supported_p): Likewise.
9846 (tilepro_simd_int): Likewise.
9847 * config/v850/v850.c (const_double_split): Likewise.
9848 (v850_print_operand): Likewise.
9849 (ep_memory_offset): Likewise.
9850 * config/vax/vax.c (vax_rtx_costs): Likewise.
9851 (vax_output_int_move): Likewise.
9852 (vax_output_int_add): Likewise.
9853 (vax_output_int_subtract): Likewise.
9854 * config/visium/predicates.md (visium_branch_operator): Likewise.
9855 * config/visium/visium.c (rtx_ok_for_offset_p): Likewise.
9856 (visium_print_operand_address): Likewise.
9857 * config/visium/visium.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9858 * config/xtensa/xtensa.c (xtensa_mem_offset): Likewise.
9859 (xtensa_expand_conditional_branch): Likewise.
9860 (xtensa_copy_incoming_a7): Likewise.
9861 (xtensa_output_literal): Likewise.
9862 * dfp.c (decimal_real_maxval): Likewise.
9863 * targhooks.c (default_libgcc_floating_mode_supported_p): Likewise.
9865 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9866 Alan Hayward <alan.hayward@arm.com>
9867 David Sherwood <david.sherwood@arm.com>
9869 * genmodes.c (mode_size_inline): Add an E_ prefix to mode names.
9870 (mode_nunits_inline): Likewise.
9871 (mode_inner_inline): Likewise.
9872 (mode_unit_size_inline): Likewise.
9873 (mode_unit_precision_inline): Likewise.
9874 (emit_insn_modes_h): Likewise. Also emit a #define of the
9876 (emit_mode_wider): Add an E_ prefix to mode names.
9877 (emit_mode_complex): Likewise.
9878 (emit_mode_inner): Likewise.
9879 (emit_mode_adjustments): Likewise.
9880 (emit_mode_int_n): Likewise.
9881 * config/aarch64/aarch64-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP)
9882 (v2si_UP, v2sf_UP, v1df_UP, di_UP, df_UP, v16qi_UP, v8hi_UP, v8hf_UP)
9883 (v4si_UP, v4sf_UP, v2di_UP, v2df_UP, ti_UP, oi_UP, ci_UP, xi_UP)
9884 (si_UP, sf_UP, hi_UP, hf_UP, qi_UP): Likewise.
9885 (CRC32_BUILTIN, ENTRY): Likewise.
9886 * config/aarch64/aarch64.c (aarch64_push_regs): Likewise.
9887 (aarch64_pop_regs): Likewise.
9888 (aarch64_process_components): Likewise.
9889 * config/alpha/alpha.c (alpha_emit_conditional_move): Likewise.
9890 * config/arm/arm-builtins.c (v8qi_UP, v4hi_UP, v4hf_UP, v2si_UP)
9891 (v2sf_UP, di_UP, v16qi_UP, v8hi_UP, v8hf_UP, v4si_UP, v4sf_UP)
9892 (v2di_UP, ti_UP, ei_UP, oi_UP, hf_UP, si_UP, void_UP): Likewise.
9893 * config/arm/arm.c (arm_init_libfuncs): Likewise.
9894 * config/i386/i386-builtin-types.awk (ix86_builtin_type_vect_mode):
9896 * config/i386/i386-builtin.def (pcmpestr): Likewise.
9897 (pcmpistr): Likewise.
9898 * config/microblaze/microblaze.c (double_memory_operand): Likewise.
9899 * config/mmix/mmix.c (mmix_output_condition): Likewise.
9900 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
9902 * config/rl78/rl78.c (mduc_regs): Likewise.
9903 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
9904 (htm_expand_builtin): Likewise.
9905 * config/sh/sh.h (REGISTER_NATURAL_MODE): Likewise.
9906 * config/sparc/sparc.c (emit_save_or_restore_regs): Likewise.
9907 * config/xtensa/xtensa.c (print_operand): Likewise.
9908 * expmed.h (NUM_MODE_PARTIAL_INT): Likewise.
9909 (NUM_MODE_VECTOR_INT): Likewise.
9910 * genoutput.c (null_operand): Likewise.
9911 (output_operand_data): Likewise.
9912 * genrecog.c (print_parameter_value): Likewise.
9913 * lra.c (debug_operand_data): Likewise.
9915 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9917 * dwarf2out.c (scompare_loc_descriptor_wide)
9918 (scompare_loc_descriptor_narrow): New functions, split out from...
9919 (scompare_loc_descriptor): ...here.
9920 * expmed.c (emit_store_flag_int): New function, split out from...
9921 (emit_store_flag): ...here.
9923 2017-08-30 Richard Biener <rguenther@suse.de>
9925 * dwarf2out.c (dwarf2out_finish): Remove setting AT_pubnames.
9926 (dwarf2out_early_finish): Move setting of AT_pubnames from
9927 early debug output to early finish.
9929 2017-08-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
9931 * gcc/config/msp430/msp430.h: Pass -mcode/data-region to the linker
9932 and -mdata-region to the assembler.
9934 2017-08-30 Richard Biener <rguenther@suse.de>
9936 * dwarf2out.c (add_dwarf_attr): Check we don't add duplicate
9938 (gen_subprogram_die): Add DW_AT_object_pointer only early.
9939 (dwarf2out_early_global_decl): Only generate a DIE for the
9940 abstract origin if it doesn't already exist or is a declaration DIE.
9941 (resolve_addr): Do not add the linkage name twice when
9942 generating a stub DIE for the DW_TAG_GNU_call_site target.
9944 2017-08-30 Richard Sandiford <richard.sandiford@linaro.org>
9946 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
9947 Use machine_mode rather than int for arg1_mode.
9949 2017-08-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9952 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Insure
9953 that the second argument of the built-in functions to unpack
9954 128-bit scalar types to 64-bit values is 0 or 1. Change to use a
9955 switch statement instead a lot of if statements.
9956 * config/rs6000/rs6000.md (unpack<mode>, FMOVE128_VSX iterator):
9957 Allow 64-bit values to be in Altivec registers as well as
9958 traditional floating point registers.
9959 (pack<mode>, FMOVE128_VSX iterator): Likewise.
9961 2017-08-29 Alexander Monakov <amonakov@ispras.ru>
9963 * ira-costs.c (record_address_regs): Handle both operands of PLUS for
9964 MAX_REGS_PER_ADDRESS == 1.
9966 2017-08-29 Uros Bizjak <ubizjak@gmail.com>
9968 * config/i386/i386.opt (flag_fentry): Do not init to -1.
9969 * config/i386/i386.c (ix86_option_override_internal): Simplify
9970 setting of opts->x_flag_entry.
9972 2017-08-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9973 Jakub Jelinek <jakub@redhat.com>
9974 Richard Biener <rguenther@suse.de>
9976 PR tree-optimization/81503
9977 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Ensure
9978 folded constant fits in the target type; reorder tests for clarity.
9980 2017-08-29 Martin Liska <mliska@suse.cz>
9982 * passes.def: Include pass_lower_switch.
9983 * stmt.c (dump_case_nodes): Remove and move to
9984 tree-switch-conversion.
9985 (case_values_threshold): Likewise.
9986 (expand_switch_as_decision_tree_p): Likewise.
9987 (emit_case_decision_tree): Likewise.
9988 (expand_case): Likewise.
9989 (balance_case_nodes): Likewise.
9990 (node_has_low_bound): Likewise.
9991 (node_has_high_bound): Likewise.
9992 (node_is_bounded): Likewise.
9993 (emit_case_nodes): Likewise.
9994 (struct simple_case_node): New struct.
9995 (add_case_node): Remove.
9996 (emit_case_dispatch_table): Use vector instead of case_list.
9997 (reset_out_edges_aux): Remove.
9998 (compute_cases_per_edge): Likewise.
9999 (expand_case): Build list of simple_case_node.
10000 (expand_sjlj_dispatch_table): Use it.
10001 * tree-switch-conversion.c (struct case_node): Moved from
10002 stmt.c and adjusted.
10003 (emit_case_nodes): Likewise.
10004 (node_has_low_bound): Likewise.
10005 (node_has_high_bound): Likewise.
10006 (node_is_bounded): Likewise.
10007 (case_values_threshold): Likewise.
10008 (reset_out_edges_aux): Likewise.
10009 (compute_cases_per_edge): Likewise.
10010 (add_case_node): Likewise.
10011 (dump_case_nodes): Likewise.
10012 (balance_case_nodes): Likewise.
10013 (expand_switch_as_decision_tree_p): Likewise.
10014 (emit_jump): Likewise.
10015 (emit_case_decision_tree): Likewise.
10016 (try_switch_expansion): Likewise.
10017 (do_jump_if_equal): Likewise.
10018 (emit_cmp_and_jump_insns): Likewise.
10019 (fix_phi_operands_for_edge): New function.
10020 (record_phi_operand_mapping): Likewise.
10021 (class pass_lower_switch): New pass.
10022 (pass_lower_switch::execute): New function.
10023 (make_pass_lower_switch): Likewise.
10024 (conditional_probability):
10025 * timevar.def: Add TV_TREE_SWITCH_LOWERING.
10026 * tree-pass.h: Add make_pass_lower_switch.
10028 2017-08-29 Jozef Lawrynowicz <jozef.l@somniumtech.com>
10031 * gcc/config/msp430/msp430.c (msp430_attr): Mark interrupt
10034 2017-08-29 Richard Biener <rguenther@suse.de>
10036 * dwarf2out.c (add_dwarf_attr): When checking is enabled verify
10037 we do not add a DW_AT_inline attribute twice.
10038 (gen_subprogram_die): Remove code setting DW_AT_inline on
10039 DECL_ABSTRACT_P nodes.
10041 2017-08-29 Richard Sandiford <richard.sandiford@linaro.org>
10043 * gimplify.c (gimplify_call_expr): Copy the nothrow flag to
10044 calls to internal functions.
10045 (gimplify_modify_expr): Likewise.
10046 * tree-call-cdce.c (use_internal_fn): Likewise.
10047 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10048 (convert_to_divmod): Set the nothrow flag.
10049 * tree-if-conv.c (predicate_mem_writes): Likewise.
10050 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
10051 (vectorizable_call): Likewise.
10052 (vectorizable_store): Likewise.
10053 (vectorizable_load): Likewise.
10054 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
10055 (vect_recog_mask_conversion_pattern): Likewise.
10057 2017-08-29 Martin Liska <mliska@suse.cz>
10060 * gcc.c (driver_handle_option): Add new argument.
10061 * opts-common.c (handle_option): Pass
10062 target_option_override_hook.
10063 * opts-global.c (lang_handle_option): Add new option.
10064 (set_default_handlers): Add new argument.
10065 (decode_options): Likewise.
10066 * opts.c (target_handle_option): Likewise.
10067 (common_handle_option): Call target_option_override_hook.
10068 * opts.h (struct cl_option_handler_func): Add hook for
10069 target option override.
10070 (struct cl_option_handlers): Likewise.
10071 (set_default_handlers): Add new argument.
10072 (decode_options): Likewise.
10073 (common_handle_option): Likewise.
10074 (target_handle_option): Likewise.
10075 * toplev.c (toplev::main): Pass targetm.target_option.override
10078 2017-08-29 Richard Biener <rguenther@suse.de>
10079 Dominik Infuehr <dominik.infuehr@theobroma-systems.com>
10081 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Properly confine
10082 life to the active subtree.
10084 2017-08-28 Jeff Law <law@redhat.com>
10086 * tree-ssa-dom.c (edge_info::record_simple_equiv): Call
10087 derive_equivalences.
10088 (derive_equivalences_from_bit_ior, record_temporary_equivalences):
10089 Code moved into....
10090 (edge_info::derive_equivalences): New private member function
10092 * tree-ssa-dom.c (class edge_info): Changed from a struct
10093 to a class. Add ctor/dtor, methods and data members.
10094 (edge_info::edge_info): Renamed from allocate_edge_info.
10095 Initialize additional members.
10096 (edge_info::~edge_info): New.
10097 (free_dom_edge_info): Delete the edge info.
10098 (record_edge_info): Use new class & associated member functions.
10099 Tighten forms for testing for edge equivalences.
10100 (record_temporary_equivalences): Iterate over the simple
10101 equivalences rather than assuming there's only one per edge.
10102 (cprop_into_successor_phis): Iterate over the simple
10103 equivalences rather than assuming there's only one per edge.
10104 (optimize_stmt): Use operand_equal_p rather than pointer
10105 equality for mini-DSE code.
10107 2017-08-28 Nathan Sidwell <nathan@acm.org>
10109 * gcc.c (execute): Fold SIGPIPE handling into switch
10110 statement. Adjust internal error message.
10112 2017-08-28 Richard Biener <rguenther@suse.de>
10115 * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
10116 Do nothing for removed DIEs.
10118 2017-08-28 Richard Biener <rguenther@suse.de>
10120 PR tree-optimization/81977
10121 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix look through
10124 2017-08-28 Alexander Monakov <amonakov@ispras.ru>
10127 * doc/md.texi (mem_thread_fence): Remove mention of mode. Rewrite.
10128 * optabs.c (expand_mem_thread_fence): Emit a compiler barrier when
10129 using targetm.gen_mem_thread_fence.
10131 2017-08-27 Uros Bizjak <ubizjak@gmail.com>
10134 * config/i386/i386.md (*<btsc><mode>): Change operand 2
10135 predicate to register_operand. Reorder operands.
10136 (*btr<mode>): Ditto.
10137 (*<btsc><mode>_mask): Change operand 3 predicate to register_operand.
10138 (*btr<mode>_mask): Ditto.
10140 2017-08-25 Steven Munroe <munroesj@gcc.gnu.org>
10142 * config.gcc (powerpc*-*-*): Add xmmintrin.h and mm_malloc.h.
10143 * config/rs6000/xmmintrin.h: New file.
10144 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include xmmintrin.h.
10146 2017-08-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10149 * config/rs6000/rs6000-p8swap.c (find_alignment_op): Add reference
10150 parameter and_insn and return it.
10151 (recombine_lvx_pattern): Insert a copy to ensure availability of
10152 the base register of the copied masking operation at the point of
10153 the instruction replacement.
10154 (recombine_stvx_pattern): Likewise.
10156 2017-08-25 Michael Meissner <meissner@linux.vnet.ibm.com>
10158 * config/rs6000/rs6000.opt (-mpower9-dform-scalar): Delete
10159 undocumented switches.
10160 (-mpower9-dform-vector): Likewise.
10161 (-mpower9-dform): Likewise.
10162 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Update
10163 comments to delete references to -mpower9-dform* switches.
10164 * config/rs6000/predicates.md (vsx_quad_dform_memory_operand):
10165 Delete reference to -mpower9-dform* switches, test for
10166 -mpower9-vector instead.
10167 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Likewise.
10168 (OTHER_P9_VECTOR_MASKS): Likewise.
10169 (POWERPC_MASKS): Likewise.
10170 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Change
10171 tests against -mpower9-dform* to -mpower9-vector. Delete code
10172 that checked for -mpower9-dform* consistancy with other options.
10173 Add test for -mpower9-misc to enable other power9 switches.
10174 (rs6000_init_hard_regno_mode_ok): Likewise.
10175 (rs6000_option_override_internal): Likewise.
10176 (rs6000_emit_prologue): Likewise.
10177 (rs6000_emit_epilogue): Likewise.
10178 (rs6000_opt_masks): Delete -mpower9-dform-{scalar,vector}.
10179 (rs6000_disable_incompatiable_switches): Delete -mpower9-dform.
10180 (emit_fusion_p9_load): Change tests for -mpower9-dform-scalar
10182 (emit_fusion_p9_store): Likewise.
10183 * config/rs6000/rs6000.h (TARGET_P9_DFORM_SCALAR): Delete
10184 resetting these macros if the assembler does not support ISA 3.0
10186 (TARGET_P9_DFORM_VECTOR): Likewise.
10187 * config/rs6000/rs6000.md (peepholes to optimize altivec memory):
10188 Change to use -mpower9-vector instead of -mpower9-dform-scalar.
10190 2017-08-25 Alan Modra <amodra@gmail.com>
10192 PR rtl-optimization/81747
10193 * cse.c (cse_extended_basic_block): Don't attempt to record
10194 equivalences for degenerate conditional branches that branch
10195 to their fall-through.
10197 2017-08-24 Martin Sebor <msebor@redhat.com>
10199 PR middle-end/81908
10200 * gimple-fold.c (size_must_be_zero_p): New function.
10201 (gimple_fold_builtin_memory_op): Call it.
10203 2017-08-24 Steven Munroe <munroesj@gcc.gnu.org>
10205 * config/rs6000/mm_malloc.h: New file.
10207 2017-08-24 Bin Cheng <bin.cheng@arm.com>
10209 PR tree-optimization/81913
10210 * tree-ssa-loop-niter.c (number_of_iterations_cond): Skip niter
10211 analysis when either IVs in condition can wrap.
10213 2017-08-24 Uros Bizjak <ubizjak@gmail.com>
10215 * dwarf2out.c (MAX_ARTIFICIAL_LABEL_BYTES): Increase to 40.
10216 * dwarf2cfi.c (MAX_ARTIFICIAL_LABEL_BYTES): Remove.
10218 2017-08-24 Richard Biener <rguenther@suse.de>
10221 * targhooks.c (default_target_can_inline_p): Properly
10222 use target_option_default_node when no DECL_FUNCTION_SPECIFIC_TARGET
10223 is present and always compare.
10224 * config/i386/i386.c (ix86_valid_target_attribute_tree): Do not
10225 infer -mfpmath=sse from TARGET_SSE_P.
10226 (ix86_can_inline_p): Properly use target_option_default_node when
10227 no DECL_FUNCTION_SPECIFIC_TARGET is present and always compare.
10229 2017-08-24 Richard Biener <rguenther@suse.de>
10232 * dwarf2out.c (output_die): Handle flag_generate_offload like
10234 (output_comp_unit): Likewise.
10235 (gen_array_type_die): Likewise.
10236 (dwarf2out_early_finish): Likewise.
10237 (note_variable_value_in_expr): Likewise.
10238 (dwarf2out_finish): Likewise. Adjust assert.
10239 * cgraphunit.c (symbol_table::compile): Move setting of
10240 flag_generate_offload earlier ...
10241 (symbol_table::finalize_compilation_unit): ... here, before
10242 early debug finalization.
10244 2017-08-24 Richard Biener <rguenther@suse.de>
10246 * config/i386/i386.c: Include symbol-summary.h, ipa-prop.h
10247 and ipa-fnsummary.h.
10248 (ix86_can_inline_p): When ix86_fpmath flags do not match
10249 check whether the callee uses FP math at all.
10251 2017-08-24 Aldy Hernandez <aldyh@redhat.com>
10253 PR middle-end/81931
10254 * tree-ssanames.c (get_nonzero_bits): Use element_precision
10255 instead of TYPE_PRECISION.
10257 2017-08-24 Richard Sandiford <richard.sandiford@linaro.org>
10258 Alan Hayward <alan.hayward@arm.com>
10259 David Sherwood <david.sherwood@arm.com>
10261 * combine.c (make_extraction): Use subreg_offset_from_lsb.
10263 2017-08-23 Daniel Santos <daniel.santos@pobox.com>
10265 * config/i386/i386.h (ix86_frame::stack_realign_allocate_offset):
10267 (ix86_frame::stack_realign_allocate): New field.
10268 (struct machine_frame_state): Modify comments.
10269 (machine_frame_state::sp_realigned_fp_end): New field.
10270 * config/i386/i386.c (ix86_compute_frame_layout): Rework stack frame
10271 layout calculation.
10272 (sp_valid_at): Add assertion to assure no attempt to access invalid
10273 offset of a realigned stack.
10274 (fp_valid_at): Likewise.
10275 (choose_baseaddr): Modify comments.
10276 (ix86_emit_outlined_ms2sysv_save): Adjust to changes in
10277 ix86_expand_prologue.
10278 (ix86_expand_prologue): Modify stack realignment and allocation.
10279 (ix86_expand_epilogue): Modify comments.
10280 * doc/sourcebuild.texi: Add documentation for target selectors avx2,
10281 avx2_runtime, avx512f, and avx512f_runtime.
10283 2017-08-23 Uros Bizjak <ubizjak@gmail.com>
10285 * config/i386/i386.opt: Remove unneeded Init(0) initializations.
10286 (mstackrealign): Do not init to -1.
10287 * config/i386/i386.c (ix86_option_override_internal):
10288 Check opts_set, not opts when setting default value of
10289 opts->x_ix86_force_align_arg_pointer.
10291 2017-08-23 Richard Biener <rguenther@suse.de>
10293 * function.c (fndecl_name): Use verbosity 1 (no arguments) for
10294 lang_hooks.decl_printable_name.
10295 * print-rtl-function.c (print_rtx_function): Likewise.
10296 * tree-pretty-print.c (dump_function_header): Likewise.
10298 2017-08-23 Richard Biener <rguenther@suse.de>
10301 * dwarf2out.c (dwarf2out_abstract_function): Handle LTO with
10302 -g0 at compile-time.
10304 2017-08-23 Tamar Christina <tamar.christina@arm.com>
10306 PR middle-end/19706
10307 * doc/sourcebuild.texi (Other hardware attributes):
10310 2017-08-23 Tamar Christina <tamar.christina@arm.com>
10312 PR middle-end/19706
10313 * tree-ssa-math-opts.c (convert_expand_mult_copysign):
10314 Fix single-use check.
10316 2017-08-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
10318 * gcc.c (execute): Only test for SIGKILL and SIGQUIT if available.
10320 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
10322 * doc/install.texi: Modify to add more details on running selected
10325 2017-08-22 Daniel Santos <daniel.santos@pobox.com>
10327 * config/i386/i386.c (ix86_option_override_internal): Error when -mx32
10328 is combined with -mabi=ms.
10329 (ix86_function_type_abi): Limit errors for mixing -mx32 with attribute
10332 2017-08-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10334 PR tree-optimization/81488
10335 * gimple-ssa-strength-reduction (struct slsr_cand_d): Add visited
10336 and cached_basis fields.
10337 (MAX_SPREAD): New constant.
10338 (alloc_cand_and_find_basis): Initialize new fields.
10339 (clear_visited): New function.
10340 (create_phi_basis_1): Rename from create_phi_basis, set visited
10341 and cached_basis fields.
10342 (create_phi_basis): New wrapper function.
10343 (phi_add_costs_1): Rename from phi_add_costs, add spread
10344 parameter, set visited field, short-circuit when limits reached.
10345 (phi_add_costs): New wrapper function.
10346 (record_phi_increments_1): Rename from record_phi_increments, set
10348 (record_phi_increments): New wrapper function.
10349 (phi_incr_cost_1): Rename from phi_incr_cost, set visited field.
10350 (phi_incr_cost): New wrapper function.
10351 (all_phi_incrs_profitable_1): Rename from
10352 all_phi_incrs_profitable, set visited field.
10353 (all_phi_incrs_profitable): New wrapper function.
10355 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
10356 Alan Hayward <alan.hayward@arm.com>
10357 David Sherwood <david.sherwood@arm.com>
10359 * rtl.h (paradoxical_subreg_p): Define inline, and add a version
10360 that takes the outer and inner modes.
10361 * doc/rtl.texi: Use paradoxical_subreg_p instead of a GET_MODE_SIZE
10362 comparison as the canonical test for a paradoxical subreg.
10363 * combine.c (simplify_set): Use paradoxical_subreg_p.
10364 (make_extraction): Likewise.
10365 (force_to_mode): Likewise.
10366 (rtx_equal_for_field_assignment_p): Likewise.
10367 (gen_lowpart_for_combine): Likewise.
10368 (simplify_comparison): Likewise.
10369 * cse.c (equiv_constant): Likewise.
10370 * expmed.c (store_bit_field_1): Likewise.
10371 * final.c (alter_subreg): Likewise.
10372 * fwprop.c (propagate_rtx): Likewise.
10373 (forward_propagate_subreg): Likewise.
10374 * ira-conflicts.c (ira_build_conflicts): Likewise.
10375 * lower-subreg.c (simplify_gen_subreg_concatn): Likewise.
10376 * lra-constraints.c (curr_insn_transform): Likewise.
10377 (split_reg): Likewise.
10378 * lra-eliminations.c (move_plus_up): Likewise.
10379 (lra_eliminate_regs_1): Likewise.
10380 * recog.c (general_operand): Likewise.
10381 * ree.c (combine_reaching_defs): Likewise.
10382 * reload.c (push_reload): Likewise.
10383 (find_reloads): Likewise.
10384 * reload1.c (elimination_effects): Likewise.
10385 (compute_reload_subreg_offset): Likewise.
10386 (choose_reload_regs): Likewise.
10387 * rtlanal.c (subreg_lsb_1): Likewise.
10388 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10389 (simplify_subreg): Likewise.
10390 * var-tracking.c (track_loc_p): Likewise.
10391 * emit-rtl.c (byte_lowpart_offset): Likewise.
10392 (paradoxical_subreg_p): Delete out-of-line definition.
10394 2017-08-22 Jeff Law <law@redhat.com>
10396 PR tree-optimization/81741
10397 PR tree-optimization/71947
10398 * tree-ssa-dom.c: Include tree-inline.h.
10399 (record_temporary_equivalences): Only record SSA_NAME = SSA_NAME
10400 equivalences if one is more expensive to compute than the other.
10401 * tree-ssa-scopedtables.h (class const_or_copies): Make
10402 record_const_or_copy_raw method private.
10403 (class avail_exprs_stack): New method simplify_binary_operation.
10404 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr): Call
10405 avail_exprs_stack::simplify_binary_operation as needed.
10406 (avail_exprs_stack::simplify_binary_operation): New function.
10408 2017-08-22 Sebastian Huber <sebastian.huber@embedded-brains.de>
10410 * config.gcc (powerpc-*-rtems*): Add rs6000/linux64.opt.
10411 * config/rs6000/rtems.h (ASM_PREFERRED_EH_DATA_FORMAT): New define.
10412 (DOT_SYMBOLS): Likewise.
10413 (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
10414 (RELOCATABLE_NEEDS_FIXUP): Likewise.
10415 (RS6000_ABI_NAME): Likewise.
10416 (TARGET_CMODEL): Likewise.
10417 (TOC_SECTION_ASM_OP): Likewise.
10418 (SET_CMODEL): New macro.
10419 (SUBSUBTARGET_OVERRIDE_OPTIONS): Evaluate cmodel options.
10421 2017-08-22 Richard Biener <rguenther@suse.de>
10423 * tree-inline.c (remap_type_1): Change asserts on TYPE_SIZE[_UNIT]
10424 to allow for free-lang-data replacements similar to verify_type_variant.
10426 2017-08-22 Richard Sandiford <richard.sandiford@linaro.org>
10427 Alan Hayward <alan.hayward@arm.com>
10428 David Sherwood <david.sherwood@arm.com>
10430 * config/aarch64/aarch64.md (casesi): Use DImode rather than
10431 VOIDmode for the LABEL_REF.
10433 2017-08-22 Richard Biener <rguenther@suse.de>
10435 * tree-cfg.c (gimple_split_edge): Avoid reallocating target PHI nodes.
10437 2017-08-22 Richard Biener <rguenther@suse.de>
10439 * common.opt (feliminate-dwarf2-dups): Ignore.
10440 * doc/invoke.texi (feliminate-dwarf2-dups): Remove documentation.
10441 * dwarf2out.c (push_new_compile_unit, pop_compile_unit,
10442 same_die_p_wrap, compute_section_prefix,
10443 is_symbol_die, assign_symbol_names, break_out_includes): Remove.
10444 (comdat_symbol_id, comdat_symbol_number): Likewise.
10445 (cu_hash_table_entry, cu_hash_table_entry_hasher, cu_hash_type):
10447 (check_duplicate_cu, record_comdat_symbol_number): Likewise.
10448 (output_die): Mark unreachable path unreachable.
10449 (dwarf2out_start_source_file): Do not create DW_TAG_GNU_BINCL.
10450 (dwarf2out_end_source_file): Do not create DW_TAG_GNU_EINCL.
10451 (dwarf2out_init): Remove code handling flag_eliminate_dwarf2_dups.
10452 (dwarf2out_early_finish): Likewise.
10454 2017-08-22 Aldy Hernandez <aldyh@redhat.com>
10456 * wide-int.h (hwi_with_prec::hwi_with_prec): Sign extend.
10458 2017-08-22 Georg-Johann Lay <avr@gjlay.de>
10461 * config/avr/avr.c (avr_handle_addr_attribute): Early return if
10462 not VAR_P. Filter attribute warnings with OPT_Wattributes.
10463 (avr_attribute_table) <io, io_low, address>: Initialize
10464 .decl_required with true.
10466 2017-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
10468 * config/rs6000/rs6000-cpus.def (-mvsx-scalar-float): Delete
10469 undocumented debugging options.
10470 (-mvsx-scalar-double): Likewise.
10471 (-mallow-df-permute): Likewise.
10472 (-mvectorize-builtins): Likewise.
10473 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
10474 (rs6000_builtin_vectorized_function): Likewise.
10475 (rs6000_builtin_md_vectorized_function): Likewise.
10476 (rs6000_opt_vars): Likewise.
10478 2017-08-21 Uros Bizjak <ubizjak@gmail.com>
10481 * config/i386/i386.md (*btsq_imm): Rename from *btsq.
10482 (*btrq_imm): Rename from *btrq.
10483 (*btcq_imm): Rename from *btcq.
10484 (btsc): New code attribute.
10485 (*<btsc><mode>): New insn pattern.
10486 (*btr<mode>): Ditto.
10487 (*<btsc><mode>_mask): New insn_and_split pattern.
10488 (*btr<mode>_mask): Ditto.
10490 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
10491 Alan Hayward <alan.hayward@arm.com>
10492 David Sherwood <david.sherwood@arm.com>
10494 * function.c (pad_below): Simplify padding calculation.
10496 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
10497 Alan Hayward <alan.hayward@arm.com>
10498 David Sherwood <david.sherwood@arm.com>
10500 * target.def (function_prologue): Remove frame size argument.
10501 (function_epilogue): Likewise.
10502 * doc/tm.texi: Regenerate.
10503 * final.c (final_start_function): Update call to function_prologue.
10504 (final_end_function): Update call to function_epilogue.
10505 (default_function_pro_epilogue): Remove frame size argument.
10506 * output.h (default_function_pro_epilogue): Likewise.
10507 * config/arm/arm.c (arm_output_function_epilogue): Likewise.
10508 (arm_output_function_prologue): Likewise.
10509 * config/frv/frv.c (frv_function_prologue): Likewise.
10510 (frv_function_epilogue): Likewise.
10511 * config/i386/i386.c (ix86_output_function_epilogue): Likewise.
10512 * config/ia64/ia64.c (ia64_output_function_prologue): Likewise.
10513 (ia64_output_function_epilogue): Likewise.
10514 * config/m32r/m32r.c (m32r_output_function_prologue): Likewise.
10515 (m32r_output_function_epilogue): Likewise.
10516 * config/microblaze/microblaze.c (microblaze_function_prologue)
10517 (microblaze_function_epilogue): Likewise.
10518 * config/mips/mips.c (mips_output_function_prologue): Likewise.
10519 (mips_output_function_epilogue): Likewise.
10520 * config/mmix/mmix.c (mmix_target_asm_function_prologue): Likewise.
10521 (mmix_target_asm_function_epilogue): Likewise.
10522 * config/msp430/msp430.c (msp430_start_function): Likewise.
10523 * config/nds32/nds32.c (nds32_asm_function_prologue): Likewise.
10524 (nds32_asm_function_epilogue): Likewise.
10525 * config/nios2/nios2.c (nios2_asm_function_prologue): Likewise.
10526 * config/pa/pa.c (pa_output_function_prologue): Likewise.
10527 (pa_output_function_epilogue): Likewise.
10528 * config/powerpcspe/powerpcspe.c (rs6000_output_function_prologue)
10529 (rs6000_output_function_epilogue): Likewise.
10530 * config/rl78/rl78.c (rl78_start_function): Likewise.
10531 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Likewise.
10532 (rs6000_output_function_epilogue): Likewise.
10533 * config/rx/rx.c (rx_output_function_prologue): Likewise.
10534 * config/sh/sh.c (sh_output_function_epilogue): Likewise.
10535 * config/sparc/sparc.c (sparc_asm_function_prologue): Likewise.
10536 (sparc_asm_function_epilogue): Likewise.
10538 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
10540 * tree.h (type_has_mode_precision_p): New function.
10541 * convert.c (convert_to_integer_1): Use it.
10542 * expr.c (expand_expr_real_2): Likewise.
10543 (expand_expr_real_1): Likewise.
10544 * fold-const.c (fold_single_bit_test_into_sign_test): Likewise.
10545 * match.pd: Likewise.
10546 * tree-ssa-forwprop.c (simplify_rotate): Likewise.
10547 * tree-ssa-math-opts.c (convert_mult_to_fma): Likewise.
10548 * tree-tailcall.c (process_assignment): Likewise.
10549 * tree-vect-loop.c (vectorizable_reduction): Likewise.
10550 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern)
10551 (vect_recog_mult_pattern, vect_recog_divmod_pattern): Likewise.
10552 * tree-vect-stmts.c (vectorizable_conversion): Likewise.
10553 (vectorizable_assignment): Likewise.
10554 (vectorizable_shift): Likewise.
10555 (vectorizable_operation): Likewise.
10556 * tree-vrp.c (register_edge_assert_for_2): Likewise.
10558 2017-08-21 Wilco Dijkstra <wdijkstr@arm.com>
10560 * match.pd: Add pow (C, x) simplification.
10562 2017-08-21 Richard Biener <rguenther@suse.de>
10564 PR tree-optimization/81900
10565 * tree-ssa-pre.c (compute_antic_aux): Properly compute changed
10566 for blocks with abnormal predecessors.
10567 (compute_antic): Do not set visited flag prematurely.
10569 2017-08-21 Georg-Johann Lay <avr@gjlay.de>
10572 * config/avr/avr.c (avr_set_current_function): Typo in diagnostic.
10574 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
10576 * stor-layout.h (vector_type_mode): Move to...
10577 * tree.h (vector_type_mode): ...here.
10578 * stor-layout.c (vector_type_mode): Move to...
10579 * tree.c (vector_type_mode): ...here. Include rtl.h and regs.h.
10581 2017-08-21 Richard Biener <rguenther@suse.de>
10583 * debug.h (struct gcc_debug_hooks): Add die_ref_for_decl and
10584 register_external_die hooks.
10585 (debug_false_tree_charstarstar_uhwistar): Declare.
10586 (debug_nothing_tree_charstar_uhwi): Likewise.
10587 * debug.c (do_nothing_debug_hooks): Adjust.
10588 (debug_false_tree_charstarstar_uhwistar): New do nothing.
10589 (debug_nothing_tree_charstar_uhwi): Likewise.
10590 * dbxout.c (dbx_debug_hooks): Adjust.
10591 (xcoff_debug_hooks): Likewise.
10592 * sdbout.c (sdb_debug_hooks): Likewise.
10593 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10594 * dwarf2out.c (macinfo_label_base): New global.
10595 (dwarf2out_register_external_die): New function for the
10596 register_external_die hook.
10597 (dwarf2out_die_ref_for_decl): Likewise for die_ref_for_decl.
10598 (dwarf2_debug_hooks): Use them.
10599 (dwarf2_lineno_debug_hooks): Adjust.
10600 (struct die_struct): Add with_offset flag.
10601 (DEBUG_LTO_DWO_INFO_SECTION, DEBUG_LTO_INFO_SECTION,
10602 DEBUG_LTO_DWO_ABBREV_SECTION, DEBUG_LTO_ABBREV_SECTION,
10603 DEBUG_LTO_DWO_MACINFO_SECTION, DEBUG_LTO_MACINFO_SECTION,
10604 DEBUG_LTO_DWO_MACRO_SECTION, DEBUG_LTO_MACRO_SECTION,
10605 DEBUG_LTO_LINE_SECTION, DEBUG_LTO_DWO_STR_OFFSETS_SECTION,
10606 DEBUG_LTO_STR_DWO_SECTION, DEBUG_STR_LTO_SECTION): New macros
10607 defining section names for the early LTO debug variants.
10608 (reset_indirect_string): New helper.
10609 (add_AT_external_die_ref): Helper for dwarf2out_register_external_die.
10610 (print_dw_val): Add support for offsetted symbol references.
10611 (get_ultimate_context): Split out from is_cxx.
10612 (is_cxx): Use get_ultimate_context.
10613 (is_fortran): Add decl overload.
10614 (compute_comp_unit_symbol): Split out worker from
10615 compute_section_prefix.
10616 (compute_section_prefix): Call compute_comp_unit_symbol and
10617 set comdat_type_p here.
10618 (output_die): Skip DIE symbol output for the LTO added one.
10619 Handle DIE symbol references with offset.
10620 (output_comp_unit): Guard section name mangling properly.
10621 For LTO debug sections emit a symbol at the section beginning
10622 which we use to refer to its DIEs.
10623 (add_abstract_origin_attribute): For DIEs registered via
10624 dwarf2out_register_external_die directly refer to the early
10625 DIE rather than indirectly through the shadow one we created.
10626 Remove obsolete call to dwarf2out_abstract_function for
10627 non-function/block origins.
10628 (gen_array_type_die): When generating early LTO debug do
10629 not emit DW_AT_string_length.
10630 (gen_formal_parameter_die): Do not re-create DIEs for PARM_DECLs
10631 late when in LTO. As suggested place a gcc_unreachable for
10632 the DECL_ABSTRACT_P case.
10633 (gen_subprogram_die): Avoid another specification DIE
10634 for early built declarations/definitions for the late LTO case.
10635 (gen_variable_die): Add type references for late duplicated VLA dies
10637 (gen_inlined_subroutine_die): Do not call dwarf2out_abstract_function,
10638 we have the abstract instance already.
10639 (process_scope_var): Adjust decl DIE contexts in LTO which
10640 first puts them in limbo.
10641 (gen_decl_die): Do not generate type DIEs late apart from
10642 types for VLAs or for decls we do not yet have a DIE. Do not
10643 call dwarf2out_abstract_function late.
10644 (dwarf2out_early_global_decl): Make sure to create DIEs
10645 for abstract instances of a decl first.
10646 (dwarf2out_late_global_decl): Adjust comment.
10647 (output_macinfo_op): With multiple macro sections use
10648 macinfo_label_base to distinguish labels.
10649 (output_macinfo): Likewise. Update macinfo_label_base.
10650 Pass in the line info label.
10651 (note_variable_value_in_expr): When generating LTO resolve
10652 all variable values here by generating DIEs as needed.
10653 (init_sections_and_labels): Add early LTO debug flag parameter
10654 and generate different sections and names if set. Add generation
10655 counter for the labels so we can have multiple of them.
10656 (reset_dies): Helper to allow DIEs to be output multiple times.
10657 (dwarf2out_finish): When outputting DIEs to the fat part of an
10658 LTO object first reset DIEs.
10659 (dwarf2out_early_finish): Output early DIEs when generating LTO.
10660 (modified_type_die): Check for decl_ultimate_origin being self
10662 (gen_type_die_with_usage): Likewise.
10663 (gen_typedef_die): Allow decl_ultimate_origin being self.
10664 (set_decl_abstract_flags): Remove.
10665 (set_block_abstract_flags): Likewise.
10666 (dwarf2out_abstract_function): Treat the early generated DIEs
10667 as the abstract copy and only add DW_AT_inline and
10668 DW_AT_artificial here and call set_decl_origin_self.
10669 If the DIE has an abstract origin don't do anything.
10670 * tree.c (free_lang_data): Build a dummy TRANSLATION_UNIT_DECL
10671 if we have none yet (Go fails to build one, PR78628).
10672 (variably_modified_type_p): Prevent endless recursion for Ada
10673 cyclic pointer types.
10674 * lto-streamer-in.c: Include debug.h.
10675 (dref_queue): New global.
10676 (lto_read_tree_1): Stream in DIE references.
10677 (lto_input_tree): Register DIE references.
10678 (input_function): Stream DECL_DEBUG_ARGS.
10679 * lto-streamer-out.c: Include debug.h.
10680 (lto_write_tree_1): Output DIE references.
10681 (DFS::DFS_write_tree_body): Follow DECL_ABSTRACT_ORIGIN.
10682 Force a TRANSLATION_UNIT_DECL DECL_CONTEXT for file-scope decls.
10683 (output_function): Stream DECL_DEBUG_ARGS.
10684 * tree-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
10685 Stream DECL_ABSTRACT_ORIGIN.
10686 * tree-streamer-out.c (write_ts_decl_common_tree_pointers): Likewise.
10687 (write_ts_decl_minimal_tree_pointers): Force a TRANSLATION_UNIT_DECL
10688 DECL_CONTEXT for file-scope decls.
10689 * lto-streamer.h (struct dref_entry): Declare.
10690 (dref_queue): Likewise.
10691 * cfgexpand.c (pass_expand::execute): Do not call the
10692 outlining_inline_function hook here.
10693 * lto-wrapper.c (debug_obj): New global.
10694 (tool_cleanup): Unlink it if required.
10695 (debug_objcopy): New function.
10696 (run_gcc): Handle early debug sections in the IL files by
10697 extracting them to separate files, partially linkin them and
10698 feeding the result back as result to the linker.
10699 * config/darwin.h (DEBUG_LTO_INFO_SECTION, DEBUG_LTO_ABBREV_SECTION,
10700 DEBUG_LTO_MACINFO_SECTION, DEBUG_LTO_LINE_SECTION,
10701 DEBUG_STR_LTO_SECTION, DEBUG_LTO_MACRO_SECTION): Put early debug
10702 sections into a separate segment.
10703 * config/darwin.c (darwin_asm_named_section): Handle __GNU_DWARF_LTO
10705 (darwin_asm_dwarf_section): Likewise.
10706 (darwin_asm_output_dwarf_offset): Likewise.
10707 * config/i386/i386.c (make_resolver_func): Set DECL_IGNORED_P.
10709 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
10710 Alan Hayward <alan.hayward@arm.com>
10711 David Sherwood <david.sherwood@arm.com>
10713 * read-md.h (md_reader::record_potential_iterator_use): Replace
10714 pointer argument with an rtx and an index.
10715 * read-rtl.c (iterator_group::apply_iterator): Likewise.
10716 (apply_mode_iterator): Likewise.
10717 (apply_code_iterator): Likewise.
10718 (apply_int_iterator): Likewise.
10719 (apply_subst_iterator): Likewise.
10720 (record_iterator_use): Likewise.
10721 (record_attribute_use): Likewise.
10722 (md_reader::record_potential_iterator_use): Likewise. Update calls
10723 to record_iterator_use and apply_iterator.
10724 (iterator_use): Replace ptr with x and index.
10725 (attribute_use): Likewise.
10726 (apply_attribute_uses): Update calls to apply_iterator.
10727 (apply_iterators): Likewise. Update initialization of iterator_use.
10728 (rtx_reader::read_rtx_code): Update calls to record_iterator_use
10729 and record_potential_iterator_use.
10730 (rtx_reader::read_rtx_operand): Likewise.
10732 2017-08-21 Richard Sandiford <richard.sandiford@linaro.org>
10733 Alan Hayward <alan.hayward@arm.com>
10734 David Sherwood <david.sherwood@arm.com>
10736 * varasm.c (const_rtx_hash_1): Don't hash in the mode of a
10739 2017-08-21 Richard Biener <rguenther@suse.de>
10741 PR middle-end/81884
10742 * tree-ssa-alias.c (stmt_kills_ref_p): Handle array accesses
10743 at struct end conservatively when comparing common bases.
10745 2017-08-21 Richard Biener <rguenther@suse.de>
10747 * tree-ssa-loop-im.c (struct lim_aux_data): Add ref index member.
10748 (mem_ref_in_stmt): Remove.
10749 (determine_max_movement): Use ref index to get at the reference.
10750 (invariantness_dom_walker::before_dom_children): Deal with
10751 lim data already initialized.
10752 (gather_mem_refs_stmt): Initialize lim data and record ref index.
10754 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
10756 * config/i386/i386.h (OPTION_MASK_ISA_ROUND): Remove.
10757 (TARGET_ISA_ROUND): Ditto.
10758 (TARGET_ROUND): Ditto.
10759 * config/i386/i386.c: Substitute TARGET_ROUND with TARGET_SSE4_1.
10760 * config/i386/i386.md: Ditto.
10761 * config/i386/sse.md: Ditto.
10762 * config/i386/i386-builtin.def: Substitute OPTION_MASK_ISA_ROUND
10763 with OPTION_MASK_ISA_SSE4_1.
10765 2017-08-19 Uros Bizjak <ubizjak@gmail.com>
10768 * doc/extend.texi (x86 Built-in Functions): Correct the name of
10769 __builtin_ia32_lzcnt_u16.
10771 2017-08-18 Peter Bergner <bergner@vnet.ibm.com>
10774 * config/rs6000/rs6000.c (rs6000_activate_target_options): New function.
10775 (rs6000_set_current_function): Rewrite function to use it.
10777 2017-08-18 H.J. Lu <hongjiu.lu@intel.com>
10780 * print-tree.c (print_node): Support DECL_WARN_IF_NOT_ALIGN
10781 and TYPE_WARN_IF_NOT_ALIGN.
10782 * stor-layout.c (do_type_align): Merge DECL_WARN_IF_NOT_ALIGN.
10783 (handle_warn_if_not_align): New.
10784 (place_union_field): Call handle_warn_if_not_align.
10785 (place_field): Call handle_warn_if_not_align.
10786 Copy TYPE_WARN_IF_NOT_ALIGN.
10787 (finish_builtin_struct): Copy TYPE_WARN_IF_NOT_ALIGN.
10788 (layout_type): Likewise.
10789 * tree-core.h (tree_type_common): Add warn_if_not_align. Set
10791 (tree_decl_common): Add warn_if_not_align.
10792 * tree.c (build_range_type_1): Copy TYPE_WARN_IF_NOT_ALIGN.
10793 * tree.h (TYPE_WARN_IF_NOT_ALIGN): New.
10794 (SET_TYPE_WARN_IF_NOT_ALIGN): Likewise.
10795 (DECL_WARN_IF_NOT_ALIGN): Likewise.
10796 (SET_DECL_WARN_IF_NOT_ALIGN): Likewise.
10797 * doc/extend.texi: Document warn_if_not_aligned attribute.
10798 * doc/invoke.texi: Document -Wif-not-aligned and -Wpacked-not-aligned.
10800 2017-08-17 Martin Liska <mliska@suse.cz>
10803 * tree-loop-distribution.c (ddrs_table): Change type to pointer type.
10804 (get_data_dependence): Use it as pointer type.
10805 (distribute_loop): Likewise.
10807 2017-08-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10809 * config/rs6000/altivec.md (UNSPEC_VMRGOW_DIRECT): New constant.
10810 (p8_vmrgew_v4sf_direct): Generalize to p8_vmrgew_<mode>_direct.
10811 (p8_vmrgow_<mode>_direct): New define_insn.
10812 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Properly
10813 handle endianness for vmrgew and vmrgow permute patterns.
10815 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
10817 * config/rs6000/altivec.md (VParity): Remove TARGET_VSX_TIMODE.
10818 * config/rs6000/rs6000-cpus.def: Remove comment.
10819 (ISA_2_7_MASKS_SERVER): Delete OPTION_MASK_VSX_TIMODE;
10820 (POWERPC_MASKS): Likewise.
10821 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Remove unneeded
10822 use of TARGET_VSX_TIMODE.
10823 (rs6000_setup_reg_addr_masks): Change TARGET_VSX_TIMODE to TARGET_VSX.
10824 (rs6000_init_hard_regno_mode_ok): Remove unneeded uses of
10825 TARGET_VSX_TIMODE. Change use of TARGET_VSX_TIMODE to TARGET_VSX.
10826 (rs6000_option_override_internal): Remove dead code.
10827 (rs6000_legitimize_address): Change TARGET_VSX_TIMODE to TARGET_VSX.
10828 (rs6000_legitimize_reload_address): Likewise.
10829 (rs6000_legitimate_address_p): Likewise.
10830 (rs6000_opt_masks): Delete "vsx-timode".
10831 (rs6000_disable_incompatible_switches): Remove mention of -mvsx-timode
10832 from function comment.
10833 * config/rs6000/rs6000.h (MASK_VSX_TIMODE): Delete.
10834 * config/rs6000/rs6000.md (FMOVE128_GPR): Remove TARGET_VSX_TIMODE.
10835 (V16QI, V8HI, V4SI, V4SF, V2DI, V2DF, V1TI): Remove useless empty
10837 * config/rs6000/rs6000.opt (mvsx-timode): Replace with stub.
10838 * config/rs6000/vector.md (VEC_IP): Remove TARGET_VSX_TIMODE.
10839 * config/rs6000/vsx.md (VSX_LE_128): Likewise.
10840 (VSX_TI): Likewise.
10842 (define_peephole2): Likewise.
10844 2017-08-17 Martin Sebor <msebor@redhat.com>
10847 * pretty-print.c (pp_format): Use strnlen in %.*s to avoid reading
10848 past the end of an array.
10849 (test_pp_format): Add test cases.
10851 2017-08-17 Richard Sandiford <richard.sandiford@linaro.org>
10853 * internal-fn.def (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): Add
10854 missing ECF_NOTHROW flags.
10856 2017-08-17 Peter Bergner <bergner@vnet.ibm.com>
10859 * config/rs6000/vsx.md (*vsx_le_permute_<mode>): Add support for
10860 operands residing in integer registers.
10861 (*vsx_le_perm_load_<mode>): Likewise.
10862 (*vsx_le_perm_store_<mode>): Likewise.
10863 (define_peephole2): Add peepholes to optimize the above.
10865 2017-08-17 Marek Polacek <polacek@redhat.com>
10867 PR middle-end/81814
10868 * fold-const.c (operand_equal_for_comparison_p): Remove code that used
10869 to mimic what shorten_compare did. Change the return type to bool.
10870 (fold_cond_expr_with_comparison): Update call to
10871 operand_equal_for_comparison_p.
10872 (fold_ternary_loc): Likewise.
10874 2017-08-17 Jackson Woodruff <jackson.woodruff@arm.com>
10876 * aarch64-simd.md (mov<mode>): No longer force zero immediate into
10878 (*aarch64_simd_mov<mode>): Add new case for stp using zero immediate.
10880 2017-08-17 Richard Biener <rguenther@suse.de>
10882 * tree-ssa-structalias.c (solve_graph): When propagating
10883 to successors update the graphs succ edges and avoid duplicate work.
10885 2017-08-17 Maxim Ostapenko <m.ostapenko@samsung.com>
10888 * config/i386/i386.c (ix86_option_override_internal): Save target
10889 specific options after ix86_stack_protector_guard_reg was changed.
10891 2017-08-17 Richard Biener <rguenther@suse.de>
10893 PR tree-optimization/81827
10894 * tree-ssa-structalias.c (struct variable_info): Add is_reg_var flag.
10895 (new_var_info): Initialize it conservatively.
10896 (get_call_vi): Mark register vars.
10897 (new_scalar_tmp_constraint_exp): Likewise.
10898 (handle_rhs_call): Likewise.
10899 (handle_const_call): Likewise.
10900 (create_function_info_for): Likewise.
10901 (solve_constraints): Sort varinfos to separate register from
10902 non-register vars to pack points-to solution bitmaps during
10905 2017-08-17 Marek Polacek <polacek@redhat.com>
10907 * gimplify.c (gimplify_adjust_omp_clauses): Compare with 0 instead of 1.
10909 2017-08-17 Richard Biener <rguenther@suse.de>
10911 * tree-vrp.c (vrp_int_const_binop): Do not set *overflow_p
10912 to true when overflow is undefined and we saturated the result.
10914 2017-08-17 Alan Modra <amodra@gmail.com>
10917 * config/rs6000/rs6000.c (rs6000_savres_strategy): Revert 2017-08-09.
10918 Don't use store multiple if only one reg needs saving.
10919 (interesting_frame_related_regno): New function.
10920 (rs6000_frame_related): Don't emit frame info for regs that
10922 (rs6000_emit_epilogue): Likewise.
10924 2017-08-16 Nathan Sidwell <nathan@acm.org>
10926 * tree-core.h (tree_type_non_common): Rename binfo to lang_1.
10927 * tree.h (TYPE_BINFO): Use type_non_common.maxval.
10928 (TYPE_LANG_SLOT_1): Use type_non_common.lang_1, for any type.
10929 * tree.c (free_lang_data_in_type): Use else-if chain. Always
10930 clear TYPE_LANG_1. Remove obsolete member-function stripping.
10931 (find_decls_types_r): Comment about TYPE_MAX_VALUES_RAW.
10932 (verify_type): Adjust for TYPE_BINFO move.
10933 * lto-streamer-out.c (DFS::DFS_write_tree_body): No need to
10934 process TYPE_BINFO directly.
10935 (hash_tree): Likewise.
10936 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
10938 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
10941 2017-08-16 David Malcolm <dmalcolm@redhat.com>
10943 * diagnostic-show-locus.c (colorizer::m_caret): Remove unused field.
10945 2017-08-16 Uros Bizjak <ubizjak@gmail.com>
10948 * config/i386/i386.md (*anddi_1_btr): Change predicates of
10949 operand 0 and operand 1 to nomimmediate_operand. Add "m" constraint.
10950 Add ix86_binary_operator_ok to insn constraint.
10951 (*iordi_1_bts): Ditto.
10952 (*xordi_1_btc): Ditto.
10953 (*btsq): Change predicate of operand 0 to nonimmediate_operand.
10954 Update corresponding peephole2 pattern.
10958 2017-08-16 Bin Cheng <bin.cheng@arm.com>
10960 PR tree-optimization/81832
10961 * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Don't
10962 copy loop header which has IFN_LOOP_DIST_ALIAS call.
10964 2017-08-16 Marek Polacek <polacek@redhat.com>
10967 * fold-const.c (fold_indirect_ref_1): Restore original behavior
10968 regarding size_zero_node.
10970 2017-08-16 Martin Liska <mliska@suse.cz>
10973 * config.gcc: Respect previously set extra_objs in case
10976 2017-08-16 Richard Sandiford <richard.sandiford@linaro.org>
10978 PR tree-optimization/81835
10979 * tree-vect-loop.c (vect_is_simple_reduction): Simply checks for
10980 the phi SSA_NAME. Check that the condition in a COND_EXPR does
10981 not depend on the phi.
10983 2017-08-16 Alan Modra <amodra@gmail.com>
10985 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Delete
10988 2017-08-16 Alan Modra <amodra@gmail.com>
10990 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Merge..
10991 (save_reg_p): ..into this. Update all callers.
10992 (first_reg_to_save): Simplify.
10994 2017-08-16 Alan Modra <amodra@gmail.com>
10996 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't restore
10999 2017-08-15 Joseph Myers <joseph@codesourcery.com>
11003 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Only unroll for
11004 constant count if that count is less than 32.
11006 2017-08-15 Nathan Sidwell <nathan@acm.org>
11008 * gcc.c (execute): Emit friendlier message if inferior is killed
11009 by an external cause.
11011 2017-08-15 Richard Biener <rguenther@suse.de>
11013 PR tree-optimization/81790
11014 * tree-ssa-sccvn.c (vn_lookup_simplify_result): Handle both
11015 CONSTRUCTORs from simplifying and VN.
11017 2017-08-14 Martin Sebor <msebor@redhat.com>
11019 * builtin-attrs.def: Add comments.
11021 2017-08-14 Martin Sebor <msebor@redhat.com>
11024 * doc/extend.texi (attribute nonstring): Document new attribute.
11026 2017-08-14 Martin Sebor <msebor@redhat.com>
11029 * tree-diagnostic.c (default_tree_printer): Handle %G.
11030 * gimple-pretty-print.h (percent_G_format): Declare new function.
11031 * gimple-pretty-print.c (percent_G_format): Define.
11032 * tree-pretty-print.c (percent_K_format): Add argument.
11034 2017-08-14 Martin Sebor <msebor@redhat.com>
11036 PR translation/79998
11037 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
11038 Remove a stray space.
11040 2017-08-14 Uros Bizjak <ubizjak@gmail.com>
11043 * config/i386/i386.md (*anddi_1_btr): New insn_and_split pattern.
11044 (*iordi_1_bts): Ditto.
11045 (*xordi_1_btc): Ditto.
11047 2017-08-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11050 * config/rs6000/linux64.h (INVALID_64BIT): Use quoted strings.
11051 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11053 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Use
11054 quoted strings, and make more translator-friendly.
11055 (darwin_rs6000_override_options): Likewise.
11056 (rs6000_option_override_internal): Likewise.
11057 (rs6000_return_in_memory): Fix overlong line.
11058 (init_cmulative_args): Use quoted strings, and make more
11059 translator-friendly.
11060 (rs6000_pass_by_reference): Fix overlong line.
11061 (def_builtin): Use quoted strings.
11062 (altivec_expand_predicate_builtin): Use quoted strings, and make
11063 more translator-friendly.
11064 (htm_expand_builtin): Use quoted strings.
11065 (cpu_expand_builtin): Use quoted strings, and make more
11066 translator-friendly.
11067 (altivec_expand_builtin): Likewise.
11068 (paired_expand_predicate_builtin): Likewise.
11069 (rs6000_invalid_builtin): Likewise.
11070 (builtin_function_type): Use quoted strings.
11071 (rs6000_expand_split_stack_prologue): Use quoted strings, and make
11072 more translator-friendly.
11073 (rs6000_trampoline_init): Likewise.
11074 (rs6000_handle_altivec_attribute): Likewise.
11075 (rs6000_inner_target_options): Use quoted strings.
11076 (rs6000_disable_incompatible_switches): Likewise.
11077 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Use quoted
11078 strings, and make more translator-friendly.
11079 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use quoted strings.
11081 2017-08-14 Bin Cheng <bin.cheng@arm.com>
11083 PR tree-optimization/81799
11084 * tree-loop-distribution.c (version_loop_by_alias_check): Force
11085 cond_expr to simple gimple operand.
11087 2017-08-14 Wilco Dijkstra <wdijkstr@arm.com>
11089 PR middle-end/46932
11090 * doc/sourcebuild.texi (autoincdec): Add autoincdec description.
11092 2017-08-14 Georg-Johann Lay <avr@gjlay.de>
11096 * config/avr/avr.opt (mgas-isr-prologues): New Var avr_gasisr_prologues.
11097 * config/avr/avr.md (gasisr, *gasisr): Use it instead of
11098 TARGET_GASISR_PROLOGUES.
11099 * config/avr/avr.c (avr_option_override): Same.
11100 (avr_pass_pre_proep::execute): Same.
11102 2017-08-13 H.J. Lu <hongjiu.lu@intel.com>
11105 * config/i386/i386.c (ix86_finalize_stack_frame_flags): Replace
11106 frame pointer with stack pointer - UNITS_PER_WORD in debug insns.
11108 2017-08-13 Uros Bizjak <ubizjak@gmail.com>
11110 * config/i386/i386.md (*load_tp_<mode>): Redefine as
11111 define_insn_and_split. Split to a memory load from 0 in
11112 DEFAULT_TLS_SEG_REG address space. Merge with *load_tp_x32
11113 using PTR mode iterator.
11114 (*load_tp_x32_zext"): Redefine as define_insn_and_split.
11115 Split to a memory load from 0 in DEFAULT_TLS_SEG_REG address space.
11116 (*add_tp_<mode>): Redefine as define_insn_and_split.
11117 Split to an add with a memory load from 0 in DEFAULT_TLS_SEG_REG
11118 address space. Merge with *add_tp_x32 using PTR mode iterator.
11119 (*add_tp_x32_zext"): Redefine as define_insn_and_split.
11120 Split to an add with a memory load from 0 in
11121 DEFAULT_TLS_SEG_REG address space.
11123 2017-08-12 Andrew Pinski <apinski@cavium.com>
11125 * config/aarch64/aarch64-option-extensions.def (rdma):
11126 Fix feature string to what Linux prints out in /proc/cpuinfo.
11128 2017-08-12 Pierre-Marie de Rodat <derodat@adacore.com>
11131 * dwarf2out.c (modified_type_die): For C typedef types that have
11132 an ultimate origin, process the ultimate origin instead of the
11134 (gen_typedef_die): Assert that input DECLs have no ultimate
11136 (gen_type_die_with_usage): For typedef variants that have an
11137 ultimate origin, just call gen_decl_die on the original DECL.
11138 (process_scope_var): Avoid creating DIEs for local typedefs and
11139 concrete static variables.
11141 2017-08-12 Alan Modra <amodra@gmail.com>
11145 * config/rs6000/sysv4.h (STARTFILE_LINUX_SPEC): Upgrade to
11146 match gnu-user.h startfile.
11147 (ENDFILE_LINUX_SPEC): Similarly.
11149 2017-08-11 Thomas Schwinge <thomas@codesourcery.com>
11152 * config/nvptx/nvptx.c (nvptx_override_options_after_change):
11154 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Remove definition.
11156 2017-08-11 Tamar Christina <tamar.christina@arm.com>
11157 * config/aarch64/aarch64.md (mov<mode>): Change.
11158 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
11159 aarch64_reg_or_fp_float into aarch64_reg_or_fp_zero.
11160 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): Removed.
11162 2017-08-11 Eric Botcazou <ebotcazou@adacore.com>
11164 * tree-sra.c (build_access_from_expr_1): Use more precise diagnostics
11165 for storage order barriers.
11167 2017-08-11 Martin Liska <mliska@suse.cz>
11170 * tree-chkp.c (chkp_get_bounds_for_decl_addr): Do not instrument
11171 variables of void type.
11173 2017-08-11 Martin Liska <mliska@suse.cz>
11175 * asan.c (asan_protect_global): Replace ASM_OUTPUT_DEF with
11176 TARGET_SUPPORTS_ALIASES.
11177 * cgraph.c (cgraph_node::create_same_body_alias): Likewise.
11178 * ipa-visibility.c (can_replace_by_local_alias): Likewise.
11179 (optimize_weakref): Likewise.
11180 * symtab.c (symtab_node::noninterposable_alias): Likewise.
11181 * varpool.c (varpool_node::create_extra_name_alias): Likewise.
11182 * defaults.h: Introduce TARGET_SUPPORTS_ALIASES.
11184 2017-08-11 Martin Liska <mliska@suse.cz>
11187 * config/i386/i386.c (make_resolver_func): Do complete
11188 refactoring of the function.
11190 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
11193 * config/i386/i386.opt (mstack-protector-guard-symbol=): New option
11194 * config/i386/i386.c (ix86_stack_protect_guard): Use
11195 ix86_stack_protect_guard_symbol_str to generate varible declaration.
11196 * doc/invoke.texi (x86 Options): Document
11197 -mstack-protector-guard-symbol= option.
11199 2017-08-10 Uros Bizjak <ubizjak@gmail.com>
11201 * config/i386/i386-protos.h (ix86_split_stack_guard): New prototype.
11202 * config/i386/i386.c (ix86_split_stack_guard): New function.
11203 (ix86_xpand_split_stack_prologue): Call ix86_split_stack_guard.
11204 (ix86_legitimate_address_p) <case UNSPEC_STACK_CHECK>: Remove.
11205 (i386_asm_output_addr_const_extra) <case UNSPEC_STACK_CHECK>: Ditto.
11206 (optput_pic_addr_const): Remove UNSPEC_STACK_CHECK handling.
11207 * config/i386/i386.md (unspec): Remove UNSPEC_STACK_CHECK.
11208 (split_stack_space_check): Call ix86_split_stack_guard.
11210 2017-08-10 Martin Sebor <msebor@redhat.com>
11212 * print-tree.c (print_node): Print location using the established
11214 Replace spaces with colons.
11215 (debug_raw, debug): Ditto.
11217 2017-08-10 Martin Sebor <msebor@redhat.com>
11220 * pretty-print.c (pp_format): Correct the handling of %s precision.
11222 2017-08-10 H.J. Lu <hongjiu.lu@intel.com>
11225 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
11227 (ix86_finalize_stack_frame_flags): This. Also clear
11228 frame_pointer_needed if -fno-omit-frame-pointer is used without
11230 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
11231 with ix86_finalize_stack_frame_flags.
11232 (ix86_expand_epilogue): Likewise.
11233 (ix86_expand_split_stack_prologue): Likewise.
11234 * doc/invoke.texi: Add a note for -fno-omit-frame-pointer.
11236 2017-08-10 Martin Liska <mliska@suse.cz>
11239 * c-attribs.c (handle_target_attribute):
11240 Report warning for an empty string argument of target attribute.
11242 2017-08-09 Jakub Jelinek <jakub@redhat.com>
11245 * omp-low.c (omp_copy_decl): Don't remap FORCED_LABEL or DECL_NONLOCAL
11247 * tree-cfg.c (move_stmt_op): Don't adjust DECL_CONTEXT of FORCED_LABEL
11248 or DECL_NONLOCAL labels.
11249 (move_stmt_r) <case GIMPLE_LABEL>: Adjust DECL_CONTEXT of FORCED_LABEL
11250 or DECL_NONLOCAL labels here.
11252 2017-08-09 Will Schmidt <will_schmidt@vnet.ibm.com>
11254 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add blurb
11255 to indicate when early gimple folding has been disabled.
11256 (rs6000_gimple_fold_builtin): Add debug content.
11257 (rs6000_invalid_builtin): Fix whitespace.
11258 (rs6000_expand_builtin): Fix whitespace.
11259 * config/rs6000/rs6000.opt: Add option for -mfold-gimple.
11261 2017-08-09 Segher Boessenkool <segher@kernel.crashing.org>
11264 * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
11265 SAVE_MULTIPLE if not all the registers that saves, should be saved.
11267 2017-08-09 Jim Wilson <jim.wilson@linaro.org>
11269 * config/aarch64/aarch64-cores.def (falkor): Use falkor pipeline.
11270 (qdf24xx): Likewise.
11271 * config/aarch64/aarch64.md: Include falkor.md.
11272 * config/aarch64/falkor.md: New.
11274 2017-08-09 Marek Polacek <polacek@redhat.com>
11277 * diagnostic-core.h (emit_diagnostic_valist): Add declaration.
11278 * diagnostic.c (emit_diagnostic): Add a comment.
11279 (emit_diagnostic_valist): New function.
11281 2017-08-09 Marek Polacek <polacek@redhat.com>
11284 * input.c (make_location): New overload.
11285 * input.h (make_location): Declare.
11287 2017-08-08 Alan Modra <amodra@gmail.com>
11288 H.J. Lu <hongjiu.lu@intel.com>
11291 * gcc.c (NO_PIE_SPEC): Delete.
11292 (PIE_SPEC): Define as !no-pie/pie. Move static|shared|r
11294 (LINK_PIE_SPEC): ..to here.
11295 (LINK_COMMAND_SPEC): Support -no-pie.
11296 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Correct
11297 chain of crtbegin*.o selection, update for PIE_SPEC changes and
11299 (GNU_USER_TARGET_ENDFILE_SPEC): Similarly.
11300 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Similarly.
11301 (ENDFILE_CRTEND_SPEC): Similarly.
11303 2017-08-08 Uros Bizjak <ubizjak@gmail.com>
11306 * config/i386/i386.opt (mstack-protector-guard-reg=): New option
11307 (mstack-protector-guard-offset=): Ditto.
11308 * config/i386/i386.c (ix86_option_override): Handle
11309 -mstack-protector-guard-reg= and -mstack-protector-guard-offset=
11311 (ix86_stack_protect_guard): Use ix86_stack_protect_guard_reg and
11312 ix86_stack_protect_guard_offset variables.
11313 (TARGET_STACK_PROTECT_GUARD): Always define.
11314 * doc/invoke.texi (x86 Options): Document -mstack-protector-guard-reg=
11315 and -mstack-protector-guard-offset= options.
11317 2017-08-08 Bin Cheng <bin.cheng@arm.com>
11319 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): Handle
11320 boundary case for the last candidate.
11322 2017-08-08 Bin Cheng <bin.cheng@arm.com>
11324 * doc/invoke.texi: Document -ftree-loop-distribution for O3.
11325 * opts.c (default_options_table): Add OPT_ftree_loop_distribution.
11327 2017-08-08 Tamar Christina <tamar.christina@arm.com>
11329 PR middle-end/19706
11330 * config/aarch64/aarch64.md (xorsign<mode>3): New optabs.
11331 * config/aarch64/aarch64-builtins.c
11332 (aarch64_builtin_vectorized_function): Added CASE_CFN_XORSIGN.
11333 * config/aarch64/aarch64-simd-builtins.def: Added xorsign BINOP.
11334 * config/aarch64/aarch64-simd.md: Added xorsign<mode>3
11336 2017-08-08 Tamar Christina <tamar.christina@arm.com>
11337 Andrew Pinski <pinskia@gmail.com>
11339 PR middle-end/19706
11340 * internal-fn.def (XORSIGN): New.
11341 * optabs.def (xorsign_optab): New.
11342 * tree-ssa-math-opts.c (is_copysign_call_with_1): New.
11343 (convert_expand_mult_copysign): New.
11344 (pass_optimize_widening_mul::execute): Call
11345 convert_expand_mult_copysign.
11347 2017-08-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11349 PR tree-optimization/81354
11350 * gimple-ssa-strength-reduction.c (create_add_on_incoming_edge):
11351 Insert on edges rather than explicitly creating landing pads.
11352 (analyze_candidates_and_replace): Commit edge inserts.
11354 2017-08-08 Richard Biener <rguenther@suse.de>
11356 PR middle-end/81719
11357 * tree-ssa-loop-niter.c: Include tree-dfa.h.
11358 (expand_simple_operations): Also look through ADDR_EXPRs with
11359 MEM_REF bases treating them as POINTER_PLUS_EXPR.
11361 2017-08-08 Richard Biener <rguenther@suse.de>
11363 PR tree-optimization/81723
11364 * tree-vect-slp.c (struct bst_traits): New hash traits.
11365 (bst_fail): New global.
11366 (vect_build_slp_tree_2): New worker, split out from ...
11367 (vect_build_slp_tree): ... this now wrapping it with using
11368 bst_fail set to cache SLP tree build fails. Properly handle
11370 (vect_analyze_slp_instance): Allocate and free bst_fail.
11372 2017-08-08 Martin Liska <mliska@suse.cz>
11375 * ipa-icf-gimple.c (func_checker::compare_cst_or_decl): Consider
11376 LABEL_DECLs that can be from a different function.
11378 2017-08-08 Bin Cheng <bin.cheng@arm.com>
11380 PR tree-optimization/81744
11381 * tree-predcom.c (prepare_finalizers_chain): Deep copy expr of
11382 loop's number of iterations.
11384 2017-08-08 Martin Liska <mliska@suse.cz>
11386 * asan.c: Include header files.
11387 * attribs.c (build_decl_attribute_variant): New function moved
11389 (build_type_attribute_qual_variant): Likewise.
11390 (cmp_attrib_identifiers): Likewise.
11391 (simple_cst_list_equal): Likewise.
11392 (omp_declare_simd_clauses_equal): Likewise.
11393 (attribute_value_equal): Likewise.
11394 (comp_type_attributes): Likewise.
11395 (build_type_attribute_variant): Likewise.
11396 (lookup_ident_attribute): Likewise.
11397 (remove_attribute): Likewise.
11398 (merge_attributes): Likewise.
11399 (merge_type_attributes): Likewise.
11400 (merge_decl_attributes): Likewise.
11401 (merge_dllimport_decl_attributes): Likewise.
11402 (handle_dll_attribute): Likewise.
11403 (attribute_list_equal): Likewise.
11404 (attribute_list_contained): Likewise.
11405 * attribs.h (lookup_attribute): New function moved from tree.[ch].
11406 (lookup_attribute_by_prefix): Likewise.
11407 * bb-reorder.c: Include header files.
11408 * builtins.c: Likewise.
11409 * calls.c: Likewise.
11410 * cfgexpand.c: Likewise.
11411 * cgraph.c: Likewise.
11412 * cgraphunit.c: Likewise.
11413 * convert.c: Likewise.
11414 * dwarf2out.c: Likewise.
11415 * final.c: Likewise.
11416 * fold-const.c: Likewise.
11417 * function.c: Likewise.
11418 * gimple-expr.c: Likewise.
11419 * gimple-fold.c: Likewise.
11420 * gimple-pretty-print.c: Likewise.
11421 * gimple.c: Likewise.
11422 * gimplify.c: Likewise.
11423 * hsa-common.c: Likewise.
11424 * hsa-gen.c: Likewise.
11425 * internal-fn.c: Likewise.
11426 * ipa-chkp.c: Likewise.
11427 * ipa-cp.c: Likewise.
11428 * ipa-devirt.c: Likewise.
11429 * ipa-fnsummary.c: Likewise.
11430 * ipa-inline.c: Likewise.
11431 * ipa-visibility.c: Likewise.
11433 * lto-cgraph.c: Likewise.
11434 * omp-expand.c: Likewise.
11435 * omp-general.c: Likewise.
11436 * omp-low.c: Likewise.
11437 * omp-offload.c: Likewise.
11438 * omp-simd-clone.c: Likewise.
11439 * opts-global.c: Likewise.
11440 * passes.c: Likewise.
11441 * predict.c: Likewise.
11442 * sancov.c: Likewise.
11443 * sanopt.c: Likewise.
11444 * symtab.c: Likewise.
11445 * toplev.c: Likewise.
11446 * trans-mem.c: Likewise.
11447 * tree-chkp.c: Likewise.
11448 * tree-eh.c: Likewise.
11449 * tree-into-ssa.c: Likewise.
11450 * tree-object-size.c: Likewise.
11451 * tree-parloops.c: Likewise.
11452 * tree-profile.c: Likewise.
11453 * tree-ssa-ccp.c: Likewise.
11454 * tree-ssa-live.c: Likewise.
11455 * tree-ssa-loop.c: Likewise.
11456 * tree-ssa-sccvn.c: Likewise.
11457 * tree-ssa-structalias.c: Likewise.
11458 * tree-ssa.c: Likewise.
11459 * tree-streamer-in.c: Likewise.
11460 * tree-vectorizer.c: Likewise.
11461 * tree-vrp.c: Likewise.
11462 * tsan.c: Likewise.
11463 * ubsan.c: Likewise.
11464 * varasm.c: Likewise.
11465 * varpool.c: Likewise.
11466 * tree.c: Remove functions moved to attribs.[ch].
11467 * tree.h: Likewise.
11468 * config/aarch64/aarch64.c: Add attrs.h header file.
11469 * config/alpha/alpha.c: Likewise.
11470 * config/arc/arc.c: Likewise.
11471 * config/arm/arm.c: Likewise.
11472 * config/avr/avr.c: Likewise.
11473 * config/bfin/bfin.c: Likewise.
11474 * config/c6x/c6x.c: Likewise.
11475 * config/cr16/cr16.c: Likewise.
11476 * config/cris/cris.c: Likewise.
11477 * config/darwin.c: Likewise.
11478 * config/epiphany/epiphany.c: Likewise.
11479 * config/fr30/fr30.c: Likewise.
11480 * config/frv/frv.c: Likewise.
11481 * config/ft32/ft32.c: Likewise.
11482 * config/h8300/h8300.c: Likewise.
11483 * config/i386/winnt.c: Likewise.
11484 * config/ia64/ia64.c: Likewise.
11485 * config/iq2000/iq2000.c: Likewise.
11486 * config/lm32/lm32.c: Likewise.
11487 * config/m32c/m32c.c: Likewise.
11488 * config/m32r/m32r.c: Likewise.
11489 * config/m68k/m68k.c: Likewise.
11490 * config/mcore/mcore.c: Likewise.
11491 * config/microblaze/microblaze.c: Likewise.
11492 * config/mips/mips.c: Likewise.
11493 * config/mmix/mmix.c: Likewise.
11494 * config/mn10300/mn10300.c: Likewise.
11495 * config/moxie/moxie.c: Likewise.
11496 * config/msp430/msp430.c: Likewise.
11497 * config/nds32/nds32-isr.c: Likewise.
11498 * config/nds32/nds32.c: Likewise.
11499 * config/nios2/nios2.c: Likewise.
11500 * config/nvptx/nvptx.c: Likewise.
11501 * config/pa/pa.c: Likewise.
11502 * config/pdp11/pdp11.c: Likewise.
11503 * config/powerpcspe/powerpcspe.c: Likewise.
11504 * config/riscv/riscv.c: Likewise.
11505 * config/rl78/rl78.c: Likewise.
11506 * config/rx/rx.c: Likewise.
11507 * config/s390/s390.c: Likewise.
11508 * config/sh/sh.c: Likewise.
11509 * config/sol2.c: Likewise.
11510 * config/sparc/sparc.c: Likewise.
11511 * config/spu/spu.c: Likewise.
11512 * config/stormy16/stormy16.c: Likewise.
11513 * config/tilegx/tilegx.c: Likewise.
11514 * config/tilepro/tilepro.c: Likewise.
11515 * config/v850/v850.c: Likewise.
11516 * config/vax/vax.c: Likewise.
11517 * config/visium/visium.c: Likewise.
11518 * config/xtensa/xtensa.c: Likewise.
11520 2017-08-07 Michael Meissner <meissner@linux.vnet.ibm.com>
11523 * config/rs6000/vsx.md (vsx_concat_<mode>, VSX_D): Cleanup
11524 constraints since the -mupper-regs-* switches have been
11526 (vsx_concat_<mode>_1): New combiner insns to recognize inserting
11527 into a vector from a double word element that was extracted from
11528 another vector, and eliminate extra XXPERMDI instructions.
11529 (vsx_concat_<mode>_2): Likewise.
11530 (vsx_concat_<mode>_3): Likewise.
11531 (vsx_set_<mode>, VSX_D): Rewrite vector set in terms of vector
11532 concat to allow optimizing inserts from previous extracts.
11534 2017-08-07 Uros Bizjak <ubizjak@gmail.com>
11536 * config/i386/i386.c (ix86_stack_protect_guard): Generate
11537 memory reference to a SSP offset in TLS address space.
11538 (ix86_print_operand) <case '@'>: Remove.
11539 (ix86_print_operand_punct_valid_p): Remove '@' code.
11540 * config/i386/i386.md (unspec): Remove UNSPEC_SP_TLS_SET and
11541 UNSPEC_SP_TLS_TEST.
11542 (stack_tls_protect_set_<mode>): Remove.
11543 (stack_protect_set): Do not call gen_stack_tls_protect_set_<mode>.
11544 (stack_tls_protect_test_<mode>): Remove.
11545 (stack_protect_test): Do not call gen_stack_tls_protect_test_<mode>.
11547 2017-08-07 Olivier Hainque <hainque@adacore.com>
11550 * config/vxworksae.h (VXWORKS_HAVE_TLS): Define.
11552 2017-08-07 Douglas Rupp <rupp@adacore.com>
11554 * Makefile.in (install-mkheaders): Fix typo, where the multi_dir
11555 variable was referenced as multidir in command.
11557 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11560 * gimplify.c (goa_stabilize_expr): Handle BIT_INSERT_EXPR and
11563 2017-08-07 Martin Liska <mliska@suse.cz>
11565 * config/m32c/m32c.c: Add include of stringpool.h and attribs.h.
11566 * config/rl78/rl78.c: Add include of attribs.h.
11567 * config/sh/sh.c: Likewise.
11568 * config/v850/v850.c: Likewise.
11570 2017-08-07 Tom de Vries <tom@codesourcery.com>
11572 PR middle-end/78266
11573 * omp-expand.c (expand_oacc_for): Ensure diff_type is large enough.
11575 2017-08-07 Martin Liska <mliska@suse.cz>
11577 * config/mips/mips.c: Include attribs.h.
11579 2017-08-07 Thomas Koenig <tkoenig@gcc.gnu.org>
11582 * doc/invoke.texi: Document change in behvaior for -Ofast for
11585 2017-08-07 Wilco Dijkstra <wdijkstr@arm.com>
11587 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg):
11589 (aarch64_pop_regs): Likewise.
11590 (aarch64_gen_load_pair): Likewise.
11591 (aarch64_save_callee_saves): Likewise.
11592 (aarch64_restore_callee_saves): Likewise.
11594 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
11596 * config/i386/i386.c: Revert the last change.
11598 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
11601 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Renamed
11603 (ix86_finalize_stack_frame_flags): This. Also clear
11604 frame_pointer_needed if -fno-omit-frame-pointer is used without
11606 (ix86_expand_prologue): Replace ix86_finalize_stack_realign_flags
11607 with ix86_finalize_stack_frame_flags.
11608 (ix86_expand_epilogue): Likewise.
11609 (ix86_expand_split_stack_prologue): Likewise.
11611 2017-08-07 H.J. Lu <hongjiu.lu@intel.com>
11614 * config/i386/i386.c (get_builtin_code_for_version): Set priority
11615 to P_AES for Westmere.
11617 2017-08-07 Jonathan Yong <10walls@gmail.com>
11619 * config/i386/mingw.opt (fset-stack-executable): Removed.
11620 * config/i386/cygming.opt (fset-stack-executable): Moved
11622 * config/i386/cygwin.h: Define CHECK_EXECUTE_STACK_ENABLED.
11624 2017-08-07 Segher Boessenkool <segher@kernel.crashing.org>
11626 * print-rtl.c (print_exp): Print NOT as "~" instead of as "!".
11628 2017-08-07 Marek Polacek <polacek@redhat.com>
11630 PR middle-end/81737
11631 * fold-const.c (fold_indirect_ref_1): Check type_domain.
11633 2017-08-07 Martin Liska <mliska@suse.cz>
11635 * attribs.h (canonicalize_attr_name): New function.
11636 (cmp_attribs): Move from c-format.c and adjusted.
11637 (is_attribute_p): Moved from tree.h.
11638 * tree-inline.c: Add new includes.
11639 * tree.c (cmp_attrib_identifiers): Use cmp_attribs.
11640 (private_is_attribute_p): Remove.
11641 (private_lookup_attribute): Likewise.
11642 (private_lookup_attribute_by_prefix): Simplify.
11643 (remove_attribute): Use is_attribute_p.
11644 * tree.h: Remove removed declarations.
11646 2017-08-07 Jakub Jelinek <jakub@redhat.com>
11648 PR middle-end/81698
11649 * stmt.c (emit_case_dispatch_table): Add DEFAULT_EDGE argument,
11650 instead of computing it in the function. Formatting fix.
11651 (expand_case): Don't rely on default_edge being the first edge,
11652 clear it if removing it, pass default_edge to
11653 emit_case_dispatch_table.
11654 (expand_sjlj_dispatch_table): Pass NULL as DEFAULT_EDGE, formatting
11657 2017-08-06 Uros Bizjak <ubizjak@gmail.com>
11659 * config/alpha/alpha.c (alpha_reorg): If trap is the last active
11660 insn in the function, emit NOP after the insn.
11662 2017-08-06 Tom de Vries <tom@codesourcery.com>
11664 * omp-expand.c (expand_oacc_for): Add missing edge probability for tile
11667 2017-08-06 Tom de Vries <tom@codesourcery.com>
11669 * omp-expand.c (expand_oacc_for): Add missing edge probability for chunk
11672 2017-08-04 Yury Gribov <tetra2005@gmail.com>
11674 PR tree-optimization/57371
11675 * match.pd: New pattern.
11677 2017-08-04 Marek Polacek <polacek@redhat.com>
11679 PR middle-end/81695
11680 * fold-const.c (fold_indirect_ref_1): For ((int *)&a + 4 -> a[1],
11681 perform the computation in offset_int.
11683 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
11685 PR tree-optimization/81136
11686 * tree-vectorizer.h: Include tree-hash-traits.h.
11687 (vec_base_alignments): New typedef.
11688 (vec_info): Add a base_alignments field.
11689 (vect_record_base_alignments): Declare.
11690 * tree-data-ref.h (data_reference): Add an is_conditional_in_stmt
11692 (DR_IS_CONDITIONAL_IN_STMT): New macro.
11693 (create_data_ref): Add an is_conditional_in_stmt argument.
11694 * tree-data-ref.c (create_data_ref): Likewise. Use it to initialize
11695 the is_conditional_in_stmt field.
11696 (data_ref_loc): Add an is_conditional_in_stmt field.
11697 (get_references_in_stmt): Set the is_conditional_in_stmt field.
11698 (find_data_references_in_stmt): Update call to create_data_ref.
11699 (graphite_find_data_references_in_stmt): Likewise.
11700 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Likewise.
11701 * tree-vect-data-refs.c (vect_analyze_data_refs): Likewise.
11702 (vect_record_base_alignment): New function.
11703 (vect_record_base_alignments): Likewise.
11704 (vect_compute_data_ref_alignment): Adjust base_addr and aligned_to
11705 for nested statements even if we fail to compute a misalignment.
11706 Use pooled base alignments for unconditional references.
11707 (vect_find_same_alignment_drs): Compare base addresses instead
11709 (vect_analyze_data_refs_alignment): Call vect_record_base_alignments.
11710 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
11712 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
11714 * tree-vectorizer.h (vec_info): Add a constructor and destructor.
11715 Add an explicit name for the enum. Use auto_vec for slp_instances
11716 and grouped_stores.
11717 (_loop_vec_info): Add a constructor and destructor. Use auto_vec
11719 (_bb_vec_info): Add a constructor and destructor.
11720 (vinfo_for_stmt): Return NULL for uids of -1 as well.
11721 (destroy_loop_vec_info): Delete.
11722 (vect_destroy_datarefs): Likewise.
11723 * tree-vectorizer.c (vect_destroy_datarefs): Delete.
11724 (vec_info::vec_info): New function.
11725 (vec_info::~vec_info): Likewise.
11726 (vectorize_loops): Use delete instead of destroy_loop_vec_info.
11727 * tree-parloops.c (gather_scalar_reductions): Use delete instead of
11728 destroy_loop_vec_info.
11729 * tree-vect-loop.c (new_loop_vec_info): Replace with...
11730 (_loop_vec_info::_loop_vec_info): ...this.
11731 (destroy_loop_vec_info): Replace with...
11732 (_loop_vec_info::~_loop_vec_info): ...this. Unconditionally delete
11733 the stmt_vec_infos. Leave handling of vec_info information to its
11734 destructor. Remove explicit vector releases.
11735 (vect_analyze_loop_form): Use new instead of new_loop_vec_info.
11736 (vect_analyze_loop): Use delete instead of destroy_loop_vec_info.
11737 * tree-vect-slp.c (new_bb_vec_info): Replace with...
11738 (_bb_vec_info::_bb_vec_info): ...this. Don't reserve space in
11739 BB_VINFO_GROUPED_STORES or BB_VINFO_SLP_INSTANCES.
11740 (destroy_bb_vec_info): Replace with...
11741 (_bb_vec_info::~_bb_vec_info): ...this. Leave handling of vec_info
11742 information to its destructor.
11743 (vect_slp_analyze_bb_1): Use new and delete instead of
11744 new_bb_vec_info and destroy_bb_vec_info.
11745 (vect_slp_bb): Replace 2 calls to destroy_bb_vec_info with a
11748 2017-08-04 Richard Sandiford <richard.sandiford@linaro.org>
11750 * tree-data-ref.h (subscript): Add access_fn field.
11751 (data_dependence_relation): Add could_be_independent_p.
11752 (SUB_ACCESS_FN, DDR_COULD_BE_INDEPENDENT_P): New macros.
11753 (same_access_functions): Move to tree-data-ref.c.
11754 * tree-data-ref.c (ref_contains_union_access_p): New function.
11755 (access_fn_component_p): Likewise.
11756 (access_fn_components_comparable_p): Likewise.
11757 (dr_analyze_indices): Add a reference to access_fn_component_p.
11758 (dump_data_dependence_relation): Use SUB_ACCESS_FN instead of
11760 (constant_access_functions): Likewise.
11761 (add_other_self_distances): Likewise.
11762 (same_access_functions): Likewise. (Moved from tree-data-ref.h.)
11763 (initialize_data_dependence_relation): Use XCNEW and remove
11764 explicit zeroing of DDR_REVERSED_P. Look for a subsequence
11765 of access functions that have the same type. Allow the
11766 subsequence to end with different bases in some circumstances.
11767 Record the chosen access functions in SUB_ACCESS_FN.
11768 (build_classic_dist_vector_1): Replace ddr_a and ddr_b with
11769 a_index and b_index. Use SUB_ACCESS_FN instead of DR_ACCESS_FN.
11770 (subscript_dependence_tester_1): Likewise dra and drb.
11771 (build_classic_dist_vector): Update calls accordingly.
11772 (subscript_dependence_tester): Likewise.
11773 * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Check
11774 DDR_COULD_BE_INDEPENDENT_P.
11775 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Test
11776 comp_alias_ddrs instead of may_alias_ddrs.
11777 * tree-vect-data-refs.c (vect_analyze_possibly_independent_ddr):
11779 (vect_analyze_data_ref_dependence): Use it if
11780 DDR_COULD_BE_INDEPENDENT_P, but fall back to using the recorded
11781 distance vectors if that fails.
11782 (dependence_distance_ge_vf): New function.
11783 (vect_prune_runtime_alias_test_list): Use it. Don't clear
11784 LOOP_VINFO_MAY_ALIAS_DDRS.
11786 2017-08-04 Richard Biener <rguenther@suse.de>
11788 PR middle-end/81705
11789 * fold-const.c (fold_binary_loc): Properly restrict
11790 minus_var0 && minus_var1 case when associating undefined overflow
11793 2017-08-04 Tom de Vries <tom@codesourcery.com>
11795 * omp-simd-clone.c (simd_clone_adjust): Add missing edge probability.
11797 2017-08-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11799 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
11800 Don't start diagnostic messages with a capital letter.
11801 * config/rs6000/rs6000.c (rs6000_option_override_internal):
11803 (rs6000_invalid_builtin): Likewise.
11804 (rs6000_trampoline_init): Likewise.
11806 2017-08-03 Jakub Jelinek <jakub@redhat.com>
11809 * bb-reorder.c (pass_partition_blocks::execute): Return TODO_df_finish
11810 after setting changeable df flags.
11812 2017-08-03 Richard Biener <rguenther@suse.de>
11814 * tree-ssa-reassoc.c (should_break_up_subtract): Also break
11815 up if the use is in USE - X.
11817 2017-08-03 Alexander Monakov <amonakov@ispras.ru>
11819 * toplev.c (dumpfile.h): New include.
11820 (internal_error_reentered): New static function. Use it...
11821 (internal_error_function): ...here to handle reentered internal_error.
11823 2017-08-03 Richard Biener <rguenther@suse.de>
11825 PR middle-end/81148
11826 * fold-const.c (split_tree): Add minus_var and minus_con
11827 arguments, remove unused loc arg. Never generate NEGATE_EXPRs
11828 here but always use minus_*.
11829 (associate_trees): Assert we never associate with MINUS_EXPR
11830 and NULL first operand. Do not recurse for PLUS_EXPR operands
11831 when associating as MINUS_EXPR either.
11832 (fold_binary_loc): Track minus_var and minus_con.
11834 2017-08-03 Tom de Vries <tom@codesourcery.com>
11837 * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers): If
11838 ACCEL_COMPILER, apply finish_options on
11839 DECL_FUNCTION_SPECIFIC_OPTIMIZATION.
11841 2017-08-03 Tom de Vries <tom@codesourcery.com>
11844 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry if
11845 function_entry_patch_area_size > 0.
11847 2017-08-03 Jakub Jelinek <jakub@redhat.com>
11850 * calls.c (alloc_max_size): Use HOST_WIDE_INT_UC (10??)
11851 instead of 10??LU, perform unit multiplication in wide_int,
11852 don't change alloc_object_size_limit if the limit is larger
11855 PR tree-optimization/81655
11856 PR tree-optimization/81588
11857 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle also
11858 the case when ranges[i].low and high are 1 for unsigned type with
11861 PR middle-end/81052
11862 * omp-low.c (diagnose_sb_0): Handle flag_openmp_simd like flag_openmp.
11863 (pass_diagnose_omp_blocks::gate): Enable also for flag_openmp_simd.
11865 2017-08-03 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
11867 * tree-vrp.h: Add include guard.
11869 2017-08-02 Uros Bizjak <ubizjak@gmail.com>
11872 * config/i386/i386.md (unspecv): Add UNSPECV_UD2.
11873 (ud2): New insn pattern.
11874 * config/i386/i386.c (ix86_expand_epilogue):
11875 For naked functions, generate ud2 instead of trap insn.
11877 2017-08-02 Marek Polacek <polacek@redhat.com>
11880 * alloc-pool.h (base_pool_allocator): Initialize m_elt_size.
11882 2017-08-02 Tom de Vries <tom@codesourcery.com>
11883 Cesar Philippidis <cesar@codesourcery.com>
11885 * config/nvptx/nvptx.c (nvptx_lockless_update, nvptx_lockfull_update):
11886 Add missing edge probabilities.
11888 2017-08-02 Tamar Christina <tamar.christina@arm.com>
11890 * config/aarch64/aarch64.c (aarch64_reinterpret_float_as_int):
11891 Correct endianness.
11893 2017-08-02 Jakub Jelinek <jakub@redhat.com>
11895 PR middle-end/79499
11896 * function.c (thread_prologue_and_epilogue_insns): Determine blocks
11897 for find_many_sub_basic_blocks bitmap by looking up BLOCK_FOR_INSN
11898 of first NONDEBUG_INSN_P in each of the split_prologue_seq and
11899 prologue_seq sequences - if any.
11901 2017-08-02 Richard Biener <rguenther@suse.de>
11903 * tree-vect-stmts.c (vectorizable_store): Perform vector extracts
11904 via vectors if supported, integer extracts via punning if supported
11905 or otherwise vector extracts.
11907 2017-08-02 Richard Biener <rguenther@suse.de>
11909 * tree-ssa-pre.c (bitmap_insert_into_set_1): Remove and inline
11911 (bitmap_insert_into_set): ... this.
11913 2017-08-02 Richard Biener <rguenther@suse.de>
11915 PR tree-optimization/81633
11917 2015-08-17 Alan Hayward <alan.hayward@arm.com>
11919 PR tree-optimization/71752
11920 * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
11922 2017-08-01 Daniel Santos <daniel.santos@pobox.com>
11924 * config/i386/i386.h (ix86_frame::outlined_save_offset): Remove field.
11925 (machine_function::call_ms2sysv_pad_out): Remove field.
11926 * config/i386/i386.c (xlogue_layout::get_stack_space_used): Modify.
11927 (ix86_compute_frame_layout): Likewise.
11929 2017-08-01 H.J. Lu <hongjiu.lu@intel.com>
11932 * config/i386/i386.c (ix86_set_func_type): Disallow naked
11933 attribute with interrupt attribute.
11935 2017-08-01 Andrew Pinski <apinski@cavium.com>
11937 * tree-ssa-scopedtables.c (hashable_expr_equal_p): Check
11938 BIT_INSERT_EXPR's operand 1
11939 to see if the types precision matches.
11941 2017-08-01 Martin Liska <mliska@suse.cz>
11943 PR middle-end/70140
11944 * builtins.c (expand_builtin_memcpy_args): Remove.
11945 (expand_builtin_memcpy): Call newly added function
11946 expand_builtin_memory_copy_args.
11947 (expand_builtin_memcpy_with_bounds): Likewise.
11948 (expand_builtin_mempcpy): Remove last argument.
11949 (expand_builtin_mempcpy_with_bounds): Likewise.
11950 (expand_builtin_memory_copy_args): New function created from
11951 expand_builtin_mempcpy_args with small modifications.
11952 (expand_builtin_mempcpy_args): Remove.
11953 (expand_builtin_stpcpy): Remove unused argument.
11954 (expand_builtin): Likewise.
11955 (expand_builtin_with_bounds): Likewise.
11957 2017-08-01 Martin Liska <mliska@suse.cz>
11960 Make mempcpy more optimal (PR middle-end/70140).
11962 2017-08-01 Jakub Jelinek <jakub@redhat.com>
11965 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): For
11966 __builtin_vec_cmpne verify both arguments are compatible vectors
11967 before looking at TYPE_MODE on the element type. For __builtin_vec_ld
11968 verify arg1_type is a pointer or array type. For __builtin_vec_st,
11969 move computation of aligned to after checking the argument types.
11973 * config/rs6000/vsx.md (vextract_fp_from_shorth,
11974 vextract_fp_from_shortl): Add element mode after mode in gen_vec_init*
11977 2017-08-01 Jerome Lambourg <lambourg@adacore.com>
11978 Doug Rupp <rupp@adacore.com>
11979 Olivier Hainque <hainque@adacore.com>
11981 * config.gcc (arm-wrs-vxworks*): Rework to handle arm-wrs-vxworks7 as
11982 well as arm-wrs-vxworks. Update target_cpu_name from arm6 (arch v3) to
11984 * config/arm/vxworks.h (MAYBE_TARGET_BPABI_CPP_BUILTINS): New, helper
11985 for TARGET_OS_CPP_BUILTIN.
11986 (TARGET_OS_CPP_BUILTIN): Invoke MAYBE_TARGET_BPABI_CPP_BUILTINS(),
11987 refine CPU definitions for arm_arch5 and add those for arm_arch6 and
11989 (MAYBE_ASM_ABI_SPEC): New, helper for SUBTARGET_EXTRA_ASM_SPEC,
11990 passing required abi options to the assembler for EABI configurations.
11991 (EXTRA_CC1_SPEC): New macro, to help prevent the implicit production
11992 of .text.hot and .text.unlikely sections for kernel modules when
11993 using ARM style exceptions.
11994 (CC1_SPEC): Remove obsolete attempt at mimicking Diab toolchain
11995 options. Add EXTRA_CC1_SPEC.
11996 (VXWORKS_ENDIAN_SPEC): Adjust comment and remove handling of Diab
11998 (DWARF2_UNWIND_INFO): Redefine to handle the pre/post VxWorks 7
12000 (ARM_TARGET2_DWARF_FORMAT): Define.
12001 * config/arm/t-vxworks: Adjust multilib control to removal of the
12002 Diab command line options.
12004 2017-08-01 Martin Liska <mliska@suse.cz>
12006 PR gcov-profile/81561
12007 * gcov.c (unblock): Make unblocking safe as we need to preserve
12008 index correspondence of blocks and block_lists.
12010 2017-08-01 Richard Biener <rguenther@suse.de>
12012 PR tree-optimization/81181
12013 * tree-ssa-pre.c (compute_antic_aux): Defer clean() to ...
12014 (compute_antic): ... end of iteration here.
12016 2017-08-01 James Greenhalgh <james.greenhalgh@arm.com>
12018 * common.opt (ftree-vectorize): No longer set flag_tree_vectorize.
12019 (ftree-loop-vectorize): Set as EnabledBy ftree-vectorize.
12020 (ftree-slp-vectorize): Likewise.
12021 * omp-expand (expand_omp_simd): Remove flag_tree_vectorize, as it
12022 can no longer be set independent of flag_tree_loop_vectorize.
12023 * omp-general.c (emp_max_vf): Likewise.
12024 * opts.c (enable_fdo_optimizations): Remove references to
12025 flag_tree_vectorize, these are now implicit.
12026 (common_handle_option): Remove handling for OPT_ftree_vectorize,
12027 and leave it for the options machinery.
12029 2017-08-01 Martin Liska <mliska@suse.cz>
12031 PR middle-end/70140
12032 * builtins.c (expand_builtin_memcpy_args): Remove.
12033 (expand_builtin_memcpy): Call newly added function
12034 expand_builtin_memory_copy_args.
12035 (expand_builtin_memcpy_with_bounds): Likewise.
12036 (expand_builtin_mempcpy): Remove last argument.
12037 (expand_builtin_mempcpy_with_bounds): Likewise.
12038 (expand_builtin_memory_copy_args): New function created from
12039 expand_builtin_mempcpy_args with small modifications.
12040 (expand_builtin_mempcpy_args): Remove.
12041 (expand_builtin_stpcpy): Remove unused argument.
12042 (expand_builtin): Likewise.
12043 (expand_builtin_with_bounds): Likewise.
12045 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
12048 * config/i386/i386.c (ix86_print_operand_address_as): For -masm=intel
12049 print "ds:" only for immediates in generic address space.
12051 2017-08-01 Uros Bizjak <ubizjak@gmail.com>
12054 * config/i386/i386.c (ix86_funciton_naked): New prototype.
12055 (ix86_function_ok_for_sibcall): Return false for naked functions.
12057 2017-08-01 Richard Biener <rguenther@suse.de>
12059 * tree-ssa-pre.c (print_pre_expr): Handle NULL expr.
12060 (compute_antic): Seed worklist with exit block predecessors.
12061 * cfganal.c (dfs_find_deadend): For a cycle return the source
12062 of the edge closing it.
12064 2017-08-01 Tamar Christina <tamar.christina@arm.com>
12066 * config/aarch64/aarch64.c
12067 (aarch64_can_const_movi_rtx_p): Move 0 check.
12069 2017-08-01 Bin Cheng <bin.cheng@arm.com>
12071 * tree.h (POINTER_TYPE_OVERFLOW_UNDEFINED): Delete.
12072 * fold-const.c (fold_comparison, fold_binary_loc): Delete use of
12074 * match.pd: Ditto in address comparison pattern.
12076 2017-08-01 Bin Cheng <bin.cheng@arm.com>
12078 PR tree-optimization/81627
12079 * tree-predcom.c (prepare_finalizers): Always rewrite into loop
12080 closed ssa form for store-store chain.
12082 2017-08-01 Bin Cheng <bin.cheng@arm.com>
12084 PR tree-optimization/81620
12085 * tree-predcom.c (add_ref_to_chain): Don't set has_max_use_after
12086 for store-store chain.
12088 2017-08-01 Jakub Jelinek <jakub@redhat.com>
12090 PR tree-optimization/81588
12091 * tree-ssa-reassoc.c (optimize_range_tests_var_bound): If
12092 ranges[i].in_p, invert comparison code ccode. For >/>=,
12093 swap rhs1 and rhs2 and comparison code unconditionally,
12094 for </<= don't do that. Don't swap rhs1/rhs2 again if
12095 ranges[i].in_p, instead invert comparison code ccode if
12096 opcode or oe->rank is BIT_IOR_EXPR.
12099 * optabs.def (vec_extract_optab, vec_init_optab): Change from
12100 a direct optab to conversion optab.
12101 * optabs.c (expand_vector_broadcast): Use convert_optab_handler
12102 with GET_MODE_INNER as last argument instead of optab_handler.
12103 * expmed.c (extract_bit_field_1): Likewise. Use vector from
12104 vector extraction if possible and optab is available.
12105 * expr.c (store_constructor): Use convert_optab_handler instead
12106 of optab_handler. Use vector initialization from smaller
12107 vectors if possible and optab is available.
12108 * tree-vect-stmts.c (vectorizable_load): Likewise.
12109 * doc/md.texi (vec_extract, vec_init): Document that the optabs
12110 now have two modes.
12111 * config/i386/i386.c (ix86_expand_vector_init): Handle expansion
12112 of vec_init from half-sized vectors with the same element mode.
12113 * config/i386/sse.md (ssehalfvecmode): Add V4TI case.
12114 (ssehalfvecmodelower, ssescalarmodelower): New mode attributes.
12115 (reduc_plus_scal_v8df, reduc_plus_scal_v4df, reduc_plus_scal_v2df,
12116 reduc_plus_scal_v16sf, reduc_plus_scal_v8sf, reduc_plus_scal_v4sf,
12117 reduc_<code>_scal_<mode>, reduc_umin_scal_v8hi): Add element mode
12118 after mode in gen_vec_extract* calls.
12119 (vec_extract<mode>): Renamed to ...
12120 (vec_extract<mode><ssescalarmodelower>): ... this.
12121 (vec_extract<mode><ssehalfvecmodelower>): New expander.
12122 (rotl<mode>3, rotr<mode>3, <shift_insn><mode>3, ashrv2di3): Add
12123 element mode after mode in gen_vec_init* calls.
12124 (VEC_INIT_HALF_MODE): New mode iterator.
12125 (vec_init<mode>): Renamed to ...
12126 (vec_init<mode><ssescalarmodelower>): ... this.
12127 (vec_init<mode><ssehalfvecmodelower>): New expander.
12128 * config/i386/mmx.md (vec_extractv2sf): Renamed to ...
12129 (vec_extractv2sfsf): ... this.
12130 (vec_initv2sf): Renamed to ...
12131 (vec_initv2sfsf): ... this.
12132 (vec_extractv2si): Renamed to ...
12133 (vec_extractv2sisi): ... this.
12134 (vec_initv2si): Renamed to ...
12135 (vec_initv2sisi): ... this.
12136 (vec_extractv4hi): Renamed to ...
12137 (vec_extractv4hihi): ... this.
12138 (vec_initv4hi): Renamed to ...
12139 (vec_initv4hihi): ... this.
12140 (vec_extractv8qi): Renamed to ...
12141 (vec_extractv8qiqi): ... this.
12142 (vec_initv8qi): Renamed to ...
12143 (vec_initv8qiqi): ... this.
12144 * config/rs6000/vector.md (VEC_base_l): New mode attribute.
12145 (vec_init<mode>): Renamed to ...
12146 (vec_init<mode><VEC_base_l>): ... this.
12147 (vec_extract<mode>): Renamed to ...
12148 (vec_extract<mode><VEC_base_l>): ... this.
12149 * config/rs6000/paired.md (vec_initv2sf): Renamed to ...
12150 (vec_initv2sfsf): ... this.
12151 * config/rs6000/altivec.md (splitter, altivec_copysign_v4sf3,
12152 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
12153 vec_unpacku_lo_v8hi, mulv16qi3, altivec_vreve<mode>2): Add
12154 element mode after mode in gen_vec_init* calls.
12155 * config/aarch64/aarch64-simd.md (vec_init<mode>): Renamed to ...
12156 (vec_init<mode><Vel>): ... this.
12157 (vec_extract<mode>): Renamed to ...
12158 (vec_extract<mode><Vel>): ... this.
12159 * config/aarch64/iterators.md (Vel): New mode attribute.
12160 * config/s390/s390.c (s390_expand_vec_strlen, s390_expand_vec_movstr):
12161 Add element mode after mode in gen_vec_extract* calls.
12162 * config/s390/vector.md (non_vec_l): New mode attribute.
12163 (vec_extract<mode>): Renamed to ...
12164 (vec_extract<mode><non_vec_l>): ... this.
12165 (vec_init<mode>): Renamed to ...
12166 (vec_init<mode><non_vec_l>): ... this.
12167 * config/s390/s390-builtins.def (s390_vlgvb, s390_vlgvh, s390_vlgvf,
12168 s390_vlgvf_flt, s390_vlgvg, s390_vlgvg_dbl): Add element mode after
12170 * config/arm/iterators.md (V_elem_l): New mode attribute.
12171 * config/arm/neon.md (vec_extract<mode>): Renamed to ...
12172 (vec_extract<mode><V_elem_l>): ... this.
12173 (vec_extractv2di): Renamed to ...
12174 (vec_extractv2didi): ... this.
12175 (vec_init<mode>): Renamed to ...
12176 (vec_init<mode><V_elem_l>): ... this.
12177 (reduc_plus_scal_<mode>, reduc_plus_scal_v2di, reduc_smin_scal_<mode>,
12178 reduc_smax_scal_<mode>, reduc_umin_scal_<mode>,
12179 reduc_umax_scal_<mode>, neon_vget_lane<mode>, neon_vget_laneu<mode>):
12180 Add element mode after gen_vec_extract* calls.
12181 * config/mips/mips-msa.md (vec_init<mode>): Renamed to ...
12182 (vec_init<mode><unitmode>): ... this.
12183 (vec_extract<mode>): Renamed to ...
12184 (vec_extract<mode><unitmode>): ... this.
12185 * config/mips/loongson.md (vec_init<mode>): Renamed to ...
12186 (vec_init<mode><unitmode>): ... this.
12187 * config/mips/mips-ps-3d.md (vec_initv2sf): Renamed to ...
12188 (vec_initv2sfsf): ... this.
12189 (vec_extractv2sf): Renamed to ...
12190 (vec_extractv2sfsf): ... this.
12191 (reduc_plus_scal_v2sf, reduc_smin_scal_v2sf, reduc_smax_scal_v2sf):
12192 Add element mode after gen_vec_extract* calls.
12193 * config/mips/mips.md (unitmode): New mode iterator.
12194 * config/spu/spu.c (spu_expand_prologue, spu_allocate_stack,
12195 spu_builtin_extract): Add element mode after gen_vec_extract* calls.
12196 * config/spu/spu.md (inner_l): New mode attribute.
12197 (vec_init<mode>): Renamed to ...
12198 (vec_init<mode><inner_l>): ... this.
12199 (vec_extract<mode>): Renamed to ...
12200 (vec_extract<mode><inner_l>): ... this.
12201 * config/sparc/sparc.md (veltmode): New mode iterator.
12202 (vec_init<VMALL:mode>): Renamed to ...
12203 (vec_init<VMALL:mode><VMALL:veltmode>): ... this.
12204 * config/ia64/vect.md (vec_initv2si): Renamed to ...
12205 (vec_initv2sisi): ... this.
12206 (vec_initv2sf): Renamed to ...
12207 (vec_initv2sfsf): ... this.
12208 (vec_extractv2sf): Renamed to ...
12209 (vec_extractv2sfsf): ... this.
12210 * config/powerpcspe/vector.md (VEC_base_l): New mode attribute.
12211 (vec_init<mode>): Renamed to ...
12212 (vec_init<mode><VEC_base_l>): ... this.
12213 (vec_extract<mode>): Renamed to ...
12214 (vec_extract<mode><VEC_base_l>): ... this.
12215 * config/powerpcspe/paired.md (vec_initv2sf): Renamed to ...
12216 (vec_initv2sfsf): ... this.
12217 * config/powerpcspe/altivec.md (splitter, altivec_copysign_v4sf3,
12218 vec_unpacku_hi_v16qi, vec_unpacku_hi_v8hi, vec_unpacku_lo_v16qi,
12219 vec_unpacku_lo_v8hi, mulv16qi3): Add element mode after mode in
12220 gen_vec_init* calls.
12222 2017-08-01 Richard Biener <rguenther@suse.de>
12224 PR tree-optimization/81297
12225 * tree-vrp.c (get_single_symbol): Remove assert, instead drop
12226 TREE_OVERFLOW from INTEGER_CSTs.
12228 2017-07-31 Segher Boessenkool <segher@kernel.crashing.org>
12230 * config/rs6000/rs6000.c (enum rs6000_reg_type): Delete trailing comma.
12232 2017-07-31 Carl Love <cel@us.ibm.com>
12234 * config/rs6000/rs6000-c: Add support for built-in functions
12235 vector signed char vec_xl_be (signed long long, signed char *);
12236 vector unsigned char vec_xl_be (signed long long, unsigned char *);
12237 vector signed int vec_xl_be (signed long long, signed int *);
12238 vector unsigned int vec_xl_be (signed long long, unsigned int *);
12239 vector signed long long vec_xl_be (signed long long, signed long long *);
12240 vector unsigned long long vec_xl_be (signed long long, unsigned long long *);
12241 vector signed short vec_xl_be (signed long long, signed short *);
12242 vector unsigned short vec_xl_be (signed long long, unsigned short *);
12243 vector double vec_xl_be (signed long long, double *);
12244 vector float vec_xl_be (signed long long, float *);
12245 * config/rs6000/altivec.h (vec_xl_be): Add #define.
12246 * config/rs6000/rs6000-builtin.def (XL_BE_V16QI, XL_BE_V8HI, XL_BE_V4SI)
12247 XL_BE_V2DI, XL_BE_V4SF, XL_BE_V2DF, XL_BE): Add definitions
12249 * config/rs6000/rs6000.c (altivec_expand_xl_be_builtin): Add function.
12250 (altivec_expand_builtin): Add switch statement to call
12251 altivec_expand_xl_be for each builtin.
12252 (altivec_init_builtins): Add def_builtin for _builtin_vsx_le_be_v8hi,
12253 __builtin_vsx_le_be_v4si, __builtin_vsx_le_be_v2di,
12254 __builtin_vsx_le_be_v4sf, __builtin_vsx_le_be_v2df,
12255 __builtin_vsx_le_be_v16qi.
12256 * doc/extend.texi: Update the built-in documentation file for the
12257 new built-in functions.
12259 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
12262 * config/i386/i386.c (ix86_allocate_stack_slots_for_args):
12264 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
12266 2017-07-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12268 * config.gcc: Add z14.
12269 * config/s390/driver-native.c (s390_host_detect_local_cpu): Add
12270 CPU model numbers for z13s and z14.
12271 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Replace
12273 * config/s390/s390-opts.h (enum processor_type): Rename
12274 PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
12275 * config/s390/s390.c (processor_table): Add field for CPU name to
12276 be passed to Binutils.
12277 (s390_asm_output_machine_for_arch): Use the new field in
12278 processor_table for Binutils.
12279 (s390_expand_builtin): Replace arch12 with z14.
12280 (s390_issue_rate): Rename PROCESSOR_ARCH12 to PROCESSOR_3906_Z14.
12281 (s390_get_sched_attrmask): Likewise.
12282 (s390_get_unit_mask): Likewise.
12283 * config/s390/s390.opt: Add z14 to processor_type enum.
12285 2017-07-31 Martin Jambor <mjambor@suse.cz>
12288 * ipa-fnsummary.c (ipa_fn_summary_generate): Set versionable
12289 regardless of optimization level.
12291 2017-07-31 Jan Hubicka <hubicka@ucw.cz>
12292 Martin Liska <mliska@suse.cz>
12294 * predict.def: Remove old comment and adjust probability.
12295 * gimplify.c (should_warn_for_implicit_fallthrough): Ignore
12296 PREDICT statements.
12298 2017-07-31 Uros Bizjak <ubizjak@gmail.com>
12301 * config/i386/i386.c (ix86_function_naked): New function.
12302 (ix86_can_use_return_insn_p): Return false for naked functions.
12303 (ix86_expand_prologue): Skip prologue for naked functions.
12304 (ix86_expand_epilogue): Skip epilogue for naked functions
12305 and emit trap instruction.
12306 (ix86_warn_func_return): New function.
12307 (ix86_attribute_table): Add "naked" attribute specification.
12308 (TARGET_WARN_FUNC_RETURN): Define.
12309 * doc/extend.texi (x86 Function Attributes) <naked>: Document it.
12311 2017-07-31 Martin Liska <mliska@suse.cz>
12313 * gimple-pretty-print.c (dump_gimple_label): Never dump BB info.
12314 (dump_gimple_bb_header): Always dump BB info.
12315 (pp_cfg_jump): Do not append info about BB when dumping a jump.
12317 2017-07-31 Martin Liska <mliska@suse.cz>
12320 * convert.c (convert_to_integer_1): Guard condition with flag_sanitize_p
12321 also with current_function_decl non-null equality.
12323 2017-07-31 Jakub Jelinek <jakub@redhat.com>
12326 * ubsan.c (ubsan_type_descriptor): For UBSAN_PRINT_ARRAY don't
12327 change type to the element type, instead add eltype variable and
12328 use it where we are interested in the element type.
12330 PR tree-optimization/81603
12331 * ipa-polymorphic-call.c
12332 (ipa_polymorphic_call_context::ipa_polymorphic_call_context): Perform
12333 offset arithmetic in offset_int, bail out if the resulting bit offset
12334 doesn't fit into shwi.
12336 2017-07-31 Martin Liska <mliska@suse.cz>
12338 * gimplify.c (mostly_copy_tree_r): Remove Java specific hunk.
12339 (gimplify_save_expr): Fix comment.
12341 2017-07-30 H.J. Lu <hongjiu.lu@intel.com>
12344 * config/i386/i386.c (ix86_function_arg): Update arguments for
12346 (ix86_compute_frame_layout): Set the initial stack offset to
12347 INCOMING_FRAME_SP_OFFSET. Update red-zone offset with
12348 INCOMING_FRAME_SP_OFFSET.
12349 (ix86_expand_epilogue): Don't pop the 'ERROR_CODE' off the
12350 stack before exception handler returns.
12351 * config/i386/i386.h (INCOMING_FRAME_SP_OFFSET): Add the
12352 the 'ERROR_CODE' for exception handler.
12354 2017-07-30 Uros Bizjak <ubizjak@gmail.com>
12356 * config/i386/i386.h (ASM_PRINTF_EXTENSIONS): New macro.
12357 (ASM_OUTPUT_REG_PUSH): Rewrite with new operand modifiers.
12358 (ASM_OUTPUT_REG_POP): Ditto.
12359 * config/i386/i386.c (ix86_asm_output_function_label): Use fputs
12360 instead of asm_fprintf to output pure string.
12362 2017-07-29 Jakub Jelinek <jakub@redhat.com>
12364 * debug.h (struct gcc_debug_hooks): Add IMPLICIT argument
12365 to imported_module_or_decl hook.
12366 (debug_nothing_tree_tree_tree_bool): Remove.
12367 (debug_nothing_tree_tree_tree_bool_bool): New declaration.
12368 * debug.c (do_nothing_debug_hooks): Use
12369 debug_nothing_tree_tree_tree_bool_bool instead of
12370 debug_nothing_tree_tree_tree_bool.
12371 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
12372 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
12373 * sdbout.c (sdb_debug_hooks): Likewise.
12374 * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
12375 (gen_namespace_die): Add DW_AT_export_symbols attribute if
12377 (dwarf2out_imported_module_or_decl): Add IMPLICIT argument,
12378 if true, -gdwarf-5 and decl will have DW_AT_export_symbols
12379 attribute, don't add anything.
12381 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12383 * fold-const.c (fold_build1_stat_loc): Remove _stat from name.
12384 (fold_build2_stat_loc): Likewise.
12385 (fold_build3_stat_loc): Likewise.
12386 * fold-const.h (fold_build1, fold_build2, fold_build3): Adjust.
12387 (fold_build1_loc): Remove macro.
12388 (fold_build2_loc): Likewise.
12389 (fold_build3_loc): Likewise.
12391 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12393 * gimple.c (gimple_build_debug_bind_stat): Remove _stat from name.
12394 (gimple_build_debug_bind_source_stat): Likewise.
12395 * gimple.h (gimple_build_debug_bind): Remove macro.
12396 (gimple_build_debug_bind_source): Likewise.
12398 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12400 * bitmap.c (bitmap_alloc): Adjust.
12401 (bitmap_gc_alloc): Likewise.
12402 * bitmap.h (bitmap_initialize_stat): Remove _stat from name.
12404 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12406 * bitmap.c (bitmap_obstack_alloc_stat): Rename to bitmap_alloc.
12407 (bitmap_gc_alloc_stat): Rename to bitmap_gc_alloc.
12408 * bitmap.h (bitmap_obstack_alloc_stat): Adjust prototype.
12409 (bitmap_gc_alloc_stat): Likewise.
12410 (BITMAP_ALLOC, BITMAP_GGC_ALLOC): Adjust.
12412 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12414 * rtl.c (shallow_copy_rtx_stat): Remove _stat from name.
12415 * rtl.h (shallow_copy_rtx): Remove macro.
12417 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12419 * emit-rtl.c (gen_raw_REG): Adjust.
12420 * gengenrtl.c (gendef): Likewise.
12421 * rtl.c (rtx_alloc_stat): Remove _stat from name.
12422 * rtl.h (rtx_alloc): Remove macro.
12424 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12426 * tree.c (build_tree_list_vec_stat): Remove _stat from name.
12427 (build_tree_list_stat): Likewise.
12428 * tree.h (build_tree_list): Remove macro.
12429 (build_tree_list_vec): Likewise.
12431 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12433 * tree.c (make_vector_stat): Remove _stat from name.
12434 (build_vector_stat): Likewise.
12435 * tree.h (make_vector_stat): Remove macro.
12436 (build_vector_stat): Likewise.
12438 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12440 * tree.h (build_var_debug_value): Remove prototype.
12442 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12444 * tree.c (tree_cons_stat): Remove _stat from name.
12445 * tree.h (tree_cons): Remove macro.
12447 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12449 * tree.c (build_vl_exp_stat): Remove _stat from name.
12450 * tree.h (build_vl_exp): Remove macro.
12452 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12454 * tree.c (build_decl_stat): Remove _stat from name.
12455 * tree.h (build_decl): Remove macro.
12457 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12459 * gimple.c (gimple_build_with_ops_stat): Adjust.
12460 (gimple_alloc_stat): Remove _stat from name.
12461 * gimple.h (gimple_alloc): Remove macro.
12463 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12465 * tree.c (make_tree_vec_stat): Remove _stat from name.
12466 (grow_tree_vec_stat): Likewise.
12467 * tree.h (make_tree_vec_stat): Adjust prototype.
12468 (grow_tree_vec_stat): Likewise.
12469 (make_tree_vec): Remove macro.
12470 (grow_tree_vec): Likewise.
12472 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12474 * fold-const.c (fold_build1_stat_loc): Adjust.
12475 (fold_build2_stat_loc): Likewise.
12476 (fold_build3_stat_loc): Likewise.
12477 * tree.c (build0_stat): Remove _stat from name.
12478 (build1_stat): Likewise.
12479 (build2_stat): Likewise.
12480 (build3_stat): Likewise.
12481 (build4_stat): Likewise.
12482 (build5_stat): Likewise.
12483 * tree.h (build1_loc): Remove macro, and rename _stat function
12485 (build2_loc): Likewise.
12486 (build3_loc): Likewise.
12487 (build4_loc): Likewise.
12488 (build5_loc): Likewise.
12490 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12492 * tree.c (make_int_cst_stat): Remove _stat from name.
12493 * tree.h (make_int_cst_stat): Adjust prototype.
12494 (make_int_cst): Remove macro.
12496 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12498 * tree.c (make_tre_binfo_stat): Remove _stat from name.
12499 * tree.h (make_tree_binfo_stat): Adjust prototype.
12500 (make_tree_binfo): Remove.
12502 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12504 * tree.c (copy_node_stat): Rename to copy_node.
12505 (build_distinct_type_copy): Adjust.
12506 * tree.h (copy_node_stat): Adjust prototype.
12507 (copy_node): Remove macro.
12509 2017-07-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12511 * tree.c (make_node_stat): rename to make_node.
12512 (build_tree_list_stat): Adjust.
12513 (build0_stat): Likewise.
12514 (build2_stat): Likewise.
12515 (build3_stat): Likewise.
12516 (build4_stat): Likewise.
12517 (build5_stat): Likewise.
12518 (build_decl_stat): Likewise.
12519 * tree.h (make_node_stat): Adjust prototype.
12520 (make_node): remove macro.
12522 2017-07-28 Peter Bergner <bergner@vnet.ibm.com>
12524 * config/rs6000/ppc-auxv.h (PPC_FEATURE2_DARN): New define.
12525 (PPC_FEATURE2_SCV): Likewise.
12526 * config/rs6000/rs6000.c (cpu_supports_info): Use them.
12528 2017-07-28 Tamar Christina <tamar.christina@arm.com>
12530 * config/aarch64/aarch64.c
12531 (aarch64_internal_mov_immediate): Add new special pattern.
12532 * config/aarch64/aarch64.md (*movdi_aarch64):
12533 Add reg/32bit const mov case.
12535 2017-07-28 Tamar Christina <tamar.christina@arm.com>
12536 Richard Sandiford <richard.sandiford@linaro.org>
12538 * config/aarch64/aarch64.md (mov<mode>): Generalize.
12539 (*movhf_aarch64, *movsf_aarch64, *movdf_aarch64):
12540 Add integer and movi cases.
12541 (movi-split-hf-df-sf split, fp16): New.
12542 (enabled): Added TARGET_FP_F16INST.
12543 * config/aarch64/iterators.md (GPF_HF): New.
12544 * config/aarch64/predicates.md (aarch64_reg_or_fp_float): New.
12546 2017-07-28 Tamar Christina <tamar.christina@arm.com>
12548 * config/aarch64/aarch64.c
12549 (aarch64_simd_container_mode): Add prototype.
12550 (aarch64_expand_mov_immediate): Add HI support.
12551 (aarch64_reinterpret_float_as_int, aarch64_float_const_rtx_p: New.
12552 (aarch64_can_const_movi_rtx_p): New.
12553 (aarch64_preferred_reload_class):
12554 Remove restrictions of using FP registers for certain SIMD operations.
12555 (aarch64_rtx_costs): Added new cost for CONST_DOUBLE moves.
12556 (aarch64_valid_floating_const): Add integer move validation.
12557 (aarch64_simd_imm_scalar_p): Remove.
12558 (aarch64_output_scalar_simd_mov_immediate): Generalize function.
12559 (aarch64_legitimate_constant_p): Expand list of supported cases.
12560 * config/aarch64/aarch64-protos.h
12561 (aarch64_float_const_rtx_p, aarch64_can_const_movi_rtx_p): New.
12562 (aarch64_reinterpret_float_as_int): New.
12563 (aarch64_simd_imm_scalar_p): Remove.
12564 * config/aarch64/constraints.md (Uvi): New.
12565 (Dd): Split into Ds and new Dd.
12566 * config/aarch64/aarch64.md (*movsi_aarch64):
12568 (*movdi_aarch64): Add SIMD mov case.
12570 2017-07-28 Bin Cheng <bin.cheng@arm.com>
12572 * tree-predcom.c: (struct chain): Handle store-store chain in which
12573 stores for elimination only store loop invariant values.
12574 (execute_pred_commoning_chain): Ditto.
12575 (prepare_initializers_chain_store_elim): Ditto.
12576 (prepare_finalizers): Ditto.
12577 (is_inv_store_elimination_chain): New function.
12578 (initialize_root_vars_store_elim_1): New function.
12580 2017-07-28 Bin Cheng <bin.cheng@arm.com>
12582 * tree-predcom.c: Revise general description of the pass.
12583 (enum chain_type): New enum type for store elimination.
12584 (struct chain): New field supporting store elimination.
12585 (struct component): Ditto.
12586 (dump_chain): Dump store-stores chain.
12587 (release_chain): Release resources.
12588 (split_data_refs_to_components): Compute and create component
12589 contains only stores for elimination.
12590 (get_chain_last_ref_at): New function.
12591 (make_invariant_chain): Initialization.
12592 (make_rooted_chain): Specify chain type in parameter and record it.
12593 (add_looparound_copies): Skip for store-stores chain.
12594 (determine_roots_comp): Compute type of chain and pass it to
12596 (initialize_root_vars_store_elim_2): New function.
12597 (finalize_eliminated_stores): New function.
12598 (remove_stmt): Handle store for elimination.
12599 (execute_pred_commoning_chain): Execute predictive commoning on
12600 store-store chains.
12601 (determine_unroll_factor): Skip unroll for store-stores chain.
12602 (prepare_initializers_chain_store_elim): New function.
12603 (prepare_initializers_chain): Hanlde store-store chain.
12604 (prepare_finalizers_chain, prepare_finalizers): New function.
12605 (tree_predictive_commoning_loop): Return integer value indicating
12606 if loop is unrolled or lcssa form is corrupted.
12607 (tree_predictive_commoning): Rewrite for lcssa form if necessary.
12609 2017-07-28 Bin Cheng <bin.cheng@arm.com>
12611 * tree-predcom.c (initialize_root): Delete.
12612 (execute_pred_commoning_chain): Initialize root vars and replace
12613 reference of non-combined chain directly, rather than call above
12616 2017-07-28 Bin Cheng <bin.cheng@arm.com>
12618 * tree-predcom.c (ref_at_iteration): Add parameter NITERS. Compute
12619 memory reference to DR at (NITERS + ITERS)-th iteration of loop.
12621 2017-07-28 Bin Cheng <bin.cheng@arm.com>
12623 * tree-predcom.c (struct chain): New field init_seq.
12624 (release_chain): Release init_seq.
12625 (prepare_initializers_chain): Record intialization stmts in above
12627 (insert_init_seqs): New function.
12628 (tree_predictive_commoning_loop): Call insert_init_seqs.
12630 2017-07-28 Bin Cheng <bin.cheng@arm.com>
12632 * tree-predcom.c (determine_roots_comp): Skip trivial components.
12634 2017-07-28 Richard Biener <rguenther@suse.de>
12636 * match.pd: Remove superfluous :c.
12637 * genmatch.c (simplify::id): Add member.
12638 (lower_commutative, lower_opt_convert, lower_cond, lower_for):
12640 (current_id): New global.
12641 (dt_node::parent): Move from ...
12642 (dt_operand::parent): ... here. Add for_id member.
12643 (is_a_helper <dt_operand *>::test): DT_TRUE is also a dt_operand.
12644 (decision_tree::find_node): Relax order requirement when
12645 merging DT_TRUE nodes to ones inbetween the current simplify
12646 and the one we try to merge with. Add diagnostic whenever
12647 we need to enforce pattern order by not merging.
12648 (decision_tree::insert): Set current_id.
12649 (decision_tree::print_node): Dump parent node and for_id.
12650 (parser::last_id): Add member.
12651 (parser::push_simplify): Assign unique id.
12652 (parser::parser): Initialize last_id.
12654 2017-07-28 Martin Liska <mliska@suse.cz>
12657 * sanopt.c (sanitize_rewrite_addressable_params): Set VALUE_EXPR after
12658 gimple_build_debug_bind.
12660 2017-07-28 Richard Biener <rguenther@suse.de>
12662 PR tree-optimization/81502
12663 * match.pd: Add pattern combining BIT_INSERT_EXPR with
12665 * tree-cfg.c (verify_expr): Verify types of BIT_FIELD_REF
12667 (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR pos.
12668 * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Use bitsizetype
12669 for BIT_FIELD_REF args.
12670 * fold-const.c (make_bit_field_ref): Likewise.
12671 * tree-vect-stmts.c (vectorizable_simd_clone_call): Likewise.
12673 2017-07-28 Jakub Jelinek <jakub@redhat.com>
12676 * sanopt.c (pass_sanopt::execute): Handle IFN_UBSAN_PTR.
12677 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Likewise.
12678 * flag-types.h (enum sanitize_code): Add SANITIZER_POINTER_OVERFLOW.
12679 Or it into SANITIZER_UNDEFINED.
12680 * ubsan.c: Include gimple-fold.h and varasm.h.
12681 (ubsan_expand_ptr_ifn): New function.
12682 (instrument_pointer_overflow): New function.
12683 (maybe_instrument_pointer_overflow): New function.
12684 (instrument_object_size): Formatting fix.
12685 (pass_ubsan::execute): Call instrument_pointer_overflow
12686 and maybe_instrument_pointer_overflow.
12687 * internal-fn.c (expand_UBSAN_PTR): New function.
12688 * ubsan.h (ubsan_expand_ptr_ifn): Declare.
12689 * sanitizer.def (__ubsan_handle_pointer_overflow,
12690 __ubsan_handle_pointer_overflow_abort): New builtins.
12691 * tree-ssa-tail-merge.c (merge_stmts_p): Handle IFN_UBSAN_PTR.
12692 * internal-fn.def (UBSAN_PTR): New internal function.
12693 * opts.c (sanitizer_opts): Add pointer-overflow.
12694 * lto-streamer-in.c (input_function): Handle IFN_UBSAN_PTR.
12695 * fold-const.c (build_range_check): Compute pointer range check in
12696 integral type if pointer arithmetics would be needed. Formatting
12699 2017-07-28 Martin Liska <mliska@suse.cz>
12702 * sanopt.c (sanitize_rewrite_addressable_params): Do not rewrite
12703 parameters that are of a variable-length.
12705 2017-07-28 Sebastian Huber <sebastian.huber@embedded-brains.de>
12707 * config.gcc (powerpc-*-rtems*): Remove rs6000/eabi.h. Add
12709 * config/rs6000/rtems.h (ASM_DECLARE_FUNCTION_SIZE): New macro.
12710 (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
12711 (CRT_CALL_STATIC_FUNCTION): Likewise.
12712 (ASM_DEFAULT_SPEC): New define.
12713 (ASM_SPEC32): Likewise.
12714 (ASM_SPEC64): Likewise.
12715 (ASM_SPEC_COMMON): Likewise.
12716 (ASM_SPEC): Likewise.
12717 (INVALID_64BIT): Likewise.
12718 (LINK_OS_DEFAULT_SPEC): Likewise.
12719 (LINK_OS_SPEC32): Likewise.
12720 (LINK_OS_SPEC64): Likewise.
12721 (POWERPC_LINUX): Likewise.
12722 (PTRDIFF_TYPE): Likewise.
12723 (RESTORE_FP_PREFIX): Likewise.
12724 (RESTORE_FP_SUFFIX): Likewise.
12725 (SAVE_FP_PREFIX): Likewise.
12726 (SAVE_FP_SUFFIX): Likewise.
12727 (SIZE_TYPE): Likewise.
12728 (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
12729 (TARGET_64BIT): Likewise.
12730 (TARGET_64BIT): Likewise.
12731 (TARGET_AIX): Likewise.
12732 (WCHAR_TYPE_SIZE): Likewise.
12733 (WCHAR_TYPE): Undefine.
12734 (TARGET_OS_CPP_BUILTINS): Add 64-bit PowerPC defines.
12735 (CPP_OS_DEFAULT_SPEC): Use previous CPP_OS_RTEMS_SPEC.
12736 (CPP_OS_RTEMS_SPEC): Delete.
12737 (SUBSUBTARGET_EXTRA_SPECS): Remove cpp_os_rtems. Add
12738 asm_spec_common, asm_spec32, asm_spec64, link_os_spec32, and
12740 * config/rs6000/t-rtems: Add mcpu=e6500/m64 multilibs.
12742 2017-07-28 Jakub Jelinek <jakub@redhat.com>
12744 PR tree-optimization/81578
12745 * tree-parloops.c (build_new_reduction): Bail out if
12746 reduction_code isn't one of the standard OpenMP reductions.
12747 Move the details printing after that decision.
12749 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
12751 * config/rs6000/predicates.md (volatile_mem_operand): Remove code
12752 related to reload_in_progress.
12753 (splat_input_operand): Likewise.
12754 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
12756 * config/rs6000/rs6000.c (machine_function): Remove sdmode_stack_slot
12758 (TARGET_EXPAND_TO_RTL_HOOK): Delete.
12759 (TARGET_INSTANTIATE_DECLS): Likewise.
12760 (legitimate_indexed_address_p): Delete reload_in_progress code.
12761 (rs6000_debug_legitimate_address_p): Likewise.
12762 (rs6000_eliminate_indexed_memrefs): Likewise.
12763 (rs6000_emit_le_vsx_store): Likewise.
12764 (rs6000_emit_move_si_sf_subreg): Likewise.
12765 (rs6000_emit_move): Likewise.
12766 (register_to_reg_type): Likewise.
12767 (rs6000_pre_atomic_barrier): Likewise.
12768 (rs6000_machopic_legitimize_pic_address): Likewise.
12769 (rs6000_allocate_stack_temp): Likewise.
12770 (rs6000_address_for_fpconvert): Likewise.
12771 (rs6000_address_for_altivec): Likewise.
12772 (rs6000_secondary_memory_needed_rtx): Delete function.
12773 (rs6000_check_sdmode): Likewise.
12774 (rs6000_alloc_sdmode_stack_slot): Likewise.
12775 (rs6000_instantiate_decls): Likewise.
12776 * config/rs6000/rs6000.h (SECONDARY_MEMORY_NEEDED_RTX): Delete.
12777 * config/rs6000/rs6000.md (splitter for *movsi_got_internal):
12778 Delete reload_in_progress.
12779 (*vec_reload_and_plus_<mptrsize>): Likewise.
12780 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
12781 (vsx_div_v2di): Likewise.
12782 (vsx_udiv_v2di): Likewise.
12784 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
12786 * config/rs6000/rs6000.opt (mlra): Replace with stub.
12787 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Delete OPTION_MASK_LRA.
12788 * config/rs6000/rs6000.c (TARGET_LRA_P): Delete.
12789 (rs6000_debug_reg_global): Delete print of LRA status.
12790 (rs6000_option_override_internal): Delete dead LRA related code.
12791 (rs6000_lra_p): Delete function.
12792 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mlra.
12794 2017-07-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
12796 * config.gcc (riscv*-*-elf*): Add (riscv*-*-rtems*).
12797 * config/riscv/rtems.h: New file.
12799 2017-07-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12800 Sudakshina Das <sudi.das@arm.com>
12802 * config/aarch64/aarch64.md
12803 (define_split for and<mode>3nr_compare): Move
12804 non aarch64_logical_operand to a register.
12805 (define_split for and_<SHIFT:optab><mode>3nr_compare0): Move non
12806 register immediate operand to a register.
12807 * config/aarch64/predicates.md (aarch64_mov_imm_operand): New.
12809 2017-07-27 Peter Bergner <bergner@vnet.ibm.com>
12811 PR middle-end/81564
12812 * tree-cfg.c (group_case_labels_stmt): Handle already deleted blocks.
12814 2017-07-27 Richard Biener <rguenther@suse.de>
12816 PR tree-optimization/81573
12817 PR tree-optimization/81494
12818 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
12819 multi defuse cycle case.
12821 2017-07-27 Richard Biener <rguenther@suse.de>
12823 PR tree-optimization/81571
12824 * tree-vect-slp.c (vect_build_slp_tree): Properly verify reduction
12827 2017-07-27 Eric Botcazou <ebotcazou@adacore.com>
12829 * config/sparc/sparc.c (sparc_option_override): Set MASK_FSMULD flag
12830 earlier and only if MASK_FPU is set. Adjust formatting.
12832 2017-07-27 Martin Liska <mliska@suse.cz>
12834 * opt-functions.awk: Add validation of value of Init.
12835 * optc-gen.awk: Pass new argument.
12837 2017-07-27 Martin Liska <mliska@suse.cz>
12839 * auto-profile.c (autofdo_source_profile::update_inlined_ind_target):
12840 Fix wrong condition.
12842 2017-07-27 Martin Liska <mliska@suse.cz>
12844 * auto-profile.c (afdo_annotate_cfg): Assign zero counts to
12845 BBs and edges seen by autoFDO.
12847 2017-07-27 Richard Biener <rguenther@suse.de>
12849 PR tree-optimization/81502
12850 * tree-ssa.c (non_rewritable_lvalue_p): Handle BIT_INSERT_EXPR
12851 with incompatible but same sized type.
12852 (execute_update_addresses_taken): Likewise.
12854 2017-07-27 James Greenhalgh <james.greenhalgh@arm.com>
12856 * tree-ssa-loop-ch.c (pass_ch::process_loop_p): Guard on
12857 flag_tree_loop_vectorize rather than flag_tree_vectorize.
12859 2017-07-27 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12862 * config/s390/s390.md ("*atomic_compare_and_swap<mode>_1")
12863 ("*atomic_compare_and_swapdi_2", "*atomic_compare_and_swapsi_3"):
12864 Change s_operand to memory_operand.
12866 2017-07-27 Richard Sandiford <richard.sandiford@linaro.org>
12868 * config/rs6000/rs6000-protos.h (rs6000_emit_le_vsx_permute): Declare.
12869 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Replace with...
12870 (rs6000_emit_le_vsx_permute): ...this. Take the destination as input.
12871 Emit instructions rather than returning an expression. Handle TFmode
12872 and KFmode by casting to TImode.
12873 (rs6000_emit_le_vsx_load): Update to use rs6000_emit_le_vsx_permute.
12874 (rs6000_emit_le_vsx_store): Likewise.
12875 * config/rs6000/vsx.md (VSX_TI): New iterator.
12876 (*vsx_le_permute_<mode>): Use it instead of VSX_LE_128.
12877 (*vsx_le_undo_permute_<mode>): Likewise.
12878 (*vsx_le_perm_load_<mode>): Use rs6000_emit_le_vsx_permute to
12879 emit the split sequence.
12880 (*vsx_le_perm_store_<mode>): Likewise.
12882 2017-07-27 Jakub Jelinek <jakub@redhat.com>
12884 PR tree-optimization/81555
12885 PR tree-optimization/81556
12886 * tree-ssa-reassoc.c (rewrite_expr_tree): Add NEXT_CHANGED argument,
12887 if true, force CHANGED for the recursive invocation.
12888 (reassociate_bb): Remember original length of ops array, pass
12889 len != orig_len as NEXT_CHANGED in rewrite_expr_tree call.
12891 * attribs.c (decl_attributes): Imply noinline, noclone and no_icf
12892 attributes for noipa attribute. For naked attribute use
12893 lookup_attribute first before lookup_attribute_spec.
12894 * final.c (rest_of_handle_final): Disable IPA RA for functions with
12896 * ipa-visibility.c (non_local_p): Fix comment typos. Return true
12897 for functions with noipa attribute.
12898 (cgraph_externally_visible_p): Return true for functions with noipa
12900 * cgraph.c (cgraph_node::get_availability): Return AVAIL_INTERPOSABLE
12901 for functions with noipa attribute.
12902 * doc/extend.texi: Document noipa function attribute.
12903 * tree-ssa-structalias.c (refered_from_nonlocal_fn): Set *nonlocal_p
12904 also for functions with noipa attribute.
12905 (ipa_pta_execute): Set nonlocal_p also for nodes with noipa attribute.
12907 2017-07-26 Andrew Pinski <apinski@cavium.com>
12909 * config/aarch64/aarch64.c (thunderx_vector_cost): Decrease cost of
12910 vec_unalign_load_cost and vec_unalign_store_cost.
12912 2017-07-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12914 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Delete
12915 -mvsx-small-integer option.
12916 (ISA_3_0_MASKS_IEEE): Likewise.
12917 (OTHER_VSX_VECTOR_MASKS): Likewise.
12918 (POWERPC_MASKS): Likewise.
12919 * config/rs6000/rs6000.opt (-mvsx-small-integer): Likewise.
12920 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Simplify
12921 code, only testing for DImode being allowed in non-VSX floating
12923 (rs6000_init_hard_regno_mode_ok): Change TARGET_VSX_SMALL_INTEGER
12924 to TARGET_P8_VECTOR test. Remove redundant VSX test inside of
12926 (rs6000_option_override_internal): Delete -mvsx-small-integer.
12927 (rs6000_expand_vector_set): Change TARGET_VSX_SMALL_INTEGER to
12928 TARGET_P8_VECTOR test.
12929 (rs6000_secondary_reload_simple_move): Likewise.
12930 (rs6000_preferred_reload_class): Delete TARGET_VSX_SMALL_INTEGER,
12931 since TARGET_P9_VECTOR was already tested.
12932 (rs6000_opt_masks): Remove -mvsx-small-integer.
12933 * config/rs6000/vsx.md (vsx_extract_<mode>): Delete
12934 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
12936 (vsx_extract_<mode>_p9): Delete TARGET_VSX_SMALL_INTEGER, since a
12937 test for TARGET_VEXTRACTUB was used, and that uses
12939 (p9 extract splitter): Likewise.
12940 (vsx_extract_<mode>_di_p9): Likewise.
12941 (vsx_extract_<mode>_store_p9): Likewise.
12942 (vsx_extract_si): Delete TARGET_VSX_SMALL_INTEGER, since a test
12943 for TARGET_P9_VECTOR was used. Delete code that is now dead with
12944 the elimination of TARGET_VSX_SMALL_INTEGER.
12945 (vsx_extract_<mode>_p8): Likewise.
12946 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>): Likewise.
12947 (vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Likewise.
12948 (vsx_set_<mode>_p9): Likewise.
12949 (vsx_set_v4sf_p9): Likewise.
12950 (vsx_set_v4sf_p9_zero): Likewise.
12951 (vsx_insert_extract_v4sf_p9): Likewise.
12952 (vsx_insert_extract_v4sf_p9_2): Likewise.
12953 * config/rs6000/rs6000.md (sign extend splitter): Change
12954 TARGET_VSX_SMALL_INTEGER to TARGET_P8_VECTOR test.
12955 (floatsi<mode>2_lfiwax_mem): Likewise.
12956 (floatunssi<mode>2_lfiwzx_mem): Likewise.
12957 (float<QHI:mode><FP_ISA3:mode>2): Delete TARGET_VSX_SMALL_INTEGER,
12958 since a test for TARGET_P9_VECTOR was used.
12959 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
12960 (floatuns<QHI:mode><FP_ISA3:mode>2): Likewise.
12961 (floatuns<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
12962 (fix_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
12963 TARGET_P8_VECTOR test.
12964 (fix_trunc<mode>si2_stfiwx): Likewise.
12965 (fix_trunc<mode>si2_internal): Likewise.
12966 (fix_trunc<SFDF:mode><QHI:mode>2): Delete
12967 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
12969 (fix_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
12970 (fixuns_trunc<mode>si2): Change TARGET_VSX_SMALL_INTEGER to
12971 TARGET_P8_VECTOR test.
12972 (fixuns_trunc<mode>si2_stfiwx): Likewise.
12973 (fixuns_trunc<SFDF:mode><QHI:mode>2): Delete
12974 TARGET_VSX_SMALL_INTEGER, since a test for TARGET_P9_VECTOR was
12976 (fixuns_trunc<SFDF:mode><QHI:mode>2_internal): Likewise.
12977 (fctiw<u>z_<mode>_smallint): Delete TARGET_VSX_SMALL_INTEGER,
12978 since a test for TARGET_P9_VECTOR was used.
12979 (splitter for loading small constants): Likewise.
12981 2017-07-26 Andrew Pinski <apinski@cavium.com>
12983 * config/aarch64/aarch64.c (thunderx_vector_cost): Fix
12986 2017-07-26 H.J. Lu <hongjiu.lu@intel.com>
12989 * config/i386/i386.c (sp_valid_at): Properly check CFA offset.
12990 (fp_valid_at): Likewise.
12992 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
12994 * config/aarch64/aarch64.c (cortexa57_addrcost_table): Remove.
12995 (qdf24xx_addrcost_table): Likewise.
12996 (cortexa57_tunings): Update to use generic_branch_cost.
12997 (cortexa72_tunings): Likewise.
12998 (cortexa73_tunings): Likewise.
12999 (qdf24xx_tunings): Likewise.
13001 2017-07-26 James Greenhalgh <james.greenhalgh@arm.com>
13003 * config/aarch64/aarch64.c (cortexa57_branch_cost): Remove.
13004 (thunderx2t99_branch_cost): Likewise.
13005 (cortexa35_tunings): Update to use generic_branch_cost.
13006 (cortexa53_tunings): Likewise.
13007 (cortexa57_tunings): Likewise.
13008 (cortexa72_tunings): Likewise.
13009 (cortexa73_tunings): Likewise.
13010 (thunderx2t99_tunings): Likewise.
13012 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
13014 * config/sparc/sparc.c (dump_target_flag_bits): Dump MASK_FSMULD.
13015 (sparc_option_override): Honour MASK_FSMULD.
13016 * config/sparc/sparc.h (MASK_FEATURES): Add MASK_FSMULD.
13017 * config/sparc/sparc.md (muldf3_extend): Use TARGET_FSMULD.
13018 * config/sparc/sparc.opt (mfsmuld): New option.
13019 * doc/invoke.texi (mfsmuld): Document option.
13021 2017-07-26 Marek Polacek <polacek@redhat.com>
13023 PR middle-end/70992
13024 * tree.c (build2_stat): Don't set TREE_CONSTANT on divisions by zero.
13026 2017-07-26 Richard Biener <rguenther@suse.de>
13028 * gimple-match-head.c (do_valueize): Return OP if valueize
13030 (get_def): New helper to get at the def stmt of a SSA name
13031 if valueize allows.
13032 * genmatch.c (dt_node::gen_kids_1): Use get_def instead of
13033 do_valueize to get at the def stmt.
13034 (dt_operand::gen_gimple_expr): Simplify do_valueize calls.
13036 2017-07-26 Wilco Dijkstra <wdijkstr@arm.com>
13038 PR middle-end/46932
13039 * auto-inc-dec.c (parse_add_or_inc): Block autoinc on sfp.
13041 2017-07-26 Martin Liska <mliska@suse.cz>
13044 * function.c (expand_function_start): Make expansion of
13045 nonlocal_goto_save_area after parm_birth_insn.
13047 2017-07-26 Sebastian Huber <sebastian.huber@embedded-brains.de>
13049 * config/sparc/sparc.c (sparc_option_override): Remove MASK_FPU
13050 from all CPU target flags enable members.
13052 2017-07-26 Richard Biener <rguenther@suse.de>
13054 * genmatch.c (dt_simplify::gen): Make iterator vars const.
13055 (decision_tree::gen): Make 'type' const.
13056 (write_predicate): Likewise.
13058 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13060 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok):
13061 Eliminate TARGET_UPPER_REGS_{DF,DI,SF} usage.
13062 (rs6000_option_override_internal): Likewise.
13063 (rs6000_expand_vector_set): Likewise.
13064 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Delete.
13065 (TARGET_UPPER_REGS_SF): Likewise.
13066 (TARGET_UPPER_REGS_DI): Likewise.
13067 (TARGET_VEXTRACTUB): Eliminate TARGET_UPPER_REGS_{DF,DI,SF}.
13068 (TARGET_DIRECT_MOVE_64BIT): Likewise.
13069 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Likewise.
13070 (float<QHI:mode><FP_ISA3:mode>2_internal): Likewise.
13071 (Splitters for DI constants in Altivec registers): Likewise.
13072 * config/rs6000/vsx.md (vsx_set_<mode>_p9): Likewise.
13073 (vsx_set_v4sf_p9): Likewise.
13074 (vsx_set_v4sf_p9_zero): Likewise.
13075 (vsx_insert_extract_v4sf_p9): Likewise.
13076 (vsx_insert_extract_v4sf_p9_2): Likewise.
13078 2017-07-25 Carl Love <cel@us.ibm.com>
13080 * doc/extend.texi: Update the built-in documentation file for the
13081 existing built-in functions
13082 vector signed char vec_cnttz (vector signed char);
13083 vector unsigned char vec_cnttz (vector unsigned char);
13084 vector signed short vec_cnttz (vector signed short);
13085 vector unsigned short vec_cnttz (vector unsigned short);
13086 vector signed int vec_cnttz (vector signed int);
13087 vector unsigned int vec_cnttz (vector unsigned int);
13088 vector signed long long vec_cnttz (vector signed long long);
13089 vector unsigned long long vec_cnttz (vector unsigned long long);
13091 2017-07-25 Andrew Pinski <apinski@cavium.com>
13093 * tree-ssa-uninit.c (warn_uninitialized_vars): Don't warn about memory
13094 accesses where the use is for the first operand of a BIT_INSERT.
13096 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
13099 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
13100 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
13102 2017-07-25 Jim Wilson <jim.wilson@linaro.org>
13104 * config/i386/gstabs.h: Delete.
13105 * config/i386/openbsd.h, config/i386/t-openbsd: Likewise.
13107 2017-07-25 Uros Bizjak <ubizjak@gmail.com>
13109 * config/i386/i386.c (ix86_decompose_address): Do not check for
13110 register RTX when looking at index_reg or base_reg.
13111 * config/i386/i386.h (INCOMING_RETURN_ADDR_RTX): Use stack_pointer_rtx.
13113 2017-07-25 Eric Botcazou <ebotcazou@adacore.com>
13115 * gimple.c (gimple_assign_set_rhs_with_ops): Do not ask gsi_replace
13116 to update EH info here.
13118 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
13120 * match.pd ((X * CST1) * CST2): Simplify to X * (CST1 * CST2).
13122 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
13124 * match.pd ((X * CST) * Y): Reassociate to (X * Y) * CST.
13126 2017-07-25 Torsten Duwe <duwe@suse.de>
13128 * common.opt: Introduce -fpatchable-function-entry
13129 command line option, and its variables function_entry_patch_area_size
13130 and function_entry_patch_area_start.
13131 * opts.c (common_handle_option): Add -fpatchable_function_entry_ case,
13132 including a two-value parser.
13133 * target.def (print_patchable_function_entry): New target hook.
13134 * targhooks.h (default_print_patchable_function_entry): New function.
13135 * targhooks.c (default_print_patchable_function_entry): Likewise.
13136 * toplev.c (process_options): Switch off IPA-RA if
13137 patchable function entries are being generated.
13138 * varasm.c (assemble_start_function): Look at the
13139 patchable-function-entry command line switch and current
13140 function attributes and maybe generate NOP instructions by
13141 calling the print_patchable_function_entry hook.
13142 * doc/extend.texi: Document patchable_function_entry attribute.
13143 * doc/invoke.texi: Document -fpatchable_function_entry
13144 command line option.
13145 * doc/tm.texi.in (TARGET_ASM_PRINT_PATCHABLE_FUNCTION_ENTRY):
13147 * doc/tm.texi: Re-generate.
13149 2017-07-25 Jakub Jelinek <jakub@redhat.com>
13152 * config/i386/constraints.md (Yd, Ye): Use ALL_SSE_REGS for
13153 TARGET_AVX512DQ rather than TARGET_AVX512BW.
13155 2017-07-25 Tamar Christina <tamar.christina@arm.com>
13157 * config/arm/parsecpu.awk (all_cores): Remove duplicates.
13159 2017-07-25 Richard Biener <rguenther@suse.de>
13161 PR tree-optimization/81455
13162 * tree-ssa-loop-unswitch.c (find_loop_guard): Make sure to
13163 not walk in cycles when looking for guards.
13165 2017-07-25 Richard Biener <rguenther@suse.de>
13167 PR tree-optimization/81529
13168 * tree-vect-stmts.c (process_use): Disregard live induction PHIs
13169 when optimizing backedge uses.
13171 2017-07-25 David Edelsohn <dje.gcc@gmail.com>
13173 * dwarf2asm.c (dw2_asm_output_nstring): Encode double quote
13175 * dwarf2out.c (output_macinfo): Copy debug_line_section_label
13176 to dl_section_ref. On AIX, append an expression to subtract
13177 the size of the section length to dl_section_ref.
13179 2017-07-25 Segher Boessenkool <segher@kernel.crashing.org>
13181 * configure.ac: If any of the config.* scripts fail, exit 1.
13182 * configure: Regenerate.
13184 2017-07-25 Richard Biener <rguenther@suse.de>
13186 PR middle-end/81546
13187 * tree-ssa-operands.c (verify_imm_links): Remove cap on number
13188 of immediate uses, be more verbose on errors.
13190 2017-07-25 Richard Biener <rguenther@suse.de>
13192 PR tree-optimization/81510
13193 * tree-vect-loop.c (vect_is_simple_reduction): When the
13194 reduction stmt is not inside the loop bail out.
13196 2017-07-25 Richard Biener <rguenther@suse.de>
13198 PR tree-optimization/81303
13199 * tree-vect-loop-manip.c (vect_loop_versioning): Build
13200 profitability check against LOOP_VINFO_NITERSM1.
13202 2017-07-25 Alexander Monakov <amonakov@ispras.ru>
13204 * domwalk.c (cmp_bb_postorder): Simplify.
13205 (sort_bbs_postorder): New function. Use it...
13206 (dom_walker::walk): ...here to optimize common cases.
13208 2017-07-25 Martin Liska <mliska@suse.cz>
13211 * ipa-visibility.c (function_and_variable_visibility): Make the
13212 redirection just on target that supports aliasing.
13213 Fix GNU coding style.
13215 2017-07-25 Sebastian Huber <sebastian.huber@embedded-brains.de>
13218 * config/aarch64/rtems.h: Add GCC Runtime Library Exception.
13220 * config/arm/rtems.h: Likewise.
13221 * config/bfin/rtems.h: Likewise.
13222 * config/i386/rtemself.h: Likewise.
13223 * config/lm32/rtems.h: Likewise.
13224 * config/m32c/rtems.h: Likewise.
13225 * config/m68k/rtemself.h: Likewise.
13226 * config/microblaze/rtems.h: Likewise.
13227 * config/mips/rtems.h: Likewise.
13228 * config/moxie/rtems.h: Likewise.
13229 * config/nios2/rtems.h: Likewise.
13230 * config/powerpcspe/rtems.h: Likewise.
13231 * config/rs6000/rtems.h: Likewise.
13232 * config/rtems.h: Likewise.
13233 * config/sh/rtems.h: Likewise.
13234 * config/sh/rtemself.h: Likewise.
13235 * config/sparc/rtemself.h: Likewise.
13237 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
13240 * hsa-brig.c (brig_init): Use xasprintf instead of asprintf.
13241 * gimple-pretty-print.c (dump_profile, dump_probability): Same.
13242 * tree-ssa-structalias.c (alias_get_name): Same.
13244 2017-07-25 Bin Cheng <bin.cheng@arm.com>
13247 * config/aarch64/cortex-a57-fma-steering.c (analyze): Skip fmul/fmac
13248 instructions if no du chain is found.
13250 2017-07-25 Georg-Johann Lay <avr@gjlay.de>
13252 * config/avr/avr-log.c (avr_log_vadump) ['T']: Print NULL-TREE.
13254 2017-07-25 Richard Biener <rguenther@suse.de>
13256 PR middle-end/81505
13257 * fold-const.c (fold_negate_const): TREE_OVERFLOW should be
13260 2017-07-24 Michael Meissner <meissner@linux.vnet.ibm.com>
13262 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Delete
13263 upper-regs options.
13264 (ISA_2_7_MASKS_SERVER): Likewise.
13265 (ISA_3_0_MASKS_IEEE): Likewise.
13266 (OTHER_P8_VECTOR_MASKS): Likewise.
13267 (OTHER_VSX_VECTOR_MASKS): Likewise.
13268 (POWERPC_MASKS): Likewise.
13269 (power7 cpu): Use ISA_2_6_MASKS_SERVER instead of using a
13270 duplicate list of options.
13271 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Remove
13272 explicit -mupper-regs options.
13273 * config/rs6000/rs6000.opt (-mvsx-scalar-memory): Delete
13274 -mupper-regs* options. Delete -mvsx-scalar-memory, which was an
13275 alias for -mupper-regs-df.
13276 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Likewise.
13277 (rs6000_init_hard_regno_mode_ok): Likewise.
13278 (rs6000_option_override_internal): Likewise.
13279 (rs6000_opt_masks): Likewise.
13280 * config/rs6000/rs6000.h (TARGET_UPPER_REGS_DF): Define upper regs
13281 options in terms of whether -mvsx or -mpower8-vector was used.
13282 (TARGET_UPPER_REGS_DI): Likewise.
13283 (TARGET_UPPER_REGS_SF): Likewise.
13284 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete the
13285 -mupper-regs-* options.
13287 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
13289 * passes.c (emergency_dump_function): Print some empty lines and a
13290 header before the RTL dump.
13292 2017-07-24 Segher Boessenkool <segher@kernel.crashing.org>
13294 * cfgrtl.c (rtl_dump_bb): Don't call NEXT_INSN on NULL.
13296 2017-07-24 Wilco Dijkstra <wdijkstr@arm.com>
13299 * config/aarch64/aarch64.c (aarch64_classify_symbol):
13300 Avoid SYMBOL_SMALL_ABSOLUTE for literals with pc-relative literals.
13302 2017-07-24 Carl Love <cel@us.ibm.com>
13304 * config/rs6000/rs6000-c.c: Add support for built-in functions
13305 vector float vec_extract_fp32_from_shorth (vector unsigned short);
13306 vector float vec_extract_fp32_from_shortl (vector unsigned short);
13307 * config/rs6000/altivec.h (vec_extract_fp_from_shorth,
13308 vec_extract_fp_from_shortl): Add defines for the two builtins.
13309 * config/rs6000/rs6000-builtin.def (VEXTRACT_FP_FROM_SHORTH,
13310 VEXTRACT_FP_FROM_SHORTL): Add BU_P9V_OVERLOAD_1 and BU_P9V_VSX_1
13312 * config/rs6000/vsx.md vsx_xvcvhpsp): Add define_insn.
13313 (vextract_fp_from_shorth, vextract_fp_from_shortl): Add define_expands.
13314 * doc/extend.texi: Update the built-in documentation file for the
13315 new built-in function.
13317 2017-07-24 Jakub Jelinek <jakub@redhat.com>
13320 * tree.def: Remove TYPE_METHODS documentation, adjust TYPE_FIELDS
13322 * doc/generic.texi: Likewise.
13323 * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition): Look
13324 for FUNCTION_DECLs in TYPE_FIELDS rather than TYPE_METHODS.
13326 2017-07-24 Jackson Woodruff <jackson.woodruff@arm.com>
13328 * config/aarch64/aarch64-simd.md (aarch64_mla_elt_merge<mode>): New.
13329 (aarch64_mls_elt_merge<mode>): Likewise.
13331 2017-07-23 Krister Walfridsson <krister.walfridsson@gmail.com>
13333 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
13334 having __cxa_atexit.
13336 2017-07-23 Michael Collison <michael.collison@arm.com>
13338 * config/arm/arm.c (arm_option_override): Deprecate
13339 use of -mstructure-size-boundary.
13340 * config/arm/arm.opt: Deprecate -mstructure-size-boundary.
13341 * doc/invoke.texi: Deprecate -mstructure-size-boundary.
13343 2017-07-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13346 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
13347 Reduce cost estimate for direct moves.
13349 2017-07-23 Uros Bizjak <ubizjak@gmail.com>
13352 * config/i386/i386.c (ix86_option_override_internal): Disable
13353 BMI, BMI2 and TBM instructions for -m16.
13355 2017-07-21 Carl Love <cel@us.ibm.com>
13357 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13358 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
13359 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
13360 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
13361 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
13362 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
13363 VMULOSW): New enum "unspec" values.
13364 (altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
13365 altivec_vmulosw): New patterns.
13366 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
13367 VMULOSW): Add definitions.
13369 2017-07-21 Jim Wilson <jim.wilson@linaro.org>
13371 * config/aarch64/aarch64-cores.def (falkor): Add AARCH64_FL_RDMA.
13372 (qdf24xx): Likewise.
13373 * config/aarch64/aarch64-options-extensions.def (rdma); New.
13374 * config/aarch64/aarch64.h (AARCH64_FL_RDMA): New.
13375 (AARCH64_FL_V8_1): Renumber.
13376 (AARCH64_FL_FOR_ARCH8_1): Add AARCH64_FL_RDMA.
13377 (AARCH64_ISA_RDMA): Use AARCH64_FL_RDMA.
13378 * config/aarch64/arm_neon.h: Use +rdma instead of arch=armv8.1-a.
13379 * doc/invoke.texi (AArch64 Options): Mention +rmda in -march docs. Add
13380 rdma to feature modifiers list.
13382 2017-07-21 Yury Gribov <tetra2005@gmail.com>
13384 PR middle-end/56727
13385 * ipa-visibility (function_and_variable_visibility): Convert
13386 recursive PLT call to direct call if appropriate.
13388 2017-07-21 Andrew Pinski <apinski@cavium.com>
13390 * tree-ssa-sccvn.c (vn_nary_op_eq): Check BIT_INSERT_EXPR's
13391 operand 1 to see if the types precision matches.
13392 * fold-const.c (operand_equal_p): Likewise.
13394 2017-07-21 Richard Biener <rguenther@suse.de>
13396 PR tree-optimization/81303
13397 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs): Pass
13398 in datarefs vector. Allow NULL dr0 for no peeling cost estimate.
13399 (vect_peeling_hash_get_lowest_cost): Adjust.
13400 (vect_enhance_data_refs_alignment): Likewise. Use
13401 vect_get_peeling_costs_all_drs to compute the penalty for no
13402 peeling to match up costs.
13404 2017-07-21 Richard Biener <rguenther@suse.de>
13406 PR tree-optimization/81500
13407 * tree-vect-loop.c (vect_is_simple_reduction): Properly fail if
13408 we didn't identify a reduction path.
13410 2017-07-21 Tom de Vries <tom@codesourcery.com>
13411 Cesar Philippidis <cesar@codesourcery.com>
13413 PR gcov-profile/81442
13414 * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Add missing edge
13417 2017-07-21 Tom de Vries <tom@codesourcery.com>
13420 * config/nvptx/nvptx.c (nvptx_override_options_after_change): New
13422 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define to
13423 nvptx_override_options_after_change.
13425 2017-07-21 Ulrich Drepper <drepper@redhat.com>
13427 * dwarf2out.c (output_file_names): Avoid double testing for
13428 dwarf_version >= 5.
13430 2017-07-21 Georg-Johann Lay <avr@gjlay.de>
13432 * doc/invoke.texi (AVR Built-in Functions): Re-layout section.
13434 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
13436 * cfgcleanup.c (flow_find_cross_jump): Do not crossjump across
13438 (try_crossjump_to_edge): Do not punt on partitioned functions.
13440 2016-07-21 Jan Hubicka <hubicka@ucw.cz>
13442 * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
13443 Put all BBs reachable only via paths crossing cold region to cold
13445 * cfgrtl.c (find_bbs_reachable_by_hot_paths): New function.
13447 2016-07-21 Richard Biener <rguenther@suse.de>
13449 PR tree-optimization/81303
13450 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Take
13451 into account prologue and epilogue iterations when raising
13452 min_profitable_iters to sth at least covering one vector iteration.
13454 2017-07-21 Tamar Christina <tamar.christina@arm.com>
13456 * config/arm/arm.c (arm_test_cpu_arch_dat):
13459 2017-07-20 Nathan Sidwell <nathan@acm.org>
13461 Remove TYPE_METHODS.
13462 * tree.h (TYPE_METHODS): Delete.
13463 * dwarf2out.c (gen_member_die): Member fns are on TYPE_FIELDS.
13464 * dbxout.c (dbxout_type_fields): Ignore FUNCTION_DECLs.
13465 (dbxout_type_methods): Scan TYPE_FIELDS.
13466 (dbxout_type): Don't check TYPE_METHODS here.
13467 * function.c (use_register_for_decl): Always ignore register for
13468 class types when not optimizing.
13469 * ipa-devirt.c (odr_types_equivalent_p): Delete TYPE_METHODS scan.
13470 * tree.c (free_lang_data_in_type): Stitch out member functions and
13471 templates from TYPE_FIELDS.
13472 (build_distinct_type_copy, verify_type_variant,
13473 verify_type): Member fns are on TYPE_FIELDS.
13474 * tree-dump.c (dequeue_and_dump): No TYPE_METHODS.
13475 * tree-pretty-print.c (dump_generic_node): Likewise.
13477 2017-07-20 Jakub Jelinek <jakub@redhat.com>
13480 * config/i386/i386.c (ix86_expand_vector_init_general): Handle
13481 V2TImode and V4TImode.
13482 (ix86_expand_vector_extract): Likewise.
13483 * config/i386/sse.md (VMOVE): Enable V4TImode even for just
13484 TARGET_AVX512F, instead of only for TARGET_AVX512BW.
13485 (ssescalarmode): Handle V4TImode and V2TImode.
13486 (VEC_EXTRACT_MODE): Add V4TImode and V2TImode.
13487 (*vec_extractv2ti, *vec_extractv4ti): New insns.
13488 (VEXTRACTI128_MODE): New mode iterator.
13489 (splitter for *vec_extractv?ti first element): New.
13490 (VEC_INIT_MODE): New mode iterator.
13491 (vec_init<mode>): Consolidate 3 expanders into one using
13492 VEC_INIT_MODE mode iterator.
13494 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
13496 * lra-assigns.c (pseudo_compare_func): Fix comparison step based on
13497 non_spilled_static_chain_regno_p.
13499 2017-07-20 Alexander Monakov <amonakov@ispras.ru>
13501 * gimple-ssa-store-merging.c (sort_by_bitpos): Return 0 on equal bitpos.
13503 2017-07-20 Jan Hubicka <hubicka@ucw.cz>
13505 * bb-reorder.c (connect_traces): Allow copying of blocks within
13508 2017-07-20 Richard Biener <rguenther@suse.de>
13510 * gimple.h (gimple_phi_result): Add gphi * overload.
13511 (gimple_phi_result_ptr): Likewise.
13512 (gimple_phi_arg): Likewise. Adjust index assert to only
13513 allow actual argument accesses rather than all slots available
13515 (gimple_phi_arg_def): Add gphi * overload.
13516 * tree-phinodes.c (make_phi_node): Initialize only actual
13518 (resize_phi_node): Clear memory not covered by old node,
13519 do not initialize excess argument slots.
13520 (reserve_phi_args_for_new_edge): Initialize new argument slot
13523 2017-07-20 Bin Cheng <bin.cheng@arm.com>
13525 PR tree-optimization/81388
13527 2016-07-21 Bin Cheng <bin.cheng@arm.com>
13529 * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
13530 by removing computation of may_be_zero.
13532 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
13533 Tom de Vries <tom@codesourcery.com>
13535 PR middle-end/81030
13536 * cfgbuild.c (find_many_sub_basic_blocks): Update REG_BR_PROB note
13537 when gimple level profile disagrees with what RTL expander did.
13539 2017-07-20 Richard Biener <rguenther@suse.de>
13541 PR tree-optimization/61171
13542 * tree-vectorizer.h (slp_instance): Add reduc_phis member.
13543 (vect_analyze_stmt): Add slp instance parameter.
13544 (vectorizable_reduction): Likewise.
13545 * tree-vect-loop.c (vect_analyze_loop_operations): Adjust.
13546 (vect_is_simple_reduction): Deal with chains not detected
13547 as SLP reduction chain, specifically not properly associated
13548 chains containing a mix of plus/minus.
13549 (get_reduction_op): Remove.
13550 (get_initial_defs_for_reduction): Simplify, pass in whether
13551 this is a reduction chain, pass in the SLP node for the PHIs.
13552 (vect_create_epilog_for_reduction): Get the SLP instance as
13554 (vectorizable_reduction): Get the SLP instance as arg.
13555 During analysis remember the SLP node with the PHIs in the
13556 instance. Simplify getting at the vectorized reduction PHIs.
13557 * tree-vect-slp.c (vect_slp_analyze_node_operations): Pass
13558 through SLP instance.
13559 (vect_slp_analyze_operations): Likewise.
13560 * tree-vect-stms.c (vect_analyze_stmt): Likewise.
13561 (vect_transform_stmt): Likewise.
13563 2017-07-20 Tom de Vries <tom@codesourcery.com>
13565 PR tree-optimization/81489
13566 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Move
13567 read of phi arg location to before loop that modifies phi.
13569 2017-07-20 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
13571 * match.pd (((m1 >/</>=/<= m2) * d -> (m1 >/</>=/<= m2) ? d : 0):
13574 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
13576 PR middle-end/81331
13577 * except.c (execute): Fix ordering issue.
13579 2018-07-19 Segher Boessenkool <segher@kernel.crashing.org>
13581 PR rtl-optimization/81423
13582 * combine.c (make_compound_operation_int): Don't try to optimize
13583 the AND of a SUBREG of an LSHIFTRT if that SUBREG is paradoxical.
13585 2017-07-19 Segher Boessenkool <segher@kernel.crashing.org>
13587 PR rtl-optimization/81423
13588 * simplify-rtx.c (simplify_truncation): Handle truncating an IOR
13589 with a constant that is -1 in the truncated to mode.
13591 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
13593 * predict.c (propagate_unlikely_bbs_forward): Break out from ...
13594 (determine_unlikely_bbs): ... here.
13595 * predict.h (propagate_unlikely_bbs_forward): Declare.
13596 * cfgexpand.c (pass_expand::execute): Use it.
13597 * bb-reorder.c (sanitize_hot_paths): Do not consider known to be
13599 (find_rarely_executed_basic_blocks_and_crossing_edges): Use
13600 propagate_unlikely_bbs_forward.
13602 2017-07-19 Jan Hubicka <hubicka@ucw.cz>
13604 PR middle-end/81331
13605 * except.c (maybe_add_nop_after_section_switch): New function.
13608 2017-07-19 Tom de Vries <tom@codesourcery.com>
13610 * gimple.h (gimple_phi_set_arg): Make assert more strict.
13612 2017-07-19 Tom de Vries <tom@codesourcery.com>
13614 * gimple.h (gimple_phi_arg): Make assert more strict.
13616 2017-07-19 Steven Munroe <munroesj@gcc.gnu.org>
13618 * config.gcc (powerpc*-*-*): Add mmintrin.h.
13619 * config/rs6000/mmintrin.h: New file.
13620 * config/rs6000/x86intrin.h [__ALTIVEC__]: Include mmintrin.h.
13622 2017-07-19 Jakub Jelinek <jakub@redhat.com>
13624 PR tree-optimization/81346
13625 * match.pd: Optimize (X - 1U) <= INT_MAX-1U into (int) X > 0.
13627 2017-07-19 Tom de Vries <tom@codesourcery.com>
13629 * config/nvptx/nvptx.md (VECIM): Add V2DI.
13631 2017-07-19 Tom de Vries <tom@codesourcery.com>
13633 * config/nvptx/nvptx-modes.def: Add V2DImode.
13634 * config/nvptx/nvptx-protos.h (nvptx_data_alignment): Declare.
13635 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2DImode.
13636 (nvptx_output_mov_insn): Handle lack of mov.b128.
13637 (nvptx_print_operand): Handle 'H' and 'L' codes.
13638 (nvptx_vector_mode_supported): Allow V2DImode.
13639 (nvptx_preferred_simd_mode): New function.
13640 (nvptx_data_alignment): New function.
13641 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Redefine to
13642 nvptx_preferred_simd_mode.
13643 * config/nvptx/nvptx.h (STACK_BOUNDARY, BIGGEST_ALIGNMENT): Change from
13645 (DATA_ALIGNMENT): Define. Set to nvptx_data_alignment.
13647 2017-07-19 Tom de Vries <tom@codesourcery.com>
13649 * config/nvptx/nvptx-modes.def: New file. Add V2SImode.
13650 * config/nvptx/nvptx.c (nvptx_ptx_type_from_mode): Handle V2SImode.
13651 (nvptx_vector_mode_supported): New function. Allow V2SImode.
13652 (TARGET_VECTOR_MODE_SUPPORTED_P): Redefine to nvptx_vector_mode_supported.
13653 * config/nvptx/nvptx.md (VECIM): New mode iterator. Add V2SI.
13654 (mov<VECIM>_insn): New define_insn.
13655 (define_expand "mov<VECIM>): New define_expand.
13657 2017-07-19 Tom de Vries <tom@codesourcery.com>
13659 * config/nvptx/nvptx.c (nvptx_print_operand): Handle v2 vector mode.
13661 2017-07-19 Jakub Jelinek <jakub@redhat.com>
13663 PR tree-optimization/81346
13664 * fold-const.h (fold_div_compare, range_check_type): Declare.
13665 * fold-const.c (range_check_type): New function.
13666 (build_range_check): Use range_check_type.
13667 (fold_div_compare): No longer static, rewritten into
13668 a match.pd helper function.
13669 (fold_comparison): Don't call fold_div_compare here.
13670 * match.pd (X / C1 op C2): New optimization using fold_div_compare
13671 as helper function.
13673 2017-07-19 Nathan Sidwell <nathan@acm.org>
13675 * tree.h (TYPE_MINVAL, TYPE_MAXVAL): Rename to ...
13676 (TYPE_MIN_VALUE_RAW, TYPE_MAX_VALUE_RAW): ... these.
13677 * tree.c (find_decls_types_r, verify_type): Use
13678 TYPE_{MIN,MAX}_VALUE_RAW.
13679 * lto-streamer-out.c (DFS::DFS_write_tree_body): Likewise.
13680 (hash_tree): Likewise.
13681 * tree-streamer-in.c (lto_input_ts_type_non_common_tree_pointers):
13683 * tree-streamer-out.c (write_ts_type_non_common_tree_pointers):
13686 2017-07-18 Tom de Vries <tom@codesourcery.com>
13688 PR middle-end/81464
13689 * omp-expand.c (expand_omp_for_static_chunk): Handle
13690 equal-argument loop exit phi.
13692 2017-07-18 Uros Bizjak <ubizjak@gmail.com>
13695 * config/i386/i386.md (rorx_immediate_operand): New mode attribute.
13696 (*bmi2_rorx<mode>3_1): Use rorx_immediate_operand as
13697 operand 2 predicate.
13698 (*bmi2_rorxsi3_1_zext): Use const_0_to_31_operand as
13699 operand 2 predicate.
13700 (ror,rol -> rorx splitters): Use const_int_operand as
13701 operand 2 predicate.
13703 2017-06-18 Richard Biener <rguenther@suse.de>
13705 PR tree-optimization/81410
13706 * tree-vect-stmts.c (vectorizable_load): Properly adjust for
13707 the gap in the ! slp_perm SLP case after each group.
13709 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
13711 PR middle-end/81463
13712 * cfgloopmanip.c (scale_loop_profile): Watch out for zero frequency
13715 2017-07-18 Jan Hubicka <hubicka@ucw.cz>
13717 PR middle-end/81462
13718 * predict.c (set_even_probabilities): Cleanup; do not affect
13719 probabilities that are already known.
13720 (combine_predictions_for_bb): Call even when count is set.
13722 2017-07-18 Nathan Sidwell <nathan@acm.org>
13724 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
13727 2017-07-18 Bin Cheng <bin.cheng@arm.com>
13730 * tree-ssa-loop-niter.c (number_of_iterations_exit): Dump missed
13731 optimization for loop niter analysis.
13733 2017-07-18 Georg-Johann Lay <avr@gjlay.de>
13736 * config/avr/avr.c (avr_optimize_casesi): Don't use
13737 INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX.
13739 2017-07-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
13741 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Remove
13742 body_cost_vec from _vect_peel_extended_info.
13743 (vect_peeling_hash_get_lowest_cost): Do not set body_cost_vec.
13744 (vect_peeling_hash_choose_best_peeling): Remove body_cost_vec and
13747 2017-07-18 Bin Cheng <bin.cheng@arm.com>
13749 * config/arm/arm.c (emit_unlikely_jump): Remove unused var.
13751 2017-07-18 Richard Biener <rguenther@suse.de>
13753 PR tree-optimization/80620
13754 PR tree-optimization/81403
13755 * tree-ssa-pre.c (phi_translate_1): Clear range and points-to
13756 info when re-using a VN table entry.
13758 2017-07-18 Richard Biener <rguenther@suse.de>
13760 PR tree-optimization/81418
13761 * tree-vect-loop.c (vectorizable_reduction): Properly compute
13762 vectype_in. Verify that with lane-reducing reduction operations
13763 we have a single def-use cycle.
13765 2017-07-17 Carl Love <cel@us.ibm.com>
13767 Revert commit r249424 2017-06-20 Carl Love <cel@us.ibm.com>
13769 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
13770 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
13771 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
13772 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
13773 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
13774 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
13775 VMULOSW): New enum "unspec" values.
13776 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
13777 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
13778 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
13779 altivec_vmulosw): New patterns.
13780 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
13781 VMULOSW): Add definitions.
13782 2017-07-17 Uros Bizjak <ubizjak@gmail.com>
13784 * config/alpha/alpha.c: Include predict.h.
13786 2017-07-17 Yury Gribov <tetra2005@gmail.com>
13788 * tree-vrp.c (compare_assert_loc): Fix comparison function
13789 to return predictable results.
13791 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
13793 * config/arc/arc.md (adddi3): Remove support for mexpand-adddi
13795 (subdi3): Likewise.
13796 * config/arc/arc.opt (mexpand-adddi): Deprecate it.
13797 * doc/invoke.texi (mexpand-adddi): Update text.
13799 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
13801 * config/arc/arc.md (clzsi2): Expand to an arc_clzsi2 instruction
13802 that also clobbers the CC register. The old expand code is moved
13804 (*arc_clzsi2): ... here.
13805 (ctzsi2): Expand to an arc_ctzsi2 instruction that also clobbers
13806 the CC register. The old expand code is moved to ...
13807 (arc_ctzsi2): ... here.
13809 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
13811 * config/arc/arc.opt (mindexed-loads): Use initial value
13812 TARGET_INDEXED_LOADS_DEFAULT.
13813 (mauto-modify-reg): Use initial value
13814 TARGET_AUTO_MODIFY_REG_DEFAULT.
13815 * config/arc/elf.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
13816 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
13817 * config/arc/linux.h (TARGET_INDEXED_LOADS_DEFAULT): Define.
13818 (TARGET_AUTO_MODIFY_REG_DEFAULT): Likewise.
13820 2017-07-17 Martin Liska <mliska@suse.cz>
13823 * opts.c (finish_options): Do not allow -fgnu-tm
13824 w/ -fsanitize={kernel-,}address. Say sorry.
13826 2017-07-17 Bin Cheng <bin.cheng@arm.com>
13829 * tree-loop-distribution.c (classify_partition): Only assert on
13830 numer of iterations.
13831 (merge_dep_scc_partitions): Delete prameter. Update function call.
13832 (distribute_loop): Remove code handling loop with unknown niters.
13833 (pass_loop_distribution::execute): Skip loop with unknown niters.
13835 2017-07-17 Bin Cheng <bin.cheng@arm.com>
13838 * tree-loop-distribution.c (merge_dep_scc_partitions): Sink call to
13839 function sort_partitions_by_post_order.
13841 2017-07-17 Bin Cheng <bin.cheng@arm.com>
13843 PR tree-optimization/81374
13844 * tree-loop-distribution.c (pass_loop_distribution::execute): Record
13845 the max index of basic blocks, rather than number of basic blocks.
13847 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
13849 * config/arc/arc-protos.h (arc_legitimate_pc_offset_p): Remove
13851 (arc_legitimate_pic_operand_p): Likewise.
13852 * config/arc/arc.c (arc_legitimate_pic_operand_p): Remove
13854 (arc_needs_pcl_p): Likewise.
13855 (arc_legitimate_pc_offset_p): Likewise.
13856 (arc_legitimate_pic_addr_p): Remove LABEL_REF case, as this
13857 function is also used in constrains.md.
13858 (arc_legitimate_constant_p): Use arc_legitimate_pic_addr_p to
13859 validate pic constants. Handle CONST_INT, CONST_DOUBLE, MINUS and
13860 PLUS. Only return true/false in known cases, otherwise assert.
13861 (arc_legitimate_address_p): Remove arc_legitimate_pic_addr_p as it
13862 is already called in arc_legitimate_constant_p.
13863 * config/arc/arc.h (CONSTANT_ADDRESS_P): Consider also LABEL for
13865 (LEGITIMATE_PIC_OPERAND_P): Use
13866 arc_raw_symbolic_reference_mentioned_p function.
13867 * config/arc/constraints.md (Cpc): Use arc_legitimate_pic_addr_p
13872 2017-07-17 Claudiu Zissulescu <claziss@synopsys.com>
13873 Andrew Burgess <andrew.burgess@embecosm.com>
13875 * config/arc/arc-protos.h (arc_compute_function_type): Change prototype.
13876 (arc_return_address_register): New function.
13877 * config/arc/arc.c (arc_handle_fndecl_attribute): New function.
13878 (arc_handle_fndecl_attribute): Add naked attribute.
13879 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Define.
13880 (TARGET_WARN_FUNC_RETURN): Likewise.
13881 (arc_allocate_stack_slots_for_args): New function.
13882 (arc_warn_func_return): Likewise.
13883 (machine_function): Change type fn_type.
13884 (arc_compute_function_type): Consider new naked function type,
13885 change function return type.
13886 (arc_must_save_register): Adapt to handle new
13887 arc_compute_function_type's return type.
13888 (arc_expand_prologue): Likewise.
13889 (arc_expand_epilogue): Likewise.
13890 (arc_return_address_regs): Delete.
13891 (arc_return_address_register): New function.
13892 (arc_epilogue_uses): Use above function.
13893 * config/arc/arc.h (arc_return_address_regs): Delete prototype.
13894 (arc_function_type): Change encoding, add naked type.
13895 (ARC_INTERRUPT_P): Change to handle the new encoding.
13896 (ARC_FAST_INTERRUPT_P): Likewise.
13897 (ARC_NORMAL_P): Define.
13898 (ARC_NAKED_P): Likewise.
13899 (arc_compute_function_type): Delete prototype.
13900 * config/arc/arc.md (in_ret_delay_slot): Use
13901 arc_return_address_register function.
13902 (simple_return): Likewise.
13903 (p_return_i): Likewise.
13905 2017-07-17 Jakub Jelinek <jakub@redhat.com>
13907 PR tree-optimization/81428
13908 * match.pd (X / X -> one): Don't optimize _Fract divisions, as 1
13909 can't be built for those types.
13911 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
13913 Remove stuff dead since r239246.
13915 * config/avr/avr-arch.h (avr_inform_devices): Remove dead proto.
13916 * config/avr/avr-devices.c (mcu_name, comparator, avr_mcus_str)
13917 (avr_inform_devices): Remove dead stuff.
13919 2017-07-17 Tamar Christina <tamar.christina@arm.com>
13921 * config/arm/arm_neon.h: Fix softp typo.
13923 2017-07-17 Jakub Jelinek <jakub@redhat.com>
13925 PR tree-optimization/81365
13926 * tree-ssa-phiprop.c (propagate_with_phi): When considering hoisting
13927 aggregate moves onto bb predecessor edges, make sure there are no
13928 loads that could alias the lhs in between the start of bb and the
13931 2017-07-17 Georg-Johann Lay <avr@gjlay.de>
13934 * config/avr/avr.c (avr_mul_highpart_cost): New static function.
13935 (avr_rtx_costs_1) [TRUNCATE]: Use it to compute mul_highpart cost.
13936 [LSHIFTRT, outer_code = TRUNCATE]: Same.
13938 2017-07-17 Jakub Jelinek <jakub@redhat.com>
13940 PR tree-optimization/81396
13941 * tree-ssa-math-opts.c (struct symbolic_number): Add n_ops field.
13942 (init_symbolic_number): Initialize it to 1.
13943 (perform_symbolic_merge): Add n_ops from both operands into the new
13945 (find_bswap_or_nop): Don't consider n->n == cmpnop computations
13946 without base_addr as useless if they need more than one operation.
13947 (bswap_replace): Handle !bswap case for NULL base_addr.
13949 2017-07-17 Tom de Vries <tom@codesourcery.com>
13952 * config/nvptx/nvptx.c (nvptx_single): Insert diverging branch as late
13955 2017-07-17 Sebastian Huber <sebastian.huber@embedded-brains.de>
13957 * config/sparc/rtemself.h (TARGET_OS_CPP_BUILTINS): Add
13958 conditional builtin define __FIX_LEON3FT_B2BST.
13960 2017-07-17 Daniel Cederman <cederman@gaisler.com>
13962 * config/sparc/t-rtems: Add mfix-gr712rc multilibs. Replace
13963 MULTILIB_EXCEPTIONS with MULTILIB_REQUIRED. Match -mfix-gr712rc
13966 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
13968 PR rtl-optimization/81424
13969 * optabs.c (prepare_cmp_insn): Use copy_to_reg instead of force_reg
13970 to remove potential trapping from operands if -fnon-call-exceptions.
13972 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
13974 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Use
13975 profile_proability for scalling.
13976 * scale_profile_for_vect_loop.c (scale_profile_for_vect_loop): Likewise.
13978 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
13980 * cgraph.c (cgraph_edge::redirect_call_stmt_to_caller): Cleanup.
13982 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
13984 * cfgloopmanip.c (scale_loop_profile): Avoid use of REG_BR_PROB_BASE
13985 fixpoint arithmetics.
13987 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
13989 * tree-ssa-loop-unswitch.c (hoist_guard): Avoid use of REG_BR_PROB_BASE
13990 fixpoint arithmetics.
13992 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
13994 * asan.c (create_cond_insert_point): Avoid use of REG_BR_PROB_BASE
13995 fixpoint arithmetics.
13997 2017-07-16 Jan Hubicka <hubicka@ucw.cz>
13999 * profile-count.h (profile_probability::from_reg_br_prob_note,
14000 profile_probability::to_reg_br_prob_note): New functions.
14001 * doc/rtl.texi (REG_BR_PROB_NOTE): Update documentation.
14002 * reg-notes.h (REG_BR_PROB, REG_BR_PRED): Update docs.
14003 * predict.c (probability_reliable_p): Update.
14004 (edge_probability_reliable_p): Update.
14005 (br_prob_note_reliable_p): Update.
14006 (invert_br_probabilities): Update.
14007 (add_reg_br_prob_note): New function.
14008 (combine_predictions_for_insn): Update.
14009 * asan.c (asan_clear_shadow): Update.
14010 * cfgbuild.c (compute_outgoing_frequencies): Update.
14011 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
14012 (update_br_prob_note): Update.
14013 (rtl_verify_edges): Update.
14014 (purge_dead_edges): Update.
14015 (fixup_reorder_chain): Update.
14016 * emit-rtl.c (try_split): Update.
14017 * ifcvt.c (cond_exec_process_insns): Update.
14018 (cond_exec_process_if_block): Update.
14019 (dead_or_predicable): Update.
14020 * internal-fn.c (expand_addsub_overflow): Update.
14021 (expand_neg_overflow): Update.
14022 (expand_mul_overflow): Update.
14023 * loop-doloop.c (doloop_modify): Update.
14024 * loop-unroll.c (compare_and_jump_seq): Update.
14025 * optabs.c (emit_cmp_and_jump_insn_1): Update.
14026 * predict.h: Update.
14027 * reorg.c (mostly_true_jump): Update.
14029 * config/aarch64/aarch64.c (aarch64_emit_unlikely_jump): Update.
14030 * config/alpha/alpha.c (emit_unlikely_jump): Update.
14031 * config/arc/arc.c: (emit_unlikely_jump): Update.
14032 * config/arm/arm.c: (emit_unlikely_jump): Update.
14033 * config/bfin/bfin.c (cbranch_predicted_taken_p): Update.
14034 * config/frv/frv.c (frv_print_operand_jump_hint): Update.
14035 * config/i386/i386.c (ix86_expand_split_stack_prologue): Update.
14036 (ix86_print_operand): Update.
14037 (ix86_split_fp_branch): Update.
14038 (predict_jump): Update.
14039 * config/ia64/ia64.c (ia64_print_operand): Update.
14040 * config/mmix/mmix.c (mmix_print_operand): Update.
14041 * config/powerpcspe/powerpcspe.c (output_cbranch): Update.
14042 (rs6000_expand_split_stack_prologue): Update.
14043 * config/rs6000/rs6000.c: Update.
14044 * config/s390/s390.c (s390_expand_vec_strlen): Update.
14045 (s390_expand_vec_movstr): Update.
14046 (s390_expand_cs_tdsi): Update.
14047 (s390_expand_split_stack_prologue): Update.
14048 * config/sh/sh.c (sh_print_operand): Update.
14049 (expand_cbranchsi4): Update.
14050 (expand_cbranchdi4): Update.
14051 * config/sparc/sparc.c (output_v9branch): Update.
14052 * config/spu/spu.c (get_branch_target): Update.
14053 (ea_load_store_inline): Update.
14054 * config/tilegx/tilegx.c (cbranch_predicted_p): Update.
14055 * config/tilepro/tilepro.c: Update.
14057 2017-07-16 Eric Botcazou <ebotcazou@adacore.com>
14059 * gimplify.c (mostly_copy_tree_r): Revert latest change.
14060 (gimplify_save_expr): Likewise.
14062 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
14064 * ipa-visibility.c (function_and_variable_visibility): Fix pasto.
14066 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
14068 * ipa-fnsummary.c (pass_data_ipa_fn_summary): Use
14070 * timevar.def (TV_IPA_FNSUMMARY): Define.
14072 2017-07-16 Daniel Cederman <cederman@gaisler.com>
14074 * config/sparc/sparc.md (divdf3_fix): Add NOP to prevent back
14075 to back store errata sensitive sequence from being generated.
14076 (sqrtdf2_fix): Likewise.
14078 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
14080 * tree-ssa-threadupdate.c (compute_path_counts,
14081 update_joiner_offpath_counts): Use profile_probability.
14083 2017-07-15 Thomas Preud'homme <thomas.preudhomme@arm.com>
14086 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14088 * config/arm/arm-c.c (arm_cpu_builtins): Define
14089 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
14091 2017-07-14 Kelvin Nilsen <kelvin@gcc.gnu.org>
14093 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14094 array entries to represent __ieee128 versions of the
14095 scalar_test_data_class, scalar_test_neg, scalar_extract_exp,
14096 scalar_extract_sig, and scalar_insert_exp built-in functions.
14097 (altivec_resolve_overloaded_builtin): Add special case handling
14098 for the __builtin_scalar_insert_exp function, as represented by
14099 the P9V_BUILTIN_VEC_VSIEDP constant.
14100 * config/rs6000/rs6000-builtin.def (VSEEQP): Add scalar extract
14101 exponent support for __ieee128 argument.
14102 (VSESQP): Add scalar extract signature support for __ieee128
14104 (VSTDCNQP): Add scalar test negative support for __ieee128
14106 (VSIEQP): Add scalar insert exponent support for __int128 argument
14107 with __ieee128 result.
14108 (VSIEQPF): Add scalar insert exponent support for __ieee128
14109 argument with __ieee128 result.
14110 (VSTDCQP): Add scalar test data class support for __ieee128
14112 (VSTDCNQP): Add overload support for scalar test negative with
14113 __ieee128 argument.
14114 (VSTDCQP): Add overload support for scalar test data class
14115 __ieee128 argument.
14116 * config/rs6000/vsx.md (UNSPEC_VSX_SXSIG) Replace
14117 UNSPEC_VSX_SXSIGDP.
14118 (UNSPEC_VSX_SIEXPQP): New constant.
14119 (xsxexpqp): New insn for VSX scalar extract exponent quad
14121 (xsxsigqp): New insn for VSX scalar extract significand quad
14123 (xsiexpqpf): New insn for VSX scalar insert exponent quad
14124 precision with floating point argument.
14125 (xststdcqp): New expand for VSX scalar test data class quad
14127 (xststdcnegqp): New expand for VSX scalar test negative quad
14129 (xststdcqp): New insn to match expansions for VSX scalar test data
14130 class quad precision and VSX scalar test negative quad precision.
14131 * config/rs6000/rs6000.c (rs6000_expand_binop_builtin): Add
14132 special case operand checking to enforce that second operand of
14133 VSX scalar test data class with quad precision argument is a 7-bit
14135 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
14136 prototypes and descriptions of __ieee128 versions of
14137 scalar_extract_exp, scalar_extract_sig, scalar_insert_exp,
14138 scalar_test_data_class, and scalar_test_neg built-in functions.
14140 2016-07-14 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14142 PR tree-optimization/81162
14143 * gimple-ssa-strength-reduction.c (replace_mult_candidate): Don't
14144 replace a negate with an add.
14146 2017-07-14 James Greenhalgh <james.greenhalgh@arm.com>
14148 * doc/invoke.texi (arm/-mcpu): Document +crypto.
14150 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14152 * config/arm/arm-c.c (arm_cpu_builtins): Define
14153 __ARM_FEATURE_NUMERIC_MAXMIN solely based on TARGET_VFP5.
14155 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14157 * config/arm/arm-cpus.in (cortex-r52): Add new entry.
14158 (armv8-r): Set ARM Cortex-R52 as default CPU.
14159 * config/arm/arm-tables.opt: Regenerate.
14160 * config/arm/arm-tune.md: Regenerate.
14161 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
14163 * doc/invoke.texi: Mention -mtune=cortex-r52 and availability of fp.dp
14164 extension for -mcpu=cortex-r52.
14166 2017-07-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
14168 * config/arm/arm-isa.h (isa_bit_FP_ARMv8): Delete enumerator.
14169 (ISA_FP_ARMv8): Define as ISA_FPv5 and ISA_FP_D32.
14170 * config/arm/arm-cpus.in (armv8-r): Define fp.sp as enabling FPv5.
14171 (fp-armv8): Define it as FP_ARMv8 only.
14172 config/arm/arm.h (TARGET_FPU_ARMV8): Delete.
14173 (TARGET_VFP_FP16INST): Define using TARGET_VFP5 rather than
14175 config/arm/arm.c (arm_rtx_costs_internal): Replace checks against
14176 TARGET_FPU_ARMV8 by checks against TARGET_VFP5.
14177 * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Define
14178 first ARM_CHECK_BUILTIN_MODE definition using TARGET_VFP5 rather
14179 than TARGET_FPU_ARMV8.
14180 * config/arm/arm-c.c (arm_cpu_builtins): Likewise for
14181 __ARM_FEATURE_NUMERIC_MAXMIN macro definition.
14182 * config/arm/arm.md (cmov<mode>): Condition on TARGET_VFP5 rather than
14184 * config/arm/neon.md (neon_vrint): Likewise.
14185 (neon_vcvt): Likewise.
14186 (neon_<fmaxmin_op><mode>): Likewise.
14187 (<fmaxmin><mode>3): Likewise.
14188 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Likewise.
14189 * config/arm/predicates.md (arm_cond_move_operator): Check against
14190 TARGET_VFP5 rather than TARGET_FPU_ARMV8 and fix spacing.
14192 2017-07-14 Jackson Woodruff <jackson.woodruff@arm.com>
14194 * config/aarch64/aarch64.c (aarch64_print_operand): Move comments
14195 to top of function.
14197 2017-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14199 * gimple-ssa-store-merging.c (clear_bit_region): Replace reference to
14200 loop in comment with memset.
14202 2017-07-14 Martin Liska <mliska@suse.cz>
14204 * cfgexpand.c (expand_gimple_basic_block): Remove dead comment.
14205 * dwarf2out.c (is_java): Remove the function.
14206 (output_pubname): Remove usage of the function.
14207 (lower_bound_default): Remove usage of DW_LANG_Java.
14208 (gen_compile_unit_die): Likewise.
14209 * gcc.c: Remove compiler defaults for .java and .zip files.
14210 * gimple-expr.c (remove_suffix): Change as there's no longer
14211 extension than 4-letter one.
14212 * gimplify.c (mostly_copy_tree_r): Remove Java-special part.
14213 (gimplify_save_expr): Likewise.
14214 * ipa-utils.h (polymorphic_type_binfo_p): Remove the comment
14215 as it's possible even for other languages than Java.
14216 * langhooks.h (struct lang_hooks): Remove Java from a comment.
14217 * lto-opts.c (lto_write_options): Remove reference to Java.
14218 * opts.c (strip_off_ending): Update file extension handling.
14219 * tree-cfg.c (verify_gimple_call): Remove comment with Java.
14220 * tree-eh.c (lower_resx): Likewise.
14221 * tree.c (free_lang_data_in_type): Remove dead code.
14222 (find_decls_types_r): Likewise.
14223 (build_common_builtin_nodes): Remove Java from a comment.
14224 (verify_type): Remove dead code.
14225 * varasm.c (assemble_external): Remove Java from a comment.
14227 2017-07-14 Martin Liska <mliska@suse.cz>
14229 * opts.c (finish_options): Add quotes.
14230 (common_handle_option): Likewise.
14232 2017-07-14 Martin Liska <mliska@suse.cz>
14234 * dbxout.c (get_lang_number): Do not handle GNU Pascal.
14235 * dbxout.h (extern void dbxout_stab_value_internal_label_diff):
14236 Remove N_SO_PASCAL.
14237 * dwarf2out.c (lower_bound_default): Do not handle
14239 (gen_compile_unit_die): Likewise.
14240 * gcc.c: Remove default extension binding for GNU Pascal.
14241 * stmt.c: Remove Pascal language from a comment.
14242 * xcoffout.c: Likewise.
14244 2017-07-13 David Malcolm <dmalcolm@redhat.com>
14247 * diagnostic-show-locus.c (fixit_cmp): New function.
14248 (layout::layout): Sort m_fixit_hints.
14249 (column_range::column_range): Assert that the values are valid.
14250 (struct char_span): New struct.
14251 (correction::overwrite): New method.
14252 (struct source_line): New struct.
14253 (line_corrections::add_hint): Add assertions. Reimplement memcpy
14254 calls in terms of classes source_line and char_span, and
14255 correction::overwrite.
14256 (selftest::test_overlapped_fixit_printing_2): New function.
14257 (selftest::diagnostic_show_locus_c_tests): Call it.
14259 2017-07-13 Will Schmidt <will_schmidt@vnet.ibm.com>
14261 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Return
14262 early if there is no lhs.
14264 2017-07-13 Martin Liska <mliska@suse.cz>
14266 * dwarf2out.c (gen_pointer_type_die): Remove dead code.
14267 (gen_reference_type_die): Likewise.
14268 * stor-layout.c: Remove Pascal-related comment.
14270 2017-07-13 Martin Liska <mliska@suse.cz>
14272 * opts.c (finish_options): Add quotes to error messages.
14273 (parse_sanitizer_options): Likewise.
14275 2017-07-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
14277 * doc/invoke.texi (armv8-r): Document +fp.sp ARMv8-R extension.
14279 2017-07-13 Richard Earnshaw <rearnsha@arm.com>
14281 * config/arm/vxworks.h (TARGET_ENDIAN_DEFAULT): Define.
14283 2017-07-13 Maxim Ostapenko <m.ostapenko@samsung.com>
14285 * asan.c (asan_emit_allocas_unpoison): Use ptr_mode for arguments
14287 * builtins.c (expand_asan_emit_allocas_unpoison): Likewise.
14289 2017-07-12 Michael Meissner <meissner@linux.vnet.ibm.com>
14292 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): If GLIBC
14293 provides the hardware capability bits, define the macro
14294 __BUILTIN_CPU_SUPPORTS__.
14295 * config/rs6000/rs6000.c (cpu_expand_builtin): Generate a warning
14296 if GLIBC does not provide the hardware capability bits. Add a
14297 gcc_unreachable call if the built-in cpu function is neither
14298 __builtin_cpu_is nor __builtin_cpu_supports.
14299 (rs6000_get_function_versions_dispatcher): Change the warning
14300 that an old GLIBC is used which does not export the capability
14301 bits to be an error.
14302 * doc/extend.texi (target_clones attribute): Document the
14303 restriction that GLIBC 2.23 or newer is needed on the PowerPC.
14304 (PowerPC built-in functions): Document that GLIBC 2.23 or newer is
14305 needed by __builtin_cpu_is and __builtin_cpu_supports. Document
14306 the macros defined by GCC if the newer GLIBC is available.
14308 2017-07-12 Jeff Law <law@redhat.com>
14310 * config/riscv/riscv.c: Remove unnecessary includes. Reorder
14311 remaining includes slightly.
14312 * config/riscv/riscv-builtins.c: Include profile-count.h.
14314 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
14317 * config/avr/avr.c (avr_set_current_function): In diagnostic
14318 messages: Quote keywords and (parts of) identifiers.
14319 [WITH_AVRLIBC]: Warn for functions named "ISR", "SIGNAL" or
14322 2017-07-12 Carl Love <cel@us.ibm.com>
14324 * config/rs6000/rs6000-c.c: Add support for built-in functions
14325 vector bool char vec_revb (vector bool char);
14326 vector bool short vec_revb (vector short char);
14327 vector bool int vec_revb (vector bool int);
14328 vector bool long long vec_revb (vector bool long long);
14329 * doc/extend.texi: Update the built-in documentation file for the
14330 new built-in functions.
14332 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14334 * config/s390/s390.md: Remove movcc splitter.
14336 2017-07-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14338 * config/s390/s390.c (s390_rtx_costs): Return proper costs for
14339 load/store on condition.
14341 2017-07-12 Georg-Johann Lay <avr@gjlay.de>
14344 * config/avr/avr.c (avr_encode_section_info)
14345 [progmem && !TREE_READONLY]: Error if progmem object needs
14348 2017-07-11 Michael Collison <michael.collison@arm.com>
14350 * config/aarch64/aarch64-simd.md (aarch64_sub<mode>_compare0):
14353 2017-07-11 Carl Love <cel@us.ibm.com>
14355 * config/rs6000/rs6000-c.c: Add support for builtins
14356 vector unsigned int vec_parity_lsbb (vector signed int);
14357 vector unsigned int vec_parity_lsbb (vector unsigned int);
14358 vector unsigned __int128 vec_parity_lsbb (vector signed __int128);
14359 vector unsigned __int128 vec_parity_lsbb (vector unsigned __int128);
14360 vector unsigned long long vec_parity_lsbb (vector signed long long);
14361 vector unsigned long long vec_parity_lsbb (vector unsigned long long);
14362 * config/rs6000/rs6000-builtin.def (VPARITY_LSBB): Add BU_P9V_OVERLOAD1.
14363 * config/rs6000/altivec.h (vec_parity_lsbb): Add define.
14364 * doc/extend.texi: Update the built-in documentation file for the
14365 new built-in functions.
14367 2017-07-11 David Malcolm <dmalcolm@redhat.com>
14369 * diagnostic-show-locus.c: Include "gcc-rich-location.h".
14370 (layout::m_primary_loc): New field.
14371 (layout::layout): Initialize new field. Move location filtering
14372 logic from here to...
14373 (layout::maybe_add_location_range): ...this new method. Add
14374 support for filtering to just the lines already specified by other
14376 (layout::will_show_line_p): New method.
14377 (gcc_rich_location::add_location_if_nearby): New method.
14378 (selftest::test_add_location_if_nearby): New test function.
14379 (selftest::diagnostic_show_locus_c_tests): Call it.
14380 * gcc-rich-location.h (gcc_rich_location::add_location_if_nearby):
14383 2017-07-11 Tom de Vries <tom@codesourcery.com>
14385 * config/nvptx/nvptx.c (WORKAROUND_PTXJIT_BUG): New macro.
14386 (bb_first_real_insn): New function.
14387 (nvptx_single): Add extra initialization of broadcasted condition
14390 2017-07-11 Nathan Sidwell <nathan@acm.org>
14392 * dwarf2out.c (gen_member_die): Remove useless check for anon ctors.
14394 2017-07-11 Georg-Johann Lay <avr@gjlay.de>
14396 * doc/extend.texi (AVR Function Attributes): Remove weblink to
14397 Binutils doc as TEXI will mess them up.
14398 * doc/invoke.texi (AVR Options): Same here.
14400 2017-07-11 Daniel Cederman <cederman@gaisler.com>
14402 * config/sparc/sparc.opt (mfix-ut700): New option.
14403 (mfix-gr712rc): Likewise.
14404 (sparc_fix_b2bst): New variable.
14405 * doc/invoke.texi (SPARC options): Document them.
14406 (ARM options): Fix warnings.
14407 * config/sparc/sparc.c (sparc_do_work_around_errata): Insert NOP
14408 instructions to prevent sequences that can trigger the store-store
14409 errata for certain LEON3FT processors.
14410 (pass_work_around_errata::gate): Also test sparc_fix_b2bst.
14411 (sparc_option_override): Set sparc_fix_b2bst appropriately.
14412 * config/sparc/sparc.md (fix_b2bst): New attribute.
14413 (in_branch_delay): Prevent stores in delay slot if fix_b2bst.
14415 2017-07-10 Uros Bizjak <ubizjak@gmail.com>
14418 * config/i386/i386.md (divsf3): Add TARGET_SSE to TARGET_SSE_MATH.
14420 (*rsqrtsf2_sse): Ditto.
14422 (div<mode>3): Macroize insn from divdf3 and divsf3
14423 using MODEF mode iterator.
14425 2017-07-10 Martin Sebor <msebor@redhat.com>
14427 PR tree-optimization/80397
14428 * gimple-ssa-sprintf.c (format_integer): Use INTEGRAL_TYPE_P()
14429 instead of testing for equality to INTEGER_TYPE.
14431 2017-07-10 Vineet Gupta <vgupta@synopsys.com>
14433 * config.gcc: Remove uclibc from arc target spec.
14435 2017-07-10 Claudiu Zissulescu <claziss@synopsys.com>
14437 * config/arc/arc.h (ADDITIONAL_REGISTER_NAMES): Define.
14439 2017-07-07 Jan Hubicka <hubicka@ucw.cz>
14442 * lto-wrapper.c (remove_option): New function.
14443 (merge_and_complain): Merge PIC/PIE options more realistically.
14445 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
14447 Better ISR prologues by supporting GASes __gcc_isr pseudo insn.
14451 * configure.ac [target=avr]: Add GAS check for -mgcc-isr.
14452 (HAVE_AS_AVR_MGCCISR_OPTION): If so, AC_DEFINE it.
14453 * config.in: Regenerate.
14454 * configure: Regenerate.
14455 * doc/extend.texi (AVR Function Attributes) <no_gccisr>: Document it.
14456 * doc/invoke.texi (AVR Options) <-mgas-isr-prologues>: Document it.
14457 * config/avr/avr.opt (-mgas-isr-prologues): New option and...
14458 (TARGET_GASISR_PROLOGUES): ...target mask.
14459 * common/config/avr/avr-common.c
14460 (avr_option_optimization_table) [OPT_LEVELS_1_PLUS_NOT_DEBUG]:
14461 Set -mgas-isr-prologues.
14462 * config/avr/avr-passes.def (avr_pass_pre_proep): Add
14463 INSERT_PASS_BEFORE for it.
14464 * config/avr/avr-protos.h (make_avr_pass_pre_proep): New proto.
14465 * config/avr/avr.c (avr_option_override)
14466 [!HAVE_AS_AVR_MGCCISR_OPTION]: Unset TARGET_GASISR_PROLOGUES.
14467 (avr_no_gccisr_function_p, avr_hregs_split_reg): New static functions.
14468 (avr_attribute_table) <no_gccisr>: Add new function attribute.
14469 (avr_set_current_function) <is_no_gccisr>: Init machine field.
14470 (avr_pass_data_pre_proep, avr_pass_pre_proep): New pass data
14472 (make_avr_pass_pre_proep): New function.
14473 (emit_push_sfr) <treg>: Add argument to function and use it
14474 instead of TMP_REG.
14475 (avr_expand_prologue) [machine->gasisr.maybe]: Emit gasisr insn
14476 and set machine->gasisr.yes.
14477 (avr_expand_epilogue) [machine->gasisr.yes]: Similar.
14478 (avr_asm_function_end_prologue) [machine->gasisr.yes]: Add
14479 __gcc_isr.n_pushed to .L__stack_usage.
14480 (TARGET_ASM_FINAL_POSTSCAN_INSN): Define to...
14481 (avr_asm_final_postscan_insn): ...this new static function.
14482 * config/avr/avr.h (machine_function)
14483 <is_no_gccisr, use_L__stack_usage>: New fields.
14484 <gasisr, gasisr.yes, gasisr.maybe, gasisr.regno>: New fields.
14485 * config/avr/avr.md (UNSPECV_GASISR): Add unspecv enum.
14486 (GASISR_Prologue, GASISR_Epilogue, GASISR_Done): New define_constants.
14487 (gasisr, *gasisr): New expander and insn.
14488 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
14489 [HAVE_AS_AVR_MGCCISR_OPTION]: Print asm_gccisr spec.
14490 * config/avr/specs.h (ASM_SPEC) <asm_gccisr>: Add sub spec.
14492 2017-07-10 Richard Earnshaw <rearnsha@arm.com>
14494 * config/arm/parsecpu.awk (gen_comm_data): Do not escape single quotes
14497 2017-07-10 Georg-Johann Lay <avr@gjlay.de>
14499 Move jump-tables out of .text again.
14502 * config/avr/avr.c (ASM_OUTPUT_ADDR_VEC_ELT): Remove function.
14503 (ASM_OUTPUT_ADDR_VEC): New function.
14504 (avr_adjust_insn_length) [JUMP_TABLE_DATA_P]: Return 0.
14505 (avr_final_prescan_insn) [avr_log.insn_addresses]: Dump
14506 INSN_ADDRESSes as asm comment.
14507 * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION): Adjust comment.
14508 (ASM_OUTPUT_ADDR_VEC_ELT): Remove define.
14509 (ASM_OUTPUT_ADDR_VEC): Define to avr_output_addr_vec.
14510 * config/avr/avr.md (*tablejump): Adjust comment.
14511 * config/avr/elf.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
14512 * config/avr/avr-log.c (avr_log_set_avr_log) <insn_addresses>:
14514 * config/avr/avr-protos.h (avr_output_addr_vec_elt): Remove proto.
14515 (avr_output_addr_vec): New proto.
14516 (avr_log_t) <insn_addresses>: New field.
14518 2017-07-09 H.J. Lu <hongjiu.lu@intel.com>
14521 * config/i386/i386.c (ix86_function_arg_advance): Set
14522 outgoing_args_on_stack to true if there are outgoing arguments
14524 (ix86_function_arg): Likewise.
14525 (ix86_get_drap_rtx): Use DRAP only if there are outgoing
14526 arguments on stack and ACCUMULATE_OUTGOING_ARGS is false.
14527 * config/i386/i386.h (machine_function): Add
14528 outgoing_args_on_stack.
14530 2017-07-09 Krister Walfridsson <krister.walfridsson@gmail.com>
14532 * config.gcc (*-*-netbsd*): Remove check for NetBSD versions not
14533 supporting pthreds.
14534 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always enable pthreads.
14536 2017-07-08 Richard Sandiford <richard.sandiford@linaro.org>
14538 * Makefile.in (HOOKS_H, RTL_BASE_H, FUNCTION_H, EXPR_H, REGS_H)
14539 (REAL_H): Remove $(MACHMODE_H).
14540 (FIXED_VALUE_H, TREE_CORE_H, CFGLOOP_H): Remove $(MACHMODE_H) and
14542 (CORETYPES_H): Add signop.h, wide-int.h, wide-int-print.h,
14543 $(MACHMODE_H) and double-int.h.
14544 (build/min-insn-modes.o): Depend on $(CORETYPES_H) rather than
14546 (gengtype-state.o, gengtype.o, build/gengtype.o): Don't depend on
14549 2017-07-07 Andrew Pinski <apinski@cavium.com>
14551 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Check
14552 prev_set and curr_set for AARCH64_FUSE_ALU_BRANCH.
14554 2017-07-07 Michael Meissner <meissner@linux.vnet.ibm.com>
14556 * config/rs6000/rs6000.c (rs6000_get_function_versions_dispatcher):
14557 Add warning if GCC was not configured to link against a GLIBC that
14558 exports the hardware capability bits.
14559 (make_resolver_func): Make resolver function private and not a
14560 COMDAT function. Create the name with clone_function_name instead
14561 of make_unique_name.
14564 * config/rs6000/rs6000.md (HI sign_extend splitter): Use the
14565 correct operand in doing the split.
14567 2017-07-07 Carl Love <cel@us.ibm.com>
14569 * config/rs6000/rs6000-c: Add support for built-in function
14570 vector unsigned short vec_pack_to_short_fp32 (vector float,
14572 * config/rs6000/rs6000-builtin.def (CONVERT_4F32_8I16): Add
14573 BU_P9V_AV_2 and BU_P9V_OVERLOAD_2 definitions.
14574 * config/rs6000/altivec.h (vec_pack_to_short_fp32): Add define.
14575 * config/rs6000/altivec.md(UNSPEC_CONVERT_4F32_8I16): Add UNSPEC.
14576 (convert_4f32_8i16): Add define_expand.
14577 * doc/extend.texi: Update the built-in documentation file for the
14578 new built-in function.
14580 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14582 * config/sparc/m8.md: New file.
14583 * config/sparc/sparc.md: Include m8.md.
14585 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14587 * config/sparc/sparc.opt: New option -mvis4b.
14588 * config/sparc/sparc.c (dump_target_flag_bits): Handle MASK_VIS4B.
14589 (sparc_option_override): Handle VIS4B.
14590 (enum sparc_builtins): Define
14591 SPARC_BUILTIN_DICTUNPACK{8,16,32},
14592 SPARC_BUILTIN_FPCMP{LE,GT,EQ,NE}{8,16,32}SHL,
14593 SPARC_BUILTIN_FPCMPU{LE,GT}{8,16,32}SHL,
14594 SPARC_BUILTIN_FPCMPDE{8,16,32}SHL and
14595 SPARC_BUILTIN_FPCMPUR{8,16,32}SHL.
14596 (check_constant_argument): New function.
14597 (sparc_vis_init_builtins): Define builtins
14598 __builtin_vis_dictunpack{8,16,32},
14599 __builtin_vis_fpcmp{le,gt,eq,ne}{8,16,32}shl,
14600 __builtin_vis_fpcmpu{le,gt}{8,16,32}shl,
14601 __builtin_vis_fpcmpde{8,16,32}shl and
14602 __builtin_vis_fpcmpur{8,16,32}shl.
14603 (sparc_expand_builtin): Check that the constant operands to
14604 __builtin_vis_fpcmp*shl and _builtin_vis_dictunpack* are indeed
14605 constant and in range.
14606 * config/sparc/sparc-c.c (sparc_target_macros): Handle
14608 * config/sparc/sparc.h (SPARC_IMM2_P): Define.
14609 (SPARC_IMM5_P): Likewise.
14610 * config/sparc/sparc.md (cpu_feature): Add new feagure "vis4b".
14611 (enabled): Handle vis4b.
14612 (UNSPEC_DICTUNPACK): New unspec.
14613 (UNSPEC_FPCMPSHL): Likewise.
14614 (UNSPEC_FPUCMPSHL): Likewise.
14615 (UNSPEC_FPCMPDESHL): Likewise.
14616 (UNSPEC_FPCMPURSHL): Likewise.
14617 (cpu_feature): New CPU feature `vis4b'.
14618 (dictunpack{8,16,32}): New insns.
14619 (FPCSMODE): New mode iterator.
14620 (fpcscond): New code iterator.
14621 (fpcsucond): Likewise.
14622 (fpcmp{le,gt,eq,ne}{8,16,32}{si,di}shl): New insns.
14623 (fpcmpu{le,gt}{8,16,32}{si,di}shl): Likewise.
14624 (fpcmpde{8,16,32}{si,di}shl): Likewise.
14625 (fpcmpur{8,16,32}{si,di}shl): Likewise.
14626 * config/sparc/constraints.md: Define constraints `q' for unsigned
14627 2-bit integer constants and `t' for unsigned 5-bit integer
14629 * config/sparc/predicates.md (imm5_operand_dictunpack8): New
14631 (imm5_operand_dictunpack16): Likewise.
14632 (imm5_operand_dictunpack32): Likewise.
14633 (imm2_operand): Likewise.
14634 * doc/invoke.texi (SPARC Options): Document -mvis4b.
14635 * doc/extend.texi (SPARC VIS Built-in Functions): Document the
14636 ditunpack* and fpcmp*shl builtins.
14638 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14640 * config.gcc: Handle m8 in --with-{cpu,tune} options.
14641 * config.in: Add HAVE_AS_SPARC6 define.
14642 * config/sparc/driver-sparc.c (cpu_names): Add entry for the SPARC
14644 * config/sparc/sol2.h (CPP_CPU64_DEFAULT_SPEC): Define for
14646 (ASM_CPU32_DEFAUILT_SPEC): Likewise.
14647 (CPP_CPU_SPEC): Handle m8.
14648 (ASM_CPU_SPEC): Likewise.
14649 * config/sparc/sparc-opts.h (enum processor_type): Add
14651 * config/sparc/sparc.c (m8_costs): New struct.
14652 (sparc_option_override): Handle TARGET_CPU_m8.
14653 (sparc32_initialize_trampoline): Likewise.
14654 (sparc64_initialize_trampoline): Likewise.
14655 (sparc_issue_rate): Likewise.
14656 (sparc_register_move_cost): Likewise.
14657 * config/sparc/sparc.h (TARGET_CPU_m8): Define.
14658 (CPP_CPU64_DEFAULT_SPEC): Define for M8.
14659 (ASM_CPU64_DEFAULT_SPEC): Likewise.
14660 (CPP_CPU_SPEC): Handle M8.
14661 (ASM_CPU_SPEC): Likewise.
14662 (AS_M8_FLAG): Define.
14663 * config/sparc/sparc.md: Add m8 to the cpu attribute.
14664 * config/sparc/sparc.opt: New option -mcpu=m8 for sparc targets.
14665 * configure.ac (HAVE_AS_SPARC6): Check for assembler support for
14667 * configure: Regenerate.
14668 * doc/invoke.texi (SPARC Options): Document -mcpu=m8 and
14671 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14673 * config/sparc/niagara7.md: Rework the DFA scheduler to use insn
14675 * config/sparc/sparc.md: Remove the `v3pipe' insn attribute.
14676 ("*movdi_insn_sp32"): Do not set v3pipe.
14677 ("*movsi_insn"): Likewise.
14678 ("*movdi_insn_sp64"): Likewise.
14679 ("*movsf_insn"): Likewise.
14680 ("*movdf_insn_sp32"): Likewise.
14681 ("*movdf_insn_sp64"): Likewise.
14682 ("*zero_extendsidi2_insn_sp64"): Likewise.
14683 ("*sign_extendsidi2_insn"): Likewise.
14684 ("*mov<VM32:mode>_insn"): Likewise.
14685 ("*mov<VM64:mode>_insn_sp64"): Likewise.
14686 ("*mov<VM64:mode>_insn_sp32"): Likewise.
14687 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
14688 ("<vlop:code><VL:mode>3"): Likewise.
14689 ("*not_<vlop:code><VL:mode>3"): Likewise.
14690 ("*nand<VL:mode>_vis"): Likewise.
14691 ("*<vlnotop:code>_not1<VL:mode>_vis"): Likewise.
14692 ("*<vlnotop:code>_not2<VL:mode>_vis"): Likewise.
14693 ("one_cmpl<VL:mode>2"): Likewise.
14694 ("faligndata<VM64:mode>_vis"): Likewise.
14695 ("alignaddrsi_vis"): Likewise.
14696 ("alignaddrdi_vis"): Likweise.
14697 ("alignaddrlsi_vis"): Likewise.
14698 ("alignaddrldi_vis"): Likewise.
14699 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
14700 ("bmaskdi_vis"): Likewise.
14701 ("bmasksi_vis"): Likewise.
14702 ("bshuffle<VM64:mode>_vis"): Likewise.
14703 ("cmask8<P:mode>_vis"): Likewise.
14704 ("cmask16<P:mode>_vis"): Likewise.
14705 ("cmask32<P:mode>_vis"): Likewise.
14706 ("pdistn<P:mode>_vis"): Likewise.
14707 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
14709 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14711 * config/sparc/sparc.md ("subtype"): New insn attribute.
14712 ("*wrgsr_sp64"): Set insn subtype.
14713 ("*rdgsr_sp64"): Likewise.
14714 ("alignaddrsi_vis"): Likewise.
14715 ("alignaddrdi_vis"): Likewise.
14716 ("alignaddrlsi_vis"): Likewise.
14717 ("alignaddrldi_vis"): Likewise.
14718 ("<plusminus_insn><VADDSUB:mode>3"): Likewise.
14719 ("fexpand_vis"): Likewise.
14720 ("fpmerge_vis"): Likewise.
14721 ("faligndata<VM64:mode>_vis"): Likewise.
14722 ("bshuffle<VM64:mode>_vis"): Likewise.
14723 ("cmask8<P:mode>_vis"): Likewise.
14724 ("cmask16<P:mode>_vis"): Likewise.
14725 ("cmask32<P:mode>_vis"): Likewise.
14726 ("fchksm16_vis"): Likewise.
14727 ("v<vis3_shift_patname><GCM:mode>3"): Likewise.
14728 ("fmean16_vis"): Likewise.
14729 ("fp<plusminus_insn>64_vis"): Likewise.
14730 ("<plusminus_insn>v8qi3"): Likewise.
14731 ("<vis3_addsub_ss_patname><VASS:mode>3"): Likewise.
14732 ("<vis4_minmax_patname><VMMAX:mode>3"): Likewise.
14733 ("<vis4_uminmax_patname><VMMAX:mode>3"): Likewise.
14734 ("<vis3_addsub_ss_patname>v8qi3"): Likewise.
14735 ("<vis4_addsub_us_patname><VAUS:mode>3"): Likewise.
14736 ("*movqi_insn"): Likewise.
14737 ("*movhi_insn"): Likewise.
14738 ("*movsi_insn"): Likewise.
14739 ("movsi_pic_gotdata_op"): Likewise.
14740 ("*movdi_insn_sp32"): Likewise.
14741 ("*movdi_insn_sp64"): Likewise.
14742 ("movdi_pic_gotdata_op"): Likewise.
14743 ("*movsf_insn"): Likewise.
14744 ("*movdf_insn_sp32"): Likewise.
14745 ("*movdf_insn_sp64"): Likewise.
14746 ("*zero_extendhisi2_insn"): Likewise.
14747 ("*zero_extendqihi2_insn"): Likewise.
14748 ("*zero_extendqisi2_insn"): Likewise.
14749 ("*zero_extendqidi2_insn"): Likewise.
14750 ("*zero_extendhidi2_insn"): Likewise.
14751 ("*zero_extendsidi2_insn_sp64"): Likewise.
14752 ("ldfsr"): Likewise.
14753 ("prefetch_64"): Likewise.
14754 ("prefetch_32"): Likewise.
14755 ("tie_ld32"): Likewise.
14756 ("tie_ld64"): Likewise.
14757 ("*tldo_ldub_sp32"): Likewise.
14758 ("*tldo_ldub1_sp32"): Likewise.
14759 ("*tldo_ldub2_sp32"): Likewise.
14760 ("*tldo_ldub_sp64"): Likewise.
14761 ("*tldo_ldub1_sp64"): Likewise.
14762 ("*tldo_ldub2_sp64"): Likewise.
14763 ("*tldo_ldub3_sp64"): Likewise.
14764 ("*tldo_lduh_sp32"): Likewise.
14765 ("*tldo_lduh1_sp32"): Likewise.
14766 ("*tldo_lduh_sp64"): Likewise.
14767 ("*tldo_lduh1_sp64"): Likewise.
14768 ("*tldo_lduh2_sp64"): Likewise.
14769 ("*tldo_lduw_sp32"): Likewise.
14770 ("*tldo_lduw_sp64"): Likewise.
14771 ("*tldo_lduw1_sp64"): Likewise.
14772 ("*tldo_ldx_sp64"): Likewise.
14773 ("*mov<VM32:mode>_insn"): Likewise.
14774 ("*mov<VM64:mode>_insn_sp64"): Likewise.
14775 ("*mov<VM64:mode>_insn_sp32"): Likewise.
14777 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14779 * config/sparc/sparc.md ("type"): New insn type viscmp.
14780 ("fcmp<gcond:code><GCM:gcm_name><P:mode>_vis"): Set insn type to
14782 ("fpcmp<gcond:code>8<P:mode>_vis"): Likewise.
14783 ("fucmp<gcond:code>8<P:mode>_vis"): Likewise.
14784 ("fpcmpu<gcond:code><GCM:gcm_name><P:mode>_vis"): Likewise.
14785 * config/sparc/niagara7.md ("n7_vis_logical_v3pipe"): Handle
14787 ("n7_vis_logical_11cycle"): Likewise.
14788 * config/sparc/niagara4.md ("n4_vis_logical"): Likewise.
14789 * config/sparc/niagara2.md ("niag3_vis": Likewise.
14790 * config/sparc/niagara.md ("niag_vis"): Likewise.
14791 * config/sparc/ultra3.md ("us3_fga"): Likewise.
14792 * config/sparc/ultra1_2.md ("us1_fga_double"): Likewise.
14794 2017-07-07 Jose E. Marchesi <jose.marchesi@oracle.com>
14796 * config/sparc/sparc.md: New instruction type `bmask'.
14797 (bmaskdi_vis): Use the `bmask' type.
14798 (bmasksi_vis): Likewise.
14799 * config/sparc/ultra3.md (us3_array): Likewise.
14800 * config/sparc/niagara7.md (n7_array): Likewise.
14801 * config/sparc/niagara4.md (n4_array): Likewise.
14802 * config/sparc/niagara2.md (niag2_vis): Likewise.
14803 (niag3_vis): Likewise.
14804 * config/sparc/niagara.md (niag_vis): Likewise.
14806 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
14808 * ipa-comdats.c: Remove optimize check from gate.
14809 * ipa-fnsummary.c (ipa_fn_summary_generate): do not generate summary
14810 for functions not optimized.
14811 (ipa_fn_summary_read): Skip optimize check.
14812 (ipa_fn_summary_write): Likewise.
14813 * ipa-inline-analysis.c (do_estimate_growth_1): Check that caller
14815 * ipa-inline.c (can_inline_edge_p): Not optimized functions are
14817 (can_inline_edge_p): Check flag_pcc_struct_return for match.
14818 (check_callers): Give up on caller which is not optimized.
14819 (inline_small_functions): Likewise.
14820 (ipa_inline): Do not give up when not optimizing.
14821 * ipa-visbility.c (function_and_variable_visibility): Do not optimize
14822 away unoptimizes cdtors.
14823 (whole_program_function_and_variable_visibility): Do
14824 ipa_discover_readonly_nonaddressable_vars in LTO mode.
14825 * ipa.c (process_references): Do not check optimize.
14826 (symbol_table::remove_unreachable_nodes): Update optimize check.
14827 (set_writeonly_bit): Update optimize check.
14828 (pass_ipa_cdtor_merge::gate): Do not check optimize.
14829 (pass_ipa_single_use::gate): Remove.
14831 2017-07-06 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
14833 * config/rs6000/rs6000.c (union_defs, union_uses, insn_is_load_p,
14834 insn_is_store_p, insn_is_swap_p, const_load_sequence_p, v2df_reduction_p,
14835 rtx_is_swappable_p, insn_is_swappable_p, chain_contains_only_swaps,
14836 mark_swaps_for_removal, swap_const_vector_halves, adjust_subreg_index,
14837 permute_load, permute_store, adjust_extract, adjust_splat,
14838 adjust_xxpermdi, adjust_concat, adjust_vperm, handle_special_swappables,
14839 replace_swap_with_copy, dump_swap_insn_table,
14840 alignment_with_canonical_addr, alignment_mask, find_alignment_op,
14841 recombine_lvx_pattern, recombine_stvx_pattern,
14842 recombine_lvx_stvx_patterns, rs6000_analyze_swaps,
14843 make_pass_analyze_swaps): Move all code related to p8 swap optimizations
14844 to file rs6000-p8swap.c.
14845 * config/rs6000/rs6000-p8swap.c: New file.
14846 * config/rs6000/t-rs6000: Add rule to build rs6000-p8swap.o.
14847 * config.gcc: Add rs6000-p8swap.o to extra_objs for powerpc*-*-*
14848 and rs6000*-*-* targets.
14850 2017-07-06 David Malcolm <dmalcolm@redhat.com>
14852 * Makefile.in (selftest): Remove dependency on s-selftest-c++.
14854 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
14856 * lto-wrapper.c (merge_and_complain): Do not merge
14857 fexceptions, fnon_call_exceptions, ftrapv, ffp_contract_, fmath_errno,
14858 fsigned_zeros, ftrapping_math, fwrapv.
14859 (append_compiler_options): Do not track these options.
14860 (append_linker_options): Likewie
14862 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
14864 * cgraphunit.c (cgraph_node::finalize_function): When
14865 !flag_toplevel_reorde set no_reorder flag.
14866 (varpool_node::finalize_decl): Likewise.
14867 (symbol_table::compile): Drop no toplevel reorder path.
14869 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
14871 * bb-reorder.c (better_edge_p): Do not build traces across abnormal/eh
14872 edges; zero probability is not better than uninitialized.
14874 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
14876 * asan.h (asan_sanitize_allocas_p): Declare.
14877 * asan.c (asan_sanitize_allocas_p): New function.
14878 (handle_builtin_stack_restore): Bail out if !asan_sanitize_allocas_p.
14879 (handle_builtin_alloca): Likewise.
14880 * cfgexpand.c (expand_used_vars): Do not add allocas unpoisoning stuff
14881 if !asan_sanitize_allocas_p.
14882 * params.def (asan-instrument-allocas): Add new option.
14883 * params.h (ASAN_PROTECT_ALLOCAS): Define.
14884 * opts.c (common_handle_option): Disable allocas sanitization for
14887 2017-07-06 Maxim Ostapenko <m.ostapenko@samsung.com>
14889 * asan.c: Include gimple-fold.h.
14890 (get_last_alloca_addr): New function.
14891 (handle_builtin_stackrestore): Likewise.
14892 (handle_builtin_alloca): Likewise.
14893 (asan_emit_allocas_unpoison): Likewise.
14894 (get_mem_refs_of_builtin_call): Add new parameter, remove const
14895 quallifier from first paramerer. Handle BUILT_IN_ALLOCA,
14896 BUILT_IN_ALLOCA_WITH_ALIGN and BUILT_IN_STACK_RESTORE builtins.
14897 (instrument_builtin_call): Pass gimple iterator to
14898 get_mem_refs_of_builtin_call.
14899 (last_alloca_addr): New global.
14900 * asan.h (asan_emit_allocas_unpoison): Declare.
14901 * builtins.c (expand_asan_emit_allocas_unpoison): New function.
14902 (expand_builtin): Handle BUILT_IN_ASAN_ALLOCAS_UNPOISON.
14903 * cfgexpand.c (expand_used_vars): Call asan_emit_allocas_unpoison
14904 if function calls alloca.
14905 * gimple-fold.c (replace_call_with_value): Remove static keyword.
14906 * gimple-fold.h (replace_call_with_value): Declare.
14907 * internal-fn.c: Include asan.h.
14908 * sanitizer.def (BUILT_IN_ASAN_ALLOCA_POISON,
14909 BUILT_IN_ASAN_ALLOCAS_UNPOISON): New builtins.
14911 2017-07-06 David Malcolm <dmalcolm@redhat.com>
14913 * Makefile.in (SELFTEST_FLAGS): Drop "-x c", moving it to...
14914 (C_SELFTEST_FLAGS): New.
14915 (CPP_SELFTEST_FLAGS): New.
14916 (SELFTEST_DEPS): New, from deps of s-selftest.
14917 (C_SELFTEST_DEPS): New, from deps of s-selftest.
14918 (CPP_SELFTEST_DEPS): New.
14919 (selftest): Add dependency on s-selftest-c++.
14920 (s-selftest): Rename to...
14921 (s-selftest-c): ...this, moving deps to SELFTEST_DEPS
14922 and C_SELFTEST_DEPS, and using C_SELFTEST_FLAGS rather
14923 than SELFTEST_FLAGS.
14924 (selftest-gdb): Rename to...
14925 (selftest-c-gdb): ...this, using C_SELFTEST_DEPS and
14927 (selftest-gdb): Reintroduce as an alias for selftest-c-gdb.
14928 (selftest-valgrind): Rename to...
14929 (selftest-c-valgrind): ...this, using C_SELFTEST_DEPS and
14931 (selftest-valgrind): Reintroduce as an alias for
14932 selftest-c-valgrind.
14933 (s-selftest-c++): New.
14934 (selftest-c++-gdb): New.
14935 (selftest-c++-valgrind): New.
14937 2017-07-06 Olivier Hainque <hainque@adacore.com>
14939 * gcc.c (process_command): When deciding if undefined variables
14940 should be ignored when processing specs, accept "gcc -v" as well.
14942 2017-07-06 Jan Hubicka <hubicka@ucw.cz>
14944 * auto-profile.c (afdo_set_bb_count, afdo_propagate_edge,
14945 afdo_annotate_cfg): Set counts/probabilities as determined by afdo.
14947 2017-07-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
14949 * config/arm/arm-cpus.in (armv8-r): Add new entry.
14950 * config/arm/arm-isa.h (ISA_ARMv8r): Define macro.
14951 * config/arm/arm-tables.opt: Regenerate.
14952 * config/arm/arm.h (enum base_architecture): Add BASE_ARCH_8R
14954 * doc/invoke.texi: Mention -march=armv8-r and its extensions.
14956 2017-07-06 Carl Love <cel@us.ibm.com>
14958 * ChangeLog: Clean up from mid air collision
14960 2017-07-06 Carl Love <cel@us.ibm.com>
14962 * config/rs6000/rs6000-c.c: Add support for built-in functions
14963 vector signed int vec_subc (vector signed int, vector signed int);
14964 vector signed __int128 vec_subc (vector signed __int128,
14965 vector signed __int128);
14966 vector unsigned __int128 vec_subc (vector unsigned __int128,
14967 vector unsigned __int128);
14968 vector signed int vec_sube (vector signed int, vector signed int,
14969 vector signed int);
14970 vector unsigned int vec_sube (vector unsigned int,
14971 vector unsigned int,
14972 vector unsigned int);
14973 vector signed __int128 vec_sube (vector signed __int128,
14974 vector signed __int128,
14975 vector signed__int128);
14976 vector unsigned __int128 vec_sube (vector unsigned __int128,
14977 vector unsigned __int128,
14978 vector unsigned __int128);
14979 vector signed int vec_subec (vector signed int, vector signed int,
14980 vector signed int);
14981 vector unsigned int vec_subec (vector unsigned int,
14982 vector unsigned int,
14983 vector unsigned int);
14984 vector signed __int128 vec_subec (vector signed __int128,
14985 vector signed __int128,
14986 vector signed__int128);
14987 vector unsigned __int128 vec_subec (vector unsigned __int128,
14988 vector unsigned __int128,
14989 vector unsigned __int128);
14990 * config/rs6000/rs6000.c (ALTIVEC_BUILTIN_VEC_SUBE,
14991 ALTIVEC_BUILTIN_VEC_SUBEC): Add ef_builtins.
14992 * config/rs6000/rs6000-builtin.def (SUBE, SUBEC): Add
14993 BU_ALTIVEC_OVERLOAD_X definitions.
14994 * config/rs6000/altivec.h (vec_sube, vec_subec): Add builtin defines.
14995 * doc/extend.texi: Update the built-in documentation file for the new
14996 built-in functions.
14998 2017-07-06 David Malcolm <dmalcolm@redhat.com>
15001 * diagnostic-show-locus.c (layout::layout): Use start and finish
15002 spelling location for the start and finish of each range.
15003 * genmatch.c (linemap_client_expand_location_to_spelling_point):
15004 Add unused aspect param.
15005 * input.c (expand_location_1): Add "aspect" param, and use it
15006 to access the correct part of the location.
15007 (expand_location): Pass LOCATION_ASPECT_CARET to new param of
15009 (expand_location_to_spelling_point): Likewise.
15010 (linemap_client_expand_location_to_spelling_point): Add "aspect"
15011 param, and pass it to expand_location_1.
15013 2017-07-06 Sebastian Peryt <sebastian.peryt@intel.com>
15015 * config/i386/avx512fintrin.h (_mm_mask_getexp_round_ss,
15016 _mm_maskz_getexp_round_ss, _mm_mask_getexp_round_sd,
15017 _mm_maskz_getexp_round_sd, _mm_mask_getmant_round_sd,
15018 _mm_maskz_getmant_round_sd, _mm_mask_getmant_round_ss,
15019 _mm_maskz_getmant_round_ss, _mm_mask_getexp_ss, _mm_maskz_getexp_ss,
15020 _mm_mask_getexp_sd, _mm_maskz_getexp_sd, _mm_mask_getmant_sd,
15021 _mm_maskz_getmant_sd, _mm_mask_getmant_ss,
15022 _mm_maskz_getmant_ss): New intrinsics.
15023 (__builtin_ia32_getexpss128_mask): Changed to ...
15024 __builtin_ia32_getexpss128_round ... this.
15025 (__builtin_ia32_getexpsd128_mask): Changed to ...
15026 __builtin_ia32_getexpsd128_round ... this.
15027 * config/i386/i386-builtin-types.def
15028 ((V2DF, V2DF, V2DF, INT, V2DF, UQI, INT),
15029 (V4SF, V4SF, V4SF, INT, V4SF, UQI, INT)): New function type aliases.
15030 * config/i386/i386-builtin.def (__builtin_ia32_getexpsd_mask_round,
15031 __builtin_ia32_getexpss_mask_round, __builtin_ia32_getmantsd_mask_round,
15032 __builtin_ia32_getmantss_mask_round): New builtins.
15033 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_UQI_INT,
15034 V4SF_FTYPE_V4SF_V4SF_INT_V4SF_UQI_INT): Handle new types.
15035 (CODE_FOR_avx512f_vgetmantv2df_mask_round,
15036 CODE_FOR_avx512f_vgetmantv4sf_mask_round): New cases.
15037 * config/i386/sse.md
15038 (avx512f_sgetexp<mode><round_saeonly_name>): Changed to ...
15039 avx512f_sgetexp<mode><mask_scalar_name>
15040 <round_saeonly_scalar_name> ... this.
15041 (vgetexp<ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|
15042 %0, %1, %2<round_saeonly_op3>}): Changed to ...
15043 vgetexp<ssescalarmodesuffix>
15044 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15045 %0<mask_scalar_operand3>, %1, %2<round_saeonly_scalar_mask_op3>} ... this.
15046 (avx512f_vgetmant<mode><round_saeonly_name>): Changed to ...
15047 avx512f_vgetmant<mode><mask_scalar_name>
15048 <round_saeonly_scalar_name> ... this.
15049 (vgetmant<ssescalarmodesuffix>\t{%3, <round_saeonly_op4>%2, %1, %0|
15050 %0, %1, %2<round_saeonly_op4>, %3}): Changed to ...
15051 vgetmant<ssescalarmodesuffix>
15052 \t{%3, <round_saeonly_scalar_mask_op4>%2, %1, %0<mask_scalar_operand4>|
15053 %0<mask_scalar_operand4>, %1, %2
15054 <round_saeonly_scalar_mask_op4>, %3} ... this.
15055 * config/i386/subst.md (mask_scalar_operand4,
15056 round_saeonly_scalar_mask_operand4, round_saeonly_scalar_mask_op4,
15057 round_saeonly_scalar_nimm_predicate): New subst attributes.
15059 2017-07-06 Julia Koval <julia.koval@intel.com>
15061 * config/i386/i386.c (ix86_erase_embedded_rounding):
15062 Remove code for old rounding pattern.
15064 2017-07-06 Richard Earnshaw <rearnsha@arm.com>
15066 * config/arm/t-arm (GTM_H): Add arm-cpu.h.
15068 2017-07-06 Christophe Lyon <christophe.lyon@linaro.org>
15070 * doc/sourcebuild.texi (Test Directives, Variants of
15071 dg-require-support): Add documentation for dg-require-stack-check.
15073 2017-07-05 Sebastian Peryt <sebastian.peryt@intel.com>
15075 * config/i386/subst.md (mask_scalar, round_scalar,
15076 round_saeonly_scalar): New meta-templates.
15077 (mask_scalar_name, mask_scalar_operand3, round_scalar_name,
15078 round_scalar_mask_operand3, round_scalar_mask_op3,
15079 round_scalar_constraint, round_scalar_prefix, round_saeonly_scalar_name,
15080 round_saeonly_scalar_mask_operand3, round_saeonly_scalar_mask_op3,
15081 round_saeonly_scalar_constraint,
15082 round_saeonly_scalar_prefix): New subst attribute.
15083 * config/i386/sse.md
15084 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): Renamed to ...
15085 <sse>_vm<plusminus_insn><mode>3<mask_scalar_name>
15086 <round_scalar_name> ... this.
15087 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): Renamed to ...
15088 <sse>_vm<multdiv_mnemonic><mode>3<mask_scalar_name>
15089 <round_scalar_name> ... this.
15090 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): Renamed to ...
15091 <sse>_vm<code><mode>3<mask_scalar_name>
15092 <round_saeonly_scalar_name> ... this.
15093 (v<plusminus_mnemonic><ssescalarmodesuffix>
15094 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
15095 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
15096 v<plusminus_mnemonic><ssescalarmodesuffix>
15097 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15098 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
15099 (v<multdiv_mnemonic><ssescalarmodesuffix>
15100 \t{<round_mask_op3>%2, %1, %0<mask_operand3>|
15101 %0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}): Changed to ...
15102 v<multdiv_mnemonic><ssescalarmodesuffix>
15103 \t{<round_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15104 %0<mask_scalar_operand3>, %1, %<iptr>2<round_scalar_mask_op3>} ... this.
15105 (v<maxmin_float><ssescalarmodesuffix>
15106 \t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|
15107 %0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}): Changed to ...
15108 v<maxmin_float><ssescalarmodesuffix>
15109 \t{<round_saeonly_scalar_mask_op3>%2, %1, %0<mask_scalar_operand3>|
15110 %0<mask_scalar_operand3>, %1, %<iptr>2
15111 <round_saeonly_scalar_mask_op3>} ... this.
15113 2017-07-05 Richard Earnshaw <rearnsha@arm.com>
15115 * config/arm/arm.c (arm_fixed_condition_code_regs): New function.
15116 (TARGET_FIXED_CONDITION_CODE_REGS): Redefine.
15118 2017-07-05 Richard Sandiford <richard.sandiford@linaro.org>
15119 Alan Hayward <alan.hayward@arm.com>
15120 David Sherwood <david.sherwood@arm.com>
15122 * combine.c (simplify_if_then_else): Remove "enum" before
15124 * compare-elim.c (can_eliminate_compare): Likewise.
15125 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_std_type):
15127 (aarch64_lookup_simd_builtin_type): Likewise.
15128 (aarch64_simd_builtin_type): Likewise.
15129 (aarch64_init_simd_builtin_types): Likewise.
15130 (aarch64_simd_expand_args): Likewise.
15131 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist):
15133 (aarch64_reverse_mask): Likewise.
15134 (aarch64_simd_emit_reg_reg_move): Likewise.
15135 (aarch64_gen_adjusted_ldpstp): Likewise.
15136 (aarch64_ccmp_mode_to_code): Likewise.
15137 (aarch64_operands_ok_for_ldpstp): Likewise.
15138 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
15139 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class):
15141 (aarch64_min_divisions_for_recip_mul): Likewise.
15142 (aarch64_reassociation_width): Likewise.
15143 (aarch64_get_condition_code_1): Likewise.
15144 (aarch64_simd_emit_reg_reg_move): Likewise.
15145 (aarch64_simd_attr_length_rglist): Likewise.
15146 (aarch64_reverse_mask): Likewise.
15147 (aarch64_operands_ok_for_ldpstp): Likewise.
15148 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
15149 (aarch64_gen_adjusted_ldpstp): Likewise.
15150 * config/aarch64/cortex-a57-fma-steering.c (fma_node::rename):
15152 * config/arc/arc.c (legitimate_offset_address_p): Likewise.
15153 * config/arm/arm-builtins.c (arm_simd_builtin_std_type): Likewise.
15154 (arm_lookup_simd_builtin_type): Likewise.
15155 (arm_simd_builtin_type): Likewise.
15156 (arm_init_simd_builtin_types): Likewise.
15157 (arm_expand_builtin_args): Likewise.
15158 * config/arm/arm-protos.h (arm_expand_builtin): Likewise.
15159 * config/ft32/ft32.c (ft32_libcall_value): Likewise.
15160 (ft32_setup_incoming_varargs): Likewise.
15161 (ft32_function_arg): Likewise.
15162 (ft32_function_arg_advance): Likewise.
15163 (ft32_pass_by_reference): Likewise.
15164 (ft32_arg_partial_bytes): Likewise.
15165 (ft32_valid_pointer_mode): Likewise.
15166 (ft32_addr_space_pointer_mode): Likewise.
15167 (ft32_addr_space_legitimate_address_p): Likewise.
15168 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple):
15170 * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
15171 (ix86_emit_outlined_ms2sysv_restore): Likewise.
15172 (iamcu_alignment): Likewise.
15173 (canonicalize_vector_int_perm): Likewise.
15174 (ix86_noce_conversion_profitable_p): Likewise.
15175 (ix86_mpx_bound_mode): Likewise.
15176 (ix86_operands_ok_for_move_multiple): Likewise.
15177 * config/microblaze/microblaze-protos.h
15178 (microblaze_expand_conditional_branch_reg): Likewise.
15179 * config/microblaze/microblaze.c
15180 (microblaze_expand_conditional_branch_reg): Likewise.
15181 * config/powerpcspe/powerpcspe.c (rs6000_init_hard_regno_mode_ok):
15183 (rs6000_reassociation_width): Likewise.
15184 (rs6000_invalid_binary_op): Likewise.
15185 (fusion_p9_p): Likewise.
15186 (emit_fusion_p9_load): Likewise.
15187 (emit_fusion_p9_store): Likewise.
15188 * config/riscv/riscv-protos.h (riscv_regno_mode_ok_for_base_p):
15190 (riscv_hard_regno_mode_ok_p): Likewise.
15191 (riscv_address_insns): Likewise.
15192 (riscv_split_symbol): Likewise.
15193 (riscv_legitimize_move): Likewise.
15194 (riscv_function_value): Likewise.
15195 (riscv_hard_regno_nregs): Likewise.
15196 (riscv_expand_builtin): Likewise.
15197 * config/riscv/riscv.c (riscv_build_integer_1): Likewise.
15198 (riscv_build_integer): Likewise.
15199 (riscv_split_integer): Likewise.
15200 (riscv_legitimate_constant_p): Likewise.
15201 (riscv_cannot_force_const_mem): Likewise.
15202 (riscv_regno_mode_ok_for_base_p): Likewise.
15203 (riscv_valid_base_register_p): Likewise.
15204 (riscv_valid_offset_p): Likewise.
15205 (riscv_valid_lo_sum_p): Likewise.
15206 (riscv_classify_address): Likewise.
15207 (riscv_legitimate_address_p): Likewise.
15208 (riscv_address_insns): Likewise.
15209 (riscv_load_store_insns): Likewise.
15210 (riscv_force_binary): Likewise.
15211 (riscv_split_symbol): Likewise.
15212 (riscv_force_address): Likewise.
15213 (riscv_legitimize_address): Likewise.
15214 (riscv_move_integer): Likewise.
15215 (riscv_legitimize_const_move): Likewise.
15216 (riscv_legitimize_move): Likewise.
15217 (riscv_address_cost): Likewise.
15218 (riscv_subword): Likewise.
15219 (riscv_output_move): Likewise.
15220 (riscv_canonicalize_int_order_test): Likewise.
15221 (riscv_emit_int_order_test): Likewise.
15222 (riscv_function_arg_boundary): Likewise.
15223 (riscv_pass_mode_in_fpr_p): Likewise.
15224 (riscv_pass_fpr_single): Likewise.
15225 (riscv_pass_fpr_pair): Likewise.
15226 (riscv_get_arg_info): Likewise.
15227 (riscv_function_arg): Likewise.
15228 (riscv_function_arg_advance): Likewise.
15229 (riscv_arg_partial_bytes): Likewise.
15230 (riscv_function_value): Likewise.
15231 (riscv_pass_by_reference): Likewise.
15232 (riscv_setup_incoming_varargs): Likewise.
15233 (riscv_print_operand): Likewise.
15234 (riscv_elf_select_rtx_section): Likewise.
15235 (riscv_save_restore_reg): Likewise.
15236 (riscv_for_each_saved_reg): Likewise.
15237 (riscv_register_move_cost): Likewise.
15238 (riscv_hard_regno_mode_ok_p): Likewise.
15239 (riscv_hard_regno_nregs): Likewise.
15240 (riscv_class_max_nregs): Likewise.
15241 (riscv_memory_move_cost): Likewise.
15242 * config/rl78/rl78-protos.h (rl78_split_movsi): Likewise.
15243 * config/rl78/rl78.c (rl78_split_movsi): Likewise.
15244 (rl78_addr_space_address_mode): Likewise.
15245 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
15247 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Likewise.
15248 (rs6000_reassociation_width): Likewise.
15249 (rs6000_invalid_binary_op): Likewise.
15250 (fusion_p9_p): Likewise.
15251 (emit_fusion_p9_load): Likewise.
15252 (emit_fusion_p9_store): Likewise.
15253 * config/visium/visium-protos.h (prepare_move_operands): Likewise.
15254 (ok_for_simple_move_operands): Likewise.
15255 (ok_for_simple_move_strict_operands): Likewise.
15256 (ok_for_simple_arith_logic_operands): Likewise.
15257 (visium_legitimize_reload_address): Likewise.
15258 (visium_select_cc_mode): Likewise.
15259 (output_cbranch): Likewise.
15260 (visium_split_double_move): Likewise.
15261 (visium_expand_copysign): Likewise.
15262 (visium_expand_int_cstore): Likewise.
15263 (visium_expand_fp_cstore): Likewise.
15264 * config/visium/visium.c (visium_pass_by_reference): Likewise.
15265 (visium_function_arg): Likewise.
15266 (visium_function_arg_advance): Likewise.
15267 (visium_libcall_value): Likewise.
15268 (visium_setup_incoming_varargs): Likewise.
15269 (visium_legitimate_constant_p): Likewise.
15270 (visium_legitimate_address_p): Likewise.
15271 (visium_legitimize_address): Likewise.
15272 (visium_secondary_reload): Likewise.
15273 (visium_register_move_cost): Likewise.
15274 (visium_memory_move_cost): Likewise.
15275 (prepare_move_operands): Likewise.
15276 (ok_for_simple_move_operands): Likewise.
15277 (ok_for_simple_move_strict_operands): Likewise.
15278 (ok_for_simple_arith_logic_operands): Likewise.
15279 (visium_function_value_1): Likewise.
15280 (rtx_ok_for_offset_p): Likewise.
15281 (visium_legitimize_reload_address): Likewise.
15282 (visium_split_double_move): Likewise.
15283 (visium_expand_copysign): Likewise.
15284 (visium_expand_int_cstore): Likewise.
15285 (visium_expand_fp_cstore): Likewise.
15286 (visium_split_cstore): Likewise.
15287 (visium_select_cc_mode): Likewise.
15288 (visium_split_cbranch): Likewise.
15289 (output_cbranch): Likewise.
15290 (visium_print_operand_address): Likewise.
15291 * expmed.c (flip_storage_order): Likewise.
15292 * expmed.h (emit_cstore): Likewise.
15293 (flip_storage_order): Likewise.
15294 * genrecog.c (validate_pattern): Likewise.
15295 * hsa-gen.c (gen_hsa_addr): Likewise.
15296 * internal-fn.c (expand_arith_overflow): Likewise.
15297 * ira-color.c (allocno_copy_cost_saving): Likewise.
15298 * lra-assigns.c (find_hard_regno_for_1): Likewise.
15299 * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
15300 (process_invariant_for_inheritance): Likewise.
15301 * lra-eliminations.c (move_plus_up): Likewise.
15302 * omp-low.c (lower_oacc_reductions): Likewise.
15303 * simplify-rtx.c (simplify_subreg): Likewise.
15304 * target.def (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
15305 (TARGET_CHKP_BOUND_MODE): Likewise..
15306 * targhooks.c (default_chkp_bound_mode): Likewise.
15307 (default_setup_incoming_vararg_bounds): Likewise.
15308 * targhooks.h (default_chkp_bound_mode): Likewise.
15309 (default_setup_incoming_vararg_bounds): Likewise.
15310 * tree-ssa-math-opts.c (divmod_candidate_p): Likewise.
15311 * tree-vect-loop.c (calc_vec_perm_mask_for_shift): Likewise.
15312 (have_whole_vector_shift): Likewise.
15313 * tree-vect-stmts.c (vectorizable_load): Likewise.
15314 * doc/tm.texi: Regenerate.
15316 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
15318 Graceful degrade if Binutils PR21472 is not available.
15321 * configure.ac [target=avr]: WARN instead of ERROR if avrxmega3
15322 .rodata in flash test fails.
15323 (HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH): Define it if test passes.
15324 * confgure: Regenerate.
15325 * config.in: Regenerate.
15326 * config/avr/avr.c (avr_asm_named_section)
15327 [HAVE_LD_AVR_AVRXMEGA3_RODATA_IN_FLASH]: Only trigger
15328 __do_copy_data for stuff in .rodata if flash_pm_offset = 0.
15329 (avr_asm_init_sections): Same.
15331 2017-07-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15333 * config/arm/neon.md (fma<VCVTF:mode>4): Remove %?.
15334 (fma<VH:mode>4_intrinsic): Likewise.
15335 (*fmsub<VCVTF:mode>4): Likewise.
15336 (*fmsub<VH:mode>4_intrinsic): Likewise.
15338 2017-07-05 Georg-Johann Lay <avr@gjlay.de>
15341 * config/avr/avr.c (avr_out_movhi_mr_r_xmega) [CONSTANT_ADDRESS_P]:
15342 Don't depend on "optimize > 0".
15343 (out_movhi_r_mr, out_movqi_mr_r): Same.
15344 (out_movhi_mr_r, out_movqi_r_mr): Same.
15345 (avr_address_cost) [CONSTANT_ADDRESS_P]: Don't depend cost for
15346 io_address_operand on "optimize > 0".
15348 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15350 * tree-loop-distribution.c: Add general explanantion on the pass.
15351 (generate_loops_for_partition): Mark distributed loop.
15352 (pg_add_dependence_edges): New parameter. Handle alias data
15353 dependence specially and record it in the parameter if asked.
15354 (struct pg_vdata, pg_edata, pg_edge_callback_data): New structs.
15355 (init_partition_graph_vertices, add_partition_graph_edge): New.
15356 (pg_skip_alias_edge, free_partition_graph_edata_cb): New.
15357 (free_partition_graph_vdata, build_partition_graph): New.
15358 (sort_partitions_by_post_order, merge_dep_scc_partitions): New.
15359 (pg_collect_alias_ddrs, break_alias_scc_partitions): New.
15360 (data_ref_segment_size, latch_dominated_by_data_ref): New.
15361 (compute_alias_check_pairs, version_loop_by_alias_check): New.
15362 (version_for_distribution_p, finalize_partitions): New.
15363 (distribute_loop): Handle alias data dependence specially. Factor
15364 out loop fusion code as functions and call these functions.
15366 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15368 * tree-loop-distribution.c (classify_partition): New parameter and
15369 better handle reduction statement.
15370 (rdg_build_partitions): Revise comment.
15371 (distribute_loop): Compute statements in all partitions and pass it
15372 to classify_partition.
15374 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15376 * tree-loop-distribution.c (enum partition_type): New.
15377 (struct partition): New field type.
15378 (partition_merge_into): Add parameter. Update partition type.
15379 (data_dep_in_cycle_p, update_type_for_merge): New functions.
15380 (build_rdg_partition_for_vertex): Compute partition type.
15381 (rdg_build_partitions): Dump partition type.
15382 (distribute_loop): Update calls to partition_merge_into.
15384 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15386 * tree-loop-distribution.c (struct ddr_hasher): New.
15387 (ddr_hasher::hash, ::equal, get_data_dependence): New function.
15389 (classify_partition): Call get_data_dependence.
15390 (pg_add_dependence_edges): Ditto.
15391 (distribute_loop): Release data dependence hash table.
15393 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15395 * tree-loop-distribution.c (ref_base_address): Delete.
15396 (similar_memory_accesses): Rename ...
15397 (share_memory_accesses): ... to this. Check if partitions access
15398 the same memory reference.
15399 (distribute_loop): Call share_memory_accesses.
15401 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15403 * tree-loop-distribution.c (struct partition): New field recording
15404 its data reference.
15405 (partition_alloc, partition_free): Init and release data refs.
15406 (partition_merge_into): Merge data refs.
15407 (build_rdg_partition_for_vertex): Collect data refs for partition.
15408 (pg_add_dependence_edges): Change parameters from vector to bitmap.
15410 (distribute_loop): Remve data refs from vertice data of partition
15413 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15415 * tree-loop-distribution.c (params.h): Include header file.
15416 (MAX_DATAREFS_NUM, DR_INDEX): New macro.
15417 (datarefs_vec): New global var.
15418 (create_rdg_vertices): Use datarefs_vec directly.
15419 (free_rdg): Don't free data references.
15420 (build_rdg): Update use. Don't free data references.
15421 (distribute_loop): Compute global variable for data references.
15422 Bail out if there are too many data references.
15424 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15426 * tree-loop-distribution.c (loop_nest): New global var.
15427 (build_rdg): Use loop directly, rather than loop nest.
15428 (pg_add_dependence_edges): Remove loop nest parameter. Use global
15430 (distribute_loop): Compute global variable loop nest. Update use.
15432 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15434 * tree-loop-distribution.c (enum fuse_type, fuse_message): New.
15435 (partition_merge_into): New parameter. Dump reason for fusion.
15436 (distribute_loop): Update use of partition_merge_into.
15438 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15440 * tree-loop-distribution.c (bb_top_order_index): New.
15441 (bb_top_order_index_size, bb_top_order_cmp): New.
15442 (stmts_from_loop): Use topological order.
15443 (pass_loop_distribution::execute): Compute and release topological
15444 order for basic blocks.
15446 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15448 * tree-loop-distribution.c (pass_loop_distribution::execute): Skip
15451 2017-07-05 Bin Cheng <bin.cheng@arm.com>
15453 * cfgloop.h (struct loop): Add comment. New field orig_loop_num.
15454 * cfgloopmanip.c (lv_adjust_loop_entry_edge): Comment change.
15455 * internal-fn.c (expand_LOOP_DIST_ALIAS): New function.
15456 * internal-fn.def (LOOP_DIST_ALIAS): New.
15457 * tree-vectorizer.c (fold_loop_vectorized_call): Rename to ...
15458 (fold_loop_internal_call): ... this.
15459 (vect_loop_dist_alias_call): New function.
15460 (set_uid_loop_bbs): Call fold_loop_internal_call.
15461 (vectorize_loops): Fold IFN_LOOP_VECTORIZED and IFN_LOOP_DIST_ALIAS
15464 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
15467 * config/i386/i386.md (setcc + movzbl/and to xor + setcc peepholes):
15468 Require dead FLAGS_REG at the beginning of a peephole.
15470 2017-07-04 Uros Bizjak <ubizjak@gmail.com>
15473 * config/i386/adxintrin.h (_subborrow_u32): Swap _X and _Y
15474 arguments in the call to __builtin_ia32_sbb_u32.
15475 (_subborrow_u64): Swap _X and _Y arguments in the call to
15476 __builtin_ia32_sbb_u64.
15478 2017-07-04 Jakub Jelinek <jakub@redhat.com>
15481 * tree-vrp.c (compare_assert_loc): Turn into a function template
15482 with stable template parameter. Only test if a->e is NULL,
15483 !a->e == !b->e has been verified already. Use e == NULL or
15484 e != NULL instead of e or ! e tests. If stable is true, don't use
15485 iterative_hash_expr, on the other side allow a or b or both NULL
15486 and sort the NULLs last.
15487 (process_assert_insertions): Sort using compare_assert_loc<false>
15488 instead of compare_assert_loc, later sort using
15489 compare_assert_loc<true> before calling process_assert_insertions_for
15490 in a loop. Use break instead of continue once seen NULL pointer.
15492 2017-07-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
15494 * config/arm/driver-arm.c (arm_cpu_table): Add entry for ARM
15495 Cortex-R7 and Cortex-R8 processors.
15497 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
15499 * ipa-utils.c (ipa_merge_profiles): Fix merging when dst is
15500 uninitialized while src is not.
15502 2017-07-04 Richard Earnshaw <rearnsha@arm.com>
15504 * common/config/arm/arm-common.c: Adjust include path for
15506 * config/arm/t-arm (TM_H): Adjust path for arm-cpu.h.
15507 (arm-cpu.h): Create in build directory. Adjust dependency rules.
15508 (arm-cpu-data.h): Likewise.
15509 (arm-cpu-cdata.h): Likewise.
15510 * config/arm/arm-cpu.h: Delete.
15511 * config/arm/arm-cpu-cdata.h: Delete.
15512 * config/arm/arm-cpu-data.h: Delete.
15514 2017-07-04 James Greenhalgh <james.greenhalgh@arm.com>
15516 * config/arm/arm-cpus.in (cortex-a55): New.
15517 (cortex-a75): Likewise.
15518 (cortex-a75.cortex-a55): Likewise.
15519 * config/arm/driver-arm.c (arm_cpu_table): Add cortex-a55 and
15521 * doc/invoke.texi (-mcpu): Document cortex-a55 and cortex-a75.
15522 * config/arm/arm-cpu-cdata.h: Regenerate.
15523 * config/arm/arm-cpu-data.h: Regenerate.
15524 * config/arm/arm-cpu.h: Regenerate.
15525 * config/arm/arm-tables.opt: Regenerate.
15526 * config/arm/arm-tune.md: Regenerate.
15528 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
15530 * haifa-sched.c (sched_create_recovery_edges): Update profile.
15532 2017-07-04 Jan Hubicka <hubicka@ucw.cz>
15534 * bb-reorder.c (better_edge_p): Fix handling of uninitialized
15537 2017-07-04 Richard Sandiford <richard.sandiford@linaro.org>
15539 PR tree-optimization/81292
15540 * tree-ssa-strlen.c (handle_builtin_strlen): When setting
15541 full_string_p, also call adjust_related_strinfos if the adjustment
15542 is simple, otherwise invalidate related strinfos.
15544 2017-07-04 Martin Liska <mliska@suse.cz>
15547 * sanopt.c (sanitize_rewrite_addressable_params): Mark the
15548 newly created variable as DECL_IGNORED_P.
15550 2017-07-04 Martin Liska <mliska@suse.cz>
15553 * ipa-inline.c (inline_small_functions):
15554 Use xstrdup_for_dump.
15556 2017-07-04 Tom de Vries <tom@codesourcery.com>
15558 * graph.c (draw_cfg_edges): Save and restore EDGE_DFS_BACK.
15560 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
15563 * config/darwin.c (darwin_function_switched_text_sections):
15566 2017-07-03 Jan Hubicka <hubicka@ucw.cz>
15568 * tree-vect-loop-manip.c (vect_do_peeling): Fix scaling up.
15570 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
15572 * doc/invoke.texi (ARM Options): Add -mbe8 and -mbe32 to option summary.
15574 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15576 * tree-vect-loop.c (vect_analyze_loop_2): Treat min_scalar_loop_bound,
15577 min_profitable_iters, and th as inclusive lower bounds.
15578 Fix LOOP_VINFO_PEELING_FOR_GAPS condition.
15579 (vect_estimate_min_profitable_iters): Return inclusive lower bounds
15580 for min_profitable_iters and min_profitable_estimate.
15581 (vect_transform_loop): Treat th as an inclusive lower bound.
15582 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
15584 2017-07-03 Dominique d'Humieres <dominiq@lps.ens.fr>
15587 * config/darwin.c (darwin_function_switched_text_sections):
15588 Replace DECL_NAME with DECL_ASSEMBLER_NAME, split assemble_name_raw
15589 in two pieces, and suppress the use of buf.
15591 2017-07-03 Nathan Sidwell <nathan@acm.org>
15593 * hash-table.h (hash_table_mod1): Fix indentation.
15595 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15597 PR middle-end/81290
15598 * predict.c (force_edge_cold): Be more careful about propagation
15600 * profile-count.h (profile_probability::guessed,
15601 profile_probability::fdo, profile_count::guessed, profile_count::fdo):
15603 * tree-ssa-threadupdate.c (recompute_probabilities): Result is guessed.
15605 2017-07-03 James Greenhalgh <james.greenhalgh@arm.com>
15607 * doc/invoke.texi (rcpc architecture extension): Document it.
15609 2017-07-03 Richard Biener <rguenther@suse.de>
15611 PR tree-optimization/60510
15612 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass in
15613 the scalar reduction PHI and use it.
15614 (vectorizable_reduction): Properly guard the single_defuse_cycle
15615 path for non-SLP reduction chains where we cannot use it.
15616 Rework reduc_def/index and vector type deduction. Rework
15617 vector operand gathering during reduction op code-gen.
15618 * tree-vect-slp.c (vect_analyze_slp): For failed SLP reduction
15619 chains dissolve the chain and leave it to non-SLP reduction
15622 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15624 * tree-data-ref.h (dr_alignment): Declare.
15625 * tree-data-ref.c (dr_alignment): New function.
15626 * tree-vectorizer.h (dataref_aux): Remove base_element_aligned.
15627 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Don't
15629 * tree-vect-stmts.c (vectorizable_store): Use dr_alignment.
15631 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15633 * tree-data-ref.h (innermost_loop_behavior): Add base_alignment
15634 and base_misalignment fields.
15635 (DR_BASE_ALIGNMENT, DR_BASE_MISALIGNMENT): New macros.
15636 * tree-data-ref.c: Include builtins.h.
15637 (dr_analyze_innermost): Set up the new innmost_loop_behavior fields.
15638 * tree-vectorizer.h (STMT_VINFO_DR_BASE_ALIGNMENT): New macro.
15639 (STMT_VINFO_DR_BASE_MISALIGNMENT): Likewise.
15640 * tree-vect-data-refs.c: Include tree-cfg.h.
15641 (vect_compute_data_ref_alignment): Use the new innermost_loop_behavior
15642 fields instead of calculating an alignment here.
15643 (vect_analyze_data_refs): Use dr_analyze_innermost. Dump the new
15644 innermost_loop_behavior fields.
15646 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15648 * tree-data-ref.h (innermost_loop_behavior): Add a step_alignment
15650 (DR_STEP_ALIGNMENT): New macro.
15651 * tree-vectorizer.h (STMT_VINFO_DR_STEP_ALIGNMENT): Likewise.
15652 * tree-data-ref.c (dr_analyze_innermost): Initalize step_alignment.
15653 (create_data_ref): Print it.
15654 * tree-vect-stmts.c (vectorizable_load): Use the step alignment
15655 to tell whether the step preserves vector (mis)alignment.
15656 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
15657 Move the check for an integer step and generalise to all INTEGER_CST.
15658 (vect_analyze_data_refs): Set DR_STEP_ALIGNMENT when setting DR_STEP.
15659 Print the outer step alignment.
15661 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15663 * tree-data-ref.h (innermost_loop_behavior): Replace aligned_to
15664 with offset_alignment.
15665 (DR_ALIGNED_TO): Delete.
15666 (DR_OFFSET_ALIGNMENT): New macro.
15667 * tree-vectorizer.h (STMT_VINFO_DR_ALIGNED_TO): Delete.
15668 (STMT_VINFO_DR_OFFSET_ALIGNMENT): New macro.
15669 * tree-data-ref.c (dr_analyze_innermost): Update after above changes.
15670 (create_data_ref): Likewise.
15671 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Likewise.
15672 (vect_analyze_data_refs): Likewise.
15673 * tree-if-conv.c (if_convertible_loop_p_1): Use memset before
15674 creating dummy innermost behavior.
15676 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15678 * tree-data-ref.h (dr_analyze_innermost): Replace the dr argument
15679 with a "innermost_loop_behavior *" and refeence tree.
15680 * tree-data-ref.c (dr_analyze_innermost): Likewise.
15681 (create_data_ref): Update call accordingly.
15682 * tree-predcom.c (find_looparound_phi): Likewise.
15684 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15686 * tree-vectorizer.h (_stmt_vec_info): Replace individual dr_*
15687 fields with dr_wrt_vec_loop.
15688 (STMT_VINFO_DR_BASE_ADDRESS, STMT_VINFO_DR_INIT, STMT_VINFO_DR_OFFSET)
15689 (STMT_VINFO_DR_STEP, STMT_VINFO_DR_ALIGNED_TO): Update accordingly.
15690 (STMT_VINFO_DR_WRT_VEC_LOOP): New macro.
15691 (vect_dr_behavior): New function.
15692 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
15693 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Use
15694 vect_dr_behavior. Use a step_preserves_misalignment_p boolean to
15695 track whether the step preserves the misalignment.
15696 (vect_create_addr_base_for_vector_ref): Remove loop parameter.
15697 Use vect_dr_behavior.
15698 (vect_setup_realignment): Update call accordingly.
15699 (vect_create_data_ref_ptr): Likewise. Use vect_dr_behavior.
15700 * tree-vect-loop-manip.c (vect_gen_prolog_loop_niters): Update
15701 call to vect_create_addr_base_for_vector_ref.
15702 (vect_create_cond_for_align_checks): Likewise.
15703 * tree-vect-patterns.c (vect_recog_bool_pattern): Copy
15704 STMT_VINFO_DR_WRT_VEC_LOOP as a block.
15705 (vect_recog_mask_conversion_pattern): Likewise.
15706 * tree-vect-stmts.c (compare_step_with_zero): Use vect_dr_behavior.
15707 (new_stmt_vec_info): Remove redundant zeroing.
15709 2017-07-03 Richard Earnshaw <rearnsha@arm.com>
15711 * common/config/arm/arm-common.c (arm_be8_option): New function.
15712 * config/arm/arm-isa.h (isa_feature): Add new feature bit isa_bit_be8.
15713 (ISA_ARMv6): Add isa_bit_be8.
15714 * config/arm/arm.h (arm_be8_option): Add prototype.
15715 (BE8_SPEC_FUNCTION): New define.
15716 (EXTRA_SPEC_FUNCTIONS): Add BE8_SPEC_FUNCTION.
15717 * config/arm/arm.opt (mbig-endian): Mark as Negative of mlittle-endian.
15718 (mlittle-endian): Similarly.
15719 (mbe8, mbe32): New options.
15720 * config/arm/bpabi.h (BE8_LINK_SPEC): Call arm_be8_option.
15721 * doc/invoke.texi (ARM Options): Document -mbe8 and -mbe32.
15723 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15725 * tree-cfg.c (gimple_find_sub_bbs): Fix profile updating.
15727 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15729 * tree-cfgcleanup.c (want_merge_blocks_p): New function.
15730 (cleanup_tree_cfg_bb): Use it.
15731 * profile-count.h (profile_count::of_for_merging, profile_count::merge):
15733 * tree-cfg.c (gimple_merge_blocks): Use profile_count::merge.
15735 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15738 * loop-doloop.c (add_test): Update profile.
15740 2017-07-03 Martin Liska <mliska@suse.cz>
15743 * sanopt.c (rewrite_usage_of_param): New function.
15744 (sanitize_rewrite_addressable_params): Likewise.
15745 (pass_sanopt::execute): Call rewrite_usage_of_param.
15747 2017-07-03 Richard Biener <rguenther@suse.de>
15749 * tree-vect-loop.c (vect_create_epilog_for_reduction): Revert
15750 back to using VIEW_CONVERT_EXPR.
15752 2017-07-03 Martin Liska <mliska@suse.cz>
15755 * doc/extend.texi: Document when a resolver function is
15756 generated for target_clones.
15758 2017-07-03 Martin Liska <mliska@suse.cz>
15760 * asan.c (asan_emit_stack_protection): Unpoison just red zones
15761 and shadow memory of auto variables which are subject of
15762 use-after-scope sanitization.
15763 (asan_expand_mark_ifn): Add do set only when is_poison.
15765 2016-07-03 Richard Biener <rguenther@suse.de>
15767 * tree-vect-loop.c (vect_analyze_loop_operations): Also analyze
15769 (vect_force_simple_reduction): Record reduction def -> phi mapping.
15770 (vectorizable_reduction): Perform reduction PHI creation when
15771 visiting a reduction PHI and adjust and simplify code generation
15772 phase of the reduction op. Cache dts, use fold_binary, not fold_build2.
15773 (vect_transform_loop): Visit reduction PHIs.
15774 * tree-vect-slp.c (vect_get_and_check_slp_defs): Record reduction
15775 defs into the SLP tree.
15776 (vect_build_slp_tree): Reduction defs terminate the recursion.
15777 * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): Allow lookup
15779 (vect_get_vec_defs_for_stmt_copy): Export.
15780 (vect_get_vec_defs): Likewise.
15781 * tree-vectorizer.h (struct _stmt_vec_info): Amend reduc_def
15783 (vect_get_vec_defs_for_stmt_copy): Declare.
15784 (vect_get_vec_defs): Likewise.
15786 2017-07-03 Richard Sandiford <richard.sandiford@linaro.org>
15788 * tree-data-ref.c (dr_analyze_innermost): Replace the "nest"
15789 parameter with a "loop" parameter and use it instead of the
15790 loop containing DR_STMT. Don't check simple_iv when doing
15791 BB analysis. Describe the two analysis modes in the comment.
15793 2017-07-03 Tom de Vries <tom@codesourcery.com>
15795 PR tree-optimization/69468
15796 * tree-ssa-tail-merge.c (ignore_edge_flags): New constant.
15797 (find_same_succ_bb): Handle ignore_edge_flags.
15799 2017-07-03 Tom de Vries <tom@codesourcery.com>
15801 PR tree-optimization/81192
15802 * tree-ssa-tail-merge.c (same_succ_hash): Use bb->loop_father->num in
15804 (same_succ::equal): Don't find bbs to be equal if bb->loop_father
15806 (find_same_succ_bb): Remove obsolete test on bb->loop_father->latch.
15808 2017-07-03 Tom de Vries <tom@codesourcery.com>
15810 PR tree-optimization/81192
15811 * tree-ssa-tail-merge.c (same_succ_flush_bb): Handle
15812 BB_SAME_SUCC (bb) == NULL.
15814 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15816 * cfgrtl.c (rtl_verify_edges): Enable checking of profile_probability
15819 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15821 * dumpfile.c: Include profile-count.h
15822 * tree-cfg.c (gimple_duplicate_sese_tail): Drop UNUSED attributes;
15824 (insert_cond_bb): Update profile.
15825 * tree-cfg.h (insert_cond_bb): Update prototype.
15826 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Update.
15827 * tree-dump.c: Do not include tree-cfg.
15829 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15831 * bb-reorder.c (fix_up_crossing_landing_pad): Update profile.
15833 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15835 * expect.c (dw2_build_landing_pads): Update profile of the landing pad
15838 2017-07-02 Jan Hubicka <hubicka@ucw.cz>
15840 * tree-complex.c (expand_complex_div_wide): update profile.
15842 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
15843 Alan Hayward <alan.hayward@arm.com>
15844 David Sherwood <david.sherwood@arm.com>
15846 * Makefile.in (MACHMODE_H): Remove insn-modes.h
15847 (CORETYPES_H): New define.
15848 (MOSTLYCLEANFILES): Add insn-modes-inline.h.
15849 (insn-modes-inline.h, s-modes-inline-h): New rules.
15850 (generated_files): Add insn-modes-inline.h.
15851 (RTL_BASE_H, TREE_CORE_H): Use CORETYPES_H instead of coretypes.h.
15852 (build/gensupport.o, build/ggc-none.o, build/print-rtl.o): Likewise.
15853 (build/read-md.o, build/read-rtl.o, build/rtl.o): Likewise.
15854 (build/vec.o, build/hash-table.o, build/inchash.o): Likewise.
15855 (build/gencondmd.o, build/genattr.o, build/genattr-common.o): Likewise.
15856 (build/genattrtab.o, build/genautomata.o, build/gencheck.o): Likewise.
15857 (build/gencodes.o, build/genconditions.o): Likewise.
15858 (build/genconfig.o, build/genconstants.o, build/genemit.o): Likewise.
15859 (build/genenums.o, build/genextract.o, build/genflags.o): Likewise.
15860 (build/gentarget-def.o, build/genmddeps.o, build/genopinit.o)
15861 (build/genoutput.o, build/genpeep.o, build/genpreds.o): Likewise.
15862 (build/genrecog.o, build/genmddump.o, build/genmatch.o): Likewise.
15863 (build/gencfn-macros.o, build/gcov-iov.o): Likewise.
15864 * coretypes.h: Include everything up to real.h for generators.
15865 Include insn-modes.h first. Include wide-int-print.h after
15866 wide-int.h. Include insn-modes-inline.h and then machmode.h.
15867 * machmode.h: Don't include insn-modes.h here.
15868 * function-tests.c: Remove includes of signop.h, machmode.h,
15869 double-int.h and wide-int.h.
15871 * gcc-rich-location.c: Remove includes of machmode.h, double-int.h
15873 * optc-save-gen.awk: Likewise.
15874 * gencheck.c (BITS_PER_UNIT): Delete dummy definition.
15875 * godump.c: Remove include of wide-int-print.h.
15876 * pretty-print.h: Likewise.
15877 * wide-int-print.cc: Likewise.
15878 * wide-int.cc: Likewise.
15879 * hash-map-tests.c: Remove include of signop.h.
15880 * hash-set-tests.c: Likewise.
15881 * rtl-tests.c: Likewise.
15882 * mkconfig.sh: Remove include of machmode.h.
15883 * genmodes.c (emit_insn_modes_h): Split emission of inline functions
15885 (emit_insn_modes_inline_h): ...this new function. Emit the code
15886 into an insn-modes-inline.h header file, adding appropriate
15887 include guards and end comments.
15888 (emit_insn_modes_c_header): Remove include of machmode.h.
15889 (emit_min_insn_modes_c_header): Include coretypes.h rather than
15891 (main): Handle -i flag and call emit_insn_modes_inline_h when
15894 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
15896 * tree-ssa-strlen.c (strinfo): Rename the length field to
15897 nonzero_chars. Add a full_string_p field.
15898 (compare_nonzero_chars, zero_length_string_p): New functions.
15899 (get_addr_stridx): Add an offset_out parameter.
15900 Use compare_nonzero_chars.
15901 (get_stridx): Update accordingly. Use compare_nonzero_chars.
15902 (new_strinfo): Update after above changes to strinfo.
15903 (set_endptr_and_length): Set full_string_p.
15904 (get_string_length): Update after above changes to strinfo.
15905 (unshare_strinfo): Update call to new_strinfo.
15906 (maybe_invalidate): Likewise.
15907 (get_stridx_plus_constant): Change off to unsigned HOST_WIDE_INT.
15908 Use compare_nonzero_chars and zero_string_p. Treat nonzero_chars
15909 as a uhwi instead of an shwi. Update after above changes to
15910 strinfo and new_strinfo.
15911 (zero_length_string): Assert that chainsi contains full strings.
15912 Use zero_length_string_p. Update call to new_strinfo.
15913 (adjust_related_strinfos): Update after above changes to strinfo.
15914 Copy full_string_p from origsi.
15915 (adjust_last_stmt): Use zero_length_string_p.
15916 (handle_builtin_strlen): Update after above changes to strinfo and
15917 new_strinfo. Install the lhs as the string length if the previous
15918 entry didn't describe a full string.
15919 (handle_builtin_strchr): Update after above changes to strinfo
15921 (handle_builtin_strcpy): Likewise.
15922 (handle_builtin_strcat): Likewise.
15923 (handle_builtin_malloc): Likewise.
15924 (handle_pointer_plus): Likewise.
15925 (handle_builtin_memcpy): Likewise. Track nonzero characters
15926 that aren't necessarily followed by a nul terminator.
15927 (handle_char_store): Likewise.
15929 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
15931 PR tree-optimization/80769
15932 * tree-ssa-strlen.c (strinfo): Document that "stmt" is also used
15933 for malloc and calloc. Document the new invariant that all related
15934 strinfos have delayed lengths or none do.
15935 (verify_related_strinfos): Move earlier in file.
15936 (set_endptr_and_length): New function, split out from...
15937 (get_string_length): ...here. Also set the lengths of related
15939 (zero_length_string): Assert that chainsi has known (rather than
15941 (adjust_related_strinfos): Likewise.
15943 2017-07-02 Richard Sandiford <richard.sandiford@linaro.org>
15945 PR tree-optimization/81136
15946 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Only
15947 assert that two references with the same misalignment have the same
15948 compile-time misalignment if those compile-time misalignments
15951 2017-07-01 Andi Kleen <ak@linux.intel.com>
15953 * print-tree.c (print_node): Print all attributes.
15955 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
15957 * cfg.c (scale_bbs_frequencies): New function.
15958 * cfg.h (scale_bbs_frequencies): Declare it.
15959 * cfgloopanal.c (single_likely_exit): Cleanup.
15960 * cfgloopmanip.c (scale_loop_frequencies): Take profile_probability
15962 (scale_loop_profile): Likewise.
15963 (loop_version): Likewise.
15964 (create_empty_loop_on_edge): Update.
15965 * cfgloopmanip.h (scale_loop_frequencies, scale_loop_profile,
15966 scale_loop_frequencies, scale_loop_profile, loopify,
15967 loop_version): Update prototypes.
15968 * modulo-sched.c (sms_schedule): Update.
15969 * predict.c (unlikely_executed_edge_p): Also check probability.
15970 (probably_never_executed_edge_p): Fix typo.
15971 * tree-if-conv.c (version_loop_for_if_conversion): Update.
15972 * tree-parloops.c (gen_parallel_loop): Update.
15973 * tree-ssa-loop-ivcanon.c (try_peel_loop): Update.
15974 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
15975 * tree-ssa-loop-split.c (split_loop): Update.
15976 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
15977 * tree-vect-loop-manip.c (vect_do_peeling): Update.
15978 (vect_loop_versioning): Update.
15979 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
15981 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
15983 * trans-mem.c (split_bb_make_tm_edge): Update profile.
15985 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
15987 * tree-if-conv.c (combine_blocks): Use make_single_succ_edge
15988 to keep profile consistent.
15990 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
15992 * cfgrtl.c (rtl_flow_call_edges_add): Update profile.
15993 * tree-cfg.c (gimple_flow_call_edges_add): Likewise.
15994 * profile-count.h (max_safe_multiplier): Make unsigned.
15995 (profile_count::guessed_zero): New.
15997 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
15999 * bb-reorder.c (fix_up_crossing_landing_pad,
16000 fix_crossing_conditional_branches): Use make_single_succ_edge
16001 to keep profile consistent.
16003 2017-07-01 Jan Hubicka <hubicka@ucw.cz>
16005 * tree-vect-loop.c (optimize_mask_stores): Use make_single_succ_edge
16008 2017-07-01 Jakub Jelinek <jakub@redhat.com>
16011 * bb-reorder.c (fix_up_fall_thru_edges): Move variable declarations to
16012 the right scopes, make sure cond_jump isn't preserved between multiple
16013 iterations. Search for fallthru edge whenever there are 3+ edges and
16014 use find_fallthru_edge for it.
16016 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
16018 Patch by Alexander Monakov <amonakov@ispras.ru>
16019 * sel-sched-ir.c (compute_succs_info): Handle uninitialized
16020 probabilities consistently.
16022 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
16024 * pa.c (pa_expand_compare_and_swap_loop): Update call of
16025 emit_cmp_and_jump_insns.
16027 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
16030 * tree-inline.c (expand_call_inline): Combine profile statuses.
16032 2017-06-30 Andrew Pinski <apinski@cavium.com>
16034 * tree-if-conv.c (predicate_scalar_phi): Update new_stmt if
16035 fold_stmt returned true.
16037 2017-06-30 Nathan Sidwell <nathan@acm.org>
16039 * ggc.h (empty_string): Delete.
16040 * cfgexpand.c (expand_asm_stmt): Use plain "".
16041 * optabs.c (expand_asm_memory_barrier): Likewise.
16042 * stringpool.c (empty_string): Delete.
16043 (digit_vector, digit_string): Delete.
16044 (ggc_alloc_string): Use plain "", don't optimize single digit
16045 strings. Use ggc_alloc_atomic.
16047 2017-06-30 Richard Earnshaw <rearnsha@arm.com>
16049 * rtlanal.c (insn_rtx_cost): If a parallel contains exactly one
16050 comparison set and one other set, use the cost of the non-comparison
16053 2017-06-30 Nathan Sidwell <nathan@acm.org>
16055 * ggc.h: Replace all 'static inline' with plain 'inline'. Fix
16058 2017-06-30 Peter Bergner <bergner@vnet.ibm.com>
16060 * tree-cfg.c (group_case_labels_stmt): Merge scanning and compressing
16061 loops. Remove now unneeded calls to gimple_switch_set_label() that
16062 just set removed labels to NULL_TREE.
16064 2017-06-30 Aldy Hernandez <aldyh@redhat.com>
16066 * tree-ssanames.c (set_range_info_raw): Abstract from ...
16067 (set_range_info): ...here. Only call set_range_info_raw if domain
16069 (set_nonzero_bits): Call set_range_info_raw.
16070 * tree-ssanames.h (set_range_info_raw): New.
16072 2017-06-30 Jakub Jelinek <jakub@redhat.com>
16075 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): For V8FI,
16076 V16FI and VI8F_256 iterators, use <store_mask_predicate> instead
16077 of nonimmediate_operand and <store_mask_constraint> instead of m
16078 for the input operand. For V8FI iterator, always split if input
16079 is a MEM. For V16FI and V8SF_256 iterators, don't test if both
16080 operands are MEM if <mask_applied>. For VI4F_256 iterator, use
16081 <store_mask_predicate> instead of register_operand and
16082 <store_mask_constraint> instead of v for the input operand. Make
16083 sure both operands aren't MEMs for if not <mask_applied>.
16085 2017-06-30 Sylvestre Ledru <sylvestre@debian.org>
16087 * lto-wrapper.c (copy_file) Close both file descriptors before
16090 2017-06-30 Martin Liska <mliska@suse.cz>
16093 * multiple_target.c (create_dispatcher_calls): Make ifunc
16094 also for function that don't have calls or are not referenced.
16096 2017-06-30 Richard Biener <rguenther@suse.de>
16098 * tree-vect-slp.c (vect_slp_analyze_node_operations): Only
16099 analyze the first scalar stmt. Move vector type computation
16100 for the BB case here from ...
16101 * tree-vect-stmts.c (vect_analyze_stmt): ... here. Guard
16102 live operation processing in the SLP case properly.
16104 2017-06-30 Richard Biener <rguenther@suse.de>
16106 * graph.c (draw_cfg_node_succ_edges): Fix broken dot syntax.
16108 2017-06-30 Martin Liska <mliska@suse.cz>
16111 * tree-eh.c (lower_resx): Call BUILT_IN_ASAN_HANDLE_NO_RETURN
16112 before BUILT_IN_UNWIND_RESUME when ASAN is used.
16114 2017-06-30 Yvan Roux <yvan.roux@linaro.org>
16116 * doc/invoke.texi (AArch64): Add missing options and remove redundant
16119 2017-06-30 Richard Biener <rguenther@suse.de>
16121 PR tree-optimization/81249
16122 * tree-vect-loop.c (vect_create_epilog_for_reduction): Convert
16123 condition reduction result to original scalar type.
16125 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16127 * profile-count.h (enum profile_quality): Fix typos and whitespace
16130 2017-06-30 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16132 * config/s390/s390.c (s390_expand_setmem): Adjust to the new data
16133 type for branch probabilities.
16135 2017-06-29 Julian Brown <julian@codesourcery.com>
16136 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
16138 * config/aarch64/aarch64-fusion-pairs.def: Add ALU_BRANCH entry.
16139 * config/aarch64/aarch64.c (AARCH64_FUSE_ALU_BRANCH): New fusion type.
16140 (thunderx2t99_tunings): Set AARCH64_FUSE_ALU_BRANCH flag.
16141 (aarch_macro_fusion_pair_p): Add support for AARCH64_FUSE_ALU_BRANCH.
16143 2017-06-29 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
16145 * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Push the
16146 check for CC usage into AARCH64_FUSE_CMP_BRANCH.
16147 * config/i386/i386.c (ix86_macro_fusion_pair_p): Push the check for
16148 CC usage from generic code to here.
16149 * sched-deps.c (sched_macro_fuse_insns): Move the condition for
16150 CC usage into the target macros.
16152 2017-06-29 Maya Rashish <coypu@sdf.org>
16154 * config/netbsd.h (NETBSD_LIB_SPEC): Add -lc when creating shared
16157 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
16159 * arm/arm-builtins.c: Include profile-count.h
16160 * except.c (sjlj_emit_function_enter): Use
16161 profile_probability::unlikely.
16163 2017-06-29 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16165 * config/rs6000/rs6000.c (toc_relative_expr_p): Make tocrel_base
16166 and tocrel_offset be pointer args rather than implicitly using
16168 (legitimate_constant_pool_address_p, rs6000_emit_move,
16169 const_load_sequence_p, adjust_vperm): Add local tocrel_base and
16170 tocrel_offset and use in toc_relative_expr_p call.
16171 (print_operand, print_operand_address): Use static tocrel_base_oac
16172 and tocrel_offset_oac.
16173 (rs6000_output_addr_const_extra): Use static tocrel_base_oac and
16176 2017-06-29 Maya Rashish <coypu@sdf.org>
16178 * config/vax/builtins.md (ffssi2_internal): Correct constraint.
16180 2017-06-29 Eric Botcazou <ebotcazou@adacore.com>
16182 * expr.c (expand_expr) <normal_inner_ref>: When testing for unaligned
16183 objects, take into account only the alignment of 'op0' and 'mode1' if
16186 2017-06-29 Steve Ellcey <sellcey@cavium.com>
16188 * ccmp.c (ccmp_tree_comparison_p): New function.
16189 (ccmp_candidate_p): Update to use above function.
16190 (get_compare_parts): New function.
16191 (expand_ccmp_next): Update to use new functions.
16192 (expand_ccmp_expr_1): Take tree arg instead of gimple, update to use
16194 (expand_ccmp_expr): Pass tree instead of gimple to expand_ccmp_expr_1,
16195 take mode as argument.
16196 * ccmp.h (expand_ccmp_expr): Add mode as argument.
16197 * expr.c (expand_expr_real_1): Pass mode as argument.
16199 2017-06-29 Segher Boessenkool <segher@kernel.crashing.org>
16201 * combine.c (combine_instructions): Print insns to dump_file, together
16204 2017-06-29 Jan Hubicka <hubicka@ucw.cz>
16206 * asan.c (asan_emit_stack_protection): Update.
16207 (create_cond_insert_point): Update.
16208 * auto-profile.c (afdo_propagate_circuit): Update.
16209 * basic-block.h (struct edge_def): Turn probability to
16210 profile_probability.
16211 (EDGE_FREQUENCY): Update.
16212 * bb-reorder.c (find_traces_1_round): Update.
16213 (better_edge_p): Update.
16214 (sanitize_hot_paths): Update.
16215 * cfg.c (unchecked_make_edge): Initialize probability to uninitialized.
16216 (make_single_succ_edge): Update.
16217 (check_bb_profile): Update.
16218 (dump_edge_info): Update.
16219 (update_bb_profile_for_threading): Update.
16220 * cfganal.c (connect_infinite_loops_to_exit): Initialize new edge
16221 probabilitycount to 0.
16222 * cfgbuild.c (compute_outgoing_frequencies): Update.
16223 * cfgcleanup.c (try_forward_edges): Update.
16224 (outgoing_edges_match): Update.
16225 (try_crossjump_to_edge): Update.
16226 * cfgexpand.c (expand_gimple_cond): Update make_single_succ_edge.
16227 (expand_gimple_tailcall): Update.
16228 (construct_init_block): Use make_single_succ_edge.
16229 (construct_exit_block): Use make_single_succ_edge.
16230 * cfghooks.c (verify_flow_info): Update.
16231 (redirect_edge_succ_nodup): Update.
16232 (split_edge): Update.
16233 (account_profile_record): Update.
16234 * cfgloopanal.c (single_likely_exit): Update.
16235 * cfgloopmanip.c (scale_loop_profile): Update.
16236 (set_zero_probability): Remove.
16237 (duplicate_loop_to_header_edge): Update.
16238 * cfgloopmanip.h (loop_version): Update prototype.
16239 * cfgrtl.c (try_redirect_by_replacing_jump): Update.
16240 (force_nonfallthru_and_redirect): Update.
16241 (update_br_prob_note): Update.
16242 (rtl_verify_edges): Update.
16243 (purge_dead_edges): Update.
16244 (rtl_lv_add_condition_to_bb): Update.
16245 * cgraph.c: (cgraph_edge::redirect_call_stmt_to_calle): Update.
16246 * cgraphunit.c (init_lowered_empty_function): Update.
16247 (cgraph_node::expand_thunk): Update.
16248 * cilk-common.c: Include profile-count.h
16249 * dojump.c (inv): Remove.
16250 (jumpifnot): Update.
16251 (jumpifnot_1): Update.
16252 (do_jump_1): Update.
16254 (do_jump_by_parts_greater_rtx): Update.
16255 (do_compare_rtx_and_jump): Update.
16256 * dojump.h (jumpifnot, jumpifnot_1, jumpif_1, jumpif, do_jump,
16257 do_jump_1. do_compare_rtx_and_jump): Update prototype.
16258 * dwarf2cfi.c: Include profile-count.h
16259 * except.c (dw2_build_landing_pads): Use make_single_succ_edge.
16260 (sjlj_emit_dispatch_table): Likewise.
16261 * explow.c: Include profile-count.h
16262 * expmed.c (emit_store_flag_force): Update.
16263 (do_cmp_and_jump): Update.
16264 * expr.c (compare_by_pieces_d::generate): Update.
16265 (compare_by_pieces_d::finish_mode): Update.
16266 (emit_block_move_via_loop): Update.
16267 (store_expr_with_bounds): Update.
16268 (store_constructor): Update.
16269 (expand_expr_real_2): Update.
16270 (expand_expr_real_1): Update.
16271 * expr.h (try_casesi, try_tablejump): Update prototypes.
16272 * gimple-pretty-print.c (dump_probability): Update.
16273 (dump_profile): New.
16274 (dump_gimple_label): Update.
16275 (dump_gimple_bb_header): Update.
16276 * graph.c (draw_cfg_node_succ_edges): Update.
16277 * hsa-gen.c (convert_switch_statements): Update.
16278 * ifcvt.c (cheap_bb_rtx_cost_p): Update.
16279 (find_if_case_1): Update.
16280 (find_if_case_2): Update.
16281 * internal-fn.c (expand_arith_overflow_result_store): Update.
16282 (expand_addsub_overflow): Update.
16283 (expand_neg_overflow): Update.
16284 (expand_mul_overflow): Update.
16285 (expand_vector_ubsan_overflow): Update.
16286 * ipa-cp.c (good_cloning_opportunity_p): Update.
16287 * ipa-split.c (split_function): Use make_single_succ_edge.
16288 * ipa-utils.c (ipa_merge_profiles): Update.
16289 * loop-doloop.c (add_test): Update.
16290 (doloop_modify): Update.
16291 * loop-unroll.c (compare_and_jump_seq): Update.
16292 (unroll_loop_runtime_iterations): Update.
16293 * lra-constraints.c (lra_inheritance): Update.
16294 * lto-streamer-in.c (input_cfg): Update.
16295 * lto-streamer-out.c (output_cfg): Update.
16296 * mcf.c (adjust_cfg_counts): Update.
16297 * modulo-sched.c (sms_schedule): Update.
16298 * omp-expand.c (expand_omp_for_init_counts): Update.
16299 (extract_omp_for_update_vars): Update.
16300 (expand_omp_ordered_sink): Update.
16301 (expand_omp_for_ordered_loops): Update.
16302 (expand_omp_for_generic): Update.
16303 (expand_omp_for_static_nochunk): Update.
16304 (expand_omp_for_static_chunk): Update.
16305 (expand_cilk_for): Update.
16306 (expand_omp_simd): Update.
16307 (expand_omp_taskloop_for_outer): Update.
16308 (expand_omp_taskloop_for_inner): Update.
16309 * omp-simd-clone.c (simd_clone_adjust): Update.
16310 * optabs.c (expand_doubleword_shift): Update.
16311 (expand_abs): Update.
16312 (emit_cmp_and_jump_insn_1): Update.
16313 (expand_compare_and_swap_loop): Update.
16314 * optabs.h (emit_cmp_and_jump_insns): Update prototype.
16315 * predict.c (predictable_edge_p): Update.
16316 (edge_probability_reliable_p): Update.
16317 (set_even_probabilities): Update.
16318 (combine_predictions_for_insn): Update.
16319 (combine_predictions_for_bb): Update.
16320 (propagate_freq): Update.
16321 (estimate_bb_frequencies): Update.
16322 (force_edge_cold): Update.
16323 * profile-count.c (profile_count::dump): Add missing space into dump.
16324 (profile_count::debug): Add newline.
16325 (profile_count::differs_from_p): Explicitly convert to unsigned.
16326 (profile_count::stream_in): Update.
16327 (profile_probability::dump): New member function.
16328 (profile_probability::debug): New member function.
16329 (profile_probability::differs_from_p): New member function.
16330 (profile_probability::differs_lot_from_p): New member function.
16331 (profile_probability::stream_in): New member function.
16332 (profile_probability::stream_out): New member function.
16333 * profile-count.h (profile_count_quality): Rename to ...
16334 (profile_quality): ... this one.
16335 (profile_probability): New.
16336 (profile_count): Update.
16337 * profile.c (compute_branch_probabilities): Update.
16338 * recog.c (peep2_attempt): Update.
16339 * sched-ebb.c (schedule_ebbs): Update.
16340 * sched-rgn.c (find_single_block_region): Update.
16341 (compute_dom_prob_ps): Update.
16342 (schedule_region): Update.
16343 * sel-sched-ir.c (compute_succs_info): Update.
16344 * stmt.c (struct case_node): Update.
16345 (do_jump_if_equal): Update.
16346 (get_outgoing_edge_probs): Update.
16347 (conditional_probability): Update.
16348 (emit_case_dispatch_table): Update.
16349 (expand_case): Update.
16350 (expand_sjlj_dispatch_table): Update.
16351 (emit_case_nodes): Update.
16352 * targhooks.c: Update.
16353 * tracer.c (better_p): Update.
16354 (find_best_successor): Update.
16355 * trans-mem.c (expand_transaction): Update.
16356 * tree-call-cdce.c: Update.
16357 * tree-cfg.c (gimple_split_edge): Upate.
16358 (move_sese_region_to_fn): Upate.
16359 * tree-cfgcleanup.c (cleanup_control_expr_graph): Upate.
16360 * tree-eh.c (lower_resx): Upate.
16361 (cleanup_empty_eh_move_lp): Upate.
16362 * tree-if-conv.c (version_loop_for_if_conversion): Update.
16363 * tree-inline.c (copy_edges_for_bb): Update.
16364 (copy_cfg_body): Update.
16365 * tree-parloops.c (gen_parallel_loop): Update.
16366 * tree-profile.c (gimple_gen_ic_func_profiler): Update.
16367 (gimple_gen_time_profiler): Update.
16368 * tree-ssa-dce.c (remove_dead_stmt): Update.
16369 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
16370 * tree-ssa-loop-im.c (execute_sm_if_changed): Update.
16371 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update.
16372 (unloop_loops): Update.
16373 (try_peel_loop): Update.
16374 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
16375 * tree-ssa-loop-split.c (connect_loops): Update.
16376 (split_loop): Update.
16377 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Update.
16378 (hoist_guard): Update.
16379 * tree-ssa-phionlycprop.c (propagate_rhs_into_lhs): Update.
16380 * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Update.
16381 (value_replacement): Update.
16382 * tree-ssa-reassoc.c (branch_fixup): Update.
16383 * tree-ssa-tail-merge.c (replace_block_by): Update.
16384 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Update.
16385 (create_edge_and_update_destination_phis): Update.
16386 (compute_path_counts): Update.
16387 (recompute_probabilities): Update.
16388 (update_joiner_offpath_counts): Update.
16389 (freqs_to_counts_path): Update.
16390 (duplicate_thread_path): Update.
16391 * tree-switch-conversion.c (hoist_edge_and_branch_if_true): Update.
16392 (struct switch_conv_info): Update.
16393 (gen_inbound_check): Update.
16394 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
16395 (vect_do_peeling): Update.
16396 (vect_loop_versioning): Update.
16397 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
16398 (optimize_mask_stores): Update.
16399 * ubsan.c (ubsan_expand_null_ifn): Update.
16400 * value-prof.c (gimple_divmod_fixed_value): Update.
16401 (gimple_divmod_fixed_value_transform): Update.
16402 (gimple_mod_pow2): Update.
16403 (gimple_mod_pow2_value_transform): Update.
16404 (gimple_mod_subtract): Update.
16405 (gimple_mod_subtract_transform): Update.
16406 (gimple_ic): Update.
16407 (gimple_stringop_fixed_value): Update.
16408 (gimple_stringops_transform): Update.
16409 * value-prof.h: Update.
16411 2017-06-29 Carl Love <cel@us.ibm.com>
16413 * config/rs6000/rs6000-c.c: Add support for built-in functions
16414 vector signed int vec_signed (vector float);
16415 vector signed long long vec_signed (vector double);
16416 vector signed int vec_signed2 (vector double, vector double);
16417 vector signed int vec_signede (vector double);
16418 vector signed int vec_signedo (vector double);
16419 * config/rs6000/rs6000.c (rs6000_generate_vsigned2_code): Add
16420 instruction generator.
16421 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
16422 UNSPEC_VSX_VSIGNED2): Add UNSPECS.
16423 (vsx_xvcvspsxws, vsx_xvcvdpuxds_scale, vsx_xvcvspuxws, vsigned2_v2df):
16425 (vsignedo_v2df, vsignede_v2df, vunsigned2_v2df, vunsignedo_v2df,
16426 vunsignede_v2df): Add define_expands.
16427 * config/rs6000/rs6000-builtin.def (VEC_SIGNED, VEC_UNSIGNED,
16428 VEC_SIGNED2, VEC_UNSIGNED2, VEC_SIGNEDE, VEC_UNSIGNEDE, VEC_SIGNEDO,
16429 VEC_UNSIGNEDO): Add definitions.
16430 * config/vsx.md (UNSPEC_VSX_XVCVSPSXWS, UNSPEC_VSX_XVCVSPSXDS,
16431 UNSPEC_VSX_VSIGNED2): Add UNSPECs.
16432 (vsx_xvcvspsxws, vsx_xvcvspuxws): Add define_insn.
16433 (vsigned2_v2df, vsigendo_v2df, vsignede_v2df,
16434 vunsigned2_v2df, vunsignedo_v2df, vunsignede_v2df): Add define_expands.
16435 * config/rs6000/altivec.h (vec_signed, vec_signed2,
16436 vec_signede and vec_signedo, vec_unsigned, vec_unsigned2,
16437 vec_unsignede, vec_unsignedo): Add builtin defines.
16438 * config/rs6000-protos.h (rs6000_generate_vsigned2_code): Add extern
16440 * doc/extend.texi: Update the built-in documentation file for the
16441 new built-in functions.
16443 2017-06-29 Richard Biener <rguenther@suse.de>
16445 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Do not add
16446 reduction chains to LOOP_VINFO_REDUCTIONS.
16447 * tree-vect-slp.c (vect_analyze_slp): Continue looking for
16448 SLP reductions after processing reduction chains.
16450 2017-06-29 Nathan Sidwell <nathan@acm.org>
16452 * builtins.c (fold_builtin_FUNCTION): Use
16453 lang_hooks.decl_printable_name.
16455 2017-06-29 Peter Bergner <bergner@vnet.ibm.com>
16457 PR middle-end/81194
16458 * cfgexpand.c (expand_gimple_stmt_1): Handle switch statements
16459 with only one label.
16460 * stmt.c (expand_case): Assert NCASES is greater than one.
16462 2017-06-29 Richard Biener <rguenther@suse.de>
16464 * tree-cfg.c (group_case_labels_stmt): Return whether we changed
16466 (group_case_labels): Likewise.
16467 (find_taken_edge): Push sanity checking on val to workers...
16468 (find_taken_edge_cond_expr): ... here
16469 (find_taken_edge_switch_expr): ... and here, handle cases
16470 with just a default label.
16471 * tree-cfg.h (group_case_labels_stmt): Adjust prototype.
16472 (group_case_labels): Likewise.
16473 * tree-cfgcleanup.c (execute_cleanup_cfg_post_optimizing): When
16474 group_case_labels does anything cleanup the CFG again.
16476 2017-06-29 Bin Cheng <bin.cheng@arm.com>
16478 PR tree-optimization/81196
16479 * tree-ssa-loop-niter.c (number_of_iterations_cond): Handle loop
16480 exit condition comparing two IVs.
16482 2017-06-29 Richard Earnshaw <rearnsha@arm.com>
16484 * config/arm/parsecpu.awk (gen_comm_data): Add initializer for
16485 profile to the dummy entry at the end of the list of architectures.
16486 * config/arm/arm-cpu-cdata.h: Regenerated.
16488 2017-06-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16489 Michael Collison <michael.collison@arm.com>
16492 * config/aarch64/aarch64.md (*aarch64_<optab>_reg_<mode>3_mask1):
16494 (*aarch64_reg_<mode>3_neg_mask2): New pattern.
16495 (*aarch64_reg_<mode>3_minus_mask): New pattern.
16496 (*aarch64_<optab>_reg_di3_mask2): New pattern.
16497 * config/aarch64/aarch64.c (aarch64_rtx_costs): Account for cost
16498 of shift when the shift amount is masked with constant equal to
16499 the size of the mode.
16500 * config/aarch64/predicates.md (subreg_lowpart_operator): New
16503 2017-06-29 Martin Liska <mliska@suse.cz>
16505 * config/i386/i386.opt: Change range from [1,5] to [0,5].
16507 2017-06-29 Yury Gribov <tetra2005@gmail.com>
16510 * ipa-cp.c (allocate_and_init_ipcp_value): Add initialization
16513 (edge_growth_cache_entry::edge_growth_cache_entry): New
16515 (reset_edge_growth_cache): Update to use constructor.
16517 2017-06-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16519 * config/aarch64/aarch64.h (AARCH64_EXPAND_ALIGNMENT): New.
16520 (DATA_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
16521 (LOCAL_ALIGNMENT): Update to use AARCH64_EXPAND_ALIGNMENT.
16523 2017-06-28 Sebastian Peryt <sebastian.peryt@intel.com>
16525 * config/i386/avx512vlintrin.h (_mm256_permutexvar_epi64)
16526 (_mm256_permutexvar_epi32, _mm256_permutex_epi64): New intrinsics.
16528 2017-06-28 Szabolcs Nagy <szabolcs.nagy@arm.com>
16530 * config.gcc (*-linux-musl*): Add t-musl tmake_file.
16531 (*-linux-uclibc*): Add t-uclibc tmake_file.
16532 * config/t-musl: New.
16533 * config/t-uclibc: New.
16535 2017-06-28 Richard Earnshaw <rearnsha@arm.com>
16537 * config/arm/parsecpu.awk (profile): Parse new keyword in an arch
16539 (gen_comm_data): Emit architectural setting of arch_prof.
16540 * config/arm/arm-cpus.in (armv6-m, armv6s-m, armv7-a, armv7ve): Set the
16542 (armv7-r, armv7-m, armv7e-m, armv8-a, armv8.1-a, armv8.2-a): Likewise.
16543 (armv8-m.base, armv8-m.main): Likewise.
16544 * arm-protos.h (arm_build_target): Add profile field.
16545 (arch_option): Likewise.
16546 * config/arm/arm.c (arm_configure_build_target): Copy the profile to
16548 * config/arm/arm.h (TARGET_ARM_ARCH_PROFILE): Use
16549 arm_active_target.profile.
16551 2017-06-28 Richard Biener <rguenther@suse.de>
16553 PR middle-end/81227
16554 * fold-const.c (negate_expr_p): Use TYPE_UNSIGNED, not
16555 TYPE_OVERFLOW_WRAPS.
16556 * match.pd (negate_expr_p): Likewise.
16557 * tree-ssa-reassoc.c (optimize_range_tests_diff): Use
16558 fold_build2, not fold_binary.
16560 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
16562 * config/aarch64/aarch64 (aarch64_expand_mov_immediate):
16563 Convert memory address to Pmode.
16564 (aarch64_print_operand): Assert MEM operands are always Pmode.
16566 2017-06-28 Wilco Dijkstra <wdijkstr@arm.com>
16569 * config/arm/aarch-common.c (arm_no_early_alu_shift_dep):
16570 Remove redundant if.
16571 (aarch_forward_to_shift_is_not_shifted_reg): Remove.
16572 * config/arm/aarch-common-protos.h
16573 (aarch_forward_to_shift_is_not_shifted_re): Remove.
16574 * config/arm/cortex-a53.md: Use arm_no_early_alu_shift_dep in bypass.
16576 2017-06-28 Michael Meissner <meissner@linux.vnet.ibm.com>
16579 * multiple_target.c (create_dispatcher_calls): Set the default
16580 clone to be static, not public.
16582 2017-06-28 Richard Biener <rguenther@suse.de>
16584 * tree-vect-loop.c (vectorizable_reduction): Move special
16585 cond reduction IV var creation ...
16586 (vect_create_epilog_for_reduction): ... here. Remove induction_index
16587 parameter. Use STMT_VINFO_VECTYPE.
16588 * tree-vect-slp.c (vect_get_constant_vectors): Properly reset
16591 2017-06-28 Martin Liska <mliska@suse.cz>
16594 * ipa-visibility.c (non_local_p): Handle visibility.
16596 2017-06-28 Martin Liska <mliska@suse.cz>
16599 * common.opt: Add IntegerRange to various options.
16600 * opt-functions.awk (integer_range_info): New function.
16601 * optc-gen.awk: Add integer_range_info to cl_options struct.
16602 * opts-common.c (decode_cmdline_option): Handle
16603 CL_ERR_INT_RANGE_ARG.
16604 (cmdline_handle_error): Likewise.
16605 * opts.c (print_filtered_help): Show valid interval in
16606 when --help is provided.
16607 * opts.h (struct cl_option): Add range_min and range_max fields.
16608 * config/i386/i386.opt: Add IntegerRange for -mbranch-cost.
16610 2017-06-28 Marc Glisse <marc.glisse@inria.fr>
16612 * match.pd ((X & ~Y) | (~X & Y)): Generalize to + and ^.
16613 (x * C EQ/NE y * C): New transformation.
16615 2017-06-28 Christophe Lyon <christophe.lyon@linaro.org>
16617 * genmultilib (combination_space): Accept '+' in option names.
16619 2017-06-28 Martin Liska <mliska@suse.cz>
16622 * asan.c (instrument_derefs): Bail out inner references
16623 that are hard register variables.
16625 2017-06-28 Jakub Jelinek <jakub@redhat.com>
16628 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use def_builtin
16629 rather than def_builtin_pure for __builtin_ia32_gatherpf*.
16631 2017-06-28 Richard Biener <rguenther@suse.de>
16633 * tree-vectorizer.h (vect_get_vec_defs): Remove.
16634 (vect_get_slp_defs): Adjust.
16635 * tree-vect-loop.c (get_initial_defs_for_reduction): Split
16637 * tree-vect-slp.c (vect_get_constant_vectors): ... here and
16639 * tree-vect-loop.c (vect_create_epilog_for_reduction): Use
16640 get_initial_defs_for_reduction instead of vect_get_vec_defs.
16641 (vectorizable_reduction): Adjust.
16642 * tree-vect-slp.c (vect_get_constant_vectors): Remove reduction
16644 (vect_get_slp_defs): Likewise.
16645 * tree-vect-stmts.c (vect_get_vec_defs): Make static and adjust.
16646 (vectorizable_bswap): Adjust.
16647 (vectorizable_call): Likewise.
16648 (vectorizable_conversion): Likewise.
16649 (vectorizable_assignment): Likewise.
16650 (vectorizable_shift): Likewise.
16651 (vectorizable_operation): Likewise.
16652 (vectorizable_store): Likewise.
16653 (vectorizable_condition): Likewise.
16654 (vectorizable_comparison): Likewise.
16656 2017-06-28 Michael Collison <michael.collison@arm.com>
16659 * config/arm/arm.c (gen_ldm_seq): Remove last unnecessary
16661 (arm_gen_movmemqi): Removed unused variable 'i'.
16662 Convert 'for' loop into 'while' loop.
16663 (arm_expand_prologue): Remove last unnecessary set of insn.
16664 (thumb_pop): Remove unused variable 'pushed_words'.
16665 (thumb_exit): Remove last unnecessary set of regs_to_pop.
16667 2017-06-28 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16669 * config/s390/predicates.md: Use s390_rel_address_ok_p.
16670 * config/s390/s390-protos.h: Add prototype of
16671 s390_rel_address_ok_p.
16672 * config/s390/s390.c (s390_got_symbol): New function.
16673 (s390_rel_address_ok_p): New function.
16674 (legitimize_pic_address): Use s390_rel_address_ok_p.
16675 (s390_load_got): Use s390_got_symbol.
16676 (s390_option_override): Issue error if
16677 -mno-pic-data-is-text-relative is used without -fpic/-fPIC.
16678 * config/s390/s390.h (TARGET_DEFAULT_PIC_DATA_IS_TEXT_RELATIVE):
16680 * config/s390/s390.opt: New option mpic-data-is-text-relative.
16682 2017-06-27 Andrew Pinski <apinski@cavium.com>
16684 * match.pd (X >/>=/</<= 0 ? 1.0 : -1.0): New patterns.
16685 (X * copysign (1.0, X)): New pattern.
16686 (X * copysign (1.0, -X)): New pattern.
16687 (copysign (-1.0, CST)): New pattern.
16689 2017-06-27 Joseph Myers <joseph@codesourcery.com>
16691 * genmultilib (combination_space): Remove variable.
16692 Validate reuse rules against regular expression for any sequence
16693 of multilib options in any order.
16695 2017-06-27 Michael Collison <michael.collison@arm.com>
16697 * config/aarch64/aarch64-simd.md (aarch64_combine<mode>): Directly
16698 call aarch64_split_simd_combine.
16699 * (aarch64_combine_internal<mode>): Delete pattern.
16700 * config/aarch64/aarch64.c (aarch64_split_simd_combine):
16701 Allow register and subreg operands.
16703 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
16705 * config/i386/vxworks.h (ASM_SPEC): Remove definition. No target
16706 specific need, just fallback on defaults.
16707 (ASM_OUTPUT_ALIGNED_BSS): Add #undef before #define.
16709 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
16710 Olivier Hainque <hainque@adacore.com>
16712 * config/i386/vxworks.h (DBX_REGISTER_NUMBER): Pick distinct
16714 (TARGET_OS_CPP_BUILTINS): builtin_define CPU to X86_64 for 64bit
16715 targets. Pick a default if no particular attempt applied.
16716 (STACK_CHECK_PROTECT): Double for 64bit targets, which have
16719 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
16721 * config.gcc (i*86-wrs-vxworks7): Handle new acceptable triplet.
16722 (x86_64-wrs-vxworks7): Likewise.
16724 2017-06-27 Marek Polacek <polacek@redhat.com>
16727 * ubsan.c (instrument_null): Check get_base_address's result for null.
16729 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
16731 * match.pd ((A+-B)+(C-A), (A+B)-(A-C)): New transformations.
16733 2017-06-27 Marc Glisse <marc.glisse@inria.fr>
16735 * builtin-types.def (BT_FENV_T_PTR, BT_CONST_FENV_T_PTR,
16736 BT_FEXCEPT_T_PTR, BT_CONST_FEXCEPT_T_PTR): New primitive types.
16737 (BT_FN_INT_FENV_T_PTR, BT_FN_INT_CONST_FENV_T_PTR,
16738 BT_FN_INT_FEXCEPT_T_PTR_INT, BT_FN_INT_CONST_FEXCEPT_T_PTR_INT):
16739 New function types.
16740 * builtins.def (BUILT_IN_FECLEAREXCEPT, BUILT_IN_FEGETENV,
16741 BUILT_IN_FEGETEXCEPTFLAG, BUILT_IN_FEGETROUND,
16742 BUILT_IN_FEHOLDEXCEPT, BUILT_IN_FERAISEEXCEPT,
16743 BUILT_IN_FESETENV, BUILT_IN_FESETEXCEPTFLAG,
16744 BUILT_IN_FESETROUND, BUILT_IN_FETESTEXCEPT,
16745 BUILT_IN_FEUPDATEENV): New builtins.
16746 * tree-core.h (TI_FENV_T_PTR_TYPE, TI_CONST_FENV_T_PTR_TYPE,
16747 TI_FEXCEPT_T_PTR_TYPE, TI_CONST_FEXCEPT_T_PTR_TYPE): New entries.
16748 * tree.h (fenv_t_ptr_type_node, const_fenv_t_ptr_type_node,
16749 fexcept_t_ptr_type_node, const_fexcept_t_ptr_type_node): New
16751 (builtin_structptr_types): Adjust size.
16752 * tree.c (builtin_structptr_types): Add four entries.
16754 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
16755 Olivier Hainque <hainque@adacore.com>
16757 * config/vxworks.h (VXWORKS_LIB_SPEC): Incorporate ...
16758 (TLS_SYM): New local macro, forcing reference to __tls__ on
16759 link command lines for VxWorks 7 RTPs, triggering initialization
16761 (VXWORKS_HAVE_TLS): New macro. State whether the target VxWorks
16762 OS features TLS support, true for RTPs on VxWorks 7.
16763 * config/vxworks.c (vxworks_override_options): Setup emutls
16766 2017-06-27 Jakub Jelinek <jakub@redhat.com>
16768 * predict.c (test_prediction_value_range): Use -1U instead of -1
16769 to avoid narrowing conversion warning.
16770 * dumpfile.c (dump_options): Wrap all value into dump_flags_t cast
16771 to avoid narrowing conversion warning.
16772 * opt-functions.awk (var_ref): Return (unsigned short) -1 instead of
16774 * optc-gen.awk (END): Expect (unsigned short) -1 instead of -1.
16776 2017-06-27 Jerome Lambourg <lambourg@adacore.com>
16778 * config/vxworks.h (VXWORKS_LIBS_RTP): Alternative definition for
16779 64bit configurations.
16780 (PTR_DIFF_TYPE): Alternative definition for TARGET_LP64.
16781 (SIZE_TYPE): Likewise.
16782 * config/vxworks.c (vxworks_emutls_var_fields): Use
16783 long_unsigned_type_node instead of unsigned_type_node as the offset
16784 field type, which is "pointer" mode in emutls.c.
16786 2017-06-27 Jakub Jelinek <jakub@redhat.com>
16789 * ubsan.c (ubsan_encode_value): Initialize DECL_CONTEXT on var.
16791 PR middle-end/81207
16792 * gimple-fold.c (replace_call_with_call_and_fold): Handle
16793 gimple_vuse copying separately from gimple_vdef copying.
16795 2017-06-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
16797 * value-prof.c (free_hist): Remove call to memset and the enclosing if
16800 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
16801 Olivier Hainque <hainque@adacore.com>
16803 * config.gcc (*-*-vxworks*): Add TARGET_VXWORKS7=1 to tm_defines
16804 for all vxworks7 targets.
16805 * config/vxworks.h (TARGET_VXWORKS7): If not defined, define to 0.
16806 (VXWORKS_ADDITIONAL_CPP_SPEC): Alternative definition for VXWORKS7.
16807 (VXWORKS_LIBS_RTP, VXWORKS_LIBS_RTP_DIR): New macros, allowing
16808 variations for VX6/VX7 and 32/64bits later on in ...
16809 (VXWORKS_LIB_SPEC): Leverage new macros.
16810 (VXWORKS_OS_CPP_BUILTINS): Define _VSB_CONFIG_FILE for VXWORKS7,
16811 as well as _ALLOW_KEYWORD_MACROS when "inline" is not a keyword.
16813 2017-06-26 Jerome Lambourg <lambourg@adacore.com>
16815 * config/vxworks.h (VXWORKS_OS_CPP_BUILTINS): builtin_define
16816 _VX_TOOL_FAMILY and _VX_TOOL to gnu.
16818 2017-06-26 Carl Love <cel@us.ibm.com>
16820 * config/rs6000/rs6000-c.c: Add support for built-in functions
16821 vector bool char vec_reve (vector bool char);
16822 vector signed char vec_reve (vector signed char);
16823 vector unsigned char vec_reve (vector unsigned char);
16824 vector bool int vec_reve (vector bool int);
16825 vector signed int vec_reve (vector signed int);
16826 vector unsigned int vec_reve (vector unsigned int);
16827 vector bool long long vec_reve (vector bool long long);
16828 vector signed long long vec_reve (vector signed long long);
16829 vector unsigned long long vec_reve (vector unsigned long long);
16830 vector bool short vec_reve (vector bool short);
16831 vector signed short vec_reve (vector signed short);
16832 vector double vec_reve (vector double);
16833 vector float vec_reve (vector float);
16834 * config/rs6000/rs6000-builtin.def (VREVE_V2DI, VREVE_V4SI,
16835 VREVE_V8HI, VREVE_V16QI, VREVE_V2DF, VREVE_V4SF, VREVE): New builtin.
16836 * config/rs6000/altivec.md (UNSPEC_VREVEV): New UNSPEC.
16837 (altivec_vreve): New pattern.
16838 * config/rs6000/altivec.h (vec_reve): New define.
16839 * doc/extend.texi (vec_rev): Update the built-in documentation file
16840 for the new built-in functions.
16842 2016-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16844 PR tree-optimization/71815
16845 * gimple-ssa-strength-reduction.c (uses_consumed_by_stmt): New
16847 (find_basis_for_candidate): Call uses_consumed_by_stmt rather than
16849 (slsr_process_phi): Likewise.
16850 (replace_uncond_cands_and_profitable_phis): Don't replace a
16851 multiply candidate with a stride of 1 (copy or cast).
16852 (phi_incr_cost): Call uses_consumed_by_stmt rather than
16854 (lowest_cost_path): Likewise.
16855 (total_savings): Likewise.
16857 2017-06-26 Richard Biener <rguenther@suse.de>
16860 * config/i386/i386.c (ix86_init_mmx_sse_builtins):
16861 Use def_builtin_pure for all gather builtins.
16863 2017-06-26 Richard Biener <rguenther@suse.de>
16865 PR tree-optimization/81203
16866 * tree-tailcall.c (find_tail_calls): Do not move stmts into
16867 non-dominating BBs.
16869 2017-06-26 Marek Polacek <polacek@redhat.com>
16872 * doc/invoke.texi: Document -Wmultistatement-macros.
16874 2017-06-26 Christophe Lyon <christophe.lyon@linaro.org>
16876 * doc/sourcebuild.texi (ARM-specific attributes): Document new
16877 arm_neon_ok_no_float_abi effective target.
16879 2017-06-26 Richard Biener <rguenther@suse.de>
16881 PR tree-optimization/80928
16882 * cfghooks.c (duplicate_block): Do not copy BB_DUPLICATED flag.
16883 (copy_bbs): Set BB_DUPLICATED flag early.
16884 (execute_on_growing_pred): Do not execute for BB_DUPLICATED
16886 (execute_on_shrinking_pred): Likewise.
16887 * tree-ssa.c (ssa_redirect_edge): Do not look for PHI args in
16888 BB_DUPLICATED blocks.
16889 * tree-ssa-phionlycoprop.c (eliminate_degenerate_phis_1): Properly
16890 iterate over all PHIs considering removal of *gsi.
16892 2017-06-23 Jim Wilson <jim.wilson@linaro.org>
16894 * doc/invoke.texi (AArch64 Options, -mtune): Re-add falkor and
16897 2017-06-23 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
16899 * config/rs6000/rs6000-string.c: (expand_block_clear,
16900 do_load_for_compare, select_block_compare_mode,
16901 compute_current_alignment, expand_block_compare,
16902 expand_strncmp_align_check, expand_strn_compare,
16903 expand_block_move, rs6000_output_load_multiple)
16904 Move functions related to string/block move/compare
16905 to a separate file.
16906 * config/rs6000/rs6000.c: Move above functions to rs6000-string.c.
16907 * config/rs6000/rs6000-protos.h (rs6000_emit_dot_insn): Add prototype
16908 for this function which is now used in two files.
16909 * config/rs6000/t-rs6000: Add rule to compile rs6000-string.o.
16910 * config.gcc: Add rs6000-string.o to extra_objs for
16911 targets powerpc*-*-* and rs6000*-*-*.
16913 2017-06-23 Michael Meissner <meissner@linux.vnet.ibm.com>
16916 * config/rs6000/rs6000.md (ALTIVEC_DFORM): Do not allow DImode in
16917 32-bit, since indexed is not valid for DImode.
16918 (mov<mode>_hardfloat32): Reorder ISA 2.07 load/stores before ISA
16919 3.0 d-form load/stores to be the same as mov<mode>_hardfloat64.
16920 (define_peephole2 for Altivec d-form load): Add 32-bit support.
16921 (define_peephole2 for Altivec d-form store): Likewise.
16924 * multiple_target.c (create_dispatcher_calls): Only create the
16925 dispatcher call if the function is the default clone of a
16926 versioned function.
16928 2017-06-23 Segher Boessenkool <segher@kernel.crashing.org>
16930 PR middle-end/80902
16931 * builtins.c (expand_builtin_atomic_fetch_op): If emitting code after
16932 a call, force the call to not be a tail call.
16934 2017-06-23 Jeff Law <law@redhat.com>
16936 * doc/contrib.texi: Add entry for Steven Pemberton's work on
16939 2017-06-23 Will Schmidt <will_schmidt@vnet.ibm.com>
16941 * config/rs6000/rs6000.c: Add include of ssa-propagate.h for
16942 update_call_from_tree(). (rs6000_gimple_fold_builtin): Add
16943 handling for early expansion of vector shifts (sl,sr,sra,rl).
16944 (builtin_function_type): Add vector shift right instructions
16945 to the unsigned argument list.
16947 2017-06-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
16949 rtl-optimizatoin/79286
16950 * ira.c (update_equiv_regs): Revert to using may_trap_or_fault_p again.
16951 * rtlanal.c (rtx_addr_can_trap_p_1): SYMBOL_REF_FUNCTION_P can never
16952 trap. PIC register plus a const unspec without offset can never trap.
16954 2017-06-23 Marc Glisse <marc.glisse@inria.fr>
16956 * tree.h (builtin_structptr_type): New type.
16957 (builtin_structptr_types): Declare new array.
16958 * tree.c (builtin_structptr_types): New array.
16959 (free_lang_data, build_common_tree_nodes): Use it.
16961 2017-06-23 Jonathan Wakely <jwakely@redhat.com>
16964 * doc/invoke.texi (-Wnoexcept-type): Fix name of option, from
16967 2017-06-22 Matt Turner <mattst88@gmail.com>
16969 * config/i386/driver-i386.c (host_detect_local_cpu): Add Kaby
16970 Lake models to skylake case. Assume skylake for unknown
16971 models with clflushopt.
16973 2017-06-22 Jeff Law <law@redhat.com>
16975 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Handle
16976 frame sizes that do not satisfy aarch64_uimm12_shift.
16978 2017-06-22 Jan Hubicka <hubicka@ucw.cz>
16980 * profile-count.h (apply_probability,
16981 apply_scale, probability_in): Fix checks for zero.
16983 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16985 * incpath.c (add_sysroot_to_chain): Allow for $SYSROOT prefix.
16986 * doc/cppdiropts.texi (-I @var{dir}): Document it.
16988 2016-06-22 Richard Biener <rguenther@suse.de>
16990 * tree-vect-loop.c (vect_model_reduction_cost): Handle
16991 COND_REDUCTION and INTEGER_INDUC_COND_REDUCTION without
16992 REDUC_MAX_EXPR support.
16993 (vectorizable_reduction): Likewise.
16994 (vect_create_epilog_for_reduction): Likewise.
16996 2017-06-22 James Greenhalgh <james.greenhalgh@arm.com>
16998 * match.pd (A / (1 << B) -> A >> B): New.
16999 * generic-match-head.c: Include optabs-tree.h.
17000 * gimple-match-head.c: Likewise.
17001 * optabs-tree.h (target_supports_op_p): New.
17002 * optabs-tree.c (target_supports_op_p): New.
17004 2017-06-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17006 * configure.ac (gcc_cv_ld_static_dynamic): Also check stderr for
17007 $gcc_cv_ld --help output.
17008 (gcc_cv_ld_demangle): Likewise.
17009 (gcc_cv_ld_eh_frame_hdr): Likewise.
17010 (gcc_cv_ld_pie): Likewise.
17011 (gcc_cv_ld_as_needed): Likewise. Prefer native forms unless $gnu_ld.
17012 (gcc_cv_ld_buildid): Likewise.
17013 (gcc_cv_ld_sysroot): Likewise.
17014 (ld_bndplt_support): Likewise.
17015 (ld_pushpopstate_support): Likewise.
17016 * configure: Regenerate.
17017 * config/sol2.h [!USE_GLD] (SYSROOT_SPEC): Define.
17019 2017-06-21 Jakub Jelinek <jakub@redhat.com>
17022 * config/i386/sse.md (round<mode>2): Renumber match_dup and
17023 operands indexes to avoid gap between operands and match_dups.
17025 2017-06-21 Andrew Pinski <apinski@cavium.com>
17027 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
17028 Increment Arith_shift and Arith_shift_reg by 1.
17029 * config/aarch64/aarch64-tuning-flags.def (cheap_shift_extend):
17031 * config/aarch64/aarch64.c (thunderx_tunings): Enable
17032 AARCH64_EXTRA_TUNE_CHEAP_SHIFT_EXTEND.
17033 (aarch64_strip_extend): Add new argument and test for it.
17034 (aarch64_cheap_mult_shift_p): New function.
17035 (aarch64_rtx_mult_cost): Call aarch64_cheap_mult_shift_p and don't
17036 add a cost if it is true.
17037 Update calls to aarch64_strip_extend.
17038 (aarch64_rtx_costs): Update calls to aarch64_strip_extend.
17040 2017-06-21 Andrew Pinski <apinski@cavium.com>
17042 * config/aarch64/aarch64-cores.def (thunderxt88p1): Use thunderxt88
17044 (thunderxt88): Likewise.
17045 * config/aarch64/aarch64.c (thunderxt88_prefetch_tune): New variable.
17046 (thunderx_prefetch_tune): New variable.
17047 (thunderx2t99_prefetch_tune): Update for the correct values.
17048 (thunderxt88_tunings): New variable.
17049 (thunderx_tunings): Use thunderx_prefetch_tune instead of
17050 generic_prefetch_tune.
17051 (thunderx2t99_tunings): Use AUTOPREFETCHER_WEAK.
17053 2017-06-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17055 * config/aarch64/atomics.md (aarch64_compare_and_swap<mode>_lse,
17056 SHORT): Relax operand 3 to aarch64_reg_or_zero and constraint to Z.
17057 (aarch64_compare_and_swap<mode>_lse, GPI): Likewise.
17058 (aarch64_atomic_cas<mode>, SHORT): Likewise for operand 2.
17059 (aarch64_atomic_cas<mode>, GPI): Likewise.
17061 2017-06-21 Martin Liska <mliska@suse.cz>
17063 * gimplify.c (gimplify_label_expr): Insert GIMPLE_PREDICT
17064 statements on cold and hot labels.
17065 * predict.c (tree_estimate_probability_bb): Remove the
17066 prediction from this place.
17068 2017-06-21 Martin Liska <mliska@suse.cz>
17070 PR tree-optimization/79489
17071 * gimplify.c (maybe_add_early_return_predict_stmt): New
17073 (gimplify_return_expr): Call the function.
17074 * predict.c (tree_estimate_probability_bb): Remove handling
17076 * predict.def: Update comment about early return predictor.
17077 * gimple-predict.h (is_gimple_predict): New function.
17078 * predict.def: Change default value of early return to 66.
17079 * tree-tailcall.c (find_tail_calls): Skip GIMPLE_PREDICT
17081 * passes.def: Put pass_strip_predict_hints to the beginning of
17084 2017-06-21 Pierre-Marie de Rodat <derodat@adacore.com>
17086 * dwarf2out.c (gen_decl_die): Remove the guard to skip file-scope
17087 FUNCTION_DECL declarations.
17088 (dwarf2out_early_global_decl): Remove the guard to skip FUNCTION_DECL
17090 (dwaf2out_decl): Likewise.
17091 * godump.c (go_early_global_decl): Skip call to the real debug hook
17092 for FUNCTION_DECL declarations.
17093 * passes.c (rest_of_decl_compilation): Skip call to the
17094 early_global_decl debug hook for FUNCTION_DECL declarations, unless
17095 -fdump-go-spec is passed.
17097 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
17099 * config/i386/i386.c (struct builtin_isa): New field pure_p.
17100 Reorder for compactness.
17101 (def_builtin, def_builtin2, ix86_add_new_builtins): Handle pure_p.
17102 (def_builtin_pure, def_builtin_pure2): New functions.
17103 (ix86_init_mmx_sse_builtins) [__builtin_ia32_stmxcsr]: Mark as pure.
17105 2017-06-21 Marc Glisse <marc.glisse@inria.fr>
17107 * match.pd (nop_convert): New predicate.
17108 ((A +- CST1) +- CST2): Allow some NOP conversions.
17110 2017-06-21 Jakub Jelinek <jakub@redhat.com>
17113 * gimplify.c (omp_add_variable): Don't force GOVD_SEEN for types
17114 with ctors/dtors if GOVD_SHARED is set.
17116 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
17118 * config/aarch64/aarch64.md (movti_aarch64):
17119 Emit mov rather than orr.
17120 (movtf_aarch64): Likewise.
17121 * config/aarch64/aarch64-simd.md (aarch64_simd_mov):
17122 Emit mov rather than orr.
17124 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
17126 * config/aarch64/aarch64-simd.md (aarch64_simd_dup):
17127 Swap alternatives, make integer dup more expensive.
17129 2017-06-21 Wilco Dijkstra <wdijkstr@arm.com>
17131 * config/aarch64/aarch64.c (aarch64_legitimate_constant_p):
17132 Return true for non-tls symbols.
17134 2017-06-21 James Greenhalgh <james.greenhalgh@arm.com>
17136 * config/aarch64/aarch64-cores.def (cortex-a55): New.
17137 (cortex-a75): Likewise.
17138 (cortex-a75.cortex-a55): Likewise.
17139 * config/aarch64/aarch64-tune.md: Regenerate.
17140 * doc/invoke.texi (-mtune): Document new values for -mtune.
17142 2017-06-21 Tom de Vries <tom@codesourcery.com>
17144 * doc/sourcebuild.texi (Add Options, Features for dg-add-options): Add
17145 stack_size feature.
17146 (Effective-Target Keywords, Other attributes): Suggest using
17147 dg-add-options stack_size feature to get stack limit in stack_size
17148 effective target documentation.
17150 2017-06-21 Julian Brown <julian@codesourcery.com>
17151 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
17153 * config/aarch64/aarch64-simd.md (aarch64_crypto_pmulldi)
17154 (aarch64_crypto_pmullv2di): Change type attribute to crypto_pmull.
17155 * config/aarch64/thunderx2t99.md (thunderx2t99_pmull): New
17157 * config/arm/cortex-a53.md (cortex_a53_advsimd_type): Add crypto_pmull to
17158 attribute type list for neon_multiply.
17159 * config/arm/cortex-a57.md (cortex_a57_neon_type): Add crypto_pmull to
17160 attribute type list for neon_multiply.
17161 * config/arm/crypto.md (crypto_vmullp64): Change type to crypto_pmull.
17162 * config/arm/exynos-m1.md (exynos_m1_neon_type): Add crypto_pmull to
17163 attribute type list for neon_multiply.
17164 * config/arm/types.md (crypto_pmull): Add.
17165 * config/arm/xgene1.md (xgene1_neon_pmull): Add crypto_pmull to
17166 attribute type list.
17168 2017-06-20 Andreas Tobler <andreast@gcc.gnu.org>
17170 * config.gcc (armv6*-*-freebsd*): Change the target_cpu_cname to
17173 2017-06-20 Jakub Jelinek <jakub@redhat.com>
17175 * ira-costs.c (find_costs_and_classes): Initialize cost_classes later
17176 to make sure not to dereference a NULL cost_classes_ptr pointer.
17178 2017-06-20 Carl Love <cel@us.ibm.com>
17180 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17181 ALTIVEC_BUILTIN_VMULESW, ALTIVEC_BUILTIN_VMULEUW,
17182 ALTIVEC_BUILTIN_VMULOSW, ALTIVEC_BUILTIN_VMULOUW entries.
17183 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin,
17184 builtin_function_type): Add ALTIVEC_BUILTIN_* case statements.
17185 * config/rs6000/altivec.md (MVULEUW, VMULESW, VMULOUW,
17186 VMULOSW): New enum "unspec" values.
17187 (vec_widen_umult_even_v4si, vec_widen_smult_even_v4si,
17188 vec_widen_umult_odd_v4si, vec_widen_smult_odd_v4si,
17189 altivec_vmuleuw, altivec_vmulesw, altivec_vmulouw,
17190 altivec_vmulosw): New patterns.
17191 * config/rs6000/rs6000-builtin.def (VMLEUW, VMULESW, VMULOUW,
17192 VMULOSW): Add definitions.
17194 2017-06-20 Julia Koval <julia.koval@intel.com>
17196 * config/i386/i386.c: Fix rounding expand for new pattern.
17197 * config/i386/subst.md: Fix pattern (parallel -> unspec).
17199 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
17201 * config/aarch64/aarch64-option-extensions.def (rcpc): New.
17202 * config/aarch64/aarch64.h (AARCH64_FL_RCPC): New.
17204 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
17206 * config/aarch64/aarch64-option-extensions.def (fp16): Fix expected
17209 2017-06-20 James Greenhalgh <james.greenhalgh@arm.com>
17211 * config/aarch64/aarch64-cores.def: Rearrange to sort by
17212 architecture, then by implementer ID.
17213 * config/aarch64/aarch64-tune.md: Regenerate.
17215 2017-06-20 Richard Biener <rguenther@suse.de>
17217 PR middle-end/81097
17218 * fold-const.c (split_tree): Fold to type before negating.
17220 2017-06-20 David Malcolm <dmalcolm@redhat.com>
17222 * diagnostic-show-locus.c
17223 (selftest::test_fixit_deletion_affecting_newline): New function.
17224 (selftest::diagnostic_show_locus_c_tests): Call it.
17226 2017-06-20 Andreas Schwab <schwab@suse.de>
17229 * config/m68k/m68k.md (bsetdreg, bchgdreg, bclrdreg): Use "=d"
17232 2017-06-20 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
17234 * config/arm/arm-c.c (arm_cpu_builtins): New block to define
17235 __ARM_FEATURE_COPROC according to support.
17237 2017-06-20 Jakub Jelinek <jakub@redhat.com>
17239 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
17240 Rewritten to avoid overflow for > 32-bit pointers.
17243 * ubsan.h (ubsan_encode_value): Workaround buggy clang++ parser
17244 by removing enum keyword.
17245 (ubsan_type_descriptor): Likewise. Formatting fix.
17248 * config/i386/i386.md (TARGET_USE_VECTOR_CONVERTS float si->{sf,df}
17249 splitter): Require TARGET_SSE2 in the condition.
17251 2017-06-20 Michael Meissner <meissner@linux.vnet.ibm.com>
17254 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Add support
17255 for doing vector set of SFmode on ISA 3.0.
17256 * config/rs6000/vsx.md (vsx_set_v4sf_p9): Likewise.
17257 (vsx_set_v4sf_p9_zero): Special case setting 0.0f to a V4SF
17259 (vsx_insert_extract_v4sf_p9): Add an optimization for inserting a
17260 SFmode value into a V4SF variable that was extracted from another
17261 V4SF variable without converting the element to double precision
17262 and back to single precision vector format.
17263 (vsx_insert_extract_v4sf_p9_2): Likewise.
17265 2017-06-19 Jakub Jelinek <jakub@redhat.com>
17267 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Multiply
17268 in UWHI to avoid undefined overflow.
17271 * ubsan.h (enum ubsan_encode_value_phase): New.
17272 (ubsan_encode_value): Change second argument to
17273 enum ubsan_encode_value_phase with default value of
17274 UBSAN_ENCODE_VALUE_GENERIC.
17275 * ubsan.c (ubsan_encode_value): Change second argument to
17276 enum ubsan_encode_value_phase PHASE from bool IN_EXPAND_P,
17277 adjust uses, for UBSAN_ENCODE_VALUE_GENERIC use just
17278 create_tmp_var_raw instead of create_tmp_var and use a
17280 (ubsan_expand_bounds_ifn, ubsan_build_overflow_builtin,
17281 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
17282 ubsan_encode_value callers.
17285 * ubsan.c (ubsan_encode_value): If current_function_decl is NULL,
17286 use create_tmp_var_raw instead of create_tmp_var, mark it addressable
17287 just by setting TREE_ADDRESSABLE on the result and use a TARGET_EXPR.
17289 2017-06-19 Richard Biener <rguenther@suse.de>
17291 PR middle-end/81118
17292 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop): Clear niter
17293 estimates if we changed anything.
17295 2017-06-19 Richard Biener <rguenther@suse.de>
17297 PR tree-optimization/80887
17298 * tree-ssa-sccvn.c (mprts_hook_cnt): New global.
17299 (vn_lookup_simplify_result): Allow only mprts_hook_cnt succesful
17300 simplified lookups, then reset mprts_hook.
17301 (vn_nary_build_or_lookup_1): Set mprts_hook_cnt to 9 before
17303 (try_to_simplify): Likewise.
17305 2017-06-19 Martin Liska <mliska@suse.cz>
17308 * gimplify.c (gimplify_switch_expr):
17309 Initialize live_switch_vars for SWITCH_BODY == STATEMENT_LIST.
17311 2017-06-19 Martin Liska <mliska@suse.cz>
17313 * doc/install.texi: Document that PGO runs in 4 stages.
17315 2017-06-19 Martin Liska <mliska@suse.cz>
17318 * attribs.c (make_dispatcher_decl): Do not append '.ifunc'
17319 to dispatcher function name.
17320 * multiple_target.c (replace_function_decl): New function.
17321 (create_dispatcher_calls): Redirect both edges and references.
17323 2017-06-19 Jan Hubicka <hubicka@ucw.cz>
17325 * profile-count.c (profile_count::dump): Dump quality.
17326 (profile_count::differs_from_p): Update for unsigned val.
17327 * profile-count.h (profile_count_quality): New enum.
17328 (profile_count): Turn m_val to 62bit unsigned, add quality tracking.
17330 2017-06-19 Richard Biener <rguenther@suse.de>
17332 * tree-ssa-loop-niter.h (estimate_numbers_of_iterations): Take
17333 struct function as arg.
17334 (estimate_numbers_of_iterations): Export overload with loop arg.
17335 (free_numbers_of_iterations_estimates_loop): Use an overload of
17336 free_numbers_of_iterations_estimates instead.
17337 * tree-cfg.c (remove_bb): Adjust.
17338 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Likewise.
17339 * tree-parloops.c (gen_parallel_loop): Likewise.
17340 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables):
17342 (tree_unroll_loops_completely): Likewise.
17343 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
17344 Use an overload instead and export.
17345 (estimated_loop_iterations): Adjust.
17346 (max_loop_iterations): Likewise.
17347 (likely_max_loop_iterations): Likewise.
17348 (estimate_numbers_of_iterations): Take struct function as arg
17350 (loop_exits_before_overflow): Adjust.
17351 (free_numbers_of_iterations_estimates_loop): Use an overload.
17352 * tree-vect-loop.c (vect_analyze_loop_form): Adjust.
17353 * tree-vectorizer.c (vect_free_loop_info_assumptions): Likewise.
17355 2017-06-19 Richard Biener <rguenther@suse.de>
17358 * ipa-prop.c (find_constructor_constant_at_offset): Handle
17359 RANGE_EXPR conservatively.
17361 2017-06-16 Carl Love <cel@us.ibm.com>
17363 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
17364 definitions for vec_float, vec_float2, vec_floato,
17365 vec_floate built-ins.
17366 * config/rs6000/vsx.md (define_c_enum "unspec"): Add RTL code
17367 for instructions vsx_xvcvsxws vsx_xvcvuxwsp, float2, floato and
17369 * config/rs6000/rs6000-builtin.def (FLOAT2_V2DI, FLOATE_V2DF,
17370 FLOATE_2DI, FLOATO_V2DF, FLOATEE_V2DI, XVCVSXWSP_V4SF,
17371 UNS_FLOATO_V2DI, UNS_FLOATE_V2DI): Add definitions.
17372 * config/altivec.md (define_insn "p8_vmrgew_<mode>",
17373 define_mode_attr VF_sxddp): Add V4SF type to p8_vmrgew.
17374 * config/rs6000/altivec.h (vec_float, vec_float2, vec_floate,
17375 vec_floato): Add builtin defines.
17376 * doc/extend.texi (vec_float, vec_float2, vec_floate, vec_floato):
17377 Update the built-in documentation file for the new built-in
17380 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17382 * config/arm/arm.opt (marm): Mark as the negative of of -mthumb.
17383 (mthumb): Mark as the negative of -marm.
17385 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17387 * doc/invoke.texi (ARM Options, -mcpu): Document supported
17389 (ARM Options, -mtune): Document that this accepts the same
17390 extension options as -mcpu.
17391 (ARM Options, -mfpu): Document addition of -mfpu=auto.
17393 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17395 * doc/invoke.texi (ARM Options, -march=): Document new syntax and
17396 permitted extensions.
17398 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17400 * config/arm/arm-cpus.in (armv7): Add extension +nofp.
17401 (armv7-r): Add aliases vfpv3xd and vfpv3-d16.
17402 (armv8-m.main): Add option +nodsp.
17403 * config/arm/arm-cpu-cdata.h: Regenerated.
17405 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17407 * config/arm/t-fuchsia: New file.
17408 * config.gcc (arm*-*-fuchsia*): Use it.
17410 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17412 * config/arm/t-symbian: Rewrite for new option infrastructure.
17414 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17416 * config/arm/t-phoenix (MULTILIB_REUSE): Clear variable.
17417 (MULTILIB_REQUIRED): Likewise.
17419 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17421 * config/arm/t-linux-eabi (MULTILIB_EXCEPTIONS): Set to empty.
17422 (MULTILIB_RESUE): Likewise.
17423 (MULTILIB_MATCHES): Likewise.
17424 (MULTLIB_REQUIRED): Likewise.
17426 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17428 * config/arm/t-rtems: Rewrite for new option framework.
17430 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17432 * config/arm/t-aprofile (v7_a_nosimd_variants, v7_a_simd_variants)
17433 (v7ve_nosimd_variatns, v7ve_vfpv3_simd_variants)
17434 (v7ve_vfpv4_simd_variants, v8_a_nosimd_variants, v8_a_simd_variants)
17435 (v8_1_a_simd_variants, v8_2_a_simd_variants): Move to ...
17436 * config/arm/t-multilib: ... here.
17437 (MULTILIB_OPTIONS): Add armv7 and armv7+fp architectures.
17438 (MULTILIB_MATCHES): Use armv7 libraries for armv7-r. Also use for
17439 armv7-a and armv8*-a when A-profile libraries have not been built.
17440 * config/arm/t-rmprofile: Rewrite.
17442 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17444 * genmultilib (multilib_reuse): Allow an explicit period to be escaped
17445 with a backslash. Remove the backslash after substituting unescaped
17447 * doc/fragments.texi (MULTILIB_REUSE): Document it.
17449 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17451 * config.gcc: (arm*-*-*): When building a-profile libraries, force
17452 the driver to pass through the default setting of -mfloat-abi.
17453 * common/config/arm/arm-common.c (arm_target_thumb_only): Return -marm
17455 * config/arm/t-multilib (MULTILIB_REUSE): Initialize to empty.
17456 (all_feat_combs): New rule.
17457 (MULTILIB_OPTIONS): Use explicit ARM and Thumb directories. Rework
17459 * config/arm/t-aprofile: Rewrite.
17461 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17463 * config/arm/arm.h (FPUTYPE_AUTO): Define.
17464 * config/arm/arm.c (arm_option_override): Use FPUTYPE_AUTO if the
17465 fpu is not specified by the user/command-line.
17466 * config/arm/bpabi.h (FPUTYPE_DEFAULT): Delete.
17467 * config/arm/netbsd-elf.h (FPUTYPE_DEFAULT): Delete.
17468 * config/arm/linux-elf.h (FPUTYPE_DEFAULT): Delete.
17469 * config/arm/vxworks.h (FPUTYPE_DEFAULT): Delete.
17470 * common/config/arm/arm-common.c (arm_canon_arch_option): Use
17471 FPUTYPE_AUTO insted of FPUTYPE_DEFAULT.
17473 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17475 * config/arm/elf.h (MULTILIB_DEFAULTS): Delete.
17476 * config/arm/t-arm-elf: Rewritten.
17478 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17480 * config/arm/arm.h (TARGET_HARD_FLOAT): Also check that we
17481 have some floating-point instructions.
17482 (TARGET_SOFT_FLOAT): Define as inverse of TARGET_HARD_FLOAT.
17483 (TARGET_MAYBE_HARD_FLOAT): New macro.
17484 * config/arm/arm-builtins.c (arm_init_builtins): Use
17485 TARGET_MAYBE_HARD_FLOAT.
17486 * config/arm/arm.c (arm_option_override): Use TARGET_HARD_FLOAT_ABI.
17488 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17490 * common/config/arm/arm-common.c: Define INCLUDE_LIST.
17491 (configargs.h): Include it.
17492 (arm_print_hint_for_fpu_option): New function.
17493 (arm_parse_fpu_option): New function.
17494 (candidate_extension): New class.
17495 (arm_canon_for_multilib): New function.
17496 * config/arm/arm.h (CANON_ARCH_SPEC_FUNCTION): New macro.
17497 (EXTRA_SPEC_FUNCTIONS): Add CANON_ARCH_SPEC_FUNCTION.
17498 (ARCH_CANONICAL_SPECS): New macro.
17499 (DRIVER_SELF_SPECS): Add ARCH_CANONICAL_SPECS.
17501 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17503 * config.gcc (arm*-*-*): Ensure both target_cpu_cname and with_cpu
17504 are set after handling multilib fragments. Set target_cpu_default2
17507 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17509 * config.gcc (arm*-*-fucshia*): Set target_cpu_cname to the real
17511 (arm*-*-*): Set target_cpu_default2 to a quoted string.
17512 * config/arm/parsecpu.awk (check_cpu): Validate any extension
17514 (check_arch): Likewise.
17515 * config/arm/arm.c (arm_configure_build_target): Handle
17516 TARGET_CPU_DEFAULT being a string constant. Scan any feature
17517 options in the default.
17519 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17521 * config/arm/arm-protos.h (cpu_arch_extension): Add field to record
17522 when an option is an alias of another.
17523 * config/arm/parsecpu.awk (optalias): New parser token.
17524 (gen_comm_data): Mark non-alias options as such. Emit entries
17525 for extension aliases.
17526 * config/arm/arm-cpus.in (armv5e): Make vfpv2 an alias.
17527 (armv5te, armv5tej, armv6, armv6j, armv6k, armv6z): Likewise.
17528 (armv6kz, armv6zk, armv6t2): Likewise.
17529 (armv7): Make vfpv3-d16 an alias.
17530 (armv7-a): Make vfpv3-d16, neon and neon-vfpv3 aliases. Sort in
17532 (armv7ve): Make vfpv4-d16, neon-vfpv3 and neon-vfpv4 aliases.
17533 Sort in canonical order.
17534 (armv8-a): Sort in canonical order.
17535 (armv8.1-a, armv8.2-a): Likewise.
17536 (generic-armv7-a): Make neon and neon-vfpv3 aliases. Sort in
17538 (cortex-a9): Sort in canonical order.
17539 * config/arm/arm.c (selftests.h): Include it.
17540 (arm_test_cpu_arch_data): New function.
17541 (arm_run_self_tests): New function.
17542 (TARGET_RUN_TARGET_SELFTESTS): Redefine.
17543 (targetm): Move declaration to the end of the file.
17544 * arm-cpu-cdata.h: Regenerated.
17546 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17548 * config/arm/arm.h (TARGET_MODE_SPECS): Add additional parameter to
17549 call to target_mode_check describing the type of option passed.
17550 * common/config/arm/arm-common.c (arm_arch_core_flag): Delete.
17551 (arm_target_thumb_only): Use arm_parse_arch_option_name or
17552 arm_parse_cpu_option_name to match parameters against list of
17554 * config/arm/parsecpu.awk (gen_comm_data): Don't generate
17555 arm_arch_core_flags data structure.
17556 * config/arm/arm-cpu_cdata.h: Regenerated.
17558 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17560 * common/config/arm/arm-common.c (arm_initialize_isa): Moved here from
17562 (arm_print_hint_for_cpu_option): Likewise.
17563 (arm_print_hint_for_arch_option): Likewise.
17564 (arm_parse_cpu_option_name): Likewise.
17565 (arm_parse_arch_option_name): Likewise.
17566 * config/arm/arm.c (arm_identify_fpu_from_isa): Use the computed number
17567 of entries in the all_fpus list.
17568 * config/arm/arm-protos.h (all_architectures, all_cores): Declare.
17569 (arm_parse_cpu_option_name): Declare.
17570 (arm_parse_arch_option_name): Declare.
17571 (arm_parse_option_features): Declare.
17572 (arm_intialize_isa): Declare.
17573 * config/arm/parsecpu.awk (gen_data): Move CPU and architecture
17575 (gen_comm_data): ... here. Make definitions non-static.
17576 * config/arm/arm-cpu-data.h: Regenerated.
17577 * config/arm/arm-cpu-cdata.h: Regenerated.
17579 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17581 * config/arm/arm-protos.h (arm_build_target): Remove arch_core.
17582 (cpu_arch_extension): New structure.
17583 (cpu_arch_option, arch_option, cpu_option): New structures.
17584 * config/arm/parsecpu.awk (gen_headers): Build an enumeration of
17585 architecture types.
17586 (gen_data): Generate new format data tables.
17587 * config/arm/arm.c (cpu_tune): New structure.
17588 (cpu_option, processors): Delete.
17589 (arm_print_hint_for_core_or_arch): Delete. Replace with ...
17590 (arm_print_hint_for_cpu_option): ... this and ...
17591 (arm_print_hint_for_arch_option): ... this.
17592 (arm_parse_arch_cpu_name): Delete. Replace with ...
17593 (arm_parse_cpu_option_name): ... this and ...
17594 (arm_parse_arch_option_name): ... this.
17595 (arm_unrecognized_feature): Change type of target parameter to
17597 (arm_parse_arch_cpu_features): Delete. Replace with ...
17598 (arm_parse_option_features): ... this.
17599 (arm_configure_build_target): Rework to use new configuration data
17601 (arm_print_tune_info): Rework for new configuration data tables.
17602 * config/arm/arm-cpu-data.h: Regenerated.
17603 * config/arm/arm-cpu.h: Regenerated.
17605 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17607 * Makefile.in (OBJS): Move sbitmap.o from here ...
17608 (OBJS-libcommon): ... to here.
17610 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17612 * config/arm/arm-isa.h (ISA_ALL_FPU_INTERNAL): Renamed from ISA_ALL_FPU.
17613 (ISA_ALL_CRYPTO): New macro.
17614 (ISA_ALL_SIMD): New macro
17615 (ISA_ALL_FP): New macro.
17616 * config/arm/arm.c (fpu_bitlist): Update initializer.
17617 * config/arm/arm-cpus.in: Use new ISA_ALL macros to disable crypto,
17619 (arm9e): Add fpu. Add option for nofp
17620 (arm946e-s, arm966e-s, arm968e-s, arm10e, arm1020e, arm1022e): Likewise.
17621 (arm926ej-s, arm1026ej-s): Likewise.
17622 (generic-armv7-a): Add fpu. Add options for simd, vfpv3, vfpv3-d16,
17623 vfpv3-fp16, vfpv3-d16-fp16, vfpv4, vfpv4-d16, neon, neon-vfp3,
17624 neon-fp16, neon-vfpv4, nofp and nosimd.
17625 (cortex-a5, cortex-a7): Add fpu. Add options for nosimd and nofp.
17626 (cortex-a8): Add fpu. Add option for nofp.
17627 (cortex-a9): Add fpu. Add options for nosimd and nofp.
17628 (cortex-a12, cortex-a15, cortex-a17): Add fpu. Add option for nofp.
17629 (cortex-r4f): Add fpu.
17630 (cortex-r5): Add fpu. Add options for nofp.dp and nofp.
17631 (cortex-r7): Use idiv option from architecture. Add fpu. Add option
17633 (cortex-r8): Likewise.
17634 (cortex-m4): Add fpu. Add option for nofp.
17635 (cortex-a15.cortex-a7): Add fpu. Add option for nofp.
17636 (cortex-a17.cortex-a7): Likewise.
17637 (cortex-a32): Add fpu. Add options for crypto and nofp.
17638 (cortex-a35, cortex-a53): Likewise.
17639 (cortex-a57): Add fpu. Add option for crypto.
17640 (cortex-a72, cortex-a73): Likewise.
17641 (exynos-m1): Likewise.
17642 (cortex-a57.cortex-a53, cortex-a72.cortex-a53): Likewise.
17643 (cortex-a73.cortex-a35, cortex-a73.cortex-a53): Likewise.
17644 (cortex-m33): Add fpu. Add option for nofp.
17645 * config/arm/arm-cpu-cdata.h: Regenerated
17646 * config/arm/arm-cpu-data.h: Regenerated.
17648 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17650 * arm-cpus.in (armv5e): Add options fp, vfpv2 and nofp.
17651 (armv5te, armv5tej): Likewise.
17652 (armv6, armv6j, armv6k, armv6z, armv6kz, armv6zk, armv6t2): Likewise.
17653 (armv7): Add options fp and vfpv3-d16.
17654 (armv7-a): Add options fp, simd, vfpv3, vfpv3-d16, vfpv3-d16-fp16,
17655 vfpv3-fp16, vfpv4, vfpv4-d16, neon, neon-vfpv3, neon-fp16, neon-vfpv4,
17657 (armv7ve): Likewise.
17658 (armv7-r): Add options fp, fp.sp, idiv, nofp and noidiv.
17659 (armv7e-m): Add options fp, fpv5, fp.dp and nofp.
17660 (armv8-a): Add nocrypto option.
17661 (armv8.1-a, armv8.2-a): Likewise.
17662 (armv8-m.main): add options fp, fp.dp and nofp.
17664 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17666 * config/arm/arm-cpus.in (armv8-a): Add options crc, simd crypto and
17668 (armv8-a+crc): Delete.
17669 (armv8.1-a): Add options simd, crypto and nofp.
17670 (armv8.2-a): Add options fp16, simd, crypto and nofp.
17671 (armv8.2-a+fp16): Delete.
17672 (armv8-m.main): Add option dsp.
17673 (armv8-m.main+dsp): Delete.
17674 (cortex-a8): Add fpu. Add nofp option.
17675 (cortex-a9): Add fpu. Add nofp and nosimd options.
17676 * config/arm/parsecpu.awk (gen_data): Generate option tables and
17677 link to main cpu and architecture data structures.
17678 (gen_comm_data): Only put isa attributes from the main architecture
17680 (option): New statement for architecture and CPU entries.
17681 * arm.c (struct cpu_option): New structure.
17682 (struct processors): Add entry for options.
17683 (arm_unrecognized_feature): New function.
17684 (arm_parse_arch_cpu_name): Ignore any characters after the first
17686 (arm_parse_arch_cpu_feature): New function.
17687 (arm_configure_build_target): Separate out any CPU and architecture
17688 features and parse separately. Don't error out if -mfpu=auto is
17689 used with only an architecture string.
17690 (arm_print_asm_arch_directives): New function.
17691 (arm_file_start): Call it.
17692 * config/arm/arm-cpu-cdata.h: Regenerated.
17693 * config/arm/arm-cpu-data.h: Likewise.
17694 * config/arm/arm-tables.opt: Likewise.
17696 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17698 * config/arm/elf.h (ASM_SPEC): Only pass -mfpu through to the
17699 assembler when it is not -mfpu=auto.
17701 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17703 * config/arm/arm.h (BIG_LITTLE_SPEC): Delete macro.
17704 (ASM_REWRITE_SPEC_FUNCTIONS): New macro.
17705 (BIG_LITTLE_CPU_SPEC_FUNCTIONS): Delete macro.
17706 (ASM_CPU_SPEC): Rewrite.
17707 (MCPU_MTUNE_NATIVE_FUNCTIONS): New macro.
17708 (EXTRA_SPEC_FUNCTIONS): Move outside of ifdef. Use
17709 MCPU_MTUNE_NATIVE_FUNCTIONS and ASM_REWRITE_SPEC_FUNCTIONS. Remove
17710 reference to BIG_LITTLE_CPU_SPEC_FUNCTIONS.
17711 * common/config/arm/arm-common.c (arm_rewrite_selected_cpu): Ensure
17712 copied string is NUL-terminated. Also strip any characters prefixed
17714 (arm_rewrite_selected_arch): New function.
17715 (arm_rewrite_march): New function.
17717 2017-06-16 Richard Earnshaw <rearnsha@arm.com>
17719 * config/arm/arm.opt (x_arm_arch_string): New TargetSave option.
17720 (x_arm_cpu_string, x_arm_tune_string): Likewise.
17721 (march, mcpu, mtune): Convert to string-based options.
17722 * config/arm/arm.c (arm_print_hint_for_core_or_arch): New function.
17723 (arm_parse_arch_cpu_name): New function.
17724 (arm_configure_build_target): Use arm_parse_arch_cpu_name to
17725 identify selected architecture or CPU.
17726 (arm_option_save): New function.
17727 (TARGET_OPTION_SAVE): Redefine.
17728 (arm_option_restore): Restore string options.
17729 (arm_option_print): Print string options.
17731 2017-06-16 Martin Sebor <msebor@redhat.com>
17733 PR tree-optimization/80933
17734 PR tree-optimization/80934
17735 * builtins.c (fold_builtin_3): Do not handle bcmp here.
17736 * gimple-fold.c (gimple_fold_builtin_bcmp): New function.
17737 (gimple_fold_builtin_bcopy, gimple_fold_builtin_bzero): Likewise.
17738 (gimple_fold_builtin): Call them.
17740 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
17742 * gimple-ssa-isolate-paths.c (isolate_path): Set edge leading to path
17743 as unlikely; update profile.
17745 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
17747 * predict.c (force_edge_cold): Handle declaring edges impossible
17750 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
17752 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Update
17754 (try_unroll_loop_completely): Fix reporting.
17756 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
17758 * tree-ssa-tail-merge.c (replace_block_by): Fix profile updating.
17760 2017-06-16 James Greenhalgh <james.greenhalgh@arm.com>
17763 * config/arm/arm-builtins.c (arm_expand_builtin_args): Return TARGET
17764 if given a non-constant argument for an intrinsic which requires a
17767 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
17769 * profile.c (compare_freqs): New function.
17770 (branch_prob): Sort edge list.
17771 (find_spanning_tree): Assume that the list is priority sorted.
17773 2017-06-16 Richard Biener <rguenther@suse.de>
17775 PR tree-optimization/81090
17776 * passes.def (pass_record_bounds): Remove.
17777 * tree-pass.h (make_pass_record_bounds): Likewise.
17778 * tree-ssa-loop.c (pass_data_record_bounds, pass_record_bounds,
17779 make_pass_record_bounds): Likewise.
17780 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Do
17781 not free niter estimates at the beginning but at the end.
17782 * tree-scalar-evolution.c (scev_finalize): Free niter estimates.
17784 2017-06-16 Richard Biener <rguenther@suse.de>
17786 * tree-switch-conversion.c (emit_case_bit_tests): Adjust
17787 initializer to workaround ICE in host GCC 4.8.
17789 2017-06-16 Jan Hubicka <hubicka@ucw.cz>
17791 * ipa-inline-transform.c (update_noncloned_frequencies): Update also
17793 (clone_inlined_nodes): Update.
17795 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17797 * config/aarch64/aarch64.c (qdf24xx_prefetch_tune): Update
17798 prefetch settings, and enable prefetching by default at -O3.
17800 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17802 * config/aarch64/aarch64.c (aarch64_override_options_internal):
17803 Set flag_prefetch_loop_arrays according to tuning data.
17805 2017-06-16 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
17807 * config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune):
17808 New tune structure.
17809 (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size.
17810 [Unrelated to main purpose of the patch] Place the pointer field last
17811 to enable type checking errors when tune structure are wrongly merged.
17812 * config/aarch64/aarch64.c (generic_prefetch_tune,)
17813 (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,)
17814 (thunderx2t99_prefetch_tune): New tune constants.
17815 (tune_params *_tunings): Update all tunings (no functional change).
17816 (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES,
17817 PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE
17818 from tunings structures.
17820 2017-06-16 Jakub Jelinek <jakub@redhat.com>
17823 * ubsan.c (instrument_null): Add T argument, use it instead
17824 of computing it based on IS_LHS.
17825 (instrument_object_size): Likewise.
17826 (pass_ubsan::execute): Adjust instrument_null and
17827 instrument_object_size callers to pass gimple_get_lhs or
17828 gimple_assign_rhs1 result to it. Use instrument_null instead of
17829 calling get_base_address and instrument_mem_ref. Handle
17830 aggregate call arguments for object-size sanitization.
17832 2017-06-16 Yury Gribov <tetra2005@gmail.com>
17834 PR tree-optimization/81089
17835 * tree-vrp.c (is_masked_range_test): Validate operands of
17838 2017-06-15 Martin Sebor <msebor@redhat.com>
17841 * dumpfile.c (dump_register): Avoid calling memset to initialize
17842 a class with a default ctor.
17843 * gcc.c (struct compiler): Remove const qualification.
17844 * genattrtab.c (gen_insn_reserv): Replace memset with initialization.
17845 * hash-table.h: Ditto.
17846 * ipa-cp.c (allocate_and_init_ipcp_value): Replace memset with
17848 * ipa-prop.c (ipa_free_edge_args_substructures): Ditto.
17849 * omp-low.c (lower_omp_ordered_clauses): Replace memset with
17851 * params.h (struct param_info): Make struct members non-const.
17852 * tree-switch-conversion.c (emit_case_bit_tests): Replace memset
17853 with default initialization.
17854 * vec.h (vec_copy_construct, vec_default_construct): New helper
17856 (vec<T>::copy, vec<T>::splice, vec<T>::reserve): Replace memcpy
17857 with vec_copy_construct.
17858 (vect<T>::quick_grow_cleared): Replace memset with default ctor.
17859 (vect<T>::vec_safe_grow_cleared, vec_safe_grow_cleared): Same.
17860 * doc/invoke.texi (-Wclass-memaccess): Document.
17862 2017-06-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17864 * emit-rtl.h (is_leaf): Update comment about local
17865 register allocator.
17867 2017-06-15 Jozef Lawrynowicz <jozef.l@somniumtech.com>
17870 * config/msp430/msp430.c (msp430_data_attr): Check that it's possible
17871 for a variable to have a section before checking if the section has a
17873 Set section to.persistent if persistent attribute is set.
17874 Warn if .persistent attribute is used on an automatic variable.
17876 2017-06-15 Eric Botcazou <ebotcazou@adacore.com>
17878 PR rtl-optimization/80474
17879 * reorg.c (update_block): Do not ignore instructions in a delay slot.
17881 2017-06-15 Segher Boessenkool <segher@kernel.crashing.org>
17883 * config/rs6000/rs6000.md (add<mode>3): Use reg_or_subregno instead
17886 2017-06-14 Maciej W. Rozycki <macro@imgtec.com>
17888 * config/mips/mips.md (MIPS16_T_REGNUM): Remove constant.
17889 (casesi): Emit bounds checking as RTL.
17890 (casesi_internal_mips16_<mode>): Remove bounds checking.
17892 2017-06-14 Max Filippov <jcmvbkbc@gmail.com>
17894 * config/xtensa/xtensa.c (xtensa_option_override): Append
17895 MASK_CONST16 to target_flags in the absence of TARGET_L32R.
17896 (hwloop_optimize, hwloop_fail, hwloop_pattern_reg,
17897 xtensa_doloop_hooks): Define unconditionally.
17898 (xtensa_reorg_loops): Only call reorg_loops in the presence of
17900 * config/xtensa/xtensa.h (TARGET_L32R): New definition.
17901 (TARGET_DEFAULT): Remove XCHAL_HAVE_L32R condition and account
17902 for it in xtensa_option_override.
17903 (HARD_FRAME_POINTER_IS_FRAME_POINTER,
17904 HARD_FRAME_POINTER_IS_ARG_POINTER): New definitions.
17906 2017-06-14 Boris Kolpackov <boris@codesynthesis.com>
17908 * doc/cppopts.texi: Document '-' special value to -MF.
17910 2017-06-14 Wilco Dijkstra <wdijkstr@arm.com>
17912 * config/arm/cortex-a53.md (cortex_a53_fpalu) Adjust latency.
17913 (cortex_a53_fconst): Likewise.
17914 (cortex_a53_fpmul): Likewise.
17915 (cortex_a53_f_load_64): Likewise.
17916 (cortex_a53_f_load_many): Likewise.
17917 (cortex_a53_advsimd_alu): Likewise.
17918 (cortex_a53_advsimd_alu_q): Likewise.
17919 (cortex_a53_advsimd_mul): Likewise.
17920 (cortex_a53_advsimd_mul_q): Likewise.
17921 (fpmac bypass): Add new bypass for fpmac-fpmac case.
17922 Add missing fmul, r2f_cvt and fconst cases.
17924 2017-06-14 Richard Biener <rguenther@suse.de>
17926 PR middle-end/81088
17927 * fold-const.c (split_tree): Drop TREE_OVERFLOW flag from
17929 (fold_binary_loc): When associating do not treat pre-existing
17930 TREE_OVERFLOW on literal constants as a reason to allow
17931 TREE_OVERFLOW on associated literal constants.
17933 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
17935 * config/sparc/sparc.h (MASK_ISA): Add MASK_LEON and MASK_LEON3.
17936 (MASK_FEATURES): New macro.
17937 * config/sparc/sparc.c (sparc_option_override): Remove the special
17938 handling of -mfpu and generalize it to all MASK_FEATURES switches.
17940 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
17942 * simplify-rtx.c (simplify_binary_operation_1) <UDIV>: Do not simplify
17943 a division of 0 if non-call exceptions are enabled.
17945 2017-06-14 Andrew Pinski <apinski@cavium.com>
17946 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
17949 * config/aarch64/aarch64.c (aarch64_expand_vector_init):
17950 Improve vector initialization code gen for only variable case.
17952 2017-06-14 Eric Botcazou <ebotcazou@adacore.com>
17954 * config/sparc/driver-sparc.c (cpu_names): Add SPARC-T5 entry.
17956 2017-06-14 Richard Biener <rguenther@suse.de>
17958 PR tree-optimization/81083
17959 * tree-ssa-sccvn.c (vn_reference_lookup_3): Do not use abnormals
17962 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17964 * config/rs6000/rs6000.c: Update all comments that mentioned SPE.
17965 (rs6000_expand_builtin): Remove RS6000_BTC_EVSEL.
17966 * config/rs6000/rs6000.h (RS6000_BTC_EVSEL): Delete.
17967 * config/rs6000/vxworks.h (VXCPU_FOR_8548): Delete. Adjust former use.
17968 * config/rs6000/vxworksae.h (VXCPU_FOR_8548): Delete.
17969 * config/rs6000/vxworksmils.h (VXCPU_FOR_8548): Delete.
17971 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17973 * config/rs6000/rs6000-opts.h (enum rs6000_vector): Delete VECTOR_SPE.
17974 * config/rs6000/rs6000.c (rs6000_debug_vector_unit): Delete VECTOR_SPE.
17976 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17978 * config/rs6000/rs6000.h (FIXED_SCRATCH): Delete.
17980 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17982 * config/rs6000/t-rtems: Don't handle SPE.
17984 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17986 * config/rs6000/t-linux: Don't handle SPE.
17988 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17990 * config/rs6000/eabispe.h: Delete file.
17992 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17994 * config/rs6000/t-spe: Delete file.
17996 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
17998 * config/rs6000/rs6000.c (SPE_CONST_OFFSET_OK): Delete.
17999 (rs6000_legitimate_offset_address_p): Return false for anything in
18000 V2SImode or V2SFmode.
18002 2017-06-13 Segher Boessenkool <segher@kernel.crashing.org>
18004 * config/rs6000/rs6000-modes.def: Remove all 8-byte vector modes
18005 except V2SF and V2SI. Rearrange the vector modes, and add comments.
18006 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Remove V8QImode
18008 (reg_offset_addressing_ok_p): Remove V4HImode and V1DImode.
18009 (rs6000_legitimate_offset_address_p): Ditto.
18010 (rs6000_emit_move): Ditto.
18011 (rs6000_init_builtins): Remove V4HI_type_node.
18013 2017-06-13 Martin Liska <mliska@suse.cz>
18016 * asan.c (asan_sanitize_stack_p): Use sanitize_flags_p.
18017 (gate_asan): Likewise.
18018 * asan.h (asan_no_sanitize_address_p): Remove the function.
18019 (sanitize_flags_p): New function.
18020 * builtins.def: Fix coding style.
18021 * common.opt: Use renamed enum value.
18022 * convert.c (convert_to_integer_1): Use sanitize_flags_p.
18023 * doc/extend.texi: Document no_sanitize attribute.
18024 * flag-types.h (enum sanitize_code): Rename SANITIZE_NONDEFAULT
18025 to SANITIZE_UNDEFINED_NONDEFAULT.
18026 * gcc.c (sanitize_spec_function): Use the renamed enum value.
18027 * gimple-fold.c (optimize_atomic_compare_exchange_p):
18028 Use sanitize_flags_p.
18029 * gimplify.c (gimplify_function_tree): Likewise.
18030 * ipa-inline.c (sanitize_attrs_match_for_inline_p): Likewise.
18031 * opts.c (parse_no_sanitize_attribute): New function.
18032 (common_handle_option): Use renamed enum value.
18033 * opts.h (parse_no_sanitize_attribute): Declare.
18034 * tree.c (sanitize_flags_p): New function.
18035 * tree.h: Declared here.
18036 * tsan.c: Use sanitize_flags_p.
18037 * ubsan.c (ubsan_expand_null_ifn): Likewise.
18038 (instrument_mem_ref): Likewise.
18039 (instrument_bool_enum_load): Likewise.
18040 (do_ubsan_in_current_function): Remove the function.
18041 (pass_ubsan::execute): Use sanitize_flags_p.
18042 * ubsan.h: Remove do_ubsan_in_current_function
18043 * tree-cfg.c (print_no_sanitize_attr_value): New function.
18044 (dump_function_to_file): Use it here.
18046 2017-06-13 Martin Jambor <mjambor@suse.cz>
18048 PR tree-optimization/80803
18049 PR tree-optimization/81063
18050 * tree-sra.c (subtree_mark_written_and_enqueue): Move up in the file.
18051 (propagate_subaccesses_across_link): Enqueue subtree whenever
18052 necessary instead of relying on the caller.
18054 2017-06-13 Martin Jambor <mjambor@suse.cz>
18056 * tree-sra.c (add_access_to_work_queue): Only enqueue accesses
18057 that have a first_link.
18058 (sort_and_splice_var_accesses): Do not check first_link before
18060 (subtree_mark_written_and_enqueue): Likewise.
18061 (propagate_all_subaccesses): Likewise and do not stop at first
18062 parent with a first_link.
18064 2017-06-13 Martin Jambor <mjambor@suse.cz>
18066 * tree-sra.c (dump_access_tree_1): Fix accidental dumping to stderr
18069 2017-06-13 Yury Gribov <tetra2005@gmail.com>
18071 * match.pd: New pattern.
18073 2017-06-13 Yury Gribov <tetra2005@gmail.com>
18075 * tree-vrp.c (is_masked_range_test): New function.
18076 (register_edge_assert_for): Determine ranges for
18079 2017-06-13 Yury Gribov <tetra2005@gmail.com>
18081 PR tree-optimization/67328
18082 * fold-const.c (maskable_range_p): New function.
18083 (build_range_check): Generate bittests if possible.
18085 2017-06-13 Martin Liska <mliska@suse.cz>
18087 * gimple-pretty-print.c (dump_probability): Add new argument.
18088 (dump_edge_probability): Dump both probability and count.
18089 (dump_gimple_label): Likewise.
18090 (dump_gimple_bb_header): Likewise.
18092 2017-06-13 Georg-Johann Lay <avr@gjlay.de>
18095 * config/avr/avr-devices.c: Fix indentation.
18096 * config/avr/gen-avr-mmcu-specs.c: Dito.
18098 2017-06-13 Richard Biener <rguenther@suse.de>
18100 * tree-vect-loop.c (vect_model_reduction_cost): Do not fail,
18101 instead get vector type from stmt_info.
18102 (vectorizable_reduction): Adjust. Remove dead code.
18104 2017-06-13 Richard Biener <rguenther@suse.de>
18106 PR middle-end/81065
18107 * fold-const.c (extract_muldiv_1): Remove bogus distribution
18108 case of C * (x * C2 + C3).
18109 (fold_addr_of_array_ref_difference): Properly fold index difference.
18111 2017-06-12 David S. Miller <davem@davemloft.net>
18114 * config/sparc/sparc.md (return expander): Emit frame blockage if
18115 function uses alloca.
18117 2017-06-12 Richard Sandiford <richard.sandiford@linaro.org>
18119 * combine.c (make_field_assignment): Check len rather than the mode
18120 precision when calling force_to_mode.
18122 2017-06-12 Georg-Johann Lay <avr@gjlay.de>
18124 Support multilibs and devices that see flash in RAM address range.
18127 * config/avr/avr-arch.h (avr_arch_id) <ARCH_AVRXMEGA3>: New enum.
18128 (avr_mcu_t) <flash_pm_offset>: New field.
18129 (avr_device_specific_features) <AVR_ISA_RCALL>: New enum.
18130 * config/avr/avr.h (AVR_SHORT_CALLS): New define.
18131 (AVR_HAVE_JMP_CALL): Don't set if AVR_SHORT_CALLS.
18132 (AVR_TINY_PM_OFFSET): Remove macro.
18133 * config/avr/avr.opt (-mshort-calls): New option.
18134 * config/avr/gen-avr-mmcu-specs.c (print_mcu)
18135 [*self_spec]: Add / remove -mshort-calls depending on AVR_ISA_RCALL.
18136 * config/avr/avr-c.c (avr_cpu_cpp_builtins)
18137 <__AVR_SHORT_CALLS__>: Built-in define if AVR_SHORT_CALLS.
18138 <__AVR_HAVE_JMP_CALL__>: Use AVR_HAVE_JMP_CALL as condition
18139 instead of avr_arch->have_jmp_call.
18140 <__AVR_PM_BASE_ADDRESS__>: Built-in define if avr_arch->flash_pm_offset.
18141 [AVR_TINY] <__AVR_TINY_PM_BASE_ADDRESS__>: Use
18142 avr_arch->flash_pm_offset to define.
18143 * config/avr/avr-devices.c (avr_arch_types): Add initializers for
18144 new field flash_pm_offset. Add entry for avrxmega3.
18145 (avr_texinfo): Add entry for avrxmega3.
18146 * config/avr/avr-mcus.def: Add entries for: avrxmega3,
18147 attiny212, attiny214,
18148 attiny412, attiny414, attiny416, attiny417,
18149 attiny814, attiny816, attiny817,
18150 attiny1614, attiny1616, attiny1617,
18151 attiny3214, attiny3216, attiny3217.
18152 * config/avr/avr.c (avr_assemble_integer)[AVR_TINY]: Use
18153 avr_arch->flash_pm_offset instead of AVR_TINY_PM_OFFSET.
18154 (avr_print_operand_address) [AVR_TINY]: Same.
18155 (avr_asm_init_sections) <readonly_data_section>: Only patch
18156 callback if avr_arch->flash_pm_offset = 0.
18157 (avr_asm_named_section) <avr_need_copy_data_p>: Skip setting it
18158 for rodata if avr_arch->flash_pm_offset != 0.
18159 (avr_encode_section_info) [AVR_TINY]: Adjust comment.
18160 * config/avr/genmultilib.awk (dir_rcall, opt_rcall): New vars.
18161 (opts) [AVR_ISA_RCALL]: Append opt_rcall.
18162 (m_options): Append opt_rcall.
18163 (m_dirnames): Append dir_rcall.
18164 * config/avr/t-multilib: Regenerate.
18166 * configure.ac [target=avr]: Check whether avrxmega3 default
18167 linker description file works as needed.
18168 * configure: Regenerate.
18169 * doc/avr-mmcu.texi: Regenerate.
18170 * doc/invoke.texi (AVR Options) <-mshort-calls>: Document it.
18171 <__AVR_ARCH__>: Document avrxmega3 and 103.
18172 <__AVR_HAVE_JMP_CALL__>: Adjust documentation.
18173 <__AVR_SHORT_CALLS__>: Document it.
18174 <__AVR_PM_BASE_ADDRESS__>: Document it.
18175 * doc/extend.texi (AVR Options) <-mshort-calls>: Document it.
18176 (AVR Variable Attributes) <progmem>: Document this is
18177 not needed for avrxmega3.
18178 (AVR Named Address Spaces) <__flash>: Dito.
18180 2017-06-12 Jan Hubicka <hubicka@ucw.cz>
18182 * cgraph.c (cgraph_node::dump): Complain about profile insanities.
18184 2017-06-12 Doug Rupp <rupp@adacore.com>
18186 * config.gcc (*-*-vxworks*): Set use_gcc_stdint to "provide".
18187 Append vxworks-stdint.h to the tm_file list.
18188 * config/vxworks-stdint.h: New file.
18190 2017-06-12 Martin Liska <mliska@suse.cz>
18192 PR tree-optimization/81041
18193 * tree-profile.c (gimple_gen_ic_func_profiler):
18194 Create an extra BB in profile-generate
18195 (gimple_gen_time_profiler): Likewise.
18197 2017-06-12 Jakub Jelinek <jakub@redhat.com>
18199 PR tree-optimization/81003
18200 * tree-ssa-reassoc.c (force_into_ssa_name): New function.
18201 (update_range_test): Use it instead of force_gimple_operand_gsi.
18203 2017-06-12 Richard Biener <rguenther@suse.de>
18205 PR tree-optimization/81053
18206 * tree-vect-loop.c (vect_is_simple_reduction): Handle PHI
18207 with backedge value not defined in loop. Simplify def stmt
18210 2017-06-11 Tom de Vries <tom@codesourcery.com>
18213 * config/nvptx/nvptx.c (nvptx_cannot_force_const_mem): New function.
18215 (TARGET_CANNOT_FORCE_CONST_MEM): Redefine to
18216 nvptx_cannot_force_const_mem.
18218 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
18220 * opts.c (finish_options): Move test for flag_split_stack after
18221 it has been initialized.
18223 2017-06-11 Jason Merrill <jason@redhat.com>
18225 * tree.h (id_equal): New.
18226 * dwarf2out.c, hsa-gen.c, ipa-devirt.c, omp-expand.c,
18227 omp-simd-clone.c, read-rtl-function.c, tree-chkp.c, tree.c: Use it
18228 instead of strcmp of IDENTIFIER_POINTER.
18230 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
18232 * ipa-inline-transform.c: Include function.h, cfg.h and basic-block.h
18233 (mark_all_inlined_calls_cdtor): Fix formating.
18234 (inline_transform): Rescale profile before inlining.
18236 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
18238 * cgraph.h (cgraph_edge::clone): Update prototype.
18239 * cgraphclones.c (cgraph_edge::clone): Update profile scaling.
18240 (cgraph_node::create_clone): Update.
18241 (cgraph_node::create_version_clone): Update.
18242 * tree-inline.c (copy_bb): Update.
18243 (expand_call_inline): Update.
18245 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
18247 * config/rs6000/rs6000.c (emit_vrsave_prologue): New function,
18248 factored out from ...
18249 (rs6000_emit_prologue): ... here.
18251 2017-06-10 Segher Boessenkool <segher@kernel.crashing.org>
18253 * config/rs6000/rs6000.c (emit_split_stack_prologue): New function,
18254 factored out from ...
18255 (rs6000_emit_prologue): ... here.
18257 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
18259 * predict.c (drop_profile): Also drop individual bb/edge and cgraph
18261 (handle_missing_profiles): Fix computation of tp_first_run.
18262 (counts_to_freqs): Do not touch freqs when count is 0.
18264 2017-06-10 Jan Hubicka <hubicka@ucw.cz>
18266 * cgraphbuild.c (cgraph_edge::rebuild_references): Do not touch
18269 2017-06-10 Tom de Vries <tom@codesourcery.com>
18271 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
18272 attributes): Document signal effective target.
18274 2017-06-10 Tom de Vries <tom@codesourcery.com>
18276 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
18277 Document effective target stack_size.
18279 2017-06-09 David Malcolm <dmalcolm@redhat.com>
18281 * diagnostic.c (diagnostic_report_diagnostic): Only add fixits
18282 to the edit_context if they can be auto-applied.
18284 2017-06-9 Ian Lance Taylor <iant@golang.org>
18286 * opts.c (finish_options): If -fsplit-stack, disable implicit
18287 -forder-blocks-and-partition.
18288 * doc/invoke.texi (Optimize Options): Document that when using
18289 -fsplit-stack -forder-blocks-and-partition is not implicitly
18292 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
18294 * builtin-attrs.def (ATTR_NORETURN_NOTHROW_LEAF_COLD_LIST,
18295 ATTR_CONST_NORETURN_NOTHROW_LEAF_COLD_LIST,
18296 ATTR_TMPURE_NORETURN_NOTHROW_LEAF_COLD_LIST): New.
18297 * builtins.def (abort, trap, unreachable): Declare cold.
18298 * calls.c (flags_from_decl_or_type): Lookup ECF_COLD.
18299 * tree-core.h (ECF_COLD): New.
18300 * tree.c (set_call_expr_flags): Handle ECF_COLD.
18301 (build_common_builtin_nodes): Mark unreachable and abort as cold.
18303 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
18305 * predict.c (unlikely_executed_stmt_p): Cleanup.
18307 2017-06-09 Richard Biener <rguenther@suse.de>
18309 * tree-ssa-loop-im.c (execute_sm): Do not force multi-threaded
18310 model if the ref is always written to.
18312 2017-06-09 Tamar Christina <tamar.christina@arm.com>
18314 * config/aarch64/aarch64.md (lrint<GPF:mode><GPI:mode>2): New.
18316 2017-06-09 Tamar Christina <tamar.christina@arm.com>
18318 * config/arm/arm.c (arm_rtx_costs_internal): Make sdiv more expensive
18321 2017-06-09 Tom de Vries <tom@codesourcery.com>
18324 * config/nvptx/nvptx.md (define_expand "mov<QHSDISDFM>"): Error out with
18325 "target cannot support label values" when encountering LABEL_REF.
18327 2017-06-09 Martin Liska <mliska@suse.cz>
18329 * tree-profile.c (gimple_gen_ic_profiler): Update comment.
18330 (gimple_gen_ic_func_profiler): Emit direct comparison
18331 of __gcov_indirect_call_callee with NULL.
18332 (gimple_gen_time_profiler): Change probability from
18333 PROB_VERY_UNLIKELY to PROB_UNLIKELY.
18335 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
18337 * profile.c (edge_gcov_counts): Turn to pointer.
18338 (compute_branch_probabilities, compute_branch_probabilities): Update.
18339 (branch_prob): Do not clear edge_gcov_count.
18340 * profile.h (edge_gcov_counts): Turn to pointer.
18341 (edge_gcov_count): Update.
18343 2017-06-09 Jan Hubicka <hubicka@ucw.cz>
18345 * gimple.h (gimple_check_failed): Mark cold.
18347 2017-06-09 Richard Biener <rguenther@suse.de>
18349 PR tree-optimization/66623
18350 * tree-vect-loop.c (vect_is_simple_reduction): Cleanup,
18351 refactor check_reduction into two parts, properly computing
18352 whether we have to check reduction validity for outer loop
18355 2017-06-09 Richard Biener <rguenther@suse.de>
18357 PR tree-optimization/79483
18358 * graphite-scop-detection.c (order): New global.
18359 (get_order): Compute bb to order mapping that satisfies code
18360 generation constraints.
18361 (cmp_pbbs): New helper.
18362 (build_scops): Start domwalk at entry block, sort generated
18365 2017-06-09 Richard Biener <rguenther@suse.de>
18367 PR middle-end/81007
18368 * ipa-polymorphic-call.c
18369 (ipa_polymorphic_call_context::restrict_to_inner_class):
18370 Skip FIELD_DECLs with error_mark_node type.
18371 * passes.def (all_lowering_passes): Run pass_build_cgraph_edges
18374 2017-06-09 Martin Liska <mliska@suse.cz>
18376 * predict.c (struct branch_predictor): New struct.
18377 (test_prediction_value_range): New test.
18378 (predict_c_tests): New function.
18379 * selftest-run-tests.c (selftest::run_tests): Run the function.
18380 * selftest.h: Declare new tests.
18382 2017-06-09 Segher Boessenkool <segher@kernel.crashing.org>
18385 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Assert that
18386 gen_add3_insn did not fail.
18387 * config/rs6000/rs6000.md (add<mode>3): If asked to add a constant to
18388 r0, construct that number in a temporary reg and add that reg to r0.
18389 If asked to put the result in r0 as well, fail.
18391 2017-06-08 Will Schmidt <will_schmidt@vnet.ibm.com>
18393 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
18394 for early expansion of vec_eqv.
18396 2017-06-08 Jakub Jelinek <jakub@redhat.com>
18398 PR middle-end/81005
18399 * ubsan.c (instrument_null): Avoid pointless code temporary.
18400 (pass_ubsan::execute): Instrument aggregate arguments of calls.
18402 2017-06-08 Uros Bizjak <ubizjak@gmail.com>
18406 2016-12-14 Uros Bizjak <ubizjak@gmail.com>
18409 * config/i386/i386.md (*ctzhi2): New insn_and_split pattern.
18412 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
18414 * predict.c (unlikely_executed_edge_p): Move ahead.
18415 (probably_never_executed_edge_p): Use it.
18417 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
18419 PR middle-end/79988
18420 * tree-chkp.c (chkp_gimple_call_builtin_p): Remove
18421 gimple_call_builtin_p call.
18423 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
18425 * system.h (fancy_abort): Annotate by ATTRIBUTE_COLD.
18426 * rtl.h (rtl_check_failed_bounds, rtl_check_failed_type1,
18427 rtl_check_failed_type2, rtl_check_failed_code1,
18428 rtl_check_failed_code2, rtl_check_failed_code_mode,
18429 rtl_check_failed_block_symbol, cwi_check_failed_bounds,
18430 rtvec_check_failed_bounds, rtl_check_failed_flag,
18431 _fatal_insn_not_found, _fatal_insn): Likewise.
18432 * tree.h (tree_contains_struct_check_failed,
18433 tree_check_failed, tree_not_check_failed,
18434 tree_class_check_failed, tree_range_check_failed,
18435 tree_not_class_check_failed, tree_int_cst_elt_check_failed,
18436 tree_vec_elt_check_failed, phi_node_elt_check_failed,
18437 tree_operand_check_failed, omp_clause_check_failed,
18438 omp_clause_operand_check_failed, omp_clause_range_check_failed):
18441 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
18443 * cgraph.c (cgraph_edge::maybe_hot_p): Do not check
18444 flag_branch_probabilities.
18445 * ipa-inline.c (edge_badness): Likewise.
18446 * ipa-profile.c (ipa_propagate_frequency_1): Likewise.
18447 * postreload-gcse.c (eliminate_partially_redundant_load): Likewise.
18448 * predict.c (maybe_hot_frequency_p): Likewise.
18449 (probably_never_executed): Likewise.
18450 * sched-ebb.c (schedule_ebbs): Likewise.
18451 * sched-rgn.c (find_single_block_region): Likewise.
18452 * tracer.c (tail_duplicate): Likewise.
18454 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
18456 * opts.c (finish_options): x_flag_reorder_blocks_and_partition no
18457 longer requires x_flag_profile_use.
18459 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
18461 * cfgrtl.c (cfg_layout_initialize): Check crtl->has_bb_partition
18462 instead of flag_reorder_blocks_and_partition.
18463 * dbxout.c (dbxout_function_end): Likewise.
18464 * dwarf2out.c (gen_subprogram_die): Likewise.
18465 * haifa-sched.c (sched_create_recovery_edges): Likewise.
18466 * hw-doloop.c (reorg_loops): Likewise.
18467 * varasm.c (assemble_start_function,
18468 assemble_end_function): Likewise.
18469 (decide_function_section): Do not check for
18470 flag_reorder_blocks_and_partition.
18472 2017-06-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
18474 * tree-chkp.c (chkp_get_hard_register_var_fake_base_address):
18476 (chkp_get_hard_register_fake_addr_expr): Ditto.
18477 (chkp_build_addr_expr): Add check for hard reg case.
18478 (chkp_parse_array_and_component_ref): Ditto.
18479 (chkp_find_bounds_1): Ditto.
18480 (chkp_process_stmt): Don't generate bounds store for
18483 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
18485 * predict.c (maybe_hot_bb_p): Do not check profile status.
18486 (maybe_hot_edge_p): Likewise.
18487 (probably_never_executed): Check for zero counts even if profile
18489 (unlikely_executed_edge_p): New function.
18490 (unlikely_executed_stmt_p): New function.
18491 (unlikely_executed_bb_p): New function.
18492 (set_even_probabilities): Use unlikely predicates.
18493 (combine_predictions_for_bb): Likewise.
18494 (predict_paths_for_bb): Likewise.
18495 (predict_paths_leading_to_edge): Likewise.
18496 (determine_unlikely_bbs): New function.
18497 (estimate_bb_frequencies): Use it.
18498 (compute_function_frequency): Use zero counts even if profile is
18500 * profile-count.h: Fix typo.
18502 2017-08-08 Julia Koval <julia.koval@intel.com>
18504 * config/i386/avx512bwintrin.h (_mm512_mask_cvtepi16_storeu_epi8,
18505 _mm512_mask_cvtsepi16_storeu_epi8,
18506 _mm512_mask_cvtusepi16_storeu_epi8): New intrinsics.
18507 * config/i386/avx512vlbwintrin.h (_mm256_mask_cvtepi16_storeu_epi8,
18508 _mm_mask_cvtsepi16_storeu_epi8, _mm256_mask_cvtsepi16_storeu_epi8,
18509 _mm_mask_cvtusepi16_storeu_epi8, _mm256_mask_cvtusepi16_storeu_epi8,
18510 _mm_mask_cvtepi16_storeu_epi8): New intrinsics.
18511 * config/i386/i386-builtin-types.def (PV8Q, V8QI): New pointer type.
18512 (VOID_FTYPE_PV32QI_V32HI_USI, VOID_FTYPE_PV8QI_V8HI_UQI,
18513 VOID_FTYPE_PV16QI_V16HI_UHI): New function types.
18514 * config/i386/i386-builtin.def (__builtin_ia32_pmovwb128mem_mask,
18515 __builtin_ia32_pmovwb256mem_mask, __builtin_ia32_pmovswb128mem_mask,
18516 __builtin_ia32_pmovswb256mem_mask, __builtin_ia32_pmovuswb128mem_mask,
18517 __builtin_ia32_pmovuswb256mem_mask,
18518 __builtin_ia32_pmovuswb512mem_mask, __builtin_ia32_pmovswb512mem_mask)
18519 __builtin_ia32_pmovwb512mem_mask): New builtins.
18521 2017-08-08 Julia Koval <julia.koval@intel.com>
18523 PR target/73350,80862
18524 * config/i386/subst.md (round): Fix round pattern.
18525 * config/i386/i386.c (ix86_erase_embedded_rounding):
18526 Fix erasing rounding for the fixed pattern.
18528 2017-06-08 Jan Hubicka <hubicka@ucw.cz>
18530 * cfgbuild.c (find_many_sub_basic_blocks): Fix thinko.
18532 2017-06-08 Martin Liska <mliska@suse.cz>
18534 PR gcov-profile/80911
18535 * gcov.c (block_info::block_info): New constructor.
18537 2017-06-07 Carl Love <cel@us.ibm.com>
18539 * config/rs6000/rs6000-c: The return type of the following
18540 built-in functions was implemented as int not long long. Fix sign
18541 of return value for the unsigned version of vec_mulo and vec_mule.
18542 vector unsigned long long vec_bperm (vector unsigned long long,
18543 vector unsigned char)
18544 vector signed long long vec_mule (vector signed int,
18546 vector unsigned long long vec_mule (vector unsigned int,
18547 vector unsigned int)
18548 vector signed long long vec_mulo (vector signed int,
18550 vector unsigned long long vec_mulo (vector unsigned int,
18551 vector unsigned int)
18552 * doc/extend.texi: Fix the documentation for the built-in
18555 2017-06-07 Carl Love <cel@us.ibm.com>
18558 * config/rs6000/altivec.md (double<mode>2): Fix the implementation of
18561 2017-06-07 Carl Love <cel@us.ibm.com>
18563 * config/rs6000/altivec.md: Fix argument swizzle in vec_doublel
18564 support, Generate doublehv for signed int/float for BE case only.
18566 2017-06-07 Alexander Monakov <amonakov@ispras.ru>
18568 * doc/invoke.texi (mcx16): Rewrite.
18570 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18572 * config/rs6000/predicates.md (rs6000_nonimmediate_operand): Delete.
18573 * config/rs6000/rs6000.md (*movsi_internal1, movsi_from_sf,
18574 *mov<mode>_softfloat, and an anonymous splitter): Use
18575 nonimmediate_operand instead of rs6000_nonimmediate_operand.
18577 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18579 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE_ACC and
18581 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
18582 (enum rs6000_reg_type): Delete SPE_ACC_TYPE and SPEFSCR_REG_TYPE.
18583 (rs6000_debug_reg_global): Adjust.
18584 (rs6000_init_hard_regno_mode_ok): Adjust.
18585 (rs6000_dbx_register_number): Adjust.
18586 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change to 115.
18587 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18588 Remove SPE_ACC and SPEFSCR.
18589 (REG_ALLOC_ORDER): Ditto.
18590 (FRAME_POINTER_REGNUM): Change to 111.
18591 (enum reg_class): Remove the SPE_ACC and SPEFSCR registers.
18592 (REG_CLASS_NAMES): Ditto.
18593 (REG_CLASS_CONTENTS): Delete the SPE_ACC and SPEFSCR registers.
18594 (REGISTER_NAMES): Ditto.
18595 (ADDITIONAL_REG_NAMES): Ditto.
18596 (rs6000_reg_names): Ditto.
18597 * config/rs6000/rs6000.md: Renumber some register number
18600 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18602 * config/rs6000/darwin.h (REGISTER_NAMES): Delete the SPE high
18604 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Ditto.
18605 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Change from 149
18607 (DWARF_REG_TO_UNWIND_COLUMN): Do not define.
18608 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
18609 Delete the SPE high registers.
18610 (REG_ALLOC_ORDER): Ditto.
18611 (enum reg_class): Remove SPE_HIGH_REGS.
18612 (REG_CLASS_NAMES): Ditto.
18613 (REG_CLASS_CONTENTS): Delete the SPE high registers.
18614 (REGISTER_NAMES): Ditto.
18615 (rs6000_reg_names): Ditto.
18616 * doc/tm.texi.in: Remove SPE as example.
18617 * doc/tm.texi: Regenerate.
18619 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18621 * config/rs6000/8540.md (ppc8540_brinc): Delete.
18622 * config/rs6000/e500mc.md (e500mc_brinc): Delete.
18623 * config/rs6000/e500mc64.md (e500mc64_brinc): Delete.
18624 * config/rs6000/rs6000.md (type): Remove "brinc".
18626 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18628 * config.gcc (powerpc*-*-*): Don't add spe.h to extra_headers.
18629 (powerpc*-linux*spe*): Use ${cpu_type} instead of rs6000.
18630 * config/rs6000/linuxspe.h: Delete file.
18631 * config/rs6000/rs6000.md: Don't include spe.md.
18632 * config/rs6000/spe.h: Delete file.
18633 * config/rs6000/spe.md: Delete file.
18634 * config/rs6000/t-rs6000: Remove spe.md.
18636 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18638 * config/rs6000/predicates.md (reg_or_mem_operand): Reformat.
18639 (reg_or_none500mem_operand): Delete.
18640 * config/rs6000/rs6000.md (extendsfdf2): Use reg_or_mem_operand
18641 instead of reg_or_none500mem_operand.
18643 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18645 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
18646 handling of SPE flags.
18647 * config/rs6000/rs6000.opt (-mspe, -mspe=no, -mspe=yes): Delete.
18649 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18651 * config/rs6000/rs6000-common.c (rs6000_handle_option): Remove
18653 * config/rs6000/paired.md (paired_negv2sf2): Rename to negv2sf2.
18654 (paired_absv2sf2, paired_addv2sf3, paired_subv2sf3, paired_mulv2sf3,
18655 paired_divv2sf3): Similar.
18656 * config/rs6000/predicates.md: Replace TARGET_SPE, TARGET_SPE_ABI,
18657 SPE_VECTOR_MODE and SPE_HIGH_REGNO_P by 0; simplify.
18658 * config/rs6000/rs6000-builtin.def: Delete RS6000_BUILTIN_E and
18660 Delete BU_SPE_1, BU_SPE_2, BU_SPE_3, BU_SPE_E, BU_SPE_P, and BU_SPE_X.
18661 Rename the paired_* instruction patterns.
18662 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Do not
18664 * config/rs6000/rs6000-protos.h (invalid_e500_subreg): Delete.
18665 * config/rs6000/rs6000.c: Delete RS6000_BUILTIN_E and RS6000_BUILTIN_S.
18666 (struct rs6000_stack): Delete fields spe_gp_save_offset, spe_gp_size,
18667 spe_padding_size, and spe_64bit_regs_used. Replace TARGET_SPE and
18668 TARGET_SPE_ABI with 0, simplify. Replace SPE_VECTOR_MODE with
18669 PAIRED_VECTOR_MODE.
18670 (struct machine_function): Delete field spe_insn_chain_scanned_p.
18671 (spe_func_has_64bit_regs_p): Delete.
18672 (spe_expand_predicate_builtin): Delete.
18673 (spe_expand_evsel_builtin): Delete.
18674 (TARGET_DWARF_REGISTER_SPAN): Do not define.
18675 (TARGET_MEMBER_TYPE_FORCES_BLK): Do not define.
18676 (invalid_e500_subreg): Delete.
18677 (rs6000_legitimize_address): Always force_reg op2 as well, for
18678 paired single memory accesses.
18679 (rs6000_member_type_forces_blk): Delete.
18680 (rs6000_spe_function_arg): Delete.
18681 (rs6000_expand_unop_builtin): Delete SPE handling.
18682 (rs6000_expand_binop_builtin): Ditto.
18683 (spe_expand_stv_builtin): Delete.
18684 (bdesc_2arg_spe): Delete.
18685 (spe_expand_builtin): Delete.
18686 (spe_expand_predicate_builtin): Delete.
18687 (spe_expand_evsel_builtin): Delete.
18688 (rs6000_invalid_builtin): Remove RS6000_BTM_SPE handling.
18689 (spe_init_builtins): Delete.
18690 (spe_func_has_64bit_regs_p): Delete.
18691 (savres_routine_name): Delete "info" parameter. Adjust callers.
18692 (rs6000_emit_stack_reset): Ditto.
18693 (rs6000_dwarf_register_span): Delete.
18694 * config/rs6000/rs6000.h (TARGET_SPE_ABI, TARGET_SPE,
18695 UNITS_PER_SPE_WORD, SPE_HIGH_REGNO_P, SPE_SIMD_REGNO_P,
18696 SPE_VECTOR_MODE, RS6000_BTM_SPE, RS6000_BUILTIN_E, RS6000_BUILTIN_S):
18698 * config/rs6000/rs6000.md (FIRST_SPE_HIGH_REGNO, LAST_SPE_HIGH_REGNO):
18700 * config/rs6000/rs6000.opt (-mabi=spe, -mabi=no-spe): Delete.
18701 * config/rs6000/spe.md: Delete every pattern that uses TARGET_SPE.
18702 * config/rs6000/vector.md (absv2sf2, negv2sf2, addv2sf3, subv2sf3,
18703 mulv2sf3, divv2sf3): Delete expanders.
18705 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18707 config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): Delete.
18709 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18711 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit): Delete.
18712 * config/rs6000/rs6000.c: Ditto.
18714 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18716 * config/rs6000/predicated.md (rs6000_cbranch_operator): Delete.
18717 * config/rs6000/rs6000.md: Replace rs6000_cbranch_operator by
18718 comparison_operator.
18720 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18722 * config/rs6000/rs6000.c: Remove everything related to -mfloat-gprs.
18723 * config/rs6000/rs6000.opt: Ditto.
18724 * config/rs6000/t-rtems: Ditto.
18726 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18728 * config/rs6000/predicates.md: Replace TARGET_E500_DOUBLE and
18729 TARGET_E500_SINGLE by 0, simplify.
18730 * config/rs6000/rs6000.c: Ditto.
18731 (rs6000_option_override_internal): Delete CHECK_E500_OPTIONS.
18732 (spe_build_register_parallel): Delete.
18733 * config/rs6000/rs6000.h: Delete TARGET_E500_SINGLE,
18734 TARGET_E500_DOUBLE, and CHECK_E500_OPTIONS.
18735 * config/rs6000/rs6000.md: Replace TARGET_E500_DOUBLE,
18736 TARGET_E500_SINGLE, and <E500_CONVERT> by 0, simplify.
18737 (E500_CONVERT): Delete.
18738 * config/rs6000/spe.md: Remove many patterns and all define_constants.
18740 2017-06-07 Segher Boessenkool <segher@kernel.crashing.org>
18742 * config/rs6000/darwin.md: Replace TARGET_FPRS by 1 and simplify.
18743 * config/rs6000/dfp.md: Ditto.
18744 (negdd2, *negdd2_fpr): Merge.
18745 (absdd2, *absdd2_fpr): Merge.
18746 (negtd2, *negtd2_fpr): Merge.
18747 (abstd2, *abstd2_fpr): Merge.
18748 * config/rs6000/e500.h: Delete file.
18749 * config/rs6000/predicates.md (rs6000_cbranch_operator): Replace
18750 TARGET_FPRS by 1 and simplify.
18751 * config/rs6000/rs6000-c.c: Ditto.
18752 * config/rs6000/rs6000.c: Ditto. Also replace TARGET_SF_SPE and
18753 TARGET_DF_SPE by 0.
18754 * config/rs6000/rs6000.h: Ditto. Delete TARGET_SF_SPE and
18756 * config/rs6000/rs6000.md: Ditto.
18757 (floatdidf2, *floatdidf2_fpr): Merge.
18758 (move_from_CR_gt_bit): Delete.
18759 * config/rs6000/spe.md: Replace TARGET_FPRS by 1 and simplify.
18760 (E500_CR_IOR_COMPARE): Delete.
18761 (All patterns that require !TARGET_FPRS): Delete.
18762 * config/rs6000/vsx.md: Replace TARGET_FPRS by 1 and simplify.
18764 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18766 * passes.def (pass_iv_canon): Move before pass_loop_distribution.
18768 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18770 * graphds.c (add_edge): Intitialize edge's attached data.
18771 (foll_in_subgraph, dfs_fst_edge, dfs_next_edge): New function
18772 pointer parameter. Call pointed function on each edge during
18773 graph traversing. Skip traversing the edge when the function
18775 (graphds_dfs, graphds_scc): Ditto.
18776 (for_each_edge): New parameter. Pass the new parameter to callback
18778 * graphds.h (skip_edge_callback): New function pointer type.
18779 (graphds_dfs, graphds_scc): New function pointer parameter.
18780 (graphds_edge_callback, for_each_edge): New parameter.
18782 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18784 * tree-vect-data-refs.c (vect_mark_for_runtime_alias_test): Factor
18785 out code checking if runtime alias check is possible to below ...
18786 Call the new function.
18787 * tree-data-ref.c (runtime_alias_check_p): ... to new function.
18788 * tree-data-ref.h (runtime_alias_check_p): New decalaration.
18790 2017-06-07 Marek Polacek <polacek@redhat.com>
18793 * fold-const.c (extract_muldiv_1) <case MINUS_EXPR>: Add
18794 TYPE_OVERFLOW_WRAPS check.
18796 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18798 * tree-vect-loop-manip.c (vect_do_peeling): Don't skip vector loop
18799 if versioning is required.
18800 * tree-vect-loop.c (vect_analyze_loop_2): Merge niter check for loop
18801 peeling with the check for versioning.
18803 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18805 * tree-vectorizer.h (vect_build_loop_niters): New parameter.
18806 * tree-vect-loop-manip.c (vect_build_loop_niters): New parameter.
18807 Set true to new parameter if new ssa variable is defined.
18808 (vect_gen_vector_loop_niters): Refactor. Set range information
18809 for the new vector loop bound variable.
18810 (vect_do_peeling): Ditto.
18812 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18814 * tree-affine.c (ssa.h): Include header file.
18815 (tree_to_aff_combination): Handle (T1)(X - CST) when inner type
18816 has wrapping overflow behavior.
18818 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18820 * tree-affine.c (tree_to_aff_combination): Handle (T1)(X + X).
18822 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18824 (aff_combination_expand): Move (T1)(X *+- CST) simplification to ...
18825 (tree_to_aff_combination): ... here.
18827 2017-06-07 Bin Cheng <bin.cheng@arm.com>
18829 * tree-ssa-loop-ivopts.c (ivopts_estimate_reg_pressure): New
18830 reg_pressure model function.
18831 (ivopts_global_cost_for_size): Delete.
18832 (determine_set_costs, iv_ca_recount_cost): Call new model function
18833 ivopts_estimate_reg_pressure.
18835 2017-06-07 Tamar Christina <tamar.christina@arm.com>
18837 * config/aarch64/aarch64.c (aarch64_rtx_costs): Make sdiv more
18838 expensive than udiv. Remove floating point cases from mod.
18840 2017-06-07 Tamar Christina <tamar.christina@arm.com>
18842 * config/arm/aarch-cost-tables.h (cortexa53_extra_cost):
18843 Increase idiv cost.
18845 2017-06-07 Tamar Christina <tamar.christina@arm.com>
18847 * config/aarch64/aarch64.md
18848 (copysignsf3): Fix mask generation.
18850 2017-06-07 Jakub Jelinek <jakub@redhat.com>
18852 * dumpfile.h (enum tree_dump_index): Rename TDI_generic to
18854 (class dump_manager): Add register_dumps method.
18855 * dumpfile.c: Include langhooks.h.
18856 (dump_files): Use 0 instead of 3/4/5 for TDI_{original,gimple,nested}.
18857 (FIRST_AUTO_NUMBERED_DUMP): Decrease to 1.
18858 (FIRST_ME_AUTO_NUMBERED_DUMP): Define.
18859 (dump_manager::dump_register): Start with 512 entries instead of 32.
18860 (dump_manager::register_dumps): New method.
18861 * toplev.c (general_init): Instead of invoking register_dumps
18862 langhook, invoke register_dumps method on the dump manager.
18863 * gimplify.c (gimplify_function_tree): Use TDI_gimple instead of
18866 2017-06-07 Richard Sandiford <richard.sandiford@linaro.org>
18868 * doc/md.texi: Clarify the restrictions on a define_insn condition.
18869 Say that # requires an associated define_split to exist, and that
18870 the define_split must be suitable for use after register allocation.
18872 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
18874 * cfgbuild.c (find_bb_boundaries): Initialize profile of split blocks.
18875 (compute_outgoing_frequencies): Also initialize zero counts.
18876 (find_many_sub_basic_blocks): Do not produce uninitialized profile
18877 around loops; preserve more of profile when nothing changes.
18879 2017-06-06 Jim Wilson <jim.wilson@linaro.org>
18881 * config/aarch64/aarch64-cost-tables.h (qdf24xx_extra_costs): Move to
18883 * config/arm/aarch-cost-tables.h (qdf24xx_extra_costs): From here.
18884 * config/arm/arm-cpu-cdata.h: Regenerate.
18885 * config/arm/arm-cpu-data.h, config/arm/arm-cpu.h: Likewise.
18886 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Likewise.
18887 * config/arm/arm-cpus.in: Delete falkor and qdf24xx entries.
18888 * config/arm/arm.c (arm_qdf24xx_tune): Delete.
18889 * config/arm/bpabi.h (BE8_LINK_SPEC): Delete falkor and qdf24xx
18891 * config/arm/t-aprofile (MULTILIB_MATCHES): Delete falkor and qdf24xx
18893 * config/arm/t-rmprofile: Likewise.
18894 * doc/invoke.texi (ARM Options): Drop falkor and qdf24xx support.
18896 2017-06-06 David S. Miller <davem@davemloft.net>
18899 * config/sparc/sparc.c (sparc_expand_prologue): Emit frame
18900 blockage if function uses alloca.
18902 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18904 * tree-ssa-loop-prefetch.c (struct mem_ref_group, struct mem_ref):
18905 New "uid" fields to hold pretty-print IDs of group and ref.
18906 Memory references are now identified as <group_id>:<ref_id>
18907 instead of using [random] addresses.
18908 (dump_mem_details): Simplify, no functional change.
18909 (dump_mem_ref): Simplify and make output more concise.
18910 Replace couple of fprintf's throughout code with calls to dump_mem_ref.
18911 (find_or_create_group): Initialize group uid.
18912 (record_ref): Initialize ref uid. Improve debug output.
18913 (prune_group_by_reuse, should_issue_prefetch_p,)
18914 (should_issue_prefetch_p, schedule_prefetches, issue_prefetch_ref,)
18915 (mark_nontemporal_store, determine_loop_nest_reuse):
18916 Improve debug output.
18918 2017-06-06 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
18920 * dbgcnt.def (prefetch): New debug counter.
18921 * tree-ssa-loop-prefetch.c (dbgcnt.h): New include.
18922 (schedule_prefetches): Stop issueing prefetches if debug counter
18925 2017-06-06 Tom de Vries <tom@codesourcery.com>
18927 * doc/sourcebuild.texi (Testsuites, C Language Testsuites,
18928 gcc.c-torture/compile): Remove mention of NO_LABEL_VALUES in fixme.
18930 2017-06-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18932 * config/aarch64/atomics.md (atomic_compare_and_swap<mode> expander):
18933 Use aarch64_reg_or_zero predicate for operand 4.
18934 (aarch64_compare_and_swap<mode> define_insn_and_split):
18935 Use aarch64_reg_or_zero predicate for operand 3. Add 'Z' constraint.
18936 (aarch64_store_exclusive<mode>): Likewise for operand 2.
18938 2017-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
18940 * config/arm/arm.c (arm_compute_save_reg_mask): Rename into ...
18941 (arm_compute_save_core_reg_mask): This.
18942 (thumb1_compute_save_reg_mask): Rename into ...
18943 (thumb1_compute_save_core_reg_mask): This.
18944 (arm_compute_save_reg0_reg12_mask): Adapt comment.
18945 (arm_compute_frame_layout): Likewise.
18947 2017-06-06 Richard Biener <rguenther@suse.de>
18949 PR tree-optimization/80974
18950 * tree-ssa-sccvn.c (set_ssa_val_to): Do not change but only
18951 keep or clear leaders SSA info.
18953 2017-06-06 Tom de Vries <tom@codesourcery.com>
18955 * config/nvptx/nvptx.c (split_mode_p): New function.
18956 (nvptx_declare_function_name, nvptx_print_operand): Use split_mode_p.
18958 2017-06-06 Tom de Vries <tom@codesourcery.com>
18960 * config/nvptx/nvptx.c (nvptx_print_operand): Use maybe_split_mode.
18962 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
18965 * tree-cfg.c (execute_fixup_cfg): Fix condition on when to rescale
18968 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
18970 * shrink-wrap.c (handle_simple_exit): Update profile.
18971 (try_shrink_wrapping): Upate profile.
18973 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
18975 * predict.c (tree_estimate_probability_bb): Add LOCAL_ONLY.
18976 (tree_guess_outgoing_edge_probabilities): New.
18977 * predict.h (tree_guess_outgoing_edge_probabilities): Declare.
18978 * tree-cfg.c (gimple_find_sub_bbs): Propagate profile.
18980 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
18982 * ipa-split.c (split_function): Initialize return bb profile.
18984 2017-06-06 Jan Hubicka <hubicka@ucw.cz>
18986 * profile.c (compute_branch_probabilities): Also initialize
18987 EXIT_BLOCK profile.
18989 2017-06-06 Richard Biener <rguenther@suse.de>
18991 PR tree-optimization/80928
18992 * tree-vect-loop.c (vect_update_vf_for_slp): Amend dumps.
18993 (vect_analyze_loop_operations): Properly guard analysis for
18995 (vect_transform_loop): Likewise.
18996 (vect_analyze_loop_2): Also reset SLP type on PHIs.
18997 (vect_model_induction_cost): Do not cost for pure SLP.
18998 (vectorizable_induction): Pass in SLP node, implement SLP vectorization
18999 of induction in inner loop vectorization.
19000 * tree-vect-slp.c (vect_create_new_slp_node): Handle PHIs.
19001 (vect_get_and_check_slp_defs): Handle vect_induction_def.
19002 (vect_build_slp_tree): Likewise. Handle PHIs as terminating the
19004 (vect_analyze_slp_cost_1): Cost induction.
19005 (vect_detect_hybrid_slp_stmts): Handle PHIs.
19006 (vect_get_slp_vect_defs): Likewise.
19007 * tree-vect-stmts.c (vect_analyze_stmt): Handle induction.
19008 (vect_transform_stmt): Handle SLP reductions.
19009 * tree-vectorizer.h (vectorizable_induction): Adjust.
19011 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
19013 * config/rs6000/rs6000.c (make_resolver_func): Update
19014 init_lowered_empty_function call.
19016 2017-06-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19018 * doc/invoke.texi: Document the -fprofile-abs-path option.
19019 * common.opt (fprofile-abs-path): New option.
19020 * gcov-io.h (gcov_write_filename): Declare.
19021 * gcov-io.c (gcov_write_filename): New function.
19022 * coverage.c (coverage_begin_function): Use gcov_write_filename.
19023 * profile.c (output_location): Likewise.
19025 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
19027 * shring-wrap.c: Revert accidental commit.
19029 2017-06-05 Volker Reichelt <v.reichelt@netcologne.de>
19031 * doc/invoke.texi (-Wduplicated-branches): Add to warning list.
19033 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
19035 * cfgexpand.c (expand_gimple_tailcall): Initialize profile of
19037 * ipa-inline.c (want_inline_self_recursive_call_p): Watch for missing
19038 profile in callgraph edge.
19039 * profile-count.h (apply_probability): If THIS is 0, then result is 0
19040 (apply_scale): Likewise.
19041 * tree-inline.c (copy_bb, copy_edges_for_bb, copy_cfg_body):
19042 Also scale profile when inlining function with zero profile.
19043 (initialize_cfun): Update exit block profile even when it is zero.
19044 * tree-ssa-threadupdate.c (clear_counts_path): Handle correctly case
19045 when profile is read.
19047 2017-06-05 Michael Meissner <meissner@linux.vnet.ibm.com>
19049 * config/rs6000/rs6000.c (toplevel): Include attribs.h.
19050 (CLONE_*): New constants to define the processors we can generate
19051 code for with the target_clone attribute.
19052 (rs6000_clone_map): New array to identify which clone processors
19053 the current program is running on.
19054 (TARGET_COMPARE_VERSION_PRIORITY): Define to enable the
19055 target_clone attribute.
19056 (TARGET_GENERATE_VERSION_DISPATCHER_BODY): Likewise.
19057 (TARGET_GET_FUNCTION_VERSIONS_DISPATCHER): Likewise.
19058 (TARGET_OPTION_FUNCTION_VERSIONS): Likewise.
19059 (cpu_expand_builtin): Add support for target_clone attribute.
19060 (rs6000_valid_attribute_p): Allow "default" attribute.
19061 (get_decl_name): New debug function to simplify printing the
19062 current function name in debugging statements.
19063 (rs6000_clone_priority): New functions to support the target_clone
19064 attribute, and be able to generate code to switch between ISA 2.05
19065 through ISA 3.0 (power6 through power9).
19066 (rs6000_compare_version_priority): Likewise.
19067 (rs6000_get_function_versions_dispatcher): Likewise.
19068 (make_resolver_func): Likewise.
19069 (add_condition_to_bb): Likewise.
19070 (dispatch_function_versions): Likewise.
19071 (rs6000_generate_version_dispatcher_body): Likewise.
19072 (rs6000_can_inline_p): Call get_decl_name for debugging usage.
19073 (fusion_gpr_load_p): Fix a spacing issue.
19074 * doc/extend.texi (Common Function Attributes): Document that the
19075 PowerPC supports the target_clone attribute.
19077 2017-06-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
19079 * config/arm/arm.h: explain F symbol found in description of ARM
19080 register allocation in its legend.
19082 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
19084 * config/mips/frame-header-opt.c: Include profile-count.h.
19085 * config/riscv/riscv.c: Include profile-count.h
19087 2017-06-05 Jan Hubicka <hubicka@ucw.cz>
19089 * tree-ssa-loop-im.c (execute_sm_if_changed): Add FLAG_BBS parameter;
19091 (sm_set_flag_if_changed): Add bbs field.
19092 (execute_sm_if_changed_flag_set): Pass BBS.
19093 (execute_sm): Update.
19095 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19097 * config/aarch64/aarch64-simd.md (aarch64_store_lane0<mode>):
19100 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19102 * config/aarch64/aarch64.md (sub<mode>3_compare1_imm): New define_insn.
19103 (peephole2): New peephole2 to emit the above.
19104 * config/aarch64/predicates.md (aarch64_sub_immediate): New predicate.
19106 2017-06-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19108 * config/aarch64/aarch64.c (define_peephole2 above
19109 *sub_<shift>_<mode>): New peephole.
19111 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
19113 * config/i386/i386.c (make_resolver_func): Update.
19114 * Makefile.in: Add profile-count.h and profile-count.o
19115 * auto-profile.c (afdo_indirect_call): Update to new API.
19116 (afdo_set_bb_count): Update.
19117 (afdo_propagate_edge): Update.
19118 (afdo_propagate_circuit): Update.
19119 (afdo_calculate_branch_prob): Update.
19120 (afdo_annotate_cfg): Update.
19121 * basic-block.h: Include profile-count.h
19122 (struct edge_def): Turn count to profile_count.
19123 (struct basic_block_def): Likewie.
19124 (REG_BR_PROB_BASE): Move to profile-count.h
19125 (RDIV): Move to profile-count.h
19126 * bb-reorder.c (max_entry_count): Turn to profile_count.
19127 (find_traces): Update.
19128 (rotate_loop):Update.
19129 (connect_traces):Update.
19130 (sanitize_hot_paths):Update.
19131 * bt-load.c (migrate_btr_defs): Update.
19132 * cfg.c (RDIV): Remove.
19133 (init_flow): Use alloc_block.
19134 (alloc_block): Uninitialize count.
19135 (unchecked_make_edge): Uninitialize count.
19136 (check_bb_profile): Update.
19137 (dump_edge_info): Update.
19138 (dump_bb_info): Update.
19139 (update_bb_profile_for_threading): Update.
19140 (scale_bbs_frequencies_int): Update.
19141 (scale_bbs_frequencies_gcov_type): Update.
19142 (scale_bbs_frequencies_profile_count): New.
19143 * cfg.h (update_bb_profile_for_threading): Update.
19144 (scale_bbs_frequencies_profile_count): Declare.
19145 * cfgbuild.c (compute_outgoing_frequencies): Update.
19146 (find_many_sub_basic_blocks): Update.
19147 * cfgcleanup.c (try_forward_edges): Update.
19148 (try_crossjump_to_edge): Update.
19149 * cfgexpand.c (expand_gimple_tailcall): Update.
19150 (construct_exit_block): Update.
19151 * cfghooks.c (verify_flow_info): Update.
19152 (dump_bb_for_graph): Update.
19153 (split_edge): Update.
19154 (make_forwarder_block): Update.
19155 (duplicate_block): Update.
19156 (account_profile_record): Update.
19157 * cfgloop.c (find_subloop_latch_edge_by_profile): Update.
19158 (get_estimated_loop_iterations): Update.
19159 * cfgloopanal.c (expected_loop_iterations_unbounded): Update.
19160 (single_likely_exit): Update.
19161 * cfgloopmanip.c (scale_loop_profile): Update.
19163 (set_zero_probability): Update.
19164 (lv_adjust_loop_entry_edge): Update.
19165 * cfgrtl.c (force_nonfallthru_and_redirect): Update.
19166 (purge_dead_edges): Update.
19167 (rtl_account_profile_record): Update.
19168 * cgraph.c (cgraph_node::create): Uninitialize count.
19169 (symbol_table::create_edge): Uninitialize count.
19170 (cgraph_update_edges_for_call_stmt_node): Update.
19171 (cgraph_edge::dump_edge_flags): Update.
19172 (cgraph_node::dump): Update.
19173 (cgraph_edge::maybe_hot_p): Update.
19174 * cgraph.h: Include profile-count.h
19175 (create_clone), create_edge, create_indirect_edge): Update.
19176 (cgraph_node): Turn count to profile_count.
19177 (cgraph_edge0: Likewise.
19178 (make_speculative, clone): Update.
19179 (create_edge): Update.
19180 (init_lowered_empty_function): Update.
19181 * cgraphclones.c (cgraph_edge::clone): Update.
19182 (duplicate_thunk_for_node): Update.
19183 (cgraph_node::create_clone): Update.
19184 * cgraphunit.c (cgraph_node::analyze): Update.
19185 (cgraph_node::expand_thunk): Update.
19186 * final.c (dump_basic_block_info): Update.
19187 * gimple-streamer-in.c (input_bb): Update.
19188 * gimple-streamer-out.c (output_bb): Update.
19189 * graphite.c (print_global_statistics): Update.
19190 (print_graphite_scop_statistics): Update.
19191 * hsa-brig.c: Include basic-block.h.
19192 * hsa-dump.c: Include basic-block.h.
19193 * hsa-gen.c (T sum_slice): Update.
19194 (convert_switch_statements):Update.
19195 * hsa-regalloc.c: Include basic-block.h.
19196 * ipa-chkp.c (chkp_produce_thunks): Update.
19197 * ipa-cp.c (struct caller_statistics): Update.
19198 (init_caller_stats): Update.
19199 (gather_caller_stats): Update.
19200 (ipcp_cloning_candidate_p): Update.
19201 (good_cloning_opportunity_p): Update.
19202 (get_info_about_necessary_edges): Update.
19203 (dump_profile_updates): Update.
19204 (update_profiling_info): Update.
19205 (update_specialized_profile): Update.
19206 (perhaps_add_new_callers): Update.
19207 (decide_about_value): Update.
19208 (ipa_cp_c_finalize): Update.
19209 * ipa-devirt.c (struct odr_type_warn_count): Update.
19210 (struct decl_warn_count): Update.
19211 (struct final_warning_record): Update.
19212 (possible_polymorphic_call_targets): Update.
19213 (ipa_devirt): Update.
19214 * ipa-fnsummary.c (redirect_to_unreachable): Update.
19215 * ipa-icf.c (sem_function::merge): Update.
19216 * ipa-inline-analysis.c (do_estimate_edge_time): Update.
19217 * ipa-inline.c (compute_uninlined_call_time): Update.
19218 (compute_inlined_call_time): Update.
19219 (want_inline_small_function_p): Update.
19220 (want_inline_self_recursive_call_p): Update.
19221 (edge_badness): Update.
19222 (lookup_recursive_calls): Update.
19223 (recursive_inlining): Update.
19224 (inline_small_functions): Update.
19225 (dump_overall_stats): Update.
19226 (dump_inline_stats): Update.
19227 * ipa-profile.c (ipa_profile_generate_summary): Update.
19228 (ipa_propagate_frequency): Update.
19229 (ipa_profile): Update.
19230 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
19231 * ipa-utils.c (ipa_merge_profiles): Update.
19232 * loop-doloop.c (doloop_modify): Update.
19233 * loop-unroll.c (report_unroll): Update.
19234 (unroll_loop_runtime_iterations): Update.
19235 * lto-cgraph.c (lto_output_edge): Update.
19236 (lto_output_node): Update.
19237 (input_node): Update.
19238 (input_edge): Update.
19239 (merge_profile_summaries): Update.
19240 * lto-streamer-in.c (input_cfg): Update.
19241 * lto-streamer-out.c (output_cfg): Update.
19242 * mcf.c (create_fixup_graph): Update.
19243 (adjust_cfg_counts): Update.
19244 (sum_edge_counts): Update.
19245 * modulo-sched.c (sms_schedule): Update.
19246 * postreload-gcse.c (eliminate_partially_redundant_load): Update.
19247 * predict.c (maybe_hot_count_p): Update.
19248 (probably_never_executed): Update.
19249 (dump_prediction): Update.
19250 (combine_predictions_for_bb): Update.
19251 (propagate_freq): Update.
19252 (handle_missing_profiles): Update.
19253 (counts_to_freqs): Update.
19254 (rebuild_frequencies): Update.
19255 (force_edge_cold): Update.
19256 * predict.h: Include profile-count.h
19257 (maybe_hot_count_p, counts_to_freqs): UPdate.
19258 * print-rtl-function.c: Do not include cfg.h
19259 * print-rtl.c: Include basic-block.h
19260 * profile-count.c: New file.
19261 * profile-count.h: New file.
19262 * profile.c (is_edge_inconsistent): Update.
19263 (correct_negative_edge_counts): Update.
19264 (is_inconsistent): Update.
19265 (set_bb_counts): Update.
19266 (read_profile_edge_counts): Update.
19267 (compute_frequency_overlap): Update.
19268 (compute_branch_probabilities): Update; Initialize and deinitialize
19270 (branch_prob): Update.
19271 * profile.h (bb_gcov_counts, edge_gcov_counts): New.
19272 (edge_gcov_count): New.
19273 (bb_gcov_count): New.
19274 * shrink-wrap.c (try_shrink_wrapping): Update.
19275 * tracer.c (better_p): Update.
19276 * trans-mem.c (expand_transaction): Update.
19277 (ipa_tm_insert_irr_call): Update.
19278 (ipa_tm_insert_gettmclone_call): Update.
19279 * tree-call-cdce.c: Update.
19280 * tree-cfg.c (gimple_duplicate_sese_region): Update.
19281 (gimple_duplicate_sese_tail): Update.
19282 (gimple_account_profile_record): Update.
19283 (execute_fixup_cfg): Update.
19284 * tree-inline.c (copy_bb): Update.
19285 (copy_edges_for_bb): Update.
19286 (initialize_cfun): Update.
19287 (freqs_to_counts): Update.
19288 (copy_cfg_body): Update.
19289 (expand_call_inline): Update.
19290 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): Update.
19291 * tree-ssa-loop-ivcanon.c (unloop_loops): Update.
19292 (try_unroll_loop_completely): Update.
19293 (try_peel_loop): Update.
19294 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Update.
19295 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Update.
19296 * tree-ssa-loop-split.c (connect_loops): Update.
19297 * tree-ssa-loop-unswitch.c (hoist_guard): Update.
19298 * tree-ssa-reassoc.c (branch_fixup): Update.
19299 * tree-ssa-tail-merge.c (replace_block_by): Update.
19300 * tree-ssa-threadupdate.c (create_block_for_threading): Update.
19301 (compute_path_counts): Update.
19302 (update_profile): Update.
19303 (recompute_probabilities): Update.
19304 (update_joiner_offpath_counts): Update.
19305 (estimated_freqs_path): Update.
19306 (freqs_to_counts_path): Update.
19307 (clear_counts_path): Update.
19308 (ssa_fix_duplicate_block_edges): Update.
19309 (duplicate_thread_path): Update.
19310 * tree-switch-conversion.c (case_bit_test_cmp): Update.
19311 (struct switch_conv_info): Update.
19312 * tree-tailcall.c (decrease_profile): Update.
19313 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Update.
19314 * tree-vect-loop.c (scale_profile_for_vect_loop): Update.
19315 * value-prof.c (check_counter): Update.
19316 (gimple_divmod_fixed_value): Update.
19317 (gimple_mod_pow2): Update.
19318 (gimple_mod_subtract): Update.
19319 (gimple_ic_transform): Update.
19320 (gimple_stringop_fixed_value): Update.
19321 * value-prof.h (gimple_ic): Update.
19323 2017-06-02 Carl Love <cel@us.ibm.com>
19325 * config/rs6000/rs6000-c: Add support for built-in functions
19326 vector double vec_doublee (vector signed int);
19327 vector double vec_doublee (vector unsigned int);
19328 vector double vec_doublee (vector float);
19329 vector double vec_doubleh (vector signed int);
19330 vector double vec_doubleh (vector unsigned int);
19331 vector double vec_doubleh (vector float);
19332 vector double vec_doublel (vector signed int);
19333 vector double vec_doublel (vector unsigned int);
19334 vector double vec_doublel (vector float);
19335 vector double vec_doubleo (vector signed int);
19336 vector double vec_doubleo (vector unsigned int);
19337 vector double vec_doubleo (vector float);.
19338 * config/rs6000/rs6000-builtin.def: Add definitions for DOUBLEE,
19339 DOUBLEO, DOUBLEH, DOUBLEL, UNS_DOUBLEO, UNS_DOUBLEE, UNS_DOUBLEH,
19341 * config/rs6000/altivec.md: Add code generator for doublee<mode>2,
19342 unsdoubleev4si2, doubleo<mode>2, unsdoubleov4si2, doubleh<mode>2,
19343 unsdoublehv4si2, doublel<mode>2, unsdoublelv4si2, add mode attribute
19345 * config/rs6000/altivec.h: Add define for vec_doublee, vec_doubleo,
19346 vec_doublel, vec_doubleh.
19347 * doc/extend.texi: Update the built-in documentation file for the
19348 new built-in functions.
19350 2017-06-02 David Malcolm <dmalcolm@redhat.com>
19353 * ipa-inline-analysis.c (free_growth_caches): Set
19354 edge_removal_hook_holder to NULL after removing it.
19356 2017-06-02 Sudakshina Das <sudi.das@arm.com>
19358 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_SWP for
19359 comparision with zero.
19361 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
19362 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
19363 for early expansion of vec_min and vec_max builtins.
19364 (builtin_function_type): Add min/max unsigned variants to those
19365 identified as having unsigned arguments.
19367 2017-06-02 Olivier Hainque <hainque@adacore.com>
19369 * config/vx-common.h (DWARF_UNWIND_INFO): Switch #define to 1.
19371 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19373 * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
19374 Use VALL_F16 iterator rather than VALL.
19376 2017-06-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19378 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap):
19379 Emit CBNZ inside loop when doing a strong exchange and comparing
19380 against zero. Generate the CC flags after the loop.
19382 2017-06-02 David Edelsohn <dje.gcc@gmail.com>
19384 * dwarf2out.c (DWARF_INITIAL_LENGTH_SIZE_STR): New.
19385 (dl_section_ref): New.
19386 (dwarf2out_finish): Copy debug_line_section_label to dl_section_ref.
19387 On AIX, append an expression to subtract the size of the
19388 section length to dl_section_ref.
19390 2017-06-02 Will Schmidt <will_schmidt@vnet.ibm.com>
19392 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling
19393 for early expansion of vector absolute builtins.
19395 2017-06-02 Richard Biener <rguenther@suse.de>
19397 * tree-vect-slp.c (vect_detect_hybrid_slp_2): Match up
19398 what we consider a relevant use stmt with vect_detect_hybrid_slp_stmts.
19400 2017-06-02 Richard Biener <rguenther@suse.de>
19402 PR tree-optimization/80948
19403 * tree-tailcall.c (find_tail_calls): Track stmts to move in
19404 stmt order as well.
19406 2017-06-02 Richard Biener <rguenther@suse.de>
19408 * tree-vect-loop.c (vect_analyze_loop_operations): Not relevant
19410 * tree-vect-stmts.c (process_use): Do not mark backedge defs
19411 for inductions as relevant.
19413 2017-06-02 Richard Biener <rguenther@suse.de>
19415 * tree-vect-loop.c (get_initial_def_for_induction): Inline into ...
19416 (vectorizable_induction): ... this. Remove dead code.
19418 2017-06-02 Eric Botcazou <ebotcazou@adacore.com>
19420 * builtins. (expand_builtin_alloca): Remove second parameter and
19421 infer its value from the first parameter instead.
19422 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust call to above.
19424 2017-06-02 Jakub Jelinek <jakub@redhat.com>
19426 PR rtl-optimization/80903
19427 * loop-doloop.c (add_test): Unshare sequence.
19429 2017-06-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
19431 * doc/invoke.texi: Document the -Wsizeof-pointer-div warning.
19433 2017-06-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19435 * config/i386/i386.c (x86_64_ms_sysv_extra_clobbered_registers): Make
19437 (xlogue_layout::get_stack_space_used, xlogue_layout::s_instances,
19438 xlogue_layout::get_instance, logue_layout::xlogue_layout,
19439 sp_valid_at, fp_valid_at, choose_basereg): Formatting.
19440 (xlogue_layout::get_stub_rtx): Make static.
19441 (xlogue_layout::get_stub_name): Avoid const-cast, make static.
19442 (xlogue_layout::compute_stub_managed_regs): Rename to...
19443 (xlogue_layout::count_stub_managed_regs): ...this.
19444 (xlogue_layout::is_stub_managed_reg): New function.
19445 (xlogue_layout::m_stub_names): Rename to...
19446 (xlogue_layout::s_stub_names): ...this, make static.
19447 (xlogue_layout::STUB_INDEX_OFFSET, xlogue_layout::MIN_REGS,
19448 xlogue_layout::MAX_REGS, xlogue_layout::MAX_EXTRA_REGS,
19449 xlogue_layout::VARIANT_COUNT, xlogue_layout::STUB_NAME_MAX_LEN,
19450 xlogue_layout::s_stub_names): Instantiate statics.
19451 (stub_managed_regs): Remove.
19452 (ix86_save_reg): Use xlogue_layout::compute_stub_managed_regs.
19453 (disable_call_ms2sysv_xlogues): Rename to...
19454 (warn_once_call_ms2sysv_xlogues): ...this, and warn only once.
19455 (ix86_initial_elimination_offset, ix86_expand_call): Fix call_ms2sysv
19457 (ix86_static_chain): Make sure that ix86_static_chain_on_stack can't
19458 change after reload_completed.
19459 (ix86_can_use_return_insn_p): Use the ix86_frame data structure
19461 (ix86_expand_prologue): Likewise.
19462 (ix86_expand_epilogue): Likewise.
19463 (ix86_expand_split_stack_prologue): Likewise.
19464 (ix86_compute_frame_layout): Remove frame parameter ...
19465 (TARGET_COMPUTE_FRAME_LAYOUT): ... and export it as a target hook.
19466 (ix86_finalize_stack_realign_flags): Call ix86_compute_frame_layout
19468 (ix86_init_machine_status): Don't set use_fast_prologue_epilogue_nregs.
19469 (ix86_frame): Move from here ...
19470 * config/i386/i386.h (ix86_frame): ... to here.
19471 (machine_function): Remove use_fast_prologue_epilogue_nregs, cache the
19472 complete ix86_frame data structure instead. Remove some_ld_name.
19474 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
19476 * dwarf2out.c (dwarf2out_late_global_decl): Add locations for
19477 symbols that hold a DECL_VALUE_EXPR.
19479 2017-06-01 Martin Jambor <mjambor@suse.cz>
19481 PR tree-optimization/80898
19482 * tree-sra.c (process_subtree_disqualification): Removed.
19483 (disqualify_candidate): Do not acll
19484 process_subtree_disqualification.
19485 (subtree_mark_written_and_enqueue): New function.
19486 (propagate_all_subaccesses): Set grp_write of LHS subtree if the
19487 RHS has been disqualified and re-queue LHS if necessary. Apart
19488 from that, ignore disqualified RHS.
19490 2017-06-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19492 * config/s390/s390.c (s390_emit_epilogue): Disable early return
19493 address fetch for z10 or later.
19495 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19497 * config/arc/arc.md (tst_movb): Add guard when splitting.
19499 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19501 * config/arc/arc.c (arc_can_eliminate): Test against
19502 arc_frame_pointer_needed.
19504 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19506 * config/arc/arc.c (arc_expand_prologue): Emit a special barrier
19507 to prevent store reordering.
19508 * config/arc/arc.md (UNSPEC_ARC_STKTIE): Define.
19509 (type): Add block type.
19510 (stack_tie): Define special instruction to be used in
19513 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19515 * config/arc/arc.md (commutative_binary_comparison): Remove 'I'
19516 constraint. It is not valid for the pattern.
19517 (noncommutative_binary_comparison): Likewise.
19519 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19521 * config/arc/simdext.md (movv2hi_insn): Change predicate to avoid
19524 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19526 * config/arc/arc.c (arc_conditional_register_usage): Allow r30 to
19527 be used by the reg-alloc.
19529 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19531 * config/arc/arc.md (mulsi3): Avoid use of hard registers before
19532 reg-alloc when having mul64 or mul32x16 instructions.
19533 (mulsidi3): Likewise.
19534 (umulsidi3): Likewise.
19535 (mulsi32x16): New pattern.
19536 (mulsi64): Likewise.
19537 (mulsidi64): Likewise.
19538 (umulsidi64): Likewise.
19539 (MUL32x16_REG): Define.
19540 (mul64_600): Use MUL32x16_REG.
19541 (mac64_600): Likewise.
19542 (umul64_600): Likewise.
19543 (umac64_600): Likewise.
19545 2017-06-01 Claudiu Zissulescu <claziss@synopsys.com>
19547 * config/arc/arc.md (mulsi3_700): Make it commutative.
19549 2017-06-01 Jose E. Marchesi <jose.marchesi@oracle.com>
19551 * config/sparc/sparc.md (*zero_extendsidi2_insn_sp64): Set insn
19553 (*sign_extendsidi2_insn): Likewise for movstosw.
19555 2017-06-01 Pierre-Marie de Rodat <derodat@adacore.com>
19557 * dwarf2out.c (get_discr_value): Call the get_debug_type hook on
19558 the type of the input discriminant value. Convert the
19559 discriminant value of signedness vary.
19561 2017-06-01 Volker Reichelt <v.reichelt@netcologne.de>
19563 * doc/invoke.texi (-Wcatch-value): Document new shortcut.
19564 Add to -Wall section.
19566 2017-06-01 Richard Biener <rguenther@suse.de>
19568 PR middle-end/66313
19569 * fold-const.c (fold_plusminus_mult_expr): If the factored
19570 factor may be zero use a wrapping type for the inner operation.
19571 * tree-tailcall.c (independent_of_stmt_p): Pass in to_move bitmap
19572 and handle moved defs.
19573 (process_assignment): Properly guard the unary op case. Return a
19574 tri-state indicating that moving the stmt before the call may allow
19575 to continue. Pass through to_move.
19576 (find_tail_calls): Handle moving unrelated defs before
19579 2017-05-31 Segher Boessenkool <segher@kernel.crashing.org>
19582 * config/rs6000/vector.md (*vector_uneq<mode>): Write the nor in the
19583 splitter result in the canonical way.
19585 2017-05-31 Uros Bizjak <ubizjak@gmail.com>
19587 * config/i386/i386.md (*zero_extendsidi2): Enable alternative (?r, *Yj)
19588 also for 32bit target. Update insn attributes.
19589 (zero-extendsidi2 splitter): Allow all registers for operand 1.
19591 2017-05-31 Sebastian Peryt <sebastian.peryt@intel.com>
19593 * config/i386/avx512fintrin.h (_mm_mask_max_sd)
19594 (_mm_maskz_max_sd, _mm_mask_max_ss, _mm_maskz_max_ss)
19595 (_mm_mask_min_sd, _mm_maskz_min_sd, _mm_mask_min_ss)
19596 (_mm_maskz_min_ss): New intrinsics.
19598 2017-05-31 Martin Liska <mliska@suse.cz>
19600 * tree-vect-loop.c (vect_create_epilog_for_reduction):
19601 Change comment style to one we normally use.
19602 (vectorizable_reduction): Likewise.
19603 (vectorizable_induction): Likewise.
19604 * tree-vect-stmts.c (vectorizable_mask_load_store): Likewise.
19605 (vectorizable_call): Likewise.
19606 (vectorizable_simd_clone_call): Likewise.
19607 (vectorizable_conversion): Likewise.
19608 (vectorizable_assignment): Likewise.
19609 (vectorizable_shift): Likewise.
19610 (vectorizable_operation): Likewise.
19611 (vectorizable_store): Likewise.
19612 (vectorizable_load): Likewise.
19613 * tree-vectorizer.h: Likewise.
19615 2017-05-31 Alexander Monakov <amonakov@ispras.ru>
19617 * passes.c (emergency_dump_function): New.
19618 * tree-pass.h (emergency_dump_function): Declare.
19619 * plugin.c (plugins_internal_error_function): Remove.
19620 * plugin.h (plugins_internal_error_function): Remove declaration.
19621 * toplev.c (internal_error_function): New static function. Use it...
19622 (general_init): ...here.
19624 2017-05-31 Graham Markall <graham.markall@embecosm.com>
19626 * config/arc/arc.c (arc_print_operand): Handle constant operands.
19627 (arc_rtx_costs): Add costs for new patterns.
19628 * config/arc/arc.md: Additional *add_n and *sub_n patterns.
19629 * config/arc/predicates.md: Add _1_2_3_operand predicate.
19631 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
19633 * tree-ssa-strlen.c (get_next_strinfo): New function.
19634 (get_stridx_plus_constant): Use it.
19635 (zero_length_string): Likewise.
19636 (adjust_related_strinfos): Likewise.
19637 (adjust_last_stmt): Likewise.
19639 2017-05-31 Richard Biener <rguenther@suse.de>
19642 * config/i386/i386.c (ix86_expand_builtin): Remove assert
19643 for arg being an SSA name when expanding IX86_BUILTIN_BNDRET.
19645 2017-05-31 Richard Sandiford <richard.sandiford@linaro.org>
19647 * tree-vect-data-refs.c (vect_find_same_alignment_drs): Remove
19648 loop_vinfo argument and use of dependence distance vectors.
19649 Check instead whether the two references differ only in their
19650 initial value and assume that they have the same alignment if the
19651 difference is a multiple of the vector alignment.
19652 (vect_analyze_data_refs_alignment): Update call accordingly.
19654 2017-05-31 Martin Liska <mliska@suse.cz>
19657 * config/i386/cpuid.h: Fix typo in a comment in cpuid.h.
19659 2017-05-31 Bin Cheng <bin.cheng@arm.com>
19661 * tree-vect-loop-manip.c (create_intersect_range_checks_index)
19662 (create_intersect_range_checks): Move from ...
19663 * tree-data-ref.c (create_intersect_range_checks_index)
19664 (create_intersect_range_checks): ... to here.
19665 (create_runtime_alias_checks): New function factored from ...
19666 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): ...
19667 here. Call above function.
19668 * tree-data-ref.h (create_runtime_alias_checks): New function.
19670 2017-05-31 Bin Cheng <bin.cheng@arm.com>
19672 * tree-data-ref.c (prune_runtime_alias_test_list): Relax minimal
19673 segment length for dr_b and compute it in wide_int.
19675 2017-05-31 Richard Biener <rguenther@suse.de>
19677 PR tree-optimization/80906
19678 * graphite-isl-ast-to-gimple.c (copy_loop_close_phi_nodes): Get
19679 and pass through iv_map.
19680 (copy_bb_and_scalar_dependences): Adjust.
19681 (translate_pending_phi_nodes): Likewise.
19682 (copy_loop_close_phi_args): Handle code-generating IVs instead
19685 2017-05-30 David Malcolm <dmalcolm@redhat.com>
19687 * diagnostic-color.c (color_dict): Add "type-diff".
19688 (parse_gcc_colors): Update comment.
19689 * doc/invoke.texi (Diagnostic Message Formatting Options): Add
19690 -fdiagnostics-show-template-tree and -fno-elide-type.
19691 (GCC_COLORS): Add type-diff to example.
19693 (-fdiagnostics-show-template-tree): New.
19694 (-fno-elide-type): New.
19695 * pretty-print.c (pp_format): Pass quote and formatters[argno] to
19696 the pp_format_decoder callback. Call any m_format_postprocessor's
19698 (pretty_printer::pretty_printer): Initialize
19699 m_format_postprocessor.
19700 (pretty_printer::~pretty_printer): Delete any
19701 m_format_postprocessor.
19702 * pretty-print.h (printer_fn): Add bool and const char ** parameters.
19703 (class format_postprocessor): New class.
19704 (struct pretty_printer::format_decoder): Document the new parameters.
19705 (struct pretty_printer::m_format_postprocessor): New field.
19706 * tree-diagnostic.c (default_tree_printer): Update for new
19707 bool and const char ** params.
19708 * tree-diagnostic.h (default_tree_printer): Likewise.
19710 2017-05-30 Segher Boessenkool <segher@kernel.crashing.org>
19712 * config/rs6000/predicates.md (cc_reg_not_micro_cr0_operand): Delete.
19713 (lwa_operand): Delete rs6000_gen_cell_microcode test.
19714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Delete
19715 rs6000_gen_cell_microcode code.
19716 (rs6000_final_prescan_insn): Delete.
19717 (rs6000_opt_vars): Delete the "gen-cell-microcode" and
19718 "warn-cell-microcode" entries.
19719 * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): Delete.
19720 * config/rs6000/rs6000.md: Delete rs6000_gen_cell_microcode tests
19721 throughout. Change cc_reg_not_micro_cr0_operand to
19722 cc_reg_not_cr0_operand throughout.
19723 (*extendhi<mode>2_noload): Delete.
19724 * config/rs6000/rs6000.opt (mgen-cell-microcode): Replace by stub.
19725 (mwarn-cell-microcode): Delete.
19726 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete
19727 -mgen-cell-microcode and -mwarn-cell-microcode.
19729 2017-05-30 Uros Bizjak <ubizjak@gmail.com>
19732 * config/i386/constraints.md (Yd): New constraint.
19734 * config/i386/i386.md (*movti_internal): Add (?r, Ye)
19735 and (?Yd, r) alternatives. Update insn attributes.
19736 * config/i386/i386.md (*movti_internal): Add (?r, *Ye)
19737 and (?*Yd, r) alternatives. Update insn attributes.
19738 (double-mode inter-unit splitters): Add new GR<->XMM splitters.
19740 2017-05-30 Pierre-Marie de Rodat <derodat@adacore.com>
19742 * gimplify.c (gimplify_modify_expr): Don't create a
19743 DECL_DEBUG_EXPR link if *FROM_P does not belong to the current
19746 2017-05-30 Wilco Dijkstra <wdijkstr@arm.com>
19748 * config/arm/arm-builtins.c (arm_expand_builtin): Remove const.
19750 2017-05-30 Richard Biener <rguenther@suse.de>
19752 * tree-vectorizer.h (struct _stmt_vec_info): Add reduc_type
19753 and reduc_def fields.
19754 (STMT_VINFO_REDUC_TYPE): New define.
19755 (STMT_VINFO_REDUC_DEF): Likewise.
19756 (vect_force_simple_reduction): Adjust prototype.
19757 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Adjust.
19758 (vect_is_simple_reduction): Remove check_reduction argument.
19759 (vect_force_simple_reduction): Adjust and set
19760 STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
19761 (vectorizable_reduction): Do not re-do reduction analysis
19762 but use STMT_VINFO_REDUC_TYPE and STMT_VINFO_REDUC_DEF.
19763 * tree-parloops.c (gather_scalar_reductions): Adjust.
19765 2017-05-30 Richard Biener <rguenther@suse.de>
19767 PR middle-end/80901
19768 * cfgexpand.c (expand_gimple_cond): Match up loop fixup with
19771 2017-05-24 Robin Dapp <rdapp@linux.vnet.ibm.com>
19773 * tree-vect-data-refs.c (vect_get_peeling_costs_all_drs):
19774 Introduce unknown_misalignment parameter and remove vf.
19775 (vect_peeling_hash_get_lowest_cost):
19776 Pass unknown_misalignment parameter.
19777 (vect_enhance_data_refs_alignment):
19778 Fix unsupportable data ref treatment.
19780 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
19782 * tree-vect-data-refs.c (vect_get_data_access_cost):
19783 Workaround for SLP handling.
19784 (vect_enhance_data_refs_alignment):
19785 Compute costs for doing no peeling at all, compare to the best
19786 peeling costs so far and avoid peeling if cheaper.
19788 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
19790 * tree-vect-data-refs.c (vect_peeling_hash_choose_best_peeling):
19791 Return peeling info and set costs to zero for unlimited cost
19793 (vect_enhance_data_refs_alignment): Also inspect all datarefs
19794 with unknown misalignment. Compute and costs for unknown
19795 misalignment, compare them to the costs for known misalignment
19796 and choose the cheapest for peeling.
19798 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
19800 * tree-vect-data-refs.c (vect_update_misalignment_for_peel): Rename.
19801 (vect_get_peeling_costs_all_drs): Create function.
19802 (vect_peeling_hash_get_lowest_cost):
19803 Use vect_get_peeling_costs_all_drs.
19804 (vect_peeling_supportable): Create function.
19805 (vect_enhance_data_refs_alignment): Use vect_peeling_supportable.
19807 2017-05-30 Robin Dapp <rdapp@linux.vnet.ibm.com>
19809 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Create
19810 DR_HAS_NEGATIVE_STEP.
19811 (vect_update_misalignment_for_peel): Define DR_MISALIGNMENT.
19812 (vect_enhance_data_refs_alignment): Use.
19813 (vect_duplicate_ssa_name_ptr_info): Use.
19814 * tree-vectorizer.h (dr_misalignment): Use.
19815 (known_alignment_for_access_p): Use.
19817 2017-05-30 Jozef Lawrynowicz <jozef.l@somniumtech.com>
19820 * config/msp430/msp430.c (gen_prefix): Return NULL when section name is
19822 (has_section_name): New function.
19824 2017-05-30 Martin Liska <mliska@suse.cz>
19827 * auto-profile.c (get_function_decl_from_block): Fix
19830 2017-05-30 Richard Biener <rguenther@suse.de>
19832 PR middle-end/80876
19833 * cfgexpand.c (expand_gimple_cond): Fixup preserving loops again.
19835 2017-05-30 Martin Liska <mliska@suse.cz>
19837 * dumpfile.c: Use newly added macro DUMP_FILE_INFO.
19838 * dumpfile.h (struct dump_file_info): Remove ctors.
19840 2017-05-30 Martin Liska <mliska@suse.cz>
19842 * predict.def: Fix GNU coding style.
19844 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
19846 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
19847 Mark 'to' argument with ATTRIBUTE_UNUSED.
19849 2017-05-29 Max Filippov <jcmvbkbc@gmail.com>
19851 * config/xtensa/xtensa.c (xtensa_emit_call): Use
19852 HOST_WIDE_INT_PRINT_HEX instead of 0x%lx format string.
19853 (print_operand): Use HOST_WIDE_INT_PRINT_DEC instead of %ld
19856 2017-05-29 Eric Botcazou <ebotcazou@adacore.com>
19858 * doc/install.texi (Options specification): Restore entry of
19859 --enable-sjlj-exceptions.
19861 2017-05-27 Michael Eager <eager@eagercon.com>
19864 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
19866 See https://gcc.gnu.org/ml/gcc/2017-05/msg00221.html.
19868 * config/microblaze/microblaze.h
19869 (FIXED_REGISTERS): Update in macro.
19870 (CALL_USED_REGISTERS): Update in macro.
19872 2017-05-27 François-Xavier Coudett <fxcoudert@gcc.gnu.org>
19874 * doc/install.texi: Add links to macOS binary distributions.
19876 2017-05-27 Jakub Jelinek <jakub@redhat.com>
19880 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
19882 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
19884 2017-05-26 Martin Liska <mliska@suse.cz>
19886 * dumpfile.h (enum dump_kind): Renumber TDF_* flags to be contiguous.
19888 2017-05-26 Martin Liska <mliska@suse.cz>
19890 * cfg.c (check_bb_profile): Do not use TDF_COMMENT and print
19891 always leading ';; '.
19892 (dump_bb_info): Likewise.
19893 (brief_dump_cfg): Likewise.
19894 * cfgrtl.c (print_rtl_with_bb): Do not use TDF_COMMENT.
19895 * dumpfile.c: Remove usage of TDF_VERBOSE.
19896 * dumpfile.h (enum dump_kind): Likewise.
19897 (dump_gimple_bb_header): Do not use TDF_COMMENT.
19898 * print-tree.c (debug_verbose): Remove.
19899 * tree-cfg.c (gimple_dump_cfg): Do not use TDF_COMMENT.
19900 (dump_function_to_file): Remove dumps guarded with TDF_VERBOSE.
19901 * tree-diagnostic.c (default_tree_printer): Replace
19902 TDF_DIAGNOSTIC with TDF_SLIM.
19904 2017-05-26 Bin Cheng <bin.cheng@arm.com>
19906 * tree-vect-loop-manip.c (create_intersect_range_checks_index): Pass
19907 in parameter loop, rather than loop_vinfo.
19908 (create_intersect_range_checks): Ditto.
19909 (vect_create_cond_for_alias_checks): Update call to above functions.
19911 2017-05-26 Bin Cheng <bin.cheng@arm.com>
19913 PR tree-optimization/80815
19914 * tree-data-ref.c (prune_runtime_alias_test_list): Simplify condition
19915 for merging runtime alias checks. Handle negative DR_STEPs.
19917 2017-05-26 Bin Cheng <bin.cheng@arm.com>
19919 * tree-vect-data-refs.c (Operator==, comp_dr_with_seg_len_pair):
19921 * tree-data-ref.c (Operator==, comp_dr_with_seg_len_pair): To here.
19922 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Factor
19923 out code pruning runtime alias checks.
19924 * tree-data-ref.c (prune_runtime_alias_test_list): New function
19925 factored out from above.
19926 * tree-vectorizer.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
19928 * tree-data-ref.h (struct dr_with_seg_len, dr_with_seg_len_pair_t):
19930 (prune_runtime_alias_test_list): New decalaration.
19932 2017-05-26 Bin Cheng <bin.cheng@arm.com>
19934 * tree-vect-data-refs.c (compare_tree): Rename and move ...
19935 * tree-data-ref.c (data_ref_compare_tree): ... to here.
19936 * tree-data-ref.h (data_ref_compare_tree): New decalaration.
19937 * tree-vect-data-refs.c (dr_group_sort_cmp): Update uses.
19938 (operator==, comp_dr_with_seg_len_pair): Ditto.
19939 (vect_prune_runtime_alias_test_list): Ditto.
19941 2017-05-26 Martin Liska <mliska@suse.cz>
19944 * params.def: Bound partial-inlining-entry-probability param.
19946 2017-05-26 Marek Polacek <polacek@redhat.com>
19949 * fold-const.c (fold_binary_loc) <case MULT_EXPR>: Check if OP1
19952 2017-05-26 Richard Biener <rguenther@suse.de>
19954 PR tree-optimization/80842
19955 * tree-ssa-ccp.c (set_lattice_value): Always meet with the old
19958 2017-05-26 Richard Biener <rguenther@suse.de>
19960 PR tree-optimization/80844
19961 * tree-vectorizer.c (adjust_simduid_builtins): Propagate results.
19963 2017-05-25 Sebastian Peryt <sebastian.peryt@intel.com>
19965 * doc/md.texi (Machine Constraints): Update x86 family
19966 machine constraints section to match 'config/i386/constraints.md'.
19968 2017-05-25 Volker Reichelt <v.reichelt@netcologne.de>
19970 * doc/invoke.texi (-Wcatch-value=): Document new warning option.
19972 2017-05-25 Nathan Sidwell <nathan@acm.org>
19974 * doc/invoke.texi (--enable-languages): Update documentation.
19976 2017-05-25 Martin Liska <mliska@suse.cz>
19978 * dumpfile.c: Add TDF_FOLDING.
19979 * dumpfile.h (enum dump_kind): Likewise.
19980 * genmatch.c (dt_simplify::gen_1): Use it.
19982 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
19984 * match.pd (view_convert (convert@0 @1)): Handle zero-extension.
19986 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
19988 * match.pd ((A +- CST1) +- CST2): Allow some conversions.
19989 * tree.c (drop_tree_overflow): Handle COMPLEX_CST and VECTOR_CST.
19991 2017-05-25 Marc Glisse <marc.glisse@inria.fr>
19993 * fold-const.c (fold_binary_loc) [(A & C) == D]: Remove transformation.
19994 * match.pd (X == C): Rewrite it here.
19995 (with_possible_nonzero_bits, with_possible_nonzero_bits2,
19996 with_certain_nonzero_bits2): New predicates.
19997 * tree-ssanames.c (get_nonzero_bits): Handle INTEGER_CST.
19999 2017-05-24 Nathan Sidwell <nathan@acm.org>
20001 * lto-streamer-in.c (lto_input_data_block): Adjust T const cast to
20004 * auto-profile.c (afdo_propagate): Adjust T const cast to avoid
20007 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
20009 * config/powerpcspe: New port. Files are copied from the rs6000
20010 port, with "rs6000" in filenames replaced by "powerpcspe".
20012 2017-05-24 Wilco Dijkstra <wdijkstr@arm.com>
20014 PR rtl-optimization/80754
20015 * lra-remat.c (do_remat): Add overlap checks for dst_regno.
20017 2017-05-24 Sheldon Lobo <smlobo@sheldon.us.oracle.com>
20019 * config/sparc/sparc.md (length): Return the correct value for -mflat
20020 sibcalls to match output_sibcall.
20022 2017-05-24 Segher Boessenkool <segher@kernel.crashing.org>
20026 * config/rs6000/rs6000.c (struct machine_function): Add new field
20028 (rs6000_get_separate_components): Init that field, use it.
20029 (rs6000_components_for_bb): Use the field.
20031 2017-05-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
20033 * config/arm/arm.c (arm_expand_prologue): Fix typo in comment.
20035 2017-05-24 Peter Bergner <bergner@vnet.ibm.com>
20037 PR middle-end/80823
20038 * tree-cfg.c (group_case_labels_stmt): Delete increment of "i";
20040 2017-05-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
20043 * config/s390/s390.c (s390_check_qrst_address): Check incoming
20044 address against address_operand predicate.
20045 * config/s390/s390.md ("*indirect_jump"): Swap alternatives.
20047 2017-05-24 Eric Botcazou <ebotcazou@adacore.com>
20049 * var-tracking.c (track_expr_p): Do not return 0 for tracked record
20050 parameters passed indirectly.
20052 2017-05-23 Uros Bizjak <ubizjak@gmail.com>
20054 * config/i386/i386.md (*movdi_internal): Remove SSE4
20055 alternative 18 (?r, *v). Update insn attributes.
20056 (*movsi_internal): Remove SSE4 alternative 13 (?r, *v).
20057 Update insn attributes.
20058 (*zero_extendsidi2): Remove SSE4 alternative (?r, *x).
20059 Update insn attributes.
20060 * config/i386/sse.md (vec_extract<ssevecmodelower>_0): Remove SSE4
20061 alternative 1 (r, v). Remove isa attribute.
20062 * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20063 Always move value through stack for !TARGET_INTER_UNIT_MOVES_TO_VEC
20064 and !TARGET_INTER_UNIT_MOVES_TO_VEC targets.
20066 2017-05-23 Tom de Vries <tom@codesourcery.com>
20068 * doc/sourcebuild.texi (Directives, Verify compiler message): Document
20071 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
20073 * cgraphunit.c (symbol_table::process_new_functions): Update.
20074 * ipa-fnsummary.c (pass_data_inline_parameters): Remove.
20075 (inline_generate_summary): Rename to ...
20076 (ipa_fn_summary_generate): ... this one.
20077 (inline_read_summary): Rename to ...
20078 (ipa_fn_summary_read): ... this one.
20079 (inline_write_summary): Rename to ...
20080 (ipa_fn_summary_write): ... this one.
20081 (inline_free_summary): Rename to ...
20082 (ipa_free_fn_summary): ... this one.
20083 (pass_data_local_fn_summary, pass_local_fn_summary,
20084 make_pass_local_fn_summary, pass_data_ipa_free_fn_summary,
20085 pass_ipa_free_fn_summary, make_pass_ipa_free_fn_summary,
20086 pass_data_ipa_fn_summary, pass_ipa_fn_summary,
20087 make_pass_ipa_fn_summary): New.
20088 * ipa-fnsummary.h (inline_generate_summary, inline_read_summary,
20089 inline_write_summary, inline_free_summary): Remove.
20090 (ipa_free_fn_summary) : New.
20091 * ipa-inline.c (ipa_inline): Update.
20092 (pass_ipa_inline): Do not generate summaries.
20093 * ipa.c (pass_data_ipa_free_fn_summary, pass_ipa_free_fn_summary):
20095 * passes.def: Replace pass_inline_parameters by pass_local_fn_summary
20096 and add pass_ipa_fn_summary.
20097 * tree-pass.h (make_pass_ipa_fn_summary, make_pass_local_fn_summary):
20099 (make_pass_inline_parameters): Remove.
20101 2017-05-23 Thomas Schwinge <thomas@codesourcery.com>
20103 * omp-low.c (struct omp_context): Remove "default_kind" member.
20106 * omp-offload.c (execute_oacc_device_lower): Remove the
20107 parallelism dimensions function attributes for unparallelized
20108 OpenACC kernels constructs.
20110 2017-05-23 Martin Liska <mliska@suse.cz>
20112 * cgraph.c (cgraph_node::get_create): Use symtab_node::dump_{asm_,}name
20114 (cgraph_edge::make_speculative): Likewise.
20115 (cgraph_edge::resolve_speculation): Likewise.
20116 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
20117 (cgraph_node::dump): Likewise.
20118 * cgraph.h: Likewise.
20119 * cgraphunit.c (analyze_functions): Likewise.
20120 (symbol_table::compile): Likewise.
20121 * ipa-cp.c (print_all_lattices): Likewise.
20122 (determine_versionability): Likewise.
20123 (initialize_node_lattices): Likewise.
20124 (ipcp_verify_propagated_values): Likewise.
20125 (estimate_local_effects): Likewise.
20126 (update_profiling_info): Likewise.
20127 (create_specialized_node): Likewise.
20128 (perhaps_add_new_callers): Likewise.
20129 (decide_about_value): Likewise.
20130 (decide_whether_version_node): Likewise.
20131 (identify_dead_nodes): Likewise.
20132 (ipcp_store_bits_results): Likewise.
20133 * ipa-devirt.c (dump_targets): Likewise.
20134 (ipa_devirt): Likewise.
20135 * ipa-icf.c (sem_item::dump): Likewise.
20136 (sem_function::equals): Likewise.
20137 (sem_variable::equals): Likewise.
20138 (sem_item_optimizer::read_section): Likewise.
20139 (sem_item_optimizer::execute): Likewise.
20140 (congruence_class::dump): Likewise.
20141 * ipa-inline-analysis.c (dump_ipa_call_summary): Likewise.
20142 (dump_inline_summary): Likewise.
20143 (estimate_node_size_and_time): Likewise.
20144 (inline_analyze_function): Likewise.
20145 * ipa-inline-transform.c (inline_call): Likewise.
20146 * ipa-inline.c (report_inline_failed_reason): Likewise.
20147 (want_early_inline_function_p): Likewise.
20148 (edge_badness): Likewise.
20149 (update_edge_key): Likewise.
20150 (inline_small_functions): Likewise.
20151 * ipa-profile.c (ipa_profile): Likewise.
20152 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
20153 (ipa_make_edge_direct_to_target): Likewise.
20154 (remove_described_reference): Likewise.
20155 (ipa_impossible_devirt_target): Likewise.
20156 (propagate_controlled_uses): Likewise.
20157 (ipa_print_node_params): Likewise.
20158 (ipcp_transform_function): Likewise.
20159 * ipa-pure-const.c (pure_const_read_summary): Likewise.
20160 (propagate_pure_const): Likewise.
20161 * ipa-reference.c (generate_summary): Likewise.
20162 (read_write_all_from_decl): Likewise.
20163 (propagate): Likewise.
20164 (ipa_reference_read_optimization_summary): Likewise.
20165 * ipa-utils.c (ipa_merge_profiles): Likewise.
20166 * ipa.c (walk_polymorphic_call_targets): Likewise.
20167 (symbol_table::remove_unreachable_nodes): Likewise.
20168 (ipa_single_use): Likewise.
20169 * passes.c (execute_todo): Likewise.
20170 * predict.c (drop_profile): Likewise.
20171 * symtab.c (symtab_node::get_dump_name): New function.
20172 (symtab_node::dump_name): Likewise.
20173 (symtab_node::dump_asm_name): Likewise.
20174 (symtab_node::dump_references): Likewise.
20175 (symtab_node::dump_referring): Likewise.
20176 (symtab_node::dump_base): Likewise.
20177 (symtab_node::debug_symtab): Likewise.
20178 * tree-sra.c (convert_callers_for_node): Likewise.
20179 * tree-ssa-structalias.c (ipa_pta_execute): Likewise.
20180 * value-prof.c (init_node_map): Likewise.
20182 2017-05-23 Martin Liska <mliska@suse.cz>
20184 * cgraph.h: Move symtab_node::dump_table to symbol_table::dump
20185 and symtab_node::debug_symtab to symbol_table::debug.
20186 * cgraphunit.c (analyze_functions): Use the renamed function.
20187 (symbol_table::compile): Likewise.
20188 * ipa-cp.c (ipcp_verify_propagated_values): Likewise.
20189 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
20190 * passes.c (execute_todo): Likewise.
20191 * symtab.c (symbol_table::dump): New function.
20192 * tree-ssa-structalias.c (ipa_pta_execute): Use the renamed function.
20194 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
20196 * ipa-fnsummary.c (estimate_node_size_and_time): Do not sanity check
20197 that nonconst implies exec.
20199 2017-05-23 Jan Hubicka <hubicka@ucw.cz>
20201 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
20202 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
20203 (inline_edge_summary_vec): Turn into ...
20204 (ipa_call_summaries): ... this one.
20205 (redirect_to_unreachable, edge_set_predicate,
20206 evaluate_properties_for_edge, inline_summary_alloc,
20207 reset_ipa_call_summary, reset_inline_summary,
20208 inline_summary_t::duplicate): Update.
20209 (inline_edge_duplication_hook): Turn to ...
20210 (ipa_call_summary_t::duplicate): ... this one.
20211 (inline_edge_removal_hook): Turn to ...
20212 (ipa_call_summary_t::remove): ... this one.
20213 (dump_inline_edge_summary): Turn to ...
20214 (dump_ipa_call_summary): ... this one.
20215 (estimate_function_body_sizes): Update.
20216 (inline_update_callee_summaries): Update.
20217 (remap_edge_change_prob): Update.
20218 (remap_edge_summaries): Update.
20219 (inline_merge_summary): Update.
20220 (do_estimate_edge_time): Update.
20221 (inline_generate_summary): Update.
20222 (inline_read_section): Update.
20223 (inline_read_summary): Update.
20224 (inline_free_summary): Update.
20225 * ipa-inline.c (can_inline_edge_p): Update.
20226 (compute_inlined_call_time): Update.
20227 (want_inline_small_function_p): Update.
20228 (edge_badness): Update.
20229 (early_inliner): Update.
20230 * ipa-inline.h (inline_edge_summary): Turn to ...
20231 (ipa_call_summary): ... this one.
20232 (ipa_call_summary_t): New class.
20233 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
20234 (ipa_call_summaries): New.
20235 (inline_edge_summary): Remove.
20236 (estimate_edge_growth): Update.
20237 * ipa-profile.c (ipa_propagate_frequency_1): Update.
20238 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
20239 * ipa-split.c (execute_split_functions): Update.
20240 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
20242 2017-05-23 Tom de Vries <tom@codesourcery.com>
20244 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
20245 attributes): Document rdrand effective target.
20247 2017-05-23 Tom de Vries <tom@codesourcery.com>
20249 * doc/sourcebuild.texi (Effective-Target Keywords, Other hardware
20250 attributes): Sort alphabetically.
20252 2017-05-23 Georg-Johann Lay <avr@gjlay.de>
20254 * config/avr/genmultilib.awk: Use gsub instead of gensub.
20256 2017-05-22 Michael Meissner <meissner@linux.vnet.ibm.com>
20259 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Split
20260 V2DF/V2DI splat into two separate patterns, one that handles
20261 registers, and the other that only handles memory. Drop support
20262 for splatting from a GPR on ISA 2.07 and then splitting the
20263 splat into direct move and splat.
20264 (vsx_splat_<mode>_reg): Likewise.
20265 (vsx_splat_<mode>_mem): Likewise.
20267 2017-05-22 Segher Boessenkool <segher@kernel.crashing.org>
20269 * cfgcleanup.c (bb_is_just_return): Allow CLOBBERs.
20271 2017-05-22 Jakub Jelinek <jakub@redhat.com>
20273 PR middle-end/80809
20274 * omp-low.c (finish_taskreg_remap): New function.
20275 (finish_taskreg_scan): If unit size of ctx->record_type
20276 is non-constant, unshare the size expression and replace
20277 decls in it with possible outer var refs.
20279 PR middle-end/80809
20280 * gimplify.c (omp_add_variable): For GOVD_DEBUG_PRIVATE use
20281 GOVD_SHARED rather than GOVD_PRIVATE with it.
20282 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Expect
20283 GOVD_SHARED rather than GOVD_PRIVATE with GOVD_DEBUG_PRIVATE.
20285 PR middle-end/80853
20286 * omp-low.c (lower_reduction_clauses): Pass OMP_CLAUSE_PRIVATE
20287 as last argument to build_outer_var_ref for pointer bases of array
20288 section reductions.
20290 2017-05-19 Martin Sebor <msebor@redhat.com>
20292 * print-tree.c (print_node): Print DECL_READ_P flag.
20294 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20296 * Makefile.in: Add ipa-fnsummary.o and ipa-fnsummary.h
20297 * auto-profile.c: Replace ipa-inline.h by ipa-fnsummary.h
20298 * cgraph.c: Likewise.
20299 * cgraphunit.c: Likewise.
20300 * gengtype.c: Likewise.
20301 * ipa-cp.c: Likewise.
20302 * ipa-devirt.c: Likewise.
20303 * ipa-icf.c: Likewise.
20304 * ipa-predicate.c: Likewise.
20305 * ipa-profile.c: Likewise.
20306 * ipa-prop.c: Likewise.
20307 * ipa-split.c: Likewise.
20309 * ipa-inline-analysis.c (inline_summaries, ipa_call_summaries,
20310 edge_predicate_pool, dump_inline_hints,
20311 inline_summary::account_size_time, redirect_to_unreachable,
20312 edge_set_predicate, set_hint_predicate,
20313 evaluate_conditions_for_known_args, evaluate_properties_for_edge,
20314 inline_summary_alloc, ipa_call_summary::reset, inline_summary::reset,
20315 inline_summary_t::remove, remap_hint_predicate_after_duplication,
20316 inline_summary_t::duplicate, ipa_call_summary_t::duplicate,
20317 ipa_call_summary_t::remove, initialize_growth_caches,
20318 free_growth_caches, dump_ipa_call_summary, dump_inline_summary,
20319 debug_inline_summary, dump_inline_summaries, initialize_inline_failed,
20320 mark_modified, unmodified_parm_1, unmodified_parm,
20321 unmodified_parm_or_parm_agg_item, eliminated_by_inlining_prob,
20322 set_cond_stmt_execution_predicate, set_switch_stmt_execution_predicate,
20323 compute_bb_predicates, will_be_nonconstant_expr_predicate,
20324 will_be_nonconstant_predicate, record_modified_bb_info,
20325 get_minimal_bb, record_modified, param_change_prob,
20326 phi_result_unknown_predicate, predicate_for_phi_result,
20327 array_index_predicate, clobber_only_eh_bb_p, fp_expression_p,
20328 estimate_function_body_sizes, compute_inline_parameters,
20329 compute_inline_parameters_for_curren, pass_data_inline_parameters,
20330 estimate_node_size_and_time, estimate_ipcp_clone_size_and_time,
20331 inline_update_callee_summaries, remap_edge_change_prob,
20332 remap_edge_summaries, remap_hint_predicate, inline_merge_summary,
20333 inline_update_overall_summary, inline_indirect_intraprocedural_analysis,
20334 inline_analyze_function, inline_summary_t::insert,
20335 inline_generate_summary, read_ipa_call_summary, inline_read_section,
20336 inline_read_summary, write_ipa_call_summary, inline_write_summary,
20337 inline_free_summary): Move to ipa-fnsummary.h
20338 (predicate_t): Remove.
20339 * ipa-fnsummary.c: New file.
20340 * ipa-inline.h: Do not include sreal.h and ipa-predicate.h
20341 (enum inline_hints_vals, inline_hints, agg_position_info,
20342 INLINE_SIZE_SCALE, size_time_entry, inline_summary, inline_summary_t,
20343 inline_summaries, ipa_call_summary, ipa_call_summary_t,
20344 ipa_call_summaries, debug_inline_summary, dump_inline_summaries,
20345 dump_inline_summary, dump_inline_hints, inline_generate_summary,
20346 inline_read_summary, inline_write_summary, inline_free_summary,
20347 inline_analyze_function, initialize_inline_failed,
20348 inline_merge_summary, inline_update_overall_summary,
20349 compute_inline_parameters): Move to ipa-fnsummary.h
20350 * ipa-fnsummary.h: New file.
20351 * ipa-inline-transform.h: Include ipa-inline.h.
20352 * ipa-inline.c: LIkewise.
20354 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20356 * ipa-inline.c (edge_badness): Use inlined_time instead of
20357 inline_summaries->get.
20359 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20361 * ipa-inline.c (edge_badness): Use estimate_size_after_inlining.
20363 2017-05-22 Nathan Sidwell <nathan@acm.org>
20365 * doc/invoke.texi (fdump-translation-unit): Delete documentation.
20366 (fdump-lang): Document 'raw' option.
20367 * dumpfile.h (TDI_tu): Delete.
20368 * dumpfile.c (dump_files): Remove translation-unit.
20369 (FIRST_AUTO_NUMBERED_DUMP): Decrement.
20371 2017-05-22 Georg-Johann Lay <avr@gjlay.de>
20373 * config/avr/t-avr (AWK) [t-multilib]: Remove "-v FORMAT=Makefile"
20374 command option from $(AWK) call.
20375 * config/avr/genmultilib.awk: Simplify and rewrite so that it
20376 generates MULTILIB_REQUIRED instead of MULTILIB_EXCEPTIONS.
20377 [FORMAT]: Remove handling of variable.
20378 * config/avr/t-multilib: Regenerate.
20380 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20382 * ipa-inline-analysis.c (inline_summary::reset): Do not reset
20384 (dump_inline_summary): Do not print self_time.
20385 (estimate_function_body_sizes): Do not set self_time.
20386 (compute_inline_parameters): Likewise.
20387 (inline_read_section, inline_write_summary): Do not stream self_time.
20388 * ipa-inline.h (inline_summary): Drop self_time.
20390 2017-05-22 Jan Hubicka <hubicka@ucw.cz>
20392 * ipa-inline-analysis.c (account_size_time): Rename to ...
20393 (inline_summary::account_size_time): ... this one.
20394 (reset_ipa_call_summary): Turn to ...
20395 (ipa_call_summary::reset): ... this one.
20396 (reset_inline_summary): Turn to ...
20397 (inline_summary::reset): ... this one.
20398 (inline_summary_t::remove): Update.
20399 (inline_summary_t::duplicate): Update.
20400 (ipa_call_summary_t::remove): Update.
20401 (dump_inline_summary): Update.
20402 (estimate_function_body_sizes): Update.
20403 (compute_inline_parameters): Update.
20404 (estimate_node_size_and_time): Update.
20405 (inline_merge_summary): Update.
20406 (inline_update_overall_summary): Update.
20407 (inline_read_section): Update.
20408 (inline_write_summary): Update.
20409 * ipa-inline.h (inline_summary): Rename entry to size_time_table;
20410 add account_size_time and reset member functions.
20411 (ipa_call_summary): Add reset function.
20412 * ipa-predicate.h (predicate::operator &): Constify.
20414 2017-05-22 Richard Biener <rguenther@suse.de>
20416 * df-scan.c (df_insn_refs_verify): Speedup when not verifying.
20418 2017-05-19 Jason Merrill <jason@redhat.com>
20420 * tree.c (make_tree_vec_stat, grow_tree_vec_stat): Use size_t.
20422 2017-05-19 Marek Polacek <polacek@redhat.com>
20425 * fold-const.c (extract_muldiv_1) <case TRUNC_DIV_EXPR>: Add
20426 TYPE_OVERFLOW_WRAPS checks.
20428 2017-05-19 Thomas Schwinge <thomas@codesourcery.com>
20430 * tree-core.h (enum omp_clause_default_kind): Add
20431 "OMP_CLAUSE_DEFAULT_PRESENT".
20432 * tree-pretty-print.c (dump_omp_clause): Handle it.
20433 * gimplify.c (enum gimplify_omp_var_data): Add
20434 "GOVD_MAP_FORCE_PRESENT".
20435 (gimplify_adjust_omp_clauses_1): Map it to
20436 "GOMP_MAP_FORCE_PRESENT".
20437 (oacc_default_clause): Handle "OMP_CLAUSE_DEFAULT_PRESENT".
20439 * gimplify.c (oacc_default_clause): Clarify.
20441 2017-05-19 Nathan Sidwell <nathan@acm.org>
20443 LANG_HOOK_REGISTER_DUMPS
20444 * toplev.c (general_init): Call register dump lang hook.
20445 * doc/invoke.texi: Document -fdump-lang option family.
20446 * dumpfile.c (dump_files): Remove class dump here.
20447 (FIRST_AUTO_NUMBERED_DUMP): Adjust.
20448 * dumpfile.h (tree_dump_index): Remove TDI_class.
20449 * langhooks-def.h (lhd_register_dumps): Declare.
20450 (LANG_HOOKS_REGISTER_DUMPS): Define.
20451 (LANG_HOOKS_INITIALIZER): Add it.
20452 * langhooks.c (lhd_register_dumps): Define.
20453 * langhooks.h (struct lang_hooks): Add register_dumps.
20455 2017-05-19 Nathan Sidwell <nathan@acm.org>
20457 * context.h (context::set_passes): New.
20458 * context.c (context::context): Do not create pass manager.
20459 * toplev.c (general_init): Create pass manager here.
20461 2017-05-19 Segher Boessenkool <segher@kernel.crashing.org>
20463 * config/rs6000/rs6000.md (splitter to load of -1 and mask): Don't
20464 use this splitter if two add or or instructions would also work for
20465 the constant we want to generate.
20467 2017-05-19 Richard Biener <rguenther@suse.de>
20470 * genmatch.c (dt_node::gen_kids_1): Add missing scope around
20471 predicate evaluation.
20473 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
20475 * ipa-inline.h (ipa_call_summary): Turn sizes into signed;
20477 * ipa-inline.c (want_inline_small_function_p): Do not cast to
20480 2017-05-19 Jan Hubicka <hubicka@ucw.cz>
20482 * ipa-inline-analysis.c (cgraph_2edge_hook_list, cgraph_edge_hook_list,
20483 inline_edge_removal_hook, inline_edge_duplication_hook): Remove.
20484 (inline_edge_summary_vec): Turn into ...
20485 (ipa_call_summaries): ... this one.
20486 (redirect_to_unreachable, edge_set_predicate,
20487 evaluate_properties_for_edge, inline_summary_alloc,
20488 reset_ipa_call_summary, reset_inline_summary,
20489 inline_summary_t::duplicate): Update.
20490 (inline_edge_duplication_hook): Turn to ...
20491 (ipa_call_summary_t::duplicate): ... this one.
20492 (inline_edge_removal_hook): Turn to ...
20493 (ipa_call_summary_t::remove): ... this one.
20494 (dump_inline_edge_summary): Turn to ...
20495 (dump_ipa_call_summary): ... this one.
20496 (estimate_function_body_sizes): Update.
20497 (inline_update_callee_summaries): Update.
20498 (remap_edge_change_prob): Update.
20499 (remap_edge_summaries): Update.
20500 (inline_merge_summary): Update.
20501 (do_estimate_edge_time): Update.
20502 (inline_generate_summary): Update.
20503 (inline_read_section): Update.
20504 (inline_read_summary): Update.
20505 (inline_free_summary): Update.
20506 * ipa-inline.c (can_inline_edge_p): Update.
20507 (compute_inlined_call_time): Update.
20508 (want_inline_small_function_p): Update.
20509 (edge_badness): Update.
20510 (early_inliner): Update.
20511 * ipa-inline.h (inline_edge_summary): Turn to ...
20512 (ipa_call_summary): ... this one.
20513 (ipa_call_summary_t): New class.
20514 (inline_edge_summary_t, inline_edge_summary_vec): Remove.
20515 (ipa_call_summaries): New.
20516 (inline_edge_summary): Remove.
20517 (estimate_edge_growth): Update.
20518 * ipa-profile.c (ipa_propagate_frequency_1): Update.
20519 * ipa-prop.c (ipa_make_edge_direct_to_target): Update.
20520 * ipa-split.c (execute_split_functions): Update.
20521 * ipa.c (symbol_table::remove_unreachable_nodes): Update.
20523 2017-05-19 Richard Biener <rguenther@suse.de>
20525 PR middle-end/80764
20526 * cfgexpand.c (expand_gimple_cond): Fix loop fixup.
20528 2017-05-18 Segher Boessenkool <segher@kernel.crashing.org>
20530 * config/rs6000/rs6000.c (struct machine_function): Add field
20531 fpr_is_wrapped_separately.
20532 (rs6000_get_separate_components): Use 64 components. Handle the
20533 new FPR components.
20534 (rs6000_components_for_bb): Handle the FPR components.
20535 (rs6000_emit_prologue_components): Handle the FPR components.
20536 (rs6000_emit_epilogue_components): Handle the FPR components.
20537 (rs6000_set_handled_components): Handle the FPR components.
20538 (rs6000_emit_prologue): Don't output prologue code for those FPRs
20539 that are already separately shrink-wrapped.
20540 (rs6000_emit_epilogue): Don't output epilogue code for those FPRs
20541 that are already separately shrink-wrapped.
20543 2017-05-18 Michael Meissner <meissner@linux.vnet.ibm.com>
20546 * config/rs6000/predicates.md (simple_offsettable_mem_operand):
20549 * config/rs6000/rs6000.md (ALTIVEC_DFORM): New iterator.
20550 (define_peephole2 for Altivec d-form load): Add peepholes to catch
20551 cases where the register allocator uses a move and an offsettable
20552 memory operation to/from a FPR register on ISA 2.06/2.07.
20553 (define_peephole2 for Altivec d-form store): Likewise.
20555 2017-05-18 Uros Bizjak <ubizjak@gmail.com>
20558 * config/i386/mmx.md (*mov<mode>_internal): Enable
20559 alternatives 11, 12, 13 and 14 also for 32bit targets.
20560 Remove alternatives 15, 16, 17 and 18.
20561 * config/i386/sse.md (vec_concatv2di): Change
20562 alternative (!x, *y) to (x, ?!*Yn).
20564 2017-05-18 Paolo Carlini <paolo.carlini@oracle.com>
20566 * dumpfile.h (enum dump_kind): Remove stray comma.
20568 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
20570 * Makefile.in: Add ipa-predicate.o and ipa-predicate.h
20571 * ipa-inline-analysis.c (NUM_CONDITIONS): turn into
20572 predicate::num_conditions
20573 (IS_NOT_CONSTANT): turn into predicate::is_not_constant.
20574 (CHANGED): turn into predicate::changed.
20575 (agg_position_info): Move to ipa-predicate.h
20576 (add_condition, predicate::add_clause, predicate::operator &=,
20577 predicate::or_with, predicate::evaluate, predicate::probability,
20578 dump_condition, dump_clause, predicate::dump,
20579 predicate::remap_after_duplication, predicate::remap_after_inlining,
20580 predicate::stream_in, predicate::stream_out): Move to ipa-predicate.c
20581 (evaluate_conditions_for_known_args): Update.
20582 (set_cond_stmt_execution_predicate): Update.
20583 * ipa-inline.h: Include ipa-predicate.h
20584 (condition, inline_param_summary, conditions, agg_position_info,
20585 predicate): Move to ipa-predicate.h
20586 * ipa-predicate.c: New file.
20587 * ipa-predicate.h: New file.
20589 2017-05-18 Wilco Dijkstra <wdijkstr@arm.com>
20591 * final.c (leaf_function_p): Check we are not in a sequence.
20593 2017-05-18 Martin Liska <mliska@suse.cz>
20595 * cfgrtl.c (rtl_verify_edges): Remove usage of TDF_RTL.
20596 * dumpfile.c (dump_register): Use new enum dump_kind.
20597 (get_dump_file_name): Likewise.
20598 (dump_enable_all): Likewise.
20599 (dump_switch_p_1): Likewise.
20600 (enable_rtl_dump_file): Remove usage of TDF_RTL.
20601 * dumpfile.h (enum dump_kind): New enum type.
20602 (struct dump_file_info): Create constructor and
20603 format fields and comments.
20604 * passes.c (pass_manager::register_one_dump_file):
20606 * statistics.c (statistics_early_init): Likewise.
20607 * tree-ssa-loop-prefetch.c (dump_mem_details): Replace
20608 TDF_TREE with TDF_SLIM.
20609 (gather_memory_references_ref): Likewise.
20611 2017-05-18 Martin Liska <mliska@suse.cz>
20613 * vec.h (struct vnull): Use it.
20615 2017-05-18 Jan Hubicka <hubicka@ucw.cz>
20617 * ipa-inline-analysis.c (predicate_conditions): Move to ipa-inline.h
20618 (true_predicate, false_predicate, true_predicate_p,
20619 false_predicate_p): Remove.
20620 (single_cond_predicate, not_inlined_predicate): Turn to member function
20622 (add_condition): Update.
20623 (add_clause): Turn to...
20624 (predicate::add_clause): ... this one; update; allow passing NULL
20626 (and_predicates): Turn to ...
20627 (predicate::operator &=): ... this one.
20628 (predicates_equal_p): Move to predicate::operator == in ipa-inline.h
20629 (or_predicates): Turn to ...
20630 (predicate::or_with): ... this one.
20631 (evaluate_predicate): Turn to ...
20632 (predicate::evaluate): ... this one.
20633 (predicate_probability): Turn to ...
20634 (predicate::probability): ... this one.
20635 (dump_condition): Update.
20636 (dump_predicate): Turn to ...
20637 (predicate::dump): ... this one.
20638 (account_size_time): Update.
20639 (edge_set_predicate): Update.
20640 (set_hint_predicate): UPdate.
20641 (evaluate_conditions_for_known_args): Update.
20642 (evaluate_properties_for_edge): Update.
20643 (remap_predicate_after_duplication): Turn to...
20644 (predicate::remap_after_duplication): ... this one.
20645 (remap_hint_predicate_after_duplication): Update.
20646 (inline_summary_t::duplicate): UPdate.
20647 (dump_inline_edge_summary): Update.
20648 (dump_inline_summary): Update.
20649 (set_cond_stmt_execution_predicate): Update.
20650 (set_switch_stmt_execution_predicate): Update.
20651 (compute_bb_predicates): Update.
20652 (will_be_nonconstant_expr_predicate): Update.
20653 (will_be_nonconstant_predicate): Update.
20654 (phi_result_unknown_predicate): Update.
20655 (predicate_for_phi_result): Update.
20656 (array_index_predicate): Update.
20657 (estimate_function_body_sizes): Update.
20658 (estimate_node_size_and_time): Update.
20659 (estimate_ipcp_clone_size_and_time): Update.
20660 (remap_predicate): Rename to ...
20661 (predicate::remap_after_inlining): ... this one.
20662 (remap_hint_predicate): Update.
20663 (inline_merge_summary): Update.
20664 (inline_update_overall_summary): Update.
20665 (estimate_size_after_inlining): Update.
20666 (read_predicate): Rename to ...
20667 (predicate::stream_in): ... this one.
20668 (read_inline_edge_summary): Update.
20669 (write_predicate): Rename to ...
20670 (predicate::stream_out): ... this one.
20671 (write_inline_edge_summary): Update.
20672 * ipa-inline.h (MAX_CLAUSES): Turn to predicate::max_clauses.
20673 (clause_t): Turn to uint32_t
20674 (predicate): Turn to class; implement constructor and operators
20676 (size_time_entry): Update.
20677 (inline_summary): Update.
20678 (inline_edge_summary): Update.
20680 2017-05-18 Marc Glisse <marc.glisse@inria.fr>
20682 * fold-const.c (fold_binary_loc): Move transformation...
20683 * match.pd (C - X CMP X): ... here.
20685 2017-05-18 Sheldon Lobo <sheldon.lobo@oracle.com>
20687 * config/sparc/sparc.c (sparc_option_override): Set function
20688 alignment for -mcpu=niagara7 to 64 to match the I$ line.
20689 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC M7 branch
20691 * config/sparc/sparc.h (BRANCH_COST): Set the SPARC T4 branch
20693 * config/sparc/sol2.h: Fix a ASM_CPU32_DEFAULT_SPEC typo.
20695 2017-05-18 Marek Polacek <polacek@redhat.com>
20698 * ubsan.c (instrument_null): Unwrap ADDR_EXPRs.
20699 (pass_ubsan::execute): Call gimple_assign_single_p instead of
20700 gimple_assign_load_p.
20702 2017-05-17 Segher Boessenkool <segher@kernel.crashing.org>
20704 PR middle-end/80692
20705 * real.c (do_compare): Give decimal_do_compare preference over
20706 comparing just the signs.
20708 2017-05-17 Uros Bizjak <ubizjak@gmail.com>
20710 * doc/md.texi (Canonicalization of Instructions): Describe the
20711 canonical form of instructions that inherently set a condition
20714 2017-05-17 Peter Bergner <bergner@vnet.ibm.com>
20716 PR middle-end/80775
20717 * tree-cfg.c: Move deletion of unreachable case statements to after
20718 the merging of consecutive case labels.
20720 2017-05-17 Thomas Preud'homme <thomas.preudhomme@arm.com>
20722 * config/arm/arm.c (cmse_nonsecure_call_clear_caller_saved): Refer
20723 readers to __gnu_cmse_nonsecure_call libcall for saving, clearing and
20724 restoring of callee-saved registers.
20726 2017-05-17 Eric Botcazou <ebotcazou@adacore.com>
20728 * compare-elim.c (equivalent_reg_at_start): Adjust outdated comment.
20729 * config/visium/visium.c (single_set_and_flags): Likewise.
20730 * config/visium/visium.md (Substitutions): Likewise.
20732 2017-05-17 Martin Liska <mliska@suse.cz>
20734 * cfg.c: Introduce dump_flags_t type and
20735 use it instead of int type.
20737 * cfghooks.c: Likewise.
20738 * cfghooks.h (struct cfg_hooks): Likewise.
20739 * cfgrtl.c: Likewise.
20740 * cfgrtl.h: Likewise.
20741 * cgraph.c (cgraph_node::get_body): Likewise.
20742 * coretypes.h: Likewise.
20743 * domwalk.c: Likewise.
20744 * domwalk.h: Likewise.
20745 * dumpfile.c (struct dump_option_value_info): Likewise.
20746 (dump_enable_all): Likewise.
20747 (dump_switch_p_1): Likewise.
20748 (opt_info_switch_p): Likewise.
20749 * dumpfile.h (enum tree_dump_index): Likewise.
20750 (struct dump_file_info): Likewise.
20751 * genemit.c: Likewise.
20752 * generic-match-head.c: Likewise.
20753 * gengtype.c (open_base_files): Likewise.
20754 * gimple-pretty-print.c: Likewise.
20755 * gimple-pretty-print.h: Likewise.
20756 * graph.c (print_graph_cfg): Likewise.
20757 * graphite-scop-detection.c (dot_all_sese): Likewise.
20758 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
20759 * loop-unroll.c (report_unroll): Likewise.
20760 * passes.c (pass_manager::register_one_dump_file): Likewise.
20761 * print-tree.c: Likewise.
20762 * statistics.c: Likewise.
20763 * tree-cfg.c: Likewise.
20764 * tree-cfg.h: Likewise.
20765 * tree-dfa.c: Likewise.
20766 * tree-dfa.h: Likewise.
20767 * tree-dump.c (dump_function): Likewise.
20768 * tree-dump.h (struct dump_info): Likewise.
20769 * tree-pretty-print.c: Likewise.
20770 * tree-pretty-print.h: Likewise.
20771 * tree-ssa-live.c: Likewise.
20772 * tree-ssa-live.h: Likewise.
20773 * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
20774 * tree-vect-loop.c: Likewise.
20775 * tree-vect-slp.c: Likewise.
20777 2017-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20778 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20780 PR tree-optimization/80457
20781 * tree-vect-stmts.c (vect_model_simple_cost): Model the cost
20782 of all arguments to a statement as scalar_to_vec operations.
20783 (vectorizable_call): Adjust call to vect_model_simple_cost for
20785 (vectorizable_conversion): Likewise.
20786 (vectorizable_assignment): Likewise.
20787 (vectorizable_shift): Likewise.
20788 (vectorizable_operation): Likewise.
20789 (vectorizable_comparison): Likewise.
20790 (vect_is_simple_cond): Record the def types for operands.
20791 (vectorizable_condition): Likewise, call vect_model_simple_cost.
20792 * tree-vectorizer.h (vect_model_simple_cost): Add new parameter
20793 for statement argument count.
20795 2017-05-16 Carl Love <cel@us.ibm.com>
20797 * config/rs6000/rs6000-c: Add support for built-in functions
20798 vector unsigned long long vec_bperm (vector unsigned long long,
20799 vector unsigned char)
20800 vector signed long long vec_mule (vector signed int,
20802 vector unsigned long long vec_mule (vector unsigned int,
20803 vector unsigned int)
20804 vector signed long long vec_mulo (vector signed int,
20806 vector unsigned long long vec_mulo (vector unsigned int,
20807 vector unsigned int)
20808 vector signed char vec_sldw (vector signed char,
20809 vector signed char,
20811 vector unsigned char vec_sldw (vector unsigned char,
20812 vector unsigned char,
20814 vector signed short vec_sldw (vector signed short,
20815 vector signed short,
20817 vector unsigned short vec_sldw (vector unsigned short,
20818 vector unsigned short,
20820 vector signed int vec_sldw (vector signed int,
20823 vector unsigned int vec_sldw (vector unsigned int,
20824 vector unsigned int,
20826 vector signed long long vec_sldw (vector signed long long,
20827 vector signed long long,
20829 vector unsigned long long vec_sldw (vector unsigned long long,
20830 vector unsigned long long,
20832 * config/rs6000/rs6000-c: Add support for built-in functions
20833 * config/rs6000/rs6000-builtin.def: Add definition for SLDW.
20834 * config/rs6000/altivec.h: Add defintion for vec_sldw.
20835 * doc/extend.texi: Update the built-in documentation for the
20836 new built-in functions.
20838 2017-05-16 Marek Polacek <polacek@redhat.com>
20842 * tree.c (save_expr): Don't fold the expression.
20844 2017-05-16 Uros Bizjak <ubizjak@gmail.com>
20846 * config/i386/i386.md (*movsi_internal): Split (?rm,*y) alternative
20847 to (?r,*Yn) and (?m,*y) alternatives, and (?*y,rm) to (?*Ym,r)
20848 and (?*y,m). Update insn attributes.
20850 2017-05-16 Martin Liska <mliska@suse.cz>
20852 * cgraph.c (cgraph_edge::resolve_speculation): Add default value for
20853 flags argument of print_gimple_stmt, print_gimple_expr,
20854 print_generic_stmt and print_generic_expr.
20855 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
20856 * coretypes.h: Likewise.
20857 * except.c (dump_eh_tree): Likewise.
20858 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
20859 * gimple-pretty-print.h: Likewise.
20860 * gimple-ssa-backprop.c (dump_usage_prefix): Likewise.
20861 (backprop::push_to_worklist): Likewise.
20862 (backprop::pop_from_worklist): Likewise.
20863 (backprop::process_use): Likewise.
20864 (backprop::intersect_uses): Likewise.
20865 (note_replacement): Likewise.
20866 * gimple-ssa-store-merging.c
20867 (pass_store_merging::terminate_all_aliasing_chains): Likewise.
20868 (imm_store_chain_info::coalesce_immediate_stores): Likewise.
20869 (pass_store_merging::execute): Likewise.
20870 * gimple-ssa-strength-reduction.c (dump_candidate): Likewise.
20871 (ssa_base_cand_dump_callback): Likewise.
20872 (dump_incr_vec): Likewise.
20873 (replace_refs): Likewise.
20874 (replace_mult_candidate): Likewise.
20875 (create_add_on_incoming_edge): Likewise.
20876 (create_phi_basis): Likewise.
20877 (insert_initializers): Likewise.
20878 (all_phi_incrs_profitable): Likewise.
20879 (introduce_cast_before_cand): Likewise.
20880 (replace_one_candidate): Likewise.
20881 * gimplify.c (gimplify_expr): Likewise.
20882 * graphite-isl-ast-to-gimple.c (is_valid_rename): Likewise.
20883 (set_rename): Likewise.
20884 (rename_uses): Likewise.
20885 (copy_loop_phi_nodes): Likewise.
20886 (add_close_phis_to_merge_points): Likewise.
20887 (copy_loop_close_phi_args): Likewise.
20888 (copy_cond_phi_args): Likewise.
20889 (graphite_copy_stmts_from_block): Likewise.
20890 (translate_pending_phi_nodes): Likewise.
20891 * graphite-poly.c (print_pdr): Likewise.
20892 (dump_gbb_cases): Likewise.
20893 (dump_gbb_conditions): Likewise.
20894 (print_scop_params): Likewise.
20895 * graphite-scop-detection.c (build_cross_bb_scalars_def): Likewise.
20896 (build_cross_bb_scalars_use): Likewise.
20897 (gather_bbs::before_dom_children): Likewise.
20898 * hsa-dump.c (dump_hsa_immed): Likewise.
20899 * ipa-cp.c (print_ipcp_constant_value): Likewise.
20900 (get_replacement_map): Likewise.
20901 * ipa-inline-analysis.c (dump_condition): Likewise.
20902 (estimate_function_body_sizes): Likewise.
20903 * ipa-polymorphic-call.c (check_stmt_for_type_change): Likewise.
20904 (ipa_polymorphic_call_context::get_dynamic_type): Likewise.
20905 * ipa-prop.c (ipa_dump_param): Likewise.
20906 (ipa_print_node_jump_functions_for_edge): Likewise.
20907 (ipa_modify_call_arguments): Likewise.
20908 (ipa_modify_expr): Likewise.
20909 (ipa_dump_param_adjustments): Likewise.
20910 (ipa_dump_agg_replacement_values): Likewise.
20911 (ipcp_modif_dom_walker::before_dom_children): Likewise.
20912 * ipa-pure-const.c (check_stmt): Likewise.
20913 (pass_nothrow::execute): Likewise.
20914 * ipa-split.c (execute_split_functions): Likewise.
20915 * omp-offload.c (dump_oacc_loop_part): Likewise.
20916 (dump_oacc_loop): Likewise.
20917 * trans-mem.c (tm_log_emit): Likewise.
20918 (tm_memopt_accumulate_memops): Likewise.
20919 (dump_tm_memopt_set): Likewise.
20920 (dump_tm_memopt_transform): Likewise.
20921 * tree-cfg.c (gimple_verify_flow_info): Likewise.
20922 (print_loop): Likewise.
20923 * tree-chkp-opt.c (chkp_print_addr): Likewise.
20924 (chkp_gather_checks_info): Likewise.
20925 (chkp_get_check_result): Likewise.
20926 (chkp_remove_check_if_pass): Likewise.
20927 (chkp_use_outer_bounds_if_possible): Likewise.
20928 (chkp_reduce_bounds_lifetime): Likewise.
20929 * tree-chkp.c (chkp_register_addr_bounds): Likewise.
20930 (chkp_mark_completed_bounds): Likewise.
20931 (chkp_register_incomplete_bounds): Likewise.
20932 (chkp_mark_invalid_bounds): Likewise.
20933 (chkp_maybe_copy_and_register_bounds): Likewise.
20934 (chkp_build_returned_bound): Likewise.
20935 (chkp_get_bound_for_parm): Likewise.
20936 (chkp_build_bndldx): Likewise.
20937 (chkp_get_bounds_by_definition): Likewise.
20938 (chkp_generate_extern_var_bounds): Likewise.
20939 (chkp_get_bounds_for_decl_addr): Likewise.
20940 * tree-chrec.c (chrec_apply): Likewise.
20941 * tree-data-ref.c (dump_data_reference): Likewise.
20942 (dump_subscript): Likewise.
20943 (dump_data_dependence_relation): Likewise.
20944 (analyze_overlapping_iterations): Likewise.
20945 * tree-inline.c (expand_call_inline): Likewise.
20946 (tree_function_versioning): Likewise.
20947 * tree-into-ssa.c (dump_defs_stack): Likewise.
20948 (dump_currdefs): Likewise.
20949 (dump_names_replaced_by): Likewise.
20950 (dump_update_ssa): Likewise.
20951 (update_ssa): Likewise.
20952 * tree-object-size.c (pass_object_sizes::execute): Likewise.
20953 * tree-parloops.c (build_new_reduction): Likewise.
20954 (try_create_reduction_list): Likewise.
20955 (ref_conflicts_with_region): Likewise.
20956 (oacc_entry_exit_ok_1): Likewise.
20957 (oacc_entry_exit_single_gang): Likewise.
20958 * tree-pretty-print.h: Likewise.
20959 * tree-scalar-evolution.c (set_scalar_evolution): Likewise.
20960 (get_scalar_evolution): Likewise.
20961 (add_to_evolution): Likewise.
20962 (get_loop_exit_condition): Likewise.
20963 (analyze_evolution_in_loop): Likewise.
20964 (analyze_initial_condition): Likewise.
20965 (analyze_scalar_evolution): Likewise.
20966 (instantiate_scev): Likewise.
20967 (number_of_latch_executions): Likewise.
20968 (gather_chrec_stats): Likewise.
20969 (final_value_replacement_loop): Likewise.
20970 (scev_const_prop): Likewise.
20971 * tree-sra.c (dump_access): Likewise.
20972 (disqualify_candidate): Likewise.
20973 (create_access): Likewise.
20974 (reject): Likewise.
20975 (maybe_add_sra_candidate): Likewise.
20976 (create_access_replacement): Likewise.
20977 (analyze_access_subtree): Likewise.
20978 (analyze_all_variable_accesses): Likewise.
20979 (sra_modify_assign): Likewise.
20980 (initialize_constant_pool_replacements): Likewise.
20981 (find_param_candidates): Likewise.
20982 (decide_one_param_reduction): Likewise.
20983 (replace_removed_params_ssa_names): Likewise.
20984 * tree-ssa-ccp.c (ccp_fold_stmt): Likewise.
20985 * tree-ssa-copy.c (dump_copy_of): Likewise.
20986 (copy_prop_visit_cond_stmt): Likewise.
20987 * tree-ssa-dce.c (mark_operand_necessary): Likewise.
20988 * tree-ssa-dom.c (pass_dominator::execute): Likewise.
20989 (record_equivalences_from_stmt): Likewise.
20990 * tree-ssa-dse.c (compute_trims): Likewise.
20991 (delete_dead_call): Likewise.
20992 (delete_dead_assignment): Likewise.
20993 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Likewise.
20994 (forward_propagate_into_cond): Likewise.
20995 (pass_forwprop::execute): Likewise.
20996 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
20997 * tree-ssa-loop-im.c (invariantness_dom_walker::before_dom_children):
20999 (move_computations_worker): Likewise.
21000 (execute_sm): Likewise.
21001 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise.
21002 (remove_exits_and_undefined_stmts): Likewise.
21003 (remove_redundant_iv_tests): Likewise.
21004 * tree-ssa-loop-ivopts.c (dump_use): Likewise.
21005 (adjust_iv_update_pos): Likewise.
21006 * tree-ssa-math-opts.c (bswap_replace): Likewise.
21007 * tree-ssa-phiopt.c (factor_out_conditional_conversion): Likewise.
21008 (value_replacement): Likewise.
21009 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
21010 * tree-ssa-pre.c (print_pre_expr): Likewise.
21011 (get_representative_for): Likewise.
21012 (create_expression_by_pieces): Likewise.
21013 (insert_into_preds_of_block): Likewise.
21014 (eliminate_insert): Likewise.
21015 (eliminate_dom_walker::before_dom_children): Likewise.
21016 (eliminate): Likewise.
21017 (remove_dead_inserted_code): Likewise.
21018 * tree-ssa-propagate.c (substitute_and_fold): Likewise.
21019 * tree-ssa-reassoc.c (get_rank): Likewise.
21020 (eliminate_duplicate_pair): Likewise.
21021 (eliminate_plus_minus_pair): Likewise.
21022 (eliminate_not_pairs): Likewise.
21023 (undistribute_ops_list): Likewise.
21024 (eliminate_redundant_comparison): Likewise.
21025 (update_range_test): Likewise.
21026 (optimize_range_tests_var_bound): Likewise.
21027 (optimize_vec_cond_expr): Likewise.
21028 (rewrite_expr_tree): Likewise.
21029 (rewrite_expr_tree_parallel): Likewise.
21030 (linearize_expr): Likewise.
21031 (break_up_subtract): Likewise.
21032 (linearize_expr_tree): Likewise.
21033 (attempt_builtin_powi): Likewise.
21034 (attempt_builtin_copysign): Likewise.
21035 (transform_stmt_to_copy): Likewise.
21036 (transform_stmt_to_multiply): Likewise.
21037 (dump_ops_vector): Likewise.
21038 * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Likewise.
21039 (print_scc): Likewise.
21040 (set_ssa_val_to): Likewise.
21041 (visit_reference_op_store): Likewise.
21042 (visit_use): Likewise.
21043 (sccvn_dom_walker::before_dom_children): Likewise.
21044 (run_scc_vn): Likewise.
21045 * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
21047 (expr_hash_elt::print): Likewise.
21048 (const_and_copies::pop_to_marker): Likewise.
21049 (const_and_copies::record_const_or_copy_raw): Likewise.
21050 * tree-ssa-structalias.c (compute_dependence_clique): Likewise.
21051 * tree-ssa-uninit.c (collect_phi_def_edges): Likewise.
21052 (dump_predicates): Likewise.
21053 (find_uninit_use): Likewise.
21054 (warn_uninitialized_phi): Likewise.
21055 (pass_late_warn_uninitialized::execute): Likewise.
21056 * tree-ssa.c (verify_vssa): Likewise.
21057 (verify_ssa): Likewise.
21058 (maybe_optimize_var): Likewise.
21059 * tree-vrp.c (dump_value_range): Likewise.
21060 (dump_all_value_ranges): Likewise.
21061 (dump_asserts_for): Likewise.
21062 (register_edge_assert_for_2): Likewise.
21063 (vrp_visit_cond_stmt): Likewise.
21064 (vrp_visit_switch_stmt): Likewise.
21065 (vrp_visit_stmt): Likewise.
21066 (vrp_visit_phi_node): Likewise.
21067 (simplify_cond_using_ranges_1): Likewise.
21068 (fold_predicate_in): Likewise.
21069 (evrp_dom_walker::before_dom_children): Likewise.
21070 (evrp_dom_walker::push_value_range): Likewise.
21071 (evrp_dom_walker::pop_value_range): Likewise.
21072 (execute_early_vrp): Likewise.
21074 2017-05-16 Richard Biener <rguenther@suse.de>
21076 * dwarf2out.c (loc_list_from_tree_1): Do not create
21077 DW_OP_GNU_variable_value for DECL_IGNORED_P decls.
21079 2017-05-16 Richard Biener <rguenther@suse.de>
21081 * dwarf2out.c (resolve_variable_value_in_expr): Lookup DIE
21083 (note_variable_value_in_expr): If we resolved the decl ref
21084 do not push to the stack.
21086 2017-05-16 Matthew Wahab <matthew.wahab@arm.com>
21088 * config/arm/arm_neon.h (vadd_f16): Use standard arithmetic
21089 operations in fast-math mode.
21090 (vaddq_f16): Likewise.
21091 (vmul_f16): Likewise.
21092 (vmulq_f16): Likewise.
21093 (vsub_f16): Likewise.
21094 (vsubq_f16): Likewise.
21095 * config/arm/neon.md (add<mode>3): New.
21097 (fma:<VH:mode>3): New. Also remove outdated comment.
21100 2017-05-16 Martin Liska <mliska@suse.cz>
21104 * ipa-devirt.c (warn_types_mismatch): Fix typo.
21105 (odr_types_equivalent_p): Likewise.
21107 2017-05-15 Sylvestre Ledru <sylvestre@debian.org>
21109 * plugin.c (try_init_one_plugin): Fix ressource leaks (CID 726637).
21111 2017-05-15 Uros Bizjak <ubizjak@gmail.com>
21114 * config/i386.i386.md (*zero_extendsidi2): Do not penalize
21115 non-interunit SSE move alternatives with '?'.
21116 (zero-extendsidi peephole2): New peephole to skip intermediate
21117 general register in SSE zero-extend sequence.
21119 2017-05-15 Jeff Law <law@redhat.com>
21121 * reorg.c (relax_delay_slots): Create a new variable to hold
21122 the temporary target rather than clobbering TARGET_LABEL.
21124 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Add
21125 missing argument to extract_bit_field call.
21126 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
21128 2017-05-15 Martin Liska <mliska@suse.cz>
21131 * gcc.c (process_command): Do not allow empty argument of -o option.
21133 2017-05-15 Renlin Li <renlin.li@arm.com>
21135 * config/aarch64/aarch64-protos.h (aarch64_expand_call): Declare.
21136 * config/aarch64/aarch64.c (aarch64_expand_call): Define.
21137 * config/aarch64/constraints.md (Usf): Add long call check.
21138 * config/aarch64/aarch64.md (call): Use aarch64_expand_call.
21139 (call_value): Likewise.
21140 (sibcall): Likewise.
21141 (sibcall_value): Likewise.
21143 (call_value_insn): New.
21144 (sibcall_insn): Update rtx pattern.
21145 (sibcall_value_insn): Likewise.
21146 (call_internal): Remove.
21147 (call_value_internal): Likewise.
21148 (sibcall_internal): Likewise.
21149 (sibcall_value_internal): Likewise.
21150 (call_reg): Likewise.
21151 (call_symbol): Likewise.
21152 (call_value_reg): Likewise.
21153 (call_value_symbol): Likewise.
21155 2017-05-14 Krister Walfridsson <krister.walfridsson@gmail.com>
21158 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc.
21160 2017-05-14 Uros Bizjak <ubizjak@gmail.com>
21162 * config/i386.i386.c (ix86_cc_modes_compatible): CCNOmode is
21163 compatible with CCGOCmode and with CCZmode.
21165 2017-05-14 Martin Sebor <msebor@redhat.com>
21167 PR middle-end/77671
21168 * gimple-fold.c (gimple_fold_builtin_sprintf): Make extern.
21169 (gimple_fold_builtin_snprintf): Same.
21170 * gimple-fold.h (gimple_fold_builtin_sprintf): Declare.
21171 (gimple_fold_builtin_snprintf): Same.
21172 * gimple-ssa-sprintf.c (get_format_string): Correct the detection
21173 of character types.
21174 (is_call_safe): New function.
21175 (try_substitute_return_value): Call it.
21176 (try_simplify_call): New function.
21177 (pass_sprintf_length::handle_gimple_call): Call it.
21179 2017-05-14 Martin Sebor <msebor@redhat.com>
21181 PR middle-end/80669
21182 * builtins.c (expand_builtin_stpncpy): Simplify.
21184 2017-05-14 Daniel Santos <daniel.santos@pobox.com>
21186 * config/i386/i386.opt: Add option -mcall-ms2sysv-xlogues.
21187 * config/i386/i386.h
21188 (x86_64_ms_sysv_extra_clobbered_registers): Change type to unsigned.
21189 (NUM_X86_64_MS_CLOBBERED_REGS): New macro.
21190 (struct machine_function): Add new members call_ms2sysv,
21191 call_ms2sysv_pad_in, call_ms2sysv_pad_out and call_ms2sysv_extra_regs.
21192 (struct machine_frame_state): New fields sp_realigned and
21193 sp_realigned_offset.
21194 * config/i386/i386.c
21195 (enum xlogue_stub): New enum.
21196 (enum xlogue_stub_sets): New enum.
21197 (class xlogue_layout): New class.
21198 (struct ix86_frame): New fields stack_realign_allocate_offset,
21199 stack_realign_offset and outlined_save_offset. Modify comments to
21200 detail stack layout when using out-of-line stubs.
21201 (ix86_target_string): Add -mcall-ms2sysv-xlogues option.
21202 (ix86_option_override_internal): Add sorry() for TARGET_SEH and
21203 -mcall-ms2sysv-xlogues.
21204 (stub_managed_regs): New static variable.
21205 (ix86_save_reg): Add new parameter ignore_outlined to optionally omit
21206 registers managed by out-of-line stub.
21207 (disable_call_ms2sysv_xlogues): New function.
21208 (ix86_compute_frame_layout): Modify re-alignment calculations, disable
21209 m->call_ms2sysv when appropriate and compute frame layout for
21211 (sp_valid_at, fp_valid_at): New inline functions.
21212 (choose_basereg): New function.
21213 (choose_baseaddr): Add align parameter, use choose_basereg and modify
21215 (ix86_emit_save_reg_using_mov, ix86_emit_restore_sse_regs_using_mov):
21216 Use align parameter of choose_baseaddr to generated aligned SSE movs
21218 (pro_epilogue_adjust_stack): Modify to track
21219 machine_frame_state::sp_realigned.
21220 (ix86_nsaved_regs): Modify to accommodate changes to ix86_save_reg.
21221 (ix86_nsaved_sseregs): Likewise.
21222 (ix86_emit_save_regs): Likewise.
21223 (ix86_emit_save_regs_using_mov): Likewise.
21224 (ix86_emit_save_sse_regs_using_mov): Likewise.
21225 (get_scratch_register_on_entry): Likewise.
21226 (gen_frame_set): New function.
21227 (gen_frame_load): Likewise.
21228 (gen_frame_store): Likewise.
21229 (emit_outlined_ms2sysv_save): Likewise.
21230 (emit_outlined_ms2sysv_restore): Likewise.
21231 (ix86_expand_prologue): Modify stack re-alignment code and call
21232 emit_outlined_ms2sysv_save when appropriate.
21233 (ix86_emit_leave): Clear machine_frame_state::sp_realigned. Add
21234 parameter rtx_insn *insn, which allows the function to be used to only
21235 generate the notes.
21236 (ix86_expand_epilogue): Modify validity checks of frame and stack
21237 pointers, and call emit_outlined_ms2sysv_restore when appropriate.
21238 (ix86_expand_call): Modify to enable m->call_ms2sysv when appropriate.
21239 * config/i386/predicates.md
21240 (save_multiple): New predicate.
21241 (restore_multiple): Likewise.
21242 * config/i386/sse.md
21243 (save_multiple<mode>): New pattern.
21244 (save_multiple_realign<mode>): Likewise.
21245 (restore_multiple<mode>): Likewise.
21246 (restore_multiple_and_return<mode>): Likewise.
21247 (restore_multiple_leave_return<mode>): Likewise.
21248 * Makefile.in: Export HOSTCXX and HOSTCXXFLAGS to site.exp
21250 2017-05-14 Julia Koval <julia.koval@intel.com>
21252 * config/i386/i386-builtin-types.def (VOID_FTYPE_INT_INT64): New type.
21253 * config/i386/i386-builtin.def (__builtin_ia32_xgetbv)
21254 (__builtin_ia32_xsetbv): New builtins.
21255 * config/i386/i386.c (ix86_expand_special_args_builtin):
21257 (ix86_expand_builtin): Special expand for new intrinsics.
21258 * config/i386/i386.md (UNSPECV_XGETBV, UNSPECV_XSETBV): New.
21259 (xsetbv, xsetbv_rex64, xgetbv, xgetbv_rex64): New insn patterns.
21260 * config/i386/xsaveintrin.h (_xsetbv, _getbv): New intrinsics.
21262 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21264 * cfganal.c (inverted_post_order_compute): Change argument type
21266 * cfganal.h (inverted_post_order_compute): Adjust prototype.
21267 * df-core.c (rest_of_handle_df_initialize): Adjust.
21268 (rest_of_handle_df_finish): Likewise.
21269 (df_analyze_1): Likewise.
21270 (df_analyze): Likewise.
21271 (loop_inverted_post_order_compute): Change argument to be a vec *.
21272 (df_analyze_loop): Adjust.
21273 (df_get_n_blocks): Likewise.
21274 (df_get_postorder): Likewise.
21275 * df.h (struct df_d): Change field to be a vec.
21276 * lcm.c (compute_laterin): Adjust.
21277 (compute_available): Likewise.
21278 * lra-lives.c (lra_create_live_ranges_1): Likewise.
21279 * tree-ssa-dce.c (remove_dead_stmt): Likewise.
21280 * tree-ssa-pre.c (compute_antic): Likewise.
21282 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21284 * cfganal.c (connect_infinite_loops_to_exit): Adjust.
21285 (depth_first_search::depth_first_search): Change structure init
21286 function to this constructor.
21287 (depth_first_search::add_bb): Rename function to this member.
21288 (depth_first_search::execute): Likewise.
21289 (flow_dfs_compute_reverse_finish): Adjust.
21291 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21293 * ddg.c (find_nodes_on_paths): Use auto_sbitmap.
21294 (longest_simple_path): Likewise.
21295 * shrink-wrap.c (spread_components): Likewise.
21296 (disqualify_problematic_components): Likewise.
21297 (emit_common_heads_for_components): Likewise.
21298 (emit_common_tails_for_components): Likewise.
21299 (insert_prologue_epilogue_for_components): Likewise.
21301 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21303 * tree-ssa-dse.c (dse_dom_walker): Make m_live_byes a
21306 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21308 * df-core.c (df_set_blocks): Start using auto_bitmap.
21309 (df_compact_blocks): Likewise.
21310 * df-problems.c (df_rd_confluence_n): Likewise.
21311 * df-scan.c (df_insn_rescan_all): Likewise.
21312 (df_process_deferred_rescans): Likewise.
21313 (df_update_entry_block_defs): Likewise.
21314 (df_update_exit_block_uses): Likewise.
21315 (df_entry_block_bitmap_verify): Likewise.
21316 (df_exit_block_bitmap_verify): Likewise.
21317 (df_scan_verify): Likewise.
21318 * lra-constraints.c (lra_constraints): Likewise.
21319 (undo_optional_reloads): Likewise.
21320 (lra_undo_inheritance): Likewise.
21321 * lra-remat.c (calculate_gen_cands): Likewise.
21322 (do_remat): Likewise.
21323 * lra-spills.c (assign_spill_hard_regs): Likewise.
21324 (spill_pseudos): Likewise.
21325 * tree-ssa-pre.c (bitmap_set_and): Likewise.
21326 (bitmap_set_subtract_values): Likewise.
21328 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21330 * haifa-sched.c (estimate_shadow_tick): Replace manual bitmap
21331 management with auto_bitmap.
21332 (fix_inter_tick): Likewise.
21333 (fix_recovery_deps): Likewise.
21334 * ira.c (add_store_equivs): Likewise.
21335 (find_moveable_pseudos): Likewise.
21336 (split_live_ranges_for_shrink_wrap): Likewise.
21337 * print-rtl.c (rtx_reuse_manager::rtx_reuse_manager): Likewise.
21338 (rtx_reuse_manager::seen_def_p): Likewise.
21339 (rtx_reuse_manager::set_seen_def): Likewise.
21340 * print-rtl.h (class rtx_reuse_manager): Likewise.
21342 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21344 * bt-load.c (combine_btr_defs): Use auto_bitmap to manage bitmap
21346 (migrate_btr_def): Likewise.
21347 * cfgloop.c (get_loop_body_in_bfs_order): Likewise.
21348 * df-core.c (loop_post_order_compute): Likewise.
21349 (loop_inverted_post_order_compute): Likewise.
21350 * hsa-common.h: Likewise.
21351 * hsa-gen.c (hsa_bb::~hsa_bb): Likewise.
21352 * init-regs.c (initialize_uninitialized_regs): Likewise.
21353 * ipa-inline.c (resolve_noninline_speculation): Likewise.
21354 (inline_small_functions): Likewise.
21355 * ipa-reference.c (ipa_reference_write_optimization_summary): Likewise.
21356 * ira.c (combine_and_move_insns): Likewise.
21357 (build_insn_chain): Likewise.
21358 * loop-invariant.c (find_invariants): Likewise.
21359 * lower-subreg.c (propagate_pseudo_copies): Likewise.
21360 * predict.c (tree_predict_by_opcode): Likewise.
21361 (predict_paths_leading_to): Likewise.
21362 (predict_paths_leading_to_edge): Likewise.
21363 (estimate_loops_at_level): Likewise.
21364 (estimate_loops): Likewise.
21365 * shrink-wrap.c (try_shrink_wrapping): Likewise.
21366 (spread_components): Likewise.
21367 * tree-cfg.c (remove_edge_and_dominated_blocks): Likewise.
21368 * tree-loop-distribution.c (rdg_build_partitions): Likewise.
21369 * tree-predcom.c (tree_predictive_commoning_loop): Likewise.
21370 * tree-ssa-coalesce.c (coalesce_ssa_name): Likewise.
21371 * tree-ssa-phionlycprop.c (pass_phi_only_cprop::execute): Likewise.
21372 * tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
21373 * tree-ssa-sink.c (nearest_common_dominator_of_uses): Likewise.
21374 * tree-ssa-threadupdate.c (compute_path_counts): Likewise.
21375 (mark_threaded_blocks): Likewise.
21376 (thread_through_all_blocks): Likewise.
21377 * tree-ssa.c (verify_ssa): Likewise.
21378 (execute_update_addresses_taken): Likewise.
21379 * tree-ssanames.c (verify_ssaname_freelists): Likewise.
21381 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21383 * cfganal.c (mark_dfs_back_edges): Replace manual stack with
21385 (post_order_compute): Likewise.
21386 (inverted_post_order_compute): Likewise.
21387 (pre_and_rev_post_order_compute_fn): Likewise.
21389 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21391 * genrecog.c (int_set::int_set): Explicitly construct our
21392 auto_vec base class.
21393 * vec.h (auto_vec::auto_vec): New constructor.
21395 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21397 * bitmap.h (class auto_bitmap): New constructor taking
21398 bitmap_obstack * argument.
21400 2017-05-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21402 * bitmap.h (class auto_bitmap): Change type of m_bits to
21403 bitmap_head, and adjust ctor / dtor and member operators.
21405 2017-05-13 Uros Bizjak <ubizjak@gmail.com>
21407 * compare-elim.c (equivalent_reg_at_start): Return NULL_RTX
21408 when returned register mode doesn't match original mode.
21410 2017-05-12 Jeff Law <law@redhat.com>
21411 Jakub Jelinek <jakub@redhat.com>
21413 * config/mn10300/mn10300.c (mn10300_match_ccmode): Fix where
21414 we look for cc setter after the compare-elim changes.
21415 * config/mn10300/mn10300.md (addsi3_flags): Fix order of patterns
21416 within the vector to match what compare-elim now expects.
21417 (subsi3_flags, andsi3_flags, iorsi3_flags): Likewise.
21418 (xorsi3_flags, one_cmplsi2_flags): Likewise.
21420 * config/rx/rx.c (rx_match_ccmode): Fix where we look cc setter
21421 after the compare-elim changes.
21422 * config/rx/rx.md (abssi2_flags): Fix order of patterns within
21423 the vector to match what compare-elim now expects.
21424 (addsi3_flags, adc_flags, addsi3_flags peepholes): Likewise.
21425 (andsi3_flags, negsi2_flags, one_cmplsi2_flags): Likewise.
21426 (iorsi3_flags, rotlsi3_flags, rotrsi3_flags): Likewise.
21427 (ashrsi3_flags, lshrsi3_flags, ashlsi3_flags): Likewise.
21428 (ssaddsi3, subsi3_flags, sbb_flags, xorsi3_flags): Likewise.
21430 * config/visium/visium.c (single_set_and_flags): Fix where
21431 we look for cc setter after the compare-elim changes.
21432 * config/visium/visium.md (flags_subst_logic): Fix order of patterns
21433 with the vector to match what compare-elim now expects.
21434 (flags_subst_arith, add<mode>3_insn_set_carry): Likewise.
21435 (add<mode>3_insn_set_overflow, addsi3_insn_set_carry): Likewise.
21436 (addsi3_insn_set_overflow, sub<mode>3_insn_set_carry): Likewise.
21437 (sub<mode>3_insn_set_overflow, subsi3_insn_set_carry): Likewise.
21438 (subsi3_insn_set_overflow, negsi2_insn_set_carry): Likewise.
21439 (neg<mode>2_insn_set_overflow): Likewise.
21441 2017-05-12 Jim Wilson <jim.wilson@linaro.org>
21443 PR middle-end/79794
21444 * expmed.c (extract_bit_field_1): Add alt_rtl argument. Before
21445 maybe_expand_insn call, set ops[0].target. If still set after call,
21446 set alt_rtl. Add extra arg to recursive calls.
21447 (extract_bit_field): Add alt_rtl argument. Pass to
21449 * expmed.h (extract_bit_field): Fix prototype.
21450 * expr.c (emit_group_load_1, copy_blkmode_from_reg)
21451 (copy_blkmode_to_reg, read_complex_part, store_field): Pass extra NULL
21452 to extract_bit_field_calls.
21453 (expand_expr_real_1): Pass alt_rtl to expand_expr_real instead of 0.
21454 Pass alt_rtl to extract_bit_field calls.
21455 * calls.c (store_unaligned_arguments_into_psuedos)
21456 load_register_parameters): Pass extra NULL to extract_bit_field calls.
21457 * optabs.c (maybe_legitimize_operand): Clear op->target when call
21459 * optabs.h (struct expand_operand): Add target bitfield.
21461 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
21463 * compare-elim.c (try_eliminate_compare): Canonicalize
21464 operation with embedded compare to
21465 [(set (reg:CCM) (compare:CCM (operation) (immediate)))
21466 (set (reg) (operation)].
21468 * config/i386/i386.c (TARGET_FLAGS_REGNUM): New define.
21470 2017-05-12 Uros Bizjak <ubizjak@gmail.com>
21473 * config/i386/i386.c (ix86_rtx_cost) [case PLUS]: Ignore the
21474 cost of adding a carry flag for ADC instruction.
21475 [case MINUS]: Ignore the cost of subtracting a carry flag
21476 for SBB instruction.
21478 2017-05-12 Steven Munroe <munroesj@gcc.gnu.org>
21480 * config.gcc (powerpc*-*-*): Add bmi2intrin.h, bmiintrin.h,
21482 * config/rs6000/bmiintrin.h: New file.
21483 * config/rs6000/bmi2intrin.h: New file.
21484 * config/rs6000/x86intrin.h: New file.
21486 2017-05-12 Jeff Law <law@redhat.com>
21488 * tree-vrp.c (vrp_dom_walker::before_dom_children): Push unwinding
21491 2017-05-12 Peter Bergner <bergner@vnet.ibm.com>
21493 PR middle-end/80707
21494 * tree-cfg.c: Remove cfg edges of unreachable case statements.
21496 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
21498 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
21499 early expansion of vector divide builtins.
21500 (builtin_function_type): Add VSX_BUILTIN_UDIV_V2DI to the list of
21501 builtins identified as having unsigned arguments.
21503 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
21505 * config/rs6000/rs6000.c (gimple-fold.h): New #include.
21506 (rs6000_gimple_fold_builtin): Add handling for early GIMPLE
21507 expansion of vector logical operations (and, andc, or, xor,
21510 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
21512 * gimple-fold.c (create_tmp_reg_or_ssa_name): Remove static declaration.
21513 * gimple-fold.h (create_tmp_reg_or_ssa_name): New prototype.
21515 2017-05-12 Will Schmidt <will_schmidt@vnet.ibm.com>
21517 * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Add handling for
21518 early GIMPLE expansion of vector multiplies.
21520 2017-05-12 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
21522 * config/arm/arm.md (movsi): Add TARGET_32BIT in addition to the
21523 TARGET_HAVE_MOVT conditional.
21524 (movt splitter): Likewise.
21526 2017-05-12 Richard Biener <rguenther@suse.de>
21528 * tree-ssa-sccvn.h (has_VN_INFO): Declare.
21529 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21530 Fold all stmts not inplace.
21532 2017-05-12 Richard Biener <rguenther@suse.de>
21534 PR tree-optimization/80713
21535 * tree-ssa-pre.c (remove_dead_inserted_code): Clear
21536 inserted_exprs bit for not removed stmts.
21538 2017-05-12 Thomas Schwinge <thomas@codesourcery.com>
21540 PR middle-end/69921
21541 * tree-parloops.c (create_parallel_loop): Set "oacc kernels
21542 parallelized" attribute for parallelized OpenACC kernels.
21543 * omp-offload.c (execute_oacc_device_lower): Use it.
21545 * omp-expand.c (expand_omp_target) <GF_OMP_TARGET_KIND_OACC_KERNELS>:
21546 Set "oacc kernels" attribute.
21547 * omp-general.c (oacc_set_fn_attrib): Remove is_kernel formal
21548 parameter. Adjust all users.
21549 (oacc_fn_attrib_kernels_p): Remove function.
21550 * omp-offload.c (execute_oacc_device_lower): Look for "oacc
21551 kernels" attribute instead of calling oacc_fn_attrib_kernels_p.
21552 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21553 * tree-parloops.c (create_parallel_loop): If oacc_kernels_p,
21554 assert "oacc kernels" attribute is set.
21556 2017-05-11 Carl Love <cel@us.ibm.com>
21558 * config/rs6000/rs6000-c: Add support for built-in functions
21559 vector unsigned char vec_popcnt (vector signed char)
21560 vector unsigned char vec_popcnt (vector unsigned char)
21561 vector unsigned short vec_popcnt (vector signed short)
21562 vector unsigned short vec_popcnt (vector unsigned short)
21563 vector unsigned int vec_popcnt (vector signed int)
21564 vector unsigned int vec_popcnt (vector unsigned int)
21565 vector unsigned long long vec_popcnt (vector signed long long)
21566 vector unsigned long long vec_popcnt (vector unsigned long long)
21567 vector signed long long vec_slo (vector signed long long,
21568 vector signed char)
21569 vector signed long long vec_slo (vector signed long long,
21570 vector unsigned char)
21571 vector unsigned long long vec_slo (vector unsigned long long,
21572 vector signed char)
21573 vector unsigned long long vec_slo (vector unsigned long long,
21574 vector unsigned char)
21575 * config/rs6000/rs6000-builtin.def: Add definitions for VPOPCNTUB,
21576 VPOPCNTUH, VPOPCNTUW, and VPOPCNTUD overloads.
21577 * config/rs6000/altivec.h: Add define for vec_popcnt, vec_popcntb,
21578 vec_popcnth, vec_popcntw and vec_popcntd built-in functions.
21579 * doc/extend.texi: Update the built-in documentation file for the
21580 new built-in functions.
21582 2017-05-11 Michael Meissner <meissner@linux.vnet.ibm.com>
21584 * attribs.h (sorted_attr_string): Move machine independent
21585 functions for target clone support from the i386 port to common
21586 code. Rename ix86_function_versions to common_function_versions.
21587 Rename make_name to make_unique_name.
21588 (common_function_versions): Likewise.
21589 (make_unique_name): Likewise.
21590 (make_dispatcher_decl): Likewise.
21591 (is_function_default_version): Likewise.
21592 * attribs.c (attr_strcmp): Likewise.
21593 (sorted_attr_string): Likewise.
21594 (common_function_versions): Likewise.
21595 (make_unique_name): Likewise.
21596 (make_dispatcher_decl): Likewise.
21597 (is_function_default_version): Likewise.
21598 * config/i386/i386.c (attr_strcmp): Likewise.
21599 (sorted_attr_string): Likewise.
21600 (ix86_function_versions): Likewise.
21601 (make_name): Likewise.
21602 (make_dispatcher_decl): Likewise.
21603 (is_function_default_version): Likewise.
21604 (TARGET_OPTION_FUNCTION_VERSIONS): Update target function hook.
21606 2017-05-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21609 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
21610 Account for direct move costs for vec_construct of integer
21613 2017-05-11 Uros Bizjak <ubizjak@gmail.com>
21616 * config/i386/sync.md (UNSPEC_LDX_ATOMIC): New unspec.
21617 (UNSPEC_STX_ATOMIC): Ditto.
21618 (loaddi_via_sse): New insn.
21619 (storedi_via_sse): Ditto.
21620 (atomic_loaddi_fpu): Emit loaddi_via_sse and storedi_via_sse.
21621 Update corresponding peephole2 patterns.
21622 (atomic_storedi_fpu): Ditto.
21624 2017-05-11 Julia Koval <julia.koval@intel.com>
21626 * config/i386/avx512fintrin.h (_mm_mask_rsqrt14_sd)
21627 (_mm_maskz_rsqrt14_sd, _mm_mask_rsqrt14_ss, _mm_maskz_rsqrt14_ss):
21629 * config/i386/i386-builtin.def (__builtin_ia32_rsqrt14sd_mask)
21630 (__builtin_ia32_rsqrt14ss_mask): New builtins.
21631 * config/i386/sse.md (rsqrt14_<mode>_mask): New pattern.
21633 2017-05-11 Nathan Sidwell <nathan@acm.org>
21635 * graphite-poly.c: Include dumpfile.h.
21637 * dumpfle.h (dump_function): Declare here ...
21638 * tree-dump.h (dump_function): ... not here.
21639 * dumpfile.c: #include tree-cfg.h.
21640 (dump_function): Move here from ...
21641 * tree-dump.c (dump_function): ... here.
21642 * gimplify.c: #include splay-tree.h, not tree-dump.h.
21643 * graphite-poly.c: Don't include tree-dump.h.
21644 * cgraphclones.c: Include dumpfile.h not tree-dump.h.
21645 * print-tree.c: Likewise.
21646 * stor-layout.c: Likewise.
21647 * tree-nested.c: Likewise.
21649 * dumpfile.c (dump_start): Use TDF_FLAGS.
21650 (dump_enable_all): Fix TDF_KIND check thinko.
21652 2017-05-11 Kelvin Nilsen <kelvin@gcc.gnu.org>
21654 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
21655 array entries to represent two legal parameterizations of the
21656 overloaded __builtin_cmpb function, as represented by the
21657 P6_OV_BUILTIN_CMPB constant.
21658 (altivec_resolve_overloaded_builtin): Add special case handling
21659 for the __builtin_cmpb function, as represented by the
21660 P6_OV_BUILTIN_CMPB constant.
21661 * config/rs6000/rs6000-builtin.def (BU_P6_2): New macro.
21662 (BU_P6_64BIT_2): New macro.
21663 (BU_P6_OVERLOAD_2): New macro
21664 (CMPB_32): Add 32-bit compare-bytes support for 32-bit only targets.
21665 (CMPB): Add 64-bit compare-bytes support for 32-bit and 64-bit targets.
21666 (CMPB): Add overload support to represent both 32-bit and 64-bit
21667 compare-bytes function.
21668 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
21669 support for TARGET_CMPB.
21670 * config/rs6000/rs6000.h: Add support for RS6000_BTM_CMPB.
21671 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
21672 documentation of the __builtin_cmpb overloaded built-in function.
21674 2017-05-11 Richard Biener <rguenther@suse.de>
21676 PR tree-optimization/80705
21677 * tree-vect-data-refs.c (vect_analyze_data_refs): DECL_NONALIASED
21678 bases are not vectorizable.
21680 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21682 * tree-ssa-loop-ivopts.c (determine_set_costs): Skip non-interger
21683 when counting register pressure.
21685 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21687 * tree-ssa-loop-ivopts.c (compare_cost_pair): New.
21688 (iv_ca_more_deps): Renamed to ...
21689 (iv_ca_compare_deps): ... this.
21690 (iv_ca_extend): Extend iv_ca if NEW_CP is cheaper than OLD_CP.
21692 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21694 * tree-ssa-loop-ivopts.c (find_interesting_uses): Move inv vars dump
21696 (determine_group_iv_costs): ... here.
21697 (find_inv_vars_cb): Record inv var if it's not recorded before.
21699 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21701 * tree-ssa-loop-ivopts.c (allow_ip_end_pos_p): Refine comments.
21702 (get_shiftadd_cost): Ditto.
21704 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21706 * tree-ssa-address.c: Include header file.
21707 (move_hint_to_base): Return TRUE if BASE_HINT is moved to memory
21709 (add_to_parts): Refactor.
21710 (addr_to_parts): New parameter. Update use of move_hint_to_base.
21711 (create_mem_ref): Update use of addr_to_parts. Re-associate addr
21714 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21716 PR tree-optimization/53090
21717 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New enum value
21719 (extract_cond_operands): Detect condition with IV on both sides
21720 and return COMP_IV_EXPR_2.
21721 (find_interesting_uses_cond): Add iv_use for both IVs in condition.
21722 (rewrite_use_compare): Simplify by removing call to function
21723 extract_cond_operands.
21725 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21727 * tree-ssa-loop-ivopts.c (enum comp_iv_rewrite): New.
21728 (extract_cond_operands): Detect condition comparing against non-
21729 invariant bound and return appropriate enum value.
21730 (find_interesting_uses_cond): Update use of extract_cond_operands.
21731 Handle its return value accordingly.
21732 (determine_group_iv_cost_cond, rewrite_use_compare): Ditto.
21734 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21736 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Re-associate
21737 nonlinear iv_use computation in loop invariant sensitive way.
21739 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21741 * tree-ssa-loop-ivopts.c (relate_compare_use_with_all_cands): New.
21742 (find_iv_candidates): Call relate_compare_use_with_all_cands.
21744 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21746 * tree-ssa-loop-ivopts.c (struct iv_cand): New field inv_exprs.
21747 (dump_cand): Support iv_cand.inv_exprs.
21748 (add_candidate_1): Record invariant exprs in iv_cand.inv_exprs
21750 (iv_ca_set_no_cp, iv_ca_set_cp, free_loop_data): Support
21753 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21755 * tree-ssa-loop-ivopts.c (multiplier_allowed_in_address_p): Move
21757 * tree-ssa-address.c (multiplier_allowed_in_address_p): ... to here
21758 as local function. Include necessary header files.
21759 * tree-ssa-loop-ivopts.h (multiplier_allowed_in_address_p): Delete.
21761 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21763 * tree-ssa-loop-ivopts.c (autoinc_possible_for_pair): Simplify.
21765 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21767 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Handle more
21768 operators: TRUNC_DIV_EXPR, BIT_AND_EXPR, BIT_IOR_EXPR, LSHIFT_EXPR,
21769 RSHIFT_EXPR and BIT_NOT_EXPR.
21771 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21773 * tree-ssa-loop-ivopts.c (get_loop_invariant_expr): Simplify.
21774 (adjust_setup_cost): New parameter supporting round up adjustment.
21775 (struct address_cost_data): Delete.
21776 (force_expr_to_var_cost): Don't bound cost with spill_cost.
21777 (split_address_cost, ptr_difference_cost): Delete.
21778 (difference_cost, compare_aff_trees, record_inv_expr): Delete.
21779 (struct ainc_cost_data): New struct.
21780 (get_address_cost_ainc): New function.
21781 (get_address_cost, get_computation_cost): Reimplement.
21782 (determine_group_iv_cost_address): Record inv_expr for all uses of
21784 (determine_group_iv_cost_cond): Call get_loop_invariant_expr.
21785 (iv_ca_has_deps): Reimplemented to ...
21786 (iv_ca_more_deps): ... this. Check if NEW_CP introduces more deps
21788 (iv_ca_extend): Call iv_ca_more_deps.
21790 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21792 * tree-ssa-address.c (struct mem_address): Move to header file.
21793 (valid_mem_ref_p, move_fixed_address_to_symbol): Make it global.
21794 * tree-ssa-address.h (struct mem_address): Move from C file.
21795 (valid_mem_ref_p, move_fixed_address_to_symbol): Declare.
21797 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21799 * tree-affine.h (aff_combination_type): New interface.
21800 (aff_combination_zero_p): Remove static.
21801 (aff_combination_const_p): New interface.
21802 (aff_combination_singleton_var_p): New interfaces.
21804 2017-05-11 Richard Biener <rguenther@suse.de>
21806 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
21807 Skip unreachable blocks and destinations.
21808 (eliminate): Move stmt removal and fixup ...
21809 (fini_eliminate): ... here. Skip inserted exprs.
21810 (pass_pre::execute): Move fini_pre after fini_eliminate.
21811 * tree-ssa-tailmerge.c: Include tree-cfgcleanup.h.
21812 (tail_merge_optimize): Run cleanup_tree_cfg if requested by
21813 PRE to get rid of dead code that has invalid SSA form and
21814 split critical edges again.
21816 2017-05-11 Bin Cheng <bin.cheng@arm.com>
21818 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
21820 2017-05-11 Richard Biener <rguenther@suse.de>
21822 * passes.c (execute_function_todo): Verify loops if they are
21823 said to be up-to-date.
21824 * cfgexpand.c (pass_expand::execute): Discard loops for -dx.
21825 * trans-mem.c (pass_tm_edges::execute): Mark loops for fixup.
21827 2017-05-10 John David Anglin <danglin@gcc.gnu.org>
21830 * config/pa/pa.c (pa_assemble_integer): When outputting a SYMBOL_REF,
21831 handle calling assemble_external ourself.
21834 * config/pa/pa.c (pa_cannot_change_mode_class): Reject changes to/from
21835 modes with zero size. Enhance comment.
21837 2017-05-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21839 * config/rs6000/rs6000.c (altivec_init_builtins): Define POWER8
21840 built-ins for vec_xl and vec_xst with short and char pointer
21843 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
21845 * config/i386/avx512fintrin.h (_mm_mask_max_round_sd)
21846 (_mm_maskz_max_round_sd, _mm_mask_max_round_ss)
21847 (_mm_maskz_max_round_ss, _mm_mask_min_round_sd)
21848 (_mm_maskz_min_round_sd, _mm_mask_min_round_ss)
21849 (_mm_maskz_min_round_ss): New intrinsics.
21850 * config/i386/i386-builtin-types.def (V2DF, V2DF, V2DF, V2DF, UQI, INT)
21851 (V4SF, V4SF, V4SF, V4SF, UQI, INT): New function type aliases.
21852 * config/i386/i386-builtin.def (__builtin_ia32_maxsd_mask_round)
21853 (__builtin_ia32_maxss_mask_round, __builtin_ia32_minsd_mask_round)
21854 (__builtin_ia32_minss_mask_round): New builtins.
21855 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
21856 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
21857 * config/i386/sse.md (<sse>_vm<code><mode>3<round_saeonly_name>):
21859 (<sse>_vm<code><mode>3<mask_name><round_saeonly_name>): ... this.
21860 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_op3>%2, %1, %0|%0, %1, %<iptr>2<round_saeonly_op3>}):
21862 (v<maxmin_float><ssescalarmodesuffix>\t{<round_saeonly_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_saeonly_mask_op3>}):
21865 2017-05-10 Sebastian Peryt <sebastian.peryt@intel.com>
21867 * config/i386/avx512fintrin.h (_mm_mask_mul_round_sd)
21868 (_mm_maskz_mul_round_sd, _mm_mask_mul_round_ss)
21869 (_mm_maskz_mul_round_ss, _mm_mask_div_round_sd)
21870 (_mm_maskz_div_round_sd, _mm_mask_div_round_ss)
21871 (_mm_maskz_div_round_ss, _mm_mask_mul_sd, _mm_maskz_mul_sd)
21872 (_mm_mask_mul_ss, _mm_maskz_mul_ss, _mm_mask_div_sd)
21873 (_mm_maskz_div_sd, _mm_mask_div_ss, _mm_maskz_div_ss): New intrinsics.
21874 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
21875 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
21876 * config/i386/i386-builtin.def (__builtin_ia32_divsd_mask_round)
21877 (__builtin_ia32_divss_mask_round, __builtin_ia32_mulsd_mask_round)
21878 (__builtin_ia32_mulss_mask_round): New builtins.
21879 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
21880 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
21881 * config/i386/sse.md (<sse>_vm<multdiv_mnemonic><mode>3<round_name>):
21883 (<sse>_vm<multdiv_mnemonic><mode>3<mask_name><round_name>): ... this.
21884 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
21886 (v<multdiv_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
21889 2017-05-10 Julia Koval <julia.koval@intel.com>
21891 * config/i386/avxintrin.h (_mm256_set_m128, _mm256_set_m128d)
21892 (_mm256_set_m128i, _mm256_setr_m128, _mm256_setr_m128d)
21893 (_mm256_setr_m128i): New intrinsics.
21895 2017-05-10 Julia Koval <julia.koval@intel.com>
21897 * config/i386/avx512fintrin.h (_mm_mask_rcp14_sd)
21898 (_mm_maskz_rcp14_sd, _mm_mask_rcp14_ss)
21899 (_mm_maskz_rcp14_ss): New intrinsics.
21900 * config/i386/i386-builtin.def (__builtin_ia32_rcp14sd_mask)
21901 (__builtin_ia32_rcp14ss_mask): New builtins.
21902 * config/i386/sse.md (srcp14<mode>_mask): New pattern.
21904 2017-05-10 Peter Bergner <bergner@vnet.ibm.com>
21906 PR tree-optimization/51513
21907 * tree-cfg.c (gimple_seq_unreachable_p): New function.
21908 (assert_unreachable_fallthru_edge_p): Use it.
21909 (group_case_labels_stmt): Likewise.
21910 * tree-cfg.h: Prototype it.
21911 * stmt.c: Include cfghooks.h and tree-cfg.h.
21912 (emit_case_dispatch_table) <gap_label>: New local variable.
21913 Use it to fill dispatch table gaps.
21914 Test for default_label before updating probabilities.
21915 (expand_case) <default_label>: Remove unneeded initialization.
21916 Test for unreachable default case statement and remove its edge.
21917 Set default_label accordingly.
21918 * tree-ssa-ccp.c (optimize_unreachable): Update comment.
21920 2017-05-10 Carl Love <cel@us.ibm.com>
21922 * config/rs6000/rs6000-c: Add support for built-in functions
21923 vector signed char vec_neg (vector signed char)
21924 vector signed short int vec_neg (vector short int)
21925 vector signed int vec_neg (vector signed int)
21926 vector signed long long vec_neg (vector signed long long)
21927 vector float vec_neg (vector float)
21928 vector double vec_neg (vector double)
21929 * config/rs6000/rs6000-builtin.def: Add definitions for NEG function
21931 * config/rs6000/altivec.h: Add define for vec_neg
21932 * doc/extend.texi: Update the built-in documentation for the
21933 new built-in functions.
21935 2017-05-10 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
21937 PR tree-optimization/77644
21938 * match.pd (sqrt(x) cmp sqrt(y) -> x cmp y): New pattern.
21940 2017-05-10 Nathan Sidwell <nathan@acm.org>
21942 * dumpfile.h (TDI_lang_all): New.
21943 (TDF_KIND): New. Renumber others
21944 (TDF_LANG, TDF_TREE, TDF_RTL, TDF_IPA): Enumerate value, rather
21946 * dumpfile.c (dump_files): Mark language dumps as TDF_LANG. add
21948 (get_dump_file_name): Adjust suffix generation.
21949 (dump_enable_all): Use TDF_KIND.
21950 * doc/invoke.texi (-fdump-lang-all): Document.
21952 * dumpfile.h: Tabify.
21954 2017-05-10 Wilco Dijkstra <wdijkstr@arm.com>
21957 * config/aarch64/cortex-a57-fma-steering.c (merge_forest):
21958 Move member access before delete.
21960 2017-05-10 Alexandre Oliva <aoliva@redhat.com>
21962 * tree-inline.c (expand_call_inline): Split block at stmt
21965 2017-05-09 Michael Meissner <meissner@linux.vnet.ibm.com>
21968 * config/rs6000/rs6000.md (f32_lr): Delete mode attributes that
21969 are now unused after splitting mov{sf,sd}_hardfloat.
21970 (f32_lr2): Likewise.
21971 (f32_lm): Likewise.
21972 (f32_lm2): Likewise.
21973 (f32_li): Likewise.
21974 (f32_li2): Likewise.
21975 (f32_lv): Likewise.
21976 (f32_sr): Likewise.
21977 (f32_sr2): Likewise.
21978 (f32_sm): Likewise.
21979 (f32_sm2): Likewise.
21980 (f32_si): Likewise.
21981 (f32_si2): Likewise.
21982 (f32_sv): Likewise.
21983 (f32_dm): Likewise.
21984 (f32_vsx): Likewise.
21985 (f32_av): Likewise.
21986 (mov<mode>_hardfloat): Split into separate movsf and movsd pieces.
21987 For movsf, order stores so the VSX stores occur before the GPR
21988 store which encourages the register allocator to use a traditional
21989 FPR instead of a GPR. For movsd, order the stores so that the GPR
21990 store comes before the VSX stores to allow the power6 to work.
21991 This is due to the power6 not having a 32-bit integer store
21992 instruction from a FPR.
21993 (movsf_hardfloat): Likewise.
21994 (movsd_hardfloat): Likewise.
21996 2017-05-09 Martin Sebor <msebor@redhat.com>
21998 PR translation/80280
21999 * config/sol2-c.c (cmn_err_flag_specs): Initialize new data member
22002 PR translation/80280
22003 * config/i386/msformat-c.c (ms_printf_flag_specs): Initialize new
22004 data member added in r247778.
22005 (ms_scanf_flag_specs, ms_strftime_flag_specs): Same.
22007 2017-05-09 Nathan Sidwell <nathan@acm.org>
22009 * tree.h (tree_fits_shwi_p, tree_fits_uhwi_p): Unconditionally pure.
22011 * ipa-devirt.c (default_hash_traits<type_pair>): Skip struct-scope
22014 2017-05-09 Marek Polacek <polacek@redhat.com>
22016 * doc/invoke.texi: Fix typo.
22018 2017-05-09 Richard Biener <rguenther@suse.de>
22020 * tree-vrp.c (vrp_val_is_max): Adjust comment.
22021 (vrp_val_is_min): Likewise.
22022 (set_value_range_to_value): Likewise.
22023 (set_value_range_to_nonnegative): Likewise.
22024 (gimple_assign_nonzero_p): Likewise.
22025 (gimple_stmt_nonzero_p): Likewise.
22026 (vrp_int_const_binop): Likewise. Remove unreachable case.
22027 (adjust_range_with_scev): Adjust comments.
22028 (compare_range_with_value): Likewise.
22029 (extract_range_from_phi_node): Likewise.
22030 (test_for_singularity): Likewise.
22032 2017-05-09 Richard Biener <rguenther@suse.de>
22034 * tree-vrp.c (get_single_symbol): Add assert that we don't
22035 get overflowed constants as invariant part.
22036 (compare_values_warnv): Add comment before the TREE_NO_WARNING
22037 checks. Use wi::cmp instead of recursing for integer constants.
22038 (compare_values): Just ignore whether we assumed undefined
22039 overflow instead of failing the compare.
22040 (extract_range_for_var_from_comparison_expr): Add comment before the
22041 TREE_NO_WARNING sets.
22042 (test_for_singularity): Likewise.
22043 (extract_range_from_comparison): Do not disable optimization
22044 when we assumed undefined overflow.
22045 (extract_range_basic): Remove init of unused var.
22047 2017-05-09 Richard Biener <rguenther@suse.de>
22049 * tree-vrp.c (vrp_int_const_binop): Use wide-ints and simplify.
22050 (extract_range_from_multiplicative_op_1): Adjust.
22051 (extract_range_from_binary_expr_1): Use int_const_binop.
22053 2017-05-08 Kelvin Nilsen <kelvin@gcc.gnu.org>
22056 * config/rs6000/power6.md: Replace store_data_bypass_p calls with
22057 rs6000_store_data_bypass_p in seven define_bypass directives and
22058 in several comments.
22059 * config/rs6000/rs6000-protos.h: Add prototype for
22060 rs6000_store_data_bypass_p function.
22061 * config/rs6000/rs6000.c (rs6000_store_data_bypass_p): New
22062 function implements slightly different (rs6000-specific) semantics
22063 than store_data_bypass_p, returning false rather than aborting
22064 with assertion error when arguments do not satisfy the
22065 requirements of store data bypass.
22066 (rs6000_adjust_cost): Replace six calls of store_data_bypass_p with
22067 rs6000_store_data_bypass_p.
22069 2017-05-08 Max Filippov <jcmvbkbc@gmail.com>
22071 * config/xtensa/xtensa-protos.h
22072 (xtensa_initial_elimination_offset): New declaration.
22073 * config/xtensa/xtensa.c (xtensa_initial_elimination_offset):
22074 New function. Move its body from the INITIAL_ELIMINATION_OFFSET
22075 macro definition, add case for FRAME_POINTER_REGNUM when
22076 FRAME_GROWS_DOWNWARD.
22077 * config/xtensa/xtensa.h (FRAME_GROWS_DOWNWARD): New macro definition.
22078 (INITIAL_ELIMINATION_OFFSET): Replace body with call to
22079 xtensa_initial_elimination_offset.
22081 2017-05-08 Nathan Sidwell <nathan@acm.org>
22083 * doc/invoke.texi: Alphabetize -fdump options.
22085 2017-05-08 Martin Sebor <msebor@redhat.com>
22087 PR translation/80280
22088 * config/sol2-c.c (solaris_pragma_align): Correct quoting.
22090 2017-05-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
22092 * target.def (compute_frame_layout): New optional target hook.
22093 * doc/tm.texi.in (TARGET_COMPUTE_FRAME_LAYOUT): Add hook.
22094 * doc/tm.texi (TARGET_COMPUTE_FRAME_LAYOUT): Add documentation.
22095 * lra-eliminations.c (update_reg_eliminate): Call compute_frame_layout
22097 * reload1.c (verify_initial_elim_offsets): Likewise.
22098 * config/arm/arm.c (TARGET_COMPUTE_FRAME_LAYOUT): Define.
22099 (use_simple_return_p): Call arm_compute_frame_layout if needed.
22100 (arm_get_frame_offsets): Split up into this ...
22101 (arm_compute_frame_layout): ... and this function.
22103 2017-05-08 Richard Sandiford <richard.sandiford@arm.com>
22105 * config/aarch64/constraints.md (Usa): New constraint.
22106 * config/aarch64/aarch64.md (*movsi_aarch64, *movdi_aarch64): Use it.
22108 2017-05-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
22110 * config.gcc (arm*-*-*): Set TM_MULTILIB_CONFIG from
22111 with_multilib_list after it has been checked.
22113 2017-05-08 Richard Biener <rguenther@suse.de>
22115 * tree-ssa-pre.c (bitmap_set_and): Avoid bitmap copy.
22116 (bitmap_set_subtract_values): Likewise.
22118 2017-05-08 Richard Biener <rguenther@suse.de>
22120 * tree-vrp.c (gimple_assign_nonzero_warnv_p): Rename to ...
22121 (gimple_assign_nonzero): ... this and remove strict_overflow_p
22123 (gimple_stmt_nonzero_warnv_p): Rename to ...
22124 (gimple_stmt_nonzero_p): ... this and remove strict_overflow_p
22126 (vrp_stmt_computes_nonzero): Remove strict_overflow_p argument.
22127 (extract_range_basic): Adjust, do not disable propagation on
22128 strict overflow sensitive simplification.
22129 (vrp_visit_cond_stmt): Likewise.
22131 2017-05-05 Jan Hubicka <hubicka@ucw.cz>
22133 * ipa-inline-analysis.c (estimate_function_body_sizes): Recompute
22134 body size unconditionally.
22136 2017-05-07 Jeff Law <law@redhat.com>
22139 2017-05-06 Jeff Law <law@redhat.com>
22140 PR tree-optimization/78496
22141 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
22144 PR tree-optimization/78496
22145 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
22146 (simplify_stmt_using_ranges): Call it.
22147 (vrp_dom_walker::before_dom_children): Extract equivalences
22148 from an ASSERT_EXPR with an equality comparison against a
22151 2017-05-06 Jeff Law <law@redhat.com>
22153 PR tree-optimization/78496
22154 * tree-vrp.c (simplify_assert_expr_using_ranges): Remove debugging
22157 PR tree-optimization/78496
22158 * tree-vrp.c (simplify_assert_expr_using_ranges): New function.
22159 (simplify_stmt_using_ranges): Call it.
22160 (vrp_dom_walker::before_dom_children): Extract equivalences
22161 from an ASSERT_EXPR with an equality comparison against a
22164 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
22166 * lra-constraints.c (lra_copy_reg_equiv): New function.
22167 (split_reg): Use it to copy equivalence information from the
22168 original register to the spill register.
22170 2017-05-06 Richard Sandiford <richard.sandiford@linaro.org>
22172 PR rtl-optimization/75964
22173 * simplify-rtx.c (simplify_const_relational_operation): Remove
22174 invalid handling of comparisons of integer ABS.
22176 2017-05-06 Uros Bizjak <ubizjak@gmail.com>
22178 * config/i386/i386.c (ext_80387_constant_init): Do not explicitly
22179 initialize to zero.
22180 (init_regs): Remove declaration.
22181 (function_arg_advance_32): Initialize error_p as boolean variable.
22183 2017-05-05 Nathan Sidwell <nathan@acm.org>
22185 * store-motion.c (remove_reachable_equiv_notes): Reformat long
22186 lines. Use for (;;).
22188 2017-05-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22190 * config/rs6000/rs6000.c (rs6000_vect_nonmem): New static var.
22191 (rs6000_init_cost): Initialize rs6000_vect_nonmem.
22192 (rs6000_add_stmt_cost): Update rs6000_vect_nonmem.
22193 (rs6000_finish_cost): Avoid vectorizing simple copy loops with
22194 VF=2 that require versioning.
22196 2017-05-05 David Malcolm <dmalcolm@redhat.com>
22198 * diagnostic.h (CARET_LINE_MARGIN): Convert from macro to const
22201 2017-05-05 David Malcolm <dmalcolm@redhat.com>
22203 * diagnostic.h (diagnostic_override_option_index): Convert from
22204 macro to inline function.
22206 2017-05-05 David Malcolm <dmalcolm@redhat.com>
22208 * diagnostic.c (last_module_changed_p): New function.
22209 (set_last_module): New function.
22210 (diagnostic_report_current_module): Convert macro usage to
22211 the above functions.
22212 * diagnostic.h (diagnostic_context::last_module): Strengthen
22213 from const line_map * to const line_map_ordinary *.
22214 (diagnostic_last_module_changed): Delete macro.
22215 (diagnostic_set_last_module): Delete macro.
22217 2017-05-05 David Malcolm <dmalcolm@redhat.com>
22219 * diagnostic.c (diagnostic_impl): Replace report_diagnostic
22220 with diagnostic_report_diagnostic.
22221 (diagnostic_n_impl_richloc): Likewise.
22222 * diagnostic.h (report_diagnostic): Delete macro.
22223 * rtl-error.c (diagnostic_for_asm): Replace report_diagnostic
22224 with diagnostic_report_diagnostic.
22225 * substring-locations.c (format_warning_va): Likewise.
22227 2017-05-05 David Malcolm <dmalcolm@redhat.com>
22229 * diagnostic.c (diagnostic_report_diagnostic): Eliminate
22230 save/restor of format_spec. Move option-printing code to...
22231 (print_option_information): ...this new function, and
22232 reimplement by simply printing to the pretty_printer,
22233 rather than appending to the format string.
22235 2017-05-05 David Malcolm <dmalcolm@redhat.com>
22237 * diagnostic.c (diagnostic_report_diagnostic): Split out pragma
22238 handling logic into...
22239 (update_effective_level_from_pragmas): ...this new function.
22241 2017-05-04 Andrew Waterman <andrew@sifive.com>
22243 * config/riscv/riscv.opt (mstrict-align): New option.
22244 * config/riscv/riscv.h (STRICT_ALIGNMENT): Use it. Update comment.
22245 (SLOW_UNALIGNED_ACCESS): Define.
22246 (riscv_slow_unaligned_access): Declare.
22247 * config/riscv/riscv.c (riscv_tune_info): Add slow_unaligned_access
22249 (riscv_slow_unaligned_access): New variable.
22250 (rocket_tune_info): Set slow_unaligned_access to true.
22251 (optimize_size_tune_info): Set slow_unaligned_access to false.
22252 (riscv_cpu_info_table): Add entry for optimize_size_tune_info.
22253 (riscv_valid_lo_sum_p): Use TARGET_STRICT_ALIGN.
22254 (riscv_option_override): Set riscv_slow_unaligned_access.
22255 * doc/invoke.texi: Add -mstrict-align to RISC-V.
22257 2017-05-04 Kito Cheng <kito.cheng@gmail.com>
22259 * config/riscv/riscv.md: Unify indentation.
22261 2017-05-05 Michael Meissner <meissner@linux.vnet.ibm.com>
22266 * config/rs6000/rs6000.md (u code attribute): Add FIX and
22268 (extendsi<mode>2): Add support for doing sign extension via
22269 VUPKHSW and XXPERMDI if the value is in Altivec registers and we
22270 don't have ISA 3.0 instructions.
22271 (extendsi<mode>2 splitter): Likewise.
22272 (fix_trunc<mode>si2): If we are at ISA 2.07 (VSX small integer),
22273 generate the normal insns since SImode can now go in vector
22274 registers. Disallow the special UNSPECs needed for previous
22275 machines to hide SImode being used. Add new insns
22276 fctiw{,w}_<mode>_smallint if SImode can go in vector registers.
22277 (fix_trunc<mode>si2_stfiwx): Likewise.
22278 (fix_trunc<mode>si2_internal): Likewise.
22279 (fixuns_trunc<mode>si2): Likewise.
22280 (fixuns_trunc<mode>si2_stfiwx): Likewise.
22281 (fctiw<u>z_<mode>_smallint): Likewise.
22282 (fctiw<u>z_<mode>_mem): New combiner pattern to prevent conversion
22283 of floating point to 32-bit integer from doing a direct move to
22284 the GPR registers to do a store.
22285 (fctiwz_<mode>): Break long line.
22287 2017-05-05 Bin Cheng <bin.cheng@arm.com>
22289 * Makefile.in (GTFILES): Add tree-ssa-loop-ivopts.c.
22290 * tree-ssa-loop-ivopts.c (compute_max_addr_offset): Delete.
22291 (addr_list, addr_offset_valid_p): New.
22292 (split_address_groups): Check offset validity with above function.
22293 (gt-tree-ssa-loop-ivopts.h): Include header file.
22295 2017-05-05 Nathan Sidwell <nathan@acm.org>
22297 * config.gcc (arm*-*-*): Add missing 'fi'.
22299 2017-05-05 Steve Ellcey <sellcey@cavium.com>
22301 * doc/invoke.texi (-fopt-info): Explicitly say order of options
22302 included in -fopt-info does not matter.
22303 * doc/optinfo.texi (-fopt-info): Fix description of default
22304 behavour. Explicitly say order of options included in -fopt-info
22307 2017-05-05 Thomas Preud'homme <thomas.preudhomme@arm.com>
22309 * config.gcc: Allow combinations of aprofile and rmprofile values for
22310 --with-multilib-list.
22311 * config/arm/t-multilib: New file.
22312 * config/arm/t-aprofile: Remove initialization of MULTILIB_*
22313 variables. Remove setting of ISA and floating-point ABI in
22314 MULTILIB_OPTIONS and MULTILIB_DIRNAMES. Set architecture and FPU in
22315 MULTI_ARCH_OPTS_A and MULTI_ARCH_DIRS_A rather than MULTILIB_OPTIONS
22316 and MULTILIB_DIRNAMES respectively. Add comment to introduce all
22317 matches. Add architecture matches for marvel-pj4 and generic-armv7-a
22319 * config/arm/t-rmprofile: Likewise except for the matches changes.
22320 * doc/install.texi (--with-multilib-list): Document the combination of
22321 aprofile and rmprofile values and warn about pitfalls in doing that.
22323 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
22325 * config/aarch64/aarch64.md (movsi_aarch64): Remove '*' from r=w.
22326 (movdi_aarch64): Likewise.
22328 2017-05-05 Jakub Jelinek <jakub@redhat.com>
22330 PR tree-optimization/80632
22331 * tree-switch-conversion.c (struct switch_conv_info): Add target_vop
22333 (build_arrays): Initialize it for virtual phis.
22334 (fix_phi_nodes): Use it for virtual phis.
22336 PR tree-optimization/80558
22337 * tree-vrp.c (extract_range_from_binary_expr_1): Optimize
22338 [x, y] op z into [x op, y op z] for op & or | if conditions
22341 2017-05-05 Andre Vieira <andre.simoesdiasvieira@arm.com>
22342 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
22345 * config/arm/arm.md (use_literal_pool): Remove.
22346 (64-bit immediate split): No longer takes cost into consideration
22347 if arm_disable_literal_pool is enabled.
22348 * config/arm/arm.c (arm_tls_referenced_p): Add diagnostic if TLS is
22349 used when arm_disable_literal_pool is enabled.
22350 (arm_max_const_double_inline_cost): Remove use of
22351 arm_disable_literal_pool.
22352 (push_minipool_fix): Add assert.
22353 (arm_reorg): Add return if arm_disable_literal_pool is enabled.
22354 * config/arm/vfp.md (no_literal_pool_df_immediate): New.
22355 (no_literal_pool_sf_immediate): New.
22357 2017-05-05 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22359 PR tree-optimization/80613
22360 * tree-ssa-dce.c (propagate_necessity): Remove cases for
22361 BUILT_IN_STRDUP and BUILT_IN_STRNDUP.
22363 2017-05-05 Richard Biener <rguenther@suse.de>
22365 * tree-ssa-pre.c (get_or_alloc_expr_for): Simplify.
22367 2017-05-05 Georg-Johann Lay <avr@gjlay.de>
22369 * config/avr/avr.md [flag_strict_overflow]: Remove any occurence
22370 of this flag from insn conditions due to removal from r247495.
22372 2017-05-05 Wilco Dijkstra <wdijkstr@arm.com>
22374 * config/arm/aarch-common.c (arm_early_load_addr_dep_ptr):
22376 (arm_early_store_addr_dep_ptr): Likewise.
22377 * config/arm/aarch-common-protos.h
22378 (arm_early_load_addr_dep_ptr): Add prototype.
22379 (arm_early_store_addr_dep_ptr): Likewise.
22380 * config/arm/cortex-a53.md: Add new bypasses.
22382 2017-05-05 Jakub Jelinek <jakub@redhat.com>
22384 * tree.c (next_type_uid): Change type to unsigned.
22385 (type_hash_canon): Decrement back next_type_uid if
22386 freeing a type node with the highest TYPE_UID. For INTEGER_TYPEs
22387 also ggc_free TYPE_MIN_VALUE, TYPE_MAX_VALUE and TYPE_CACHED_VALUES
22390 2017-05-04 Martin Sebor <msebor@redhat.com>
22392 * builtins.c: Fix a trivial typo in a comment.
22394 PR middle-end/79234
22395 * builtins.c (check_sizes): Adjust to handle reading past the end.
22396 Avoid printing excessive upper bound of ranges. Use %E to print
22397 tree nodes instead of converting them to %wu.
22398 (expand_builtin_memchr): New function.
22399 (compute_dest_size): Rename...
22400 (compute_objsize): ...to this.
22401 (expand_builtin_memcpy): Adjust.
22402 (expand_builtin_mempcpy): Adjust.
22403 (expand_builtin_strcat): Adjust.
22404 (expand_builtin_strcpy): Adjust.
22405 (check_strncat_sizes): Adjust.
22406 (expand_builtin_strncat): Adjust.
22407 (expand_builtin_strncpy): Adjust and simplify.
22408 (expand_builtin_memset): Adjust.
22409 (expand_builtin_bzero): Adjust.
22410 (expand_builtin_memcmp): Adjust.
22411 (expand_builtin): Handle memcmp.
22412 (maybe_emit_chk_warning): Check strncat just once.
22414 2017-05-04 Martin Sebor <msebor@redhat.com>
22416 PR preprocessor/79214
22417 PR middle-end/79222
22418 PR middle-end/79223
22419 * builtins.c (check_sizes): Add inlining context and issue
22420 warnings even when -Wno-system-headers is set.
22421 (check_strncat_sizes): Same.
22422 (expand_builtin_strncat): Same.
22423 (expand_builtin_memmove): New function.
22424 (expand_builtin_stpncpy): Same.
22425 (expand_builtin): Handle memmove and stpncpy.
22427 2017-05-04 Bin Cheng <bin.cheng@arm.com>
22429 * tree-ssa-loop-ivopts.c (struct cost_pair): Remove field inv_expr
22430 which is not used any more.
22432 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
22434 * config/aarch64/aarch64.c (generic_tunings): Update prefetch model.
22436 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
22438 * config/aarch64/aarch64.c (cortexa35_tunings): Set jump alignment to 4.
22439 (cortexa53_tunings): Likewise.
22440 (cortexa57_tunings): Likewise.
22441 (cortexa72_tunings): Likewise.
22442 (cortexa73_tunings): Likewise.
22444 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
22446 * config/aarch64/aarch64.c (generic_tunings): Set jump alignment to 4.
22447 Set loop alignment to 8.
22449 2017-05-04 Martin Sebor <msebor@redhat.com>
22451 PR translation/80280
22452 * builtins.c (expand_builtin_object_size): Add missing quoting to
22453 %D and like directives.
22454 * hsa-gen.c (hsa_type_for_scalar_tree_type): Same.
22455 (hsa_type_for_tree_type): Same.
22456 (verify_function_arguments): Same.
22457 * symtab.c (symbol_table::change_decl_assembler_name): Same.
22458 * varasm.c (get_section): Same.
22461 2017-05-04 Martin Sebor <msebor@redhat.com>
22463 PR translation/80280
22464 * config/i386/i386.c (ix86_function_versions): Quote a %D directive.
22466 2017-05-04 Wilco Dijkstra <wdijkstr@arm.com>
22468 * config/aarch64/aarch64.c (generic_addrcost_table):
22469 Change HI/TI mode setting.
22471 2017-05-04 Martin Jambor <mjambor@suse.cz>
22473 PR tree-optimization/80622
22474 * tree-sra.c (comes_initialized_p): New function.
22475 (build_accesses_from_assign): Only set write lazily when
22476 comes_initialized_p is false.
22477 (analyze_access_subtree): Use comes_initialized_p.
22478 (propagate_subaccesses_across_link): Assert !comes_initialized_p
22479 instead of testing for PARM_DECL.
22481 2017-05-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22483 * config/aarch64/aarch64.md (prefetch); Adjust predicate and
22484 constraint on operand 0 to allow more general addressing modes.
22485 Adjust output template.
22486 * config/aarch64/aarch64.c (aarch64_address_valid_for_prefetch_p):
22488 * config/aarch64/aarch64-protos.h
22489 (aarch64_address_valid_for_prefetch_p): Declare prototype.
22490 * config/aarch64/constraints.md (Dp): New address constraint.
22491 * config/aarch64/predicates.md (aarch64_prefetch_operand): New
22494 2017-05-04 Jan Hubicka <hubicka@ucw.cz>
22496 * ipa-cp.c (perform_estimation_of_a_value): Drop base_time parameter;
22497 update use of estimate_ipcp_clone_size_and_time.
22498 (estimate_local_effects): Update use of
22499 estimate_ipcp_clone_size_and_time and perform_estimation_of_a_value.
22500 * ipa-inline.h (estimate_ipcp_clone_size_and_time): Update prototype.
22501 * ipa-inline-analysis.c (estimate_ipcp_clone_size_and_time):
22502 Return nonspecialized time.
22504 2017-05-04 Richard Biener <rguenther@suse.de>
22506 * tree-ssa-alias.c (get_continuation_for_phi): Improve looking
22507 for the last VUSE which def dominates the PHI. Directly call
22509 (get_continuation_for_phi_1): Remove.
22511 2017-05-04 Richard Sandiford <richard.sandiford@linaro.org>
22513 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): Add commentary
22514 to explain the use of truncating division. Cap the number of
22515 iterations to the maximum given by nb_iterations_upper_bound,
22518 2017-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
22520 * configure.ac (--enable-mingw-wildcard): Add new configurable feature.
22521 * configure: Regenerate.
22522 * config.in: Regenerate.
22523 * config/i386/driver-mingw32.c: new file.
22524 * config/i386/x-mingw32: Add rule to build driver-mingw32.o.
22525 * config.host: Link driver-mingw32.o on MinGW host.
22526 * doc/install.texi: Document new --enable-mingw-wildcard configure
22529 2017-05-04 Marek Polacek <polacek@redhat.com>
22531 PR tree-optimization/80612
22532 * calls.c (get_size_range): Check for INTEGRAL_TYPE_P.
22534 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
22535 Andre Simoes Dias Vieira <andre.simoesdiasvieira@arm.com>
22537 * config/arm/arm.md (movsi): Change TARGET_32BIT to TARGET_HAVE_MOVT.
22538 (movt splitter): Likewise.
22539 * config/arm/arm.c (arm_option_check_internal): Change arm_arch_thumb2
22540 to TARGET_HAVE_MOVT, and merge with -mslow-flash-data check.
22541 (const_ok_for_arm): Change else to else if (TARGET_THUMB2) and add else
22542 block for Thumb-1 with MOVT.
22543 (thumb2_legitimate_address_p): Move code block ...
22544 (can_avoid_literal_pool_for_label_p): ... into this new function.
22545 (thumb1_legitimate_address_p): Add check for TARGET_HAVE_MOVT and
22547 (thumb_legitimate_constant_p): Add conditional on TARGET_HAVE_MOVT
22548 * doc/invoke.texi (-mpure-code): Change "ARMv7-M targets" for
22549 "M-profile targets with the MOVT instruction".
22551 2017-05-04 Prakhar Bahuguna <prakhar.bahuguna@arm.com>
22553 * config/arm/arm-builtins.c (arm_init_builtins): Rename
22554 __builtin_arm_ldfscr to __builtin_arm_get_fpscr, and rename
22555 __builtin_arm_stfscr to __builtin_arm_set_fpscr.
22557 2017-05-04 Martin Liska <mliska@suse.cz>
22559 * tree-vrp.c (simplify_cond_using_ranges_2): Remove unused
22560 variable cond_code.
22562 2017-05-04 Richard Biener <rguenther@suse.de>
22564 * tree.c (array_at_struct_end_p): Handle arrays at struct
22565 end with flexarrays more conservatively. Refactor and treat
22566 arrays of arrays or aggregates more strict. Fix
22567 VIEW_CONVERT_EXPR handling. Remove allow_compref argument.
22568 * tree.c (array_at_struct_end_p): Adjust prototype.
22569 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust.
22570 * gimple-fold.c (get_range_strlen): Likewise.
22571 * tree-chkp.c (chkp_may_narrow_to_field): Likewise.
22573 2017-05-04 Richard Biener <rguenther@suse.de>
22575 PR tree-optimization/31130
22576 * tree-vrp.c (needs_overflow_infinity): Remove as always returning
22578 (supports_overflow_infinity): Likewise.
22579 (is_negative_overflow_infinity): Likewise.
22580 (is_positive_overflow_infinity): Likewise.
22581 (is_overflow_infinity): Likewise.
22582 (stmt_overflow_infinity): Likewise.
22583 (overflow_infinity_range_p): Likewise.
22584 (usable_range_p): Remove as always returning true.
22585 (make_overflow_infinity): Remove.
22586 (negative_overflow_infinity): Likewise.
22587 (positive_overflow_infinity): Likewise.
22588 (avoid_overflow_infinity): Likewise.
22589 (set_value_range): Adjust accordingly.
22590 (set_value_range_to_nonnegative): Likewise, remove now unused
22591 overflow_infinity arg.
22592 (vrp_operand_equal_p): Adjust.
22593 (update_value_range): Likewise.
22594 (range_int_cst_singleton_p): Likewise.
22595 (operand_less_p): Likewise.
22596 (compare_values_warnv): Likewise.
22597 (extract_range_for_var_from_comparison_expr): Likewise.
22598 (vrp_int_const_binop): Likewise.
22599 (zero_nonzero_bits_from_vr): Likewise.
22600 (extract_range_from_multiplicative_op_1): Likewise.
22601 (extract_range_from_binary_expr_1): Likewise.
22602 (extract_range_from_unary_expr): Likewise.
22603 (extract_range_from_comparison): Likewise.
22604 (extract_range_basic): Likewise.
22605 (adjust_range_with_scev): Likewise.
22606 (compare_ranges): Likewise.
22607 (compare_range_with_value): Likewise.
22608 (dump_value_range): Likewise.
22609 (test_for_singularity): Likewise, remove strict_overflow_p parameter
22611 (simplify_cond_using_ranges): Adjust.
22613 2017-05-04 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
22615 * brig-builtins.def: Added a builtin for class_f64.
22616 * builtin-types.def: Added a builtin type needed by class_f64.
22618 2017-05-03 Jason Merrill <jason@redhat.com>
22620 * timevar.def: Add TV_CONSTEXPR.
22622 2017-05-03 David Malcolm <dmalcolm@redhat.com>
22624 * common.opt (fdiagnostics-parseable-fixits): Fix typo.
22626 2017-05-03 Martin Jambor <mjambor@suse.cz>
22628 * ipa-prop.c (ipa_update_after_lto_read): Removed.
22629 * ipa-prop.h (ipa_update_after_lto_read): Remove declaration.
22630 * ipa-cp.c (ipcp_propagate_stage): Do not call
22631 ipa_update_after_lto_read.
22632 * ipa-inline.c (ipa_inline): Likewise.
22634 2017-05-03 Martin Jambor <mjambor@suse.cz>
22636 * ipa-prop.h (ipa_edge_args): Make a class. Mark with for_user GTY
22637 tag. Added a default constructor and a destructor.
22638 (ipa_edge_args_sum_t): New class;
22639 (ipa_edge_args_sum): Declare.
22640 (ipa_edge_args_vector): Remove declaration.
22641 (IPA_EDGE_REF): Use ipa_edge_args_sum.
22642 (ipa_free_edge_args_substructures): Remove declaration.
22643 (ipa_check_create_edge_args): Use ipa_edge_args_sum.
22644 (ipa_edge_args_info_available_for_edge_p): Likewise.
22645 * ipa-prop.c (ipa_edge_args_vector): Removed.
22646 (edge_removal_hook_holder): Likewise.
22647 (edge_duplication_hook_holder): Likewise.
22648 (ipa_edge_args_sum): New variable.
22649 (ipa_propagate_indirect_call_infos): Test ipa_edge_args_sum instead of
22650 ipa_edge_args_vector.
22651 (ipa_free_edge_args_substructures): Likewise.
22652 (ipa_free_all_edge_args): Free ipa_edge_args_sum instead of
22653 ipa_edge_args_vector.
22654 (ipa_edge_removal_hook): Turned into method
22655 ipa_edge_args_sum_t::remove.
22656 (ipa_edge_duplication_hook): Turned into method
22657 ipa_edge_args_sum_t::duplicate.
22658 (ipa_register_cgraph_hooks): Create ipa_edge_args_sum instead of
22659 registering edge hooks.
22660 (ipa_unregister_cgraph_hooks): Do not unregister edge hooks.
22661 * ipa-inline-analysis.c (estimate_function_body_sizes): Test
22662 ipa_edge_args_sum instead of ipa_edge_args_vector.
22663 * ipa-profile.c (ipa_profile): Likewise.
22665 2017-05-03 Martin Jambor <mjambor@suse.cz>
22667 * symbol-summary.h (function_summary): New method exists.
22668 (function_summary::symtab_removal): Deallocate through release.
22669 (call_summary): New class.
22670 (gt_ggc_mx): New overload.
22671 (gt_pch_nx): Likewise.
22672 (gt_pch_nx): Likewise.
22674 2017-05-03 Jeff Law <law@redhat.com>
22676 PR tree-optimization/78496
22677 * tree-vrp.c (simplify_cond_using_ranges_1): Renamed
22678 from simplify_cond_using_ranges. Split off code to walk
22679 backwards through casts into ...
22680 (simplify_cond_using_ranges_2): New function.
22681 (simplify_stmt_using_ranges): Call simplify_cond_using_ranges_1.
22682 (execute_vrp): After identifying jump threads, call
22683 simplify_cond_using_ranges_2.
22685 2017-05-03 Jan Hubicka <hubicka@ucw.cz>
22688 * ipa-inline.h (inline_summary): Add ctor.
22689 (create_ggc): Do not use ggc_cleared_alloc.
22691 2017-05-03 Jeff Downs <heydowns@somuchpressure.net>
22692 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22694 * gcc.c (handle_braces): Support escaping in switch matching
22696 * doc/invoke.texi (Spec Files): Document it.
22697 Remove superfluous @code markup in items.
22699 2017-05-03 David Malcolm <dmalcolm@redhat.com>
22701 * diagnostic-show-locus.c (struct column_range): New struct.
22702 (get_affected_columns): New function.
22703 (get_printed_columns): New function.
22704 (struct correction): New struct.
22705 (correction::ensure_capacity): New function.
22706 (correction::ensure_terminated): New function.
22707 (struct line_corrections): New struct.
22708 (line_corrections::~line_corrections): New dtor.
22709 (line_corrections::add_hint): New function.
22710 (layout::print_trailing_fixits): Reimplement in terms of the new
22712 (selftest::test_overlapped_fixit_printing): New function.
22713 (selftest::diagnostic_show_locus_c_tests): Call it.
22715 2017-05-03 Nathan Sidwell <nathan@acm.org>
22717 Canonicalize canonical type hashing
22718 * tree.h (type_hash_canon_hash): Declare.
22719 * tree.c (type_hash_list, attribute_hash_list): Move into
22720 type_hash_canon_hash.
22721 (build_type_attribute_qual_variant): Break out hash code calc into
22722 type_hash_canon_hash.
22723 (type_hash_canon_hash): New. Generic type hash computation.
22724 (build_range_type_1, build_array_type_1, build_function_type,
22725 build_method_type_directly, build_offset_type, build_complex_type,
22726 make_vector_type): Call it.
22728 2017-05-03 Richard Biener <rguenther@suse.de>
22730 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22731 When all DRs have unknown misaligned do not always peel
22732 when there is a store but apply the same costing model as if
22733 there were only loads.
22735 2017-05-03 Richard Biener <rguenther@suse.de>
22738 PR tree-optimization/80492
22739 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
22740 compare_base_decls returning dont-know properly.
22742 2017-05-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
22744 * config/arm/iterators.md (CCSI): New mode iterator.
22745 (arch): New mode attribute.
22746 * config/arm/sync.md (atomic_compare_and_swap<mode>_1): Rename into ...
22747 (atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): This and ...
22748 (atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): This. Use CCSI
22749 code iterator for success result mode.
22750 * config/arm/arm.c (arm_expand_compare_and_swap): Adapt code to use
22751 the corresponding new insn generators.
22753 2017-05-03 Bin Cheng <bin.cheng@arm.com>
22756 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22757 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
22759 2017-05-03 Richard Sandiford <richard.sandiford@linaro.org>
22761 * tree-data-ref.h (SUB_CONFLICTS_IN_A): Wrap SUB argument in brackets.
22762 (SUB_CONFLICTS_IN_B, SUB_LAST_CONFLICT, SUB_DISTANCE): Likewise.
22763 (DDR_A): Wrap DDR argument in brackets.
22764 (DDR_B, DDR_AFFINE_P, DDR_ARE_DEPENDENT, DDR_SUBSCRIPTS): Likewise.
22765 (DDR_LOOP_NEST, DDR_INNER_LOOP, DDR_SELF_REFERENCE): Likewise.
22766 (DDR_REVERSED_P): Likewise.
22768 2017-05-03 Jakub Jelinek <jakub@redhat.com>
22770 PR tree-optimization/79472
22771 * tree-switch-conversion.c (struct switch_conv_info): Add
22772 contiguous_range and default_case_nonstandard fields.
22773 (collect_switch_conv_info): Compute contiguous_range and
22774 default_case_nonstandard fields, don't clear final_bb if
22775 contiguous_range and only the default case doesn't have the required
22777 (check_all_empty_except_final): Set default_case_nonstandard instead
22778 of failing if contiguous_range and the default case doesn't have empty
22780 (check_final_bb): Add SWTCH argument, don't fail if contiguous_range
22781 and only the default case doesn't have the required constants. Skip
22783 (gather_default_values): Skip virtual phis. Allow non-NULL CASE_LOW
22784 if default_case_nonstandard.
22785 (build_constructors): Build constant 1 just once. Assert that default
22786 values aren't inserted in between cases if contiguous_range. Skip
22788 (build_arrays): Skip virtual phis.
22789 (prune_bbs): Add DEFAULT_BB argument, don't remove that bb.
22790 (fix_phi_nodes): Don't add e2f phi arg if default_case_nonstandard.
22791 Handle virtual phis.
22792 (gen_inbound_check): Handle default_case_nonstandard case.
22793 (process_switch): Adjust check_final_bb caller. Call
22794 gather_default_values with the first non-default case instead of
22795 default case if default_case_nonstandard.
22797 2017-05-02 Nathan Sidwell <nathan@acm.org>
22799 * ggc-page.c (move_ptes_to_front): Replace unsigned >0 with i--
22800 check. Fix formatting.
22802 2017-05-02 Jan Hubicka <hubicka@ucw.cz>
22804 * ipa-inline-analysis.c (estimate_node_size_and_time): Allow roundoff
22805 errors when comparing specialized and unspecialized times.
22807 2017-05-02 David Malcolm <dmalcolm@redhat.com>
22809 * diagnostic-show-locus.c
22810 (layout::should_print_annotation_line_p): Make private.
22811 (layout::print_annotation_line): Make private.
22812 (layout::annotation_line_showed_range_p): Make private.
22813 (layout::show_ruler): Make private.
22814 (layout::print_source_line): Make private. Pass in line and
22815 line_width, rather than calling location_get_source_line. Drop
22817 (layout::print_leading_fixits): New method.
22818 (layout::print_any_fixits): Rename to...
22819 (layout::print_trailing_fixits): ...this, and make private.
22820 Don't print newline fixits.
22821 (diagnostic_show_locus): Move logic for printing one row into...
22822 (layout::print_line): ...this new function. Move the
22823 location_get_source_line call and error-handling from
22824 print_source_line to here. Call print_leading_fixits, and rename
22825 print_any_fixits to print_trailing_fixits.
22826 (selftest::test_fixit_insert_containing_newline): Update now that
22827 newlines are partially supported.
22828 (selftest::test_fixit_insert_containing_newline_2): New test.
22829 (selftest::test_fixit_replace_containing_newline): Update comments.
22830 (selftest::diagnostic_show_locus_c_tests): Call the new test.
22831 * edit-context.c (class added_line): New class.
22832 (class edited_line): Describe newline handling in comment.
22833 (edited_line::actually_edited_p): New method.
22834 (edited_line::print_content): Delete redundant decl.
22835 (edited_line::m_predecessors): New field.
22836 (edited_file::print_content): Call edited_line::print_content.
22837 (edited_file::print_diff): Update to support newlines.
22838 (edited_file::print_diff_hunk): Likewise.
22839 (edited_file::print_run_of_changed_lines): New function.
22840 (edited_file::print_diff_line): Convert to...
22841 (print_diff_line): ...this.
22842 (edited_file::get_effective_line_count): New function.
22843 (edited_line::edited_line): Initialize new field m_predecessors.
22844 (edited_line::~edited_line): Clean up m_predecessors.
22845 (edited_line::apply_fixit): Handle newlines.
22846 (edited_line::get_effective_line_count): New function.
22847 (edited_line::print_content): New function.
22848 (edited_line::print_diff_lines): New function.
22849 (selftest::test_applying_fixits_insert_containing_newline): New
22851 (selftest::test_applying_fixits_replace_containing_newline): New
22853 (selftest::insert_line): New function.
22854 (selftest::test_applying_fixits_multiple_lines): Add example of
22856 (selftest::edit_context_c_tests): Call the new tests.
22858 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22860 * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Delete
22861 parameter cand. Update dump information.
22862 (get_computation_cost): Update uses.
22864 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22866 * tree-ssa-loop-ivopts.c (get_computation_aff_1): New.
22867 (get_computation_aff): Reorder parameters. Use get_computation_aff_1.
22868 (get_computation_at, rewrite_use_address): Update use of
22869 get_computation_aff.
22871 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22873 * tree-ssa-loop-ivopts.c (get_computation_at): Reorder parameters.
22874 (get_computation): Delete.
22875 (get_computation_cost): Implement like get_computation_cost_at.
22876 Use get_computation_at.
22877 (get_computation_cost_at): Delete.
22878 (rewrite_use_nonlinear_expr): Use get_computation_at.
22879 (rewrite_use_compare, remove_unused_ivs): Ditto.
22881 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22883 * tree-ssa-loop-ivopts.c (rewrite_use_address): Simple refactor.
22885 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22887 * tree-ssa-loop-ivopts.c (struct iv_ca): Rename n_regs to n_invs.
22888 (ivopts_global_cost_for_size): Rename parameter and update uses.
22889 (iv_ca_recount_cost): Update uses.
22890 (iv_ca_set_remove_invs, iv_ca_set_no_cp): Record invariants and
22891 candidates seperately in n_invs and n_cands.
22892 (iv_ca_set_add_invs, iv_ca_set_cp, iv_ca_new): Ditto.
22894 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22896 * tree-ssa-loop-ivopts.c (struct walk_tree_data): New.
22897 (find_inv_vars_cb): New.
22898 (find_depends): Renamed to ...
22899 (find_inv_vars): ... this.
22900 (add_candidate_1, force_var_cost): Call find_inv_vars.
22901 (split_address_cost, determine_group_iv_cost_cond): Ditto.
22903 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22905 * tree-ssa-loop-ivopts.c (struct cost_pair): Rename depends_on to
22906 inv_vars. Add inv_exprs.
22907 (struct iv_cand): Rename depends_on to inv_vars.
22908 (struct ivopts_data): Rename max_inv_id/n_invariant_uses to
22909 max_inv_var_id/n_inv_var_uses. Move max_inv_expr_id around.
22910 Refactor field used_inv_exprs from has_map to array n_inv_expr_uses.
22911 (dump_cand): Dump inv_vars.
22912 (tree_ssa_iv_optimize_init): Support inv_vars and inv_exprs.
22913 (record_invariant, find_depends, add_candidate_1): Ditto.
22914 (set_group_iv_cost, force_var_cost): Ditto.
22915 (split_address_cost, ptr_difference_cost, difference_cost): Ditto.
22916 (get_computation_cost_at, get_computation_cost): Ditto.
22917 (determine_group_iv_cost_generic): Ditto.
22918 (determine_group_iv_cost_address): Ditto.
22919 (determine_group_iv_cost_cond, autoinc_possible_for_pair): Ditto.
22920 (determine_group_iv_costs): Ditto.
22921 (iv_ca_recount_cost): Update call to ivopts_global_cost_for_size.
22922 (iv_ca_set_remove_invariants): Renamed to ...
22923 (iv_ca_set_remove_invs): ... this. Support inv_vars and inv_exprs.
22924 (iv_ca_set_no_cp): Use iv_ca_set_remove_invs.
22925 (iv_ca_set_add_invariants): Renamed to ...
22926 (iv_ca_set_add_invs): ... this. Support inv_vars and inv_exprs.
22927 (iv_ca_set_cp): Use iv_ca_set_add_invs.
22928 (iv_ca_has_deps): Support inv_vars and inv_exprs.
22929 (iv_ca_new, iv_ca_free, iv_ca_dump, free_loop_data): Ditto.
22930 (create_new_ivs): Remove useless dump.
22932 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22934 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Remove pseudo
22936 (determine_group_iv_cost_cond, determine_iv_cost): Ditto.
22937 (iv_ca_set_no_cp, create_new_iv): Ditto.
22939 2017-05-02 Bin Cheng <bin.cheng@arm.com>
22941 * rtlanal.c (rtx_cost): Handle TRUNCATE between tieable modes.
22943 2017-05-02 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
22945 * tree.h (EXPR_CILK_SPAWN): Use macro TREE_CHECK2 instead of
22946 function tree_check2.
22948 2017-05-02 Martin Liska <mliska@suse.cz>
22950 * doc/gcov.texi: Add missing preposition.
22951 * gcov.c (function_info::function_info): Properly fill up
22952 all member variables.
22954 2017-05-02 Tamar Christina <tamar.christina@arm.com>
22956 * expr.c (expand_expr_real_2): Re-cost if previous costs are the same.
22958 2017-05-02 Tamar Christina <tamar.christina@arm.com>
22960 * simplify-rtx.c (simplify_binary_operation_1): Add LSHIFTRT case.
22962 2017-05-02 Martin Liska <mliska@suse.cz>
22965 * lto-streamer-in.c (lto_read_tree_1): Remove
22966 LTO_STREAMER_DEBUG.
22967 * lto-streamer.c (struct tree_hash_entry): Likewise.
22968 (struct tree_entry_hasher): Likewise.
22969 (tree_entry_hasher::hash): Likewise.
22970 (tree_entry_hasher::equal): Likewise.
22971 (lto_streamer_init): Likewise.
22972 (lto_orig_address_map): Likewise.
22973 (lto_orig_address_get): Likewise.
22974 (lto_orig_address_remove): Likewise.
22975 * lto-streamer.h: Likewise.
22976 * tree-streamer-in.c (streamer_alloc_tree): Likewise.
22977 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
22979 2017-05-02 Sebastian Peryt <sebastian.peryt@intel.com>
22981 * config/i386/avx512fintrin.h (_mm_mask_add_round_sd)
22982 (_mm_maskz_add_round_sd, _mm_mask_add_round_ss)
22983 (mm_maskz_add_round_ss, _mm_mask_sub_round_sd)
22984 (mm_maskz_sub_round_sd, _mm_mask_sub_round_ss)
22985 (mm_maskz_sub_round_ss, _mm_mask_add_sd)
22986 (mm_maskz_add_sd, _mm_mask_add_ss, _mm_maskz_add_ss)
22987 (mm_mask_sub_sd, _mm_maskz_sub_sd, _mm_mask_sub_ss)
22988 (mm_maskz_sub_ss): New intrinsics.
22989 * config/i386/i386-builtin-types.def (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
22990 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): New function type aliases.
22991 * config/i386/i386-builtin.def (__builtin_ia32_addsd_mask_round)
22992 (__builtin_ia32_addss_mask_round, __builtin_ia32_subsd_mask_round)
22993 (__builtin_ia32_subss_mask_round): New builtins.
22994 * config/i386/i386.c (V2DF_FTYPE_V2DF_V2DF_V2DF_UQI_INT)
22995 (V4SF_FTYPE_V4SF_V4SF_V4SF_UQI_INT): Handle new types.
22996 * config/i386/sse.md (<sse>_vm<plusminus_insn><mode>3<round_name>):
22998 (<sse>_vm<plusminus_insn><mode>3<mask_name><round_name>): ... this.
22999 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_op3>%2, %1, %0|%0, %1, %<iptr>2<round_op3>}):
23001 (v<plusminus_mnemonic><ssescalarmodesuffix>\t{<round_mask_op3>%2, %1, %0<mask_operand3>|%0<mask_operand3>, %1, %<iptr>2<round_mask_op3>}):
23004 2017-05-02 Martin Jambor <mjambor@suse.cz>
23006 PR tree-optimization/78687
23007 * tree-sra.c (access): New field parent.
23008 (process_subtree_disqualification): New function.
23009 (disqualify_candidate): Call it.
23010 (build_accesses_from_assign): Reset write flag if creating an
23012 (build_access_subtree): Fill in parent field and also prpagate
23013 down grp_write flag.
23014 (create_artificial_child_access): New parameter set_grp_write, set
23015 grp_write to its value.
23016 (propagate_subaccesses_across_link): Also propagate grp_write flag
23018 (propagate_all_subaccesses): Push the closest parent back to work
23019 queue if add_access_to_work_queue returned true.
23021 2017-05-02 Richard Biener <rguenther@suse.de>
23023 * common.opt (fstrict-overflow): Alias negative to fwrapv.
23024 * doc/invoke.texi (fstrict-overflow): Remove all traces of
23025 -fstrict-overflow documentation.
23026 * tree.h (TYPE_OVERFLOW_UNDEFINED): Do not test flag_strict_overflow.
23027 (POINTER_TYPE_OVERFLOW_UNDEFINED): Test !flag_wrapv instead of
23028 flag_strict_overflow.
23029 * ipa-inline.c (can_inline_edge_p): Do not test flag_strict_overflow.
23030 * lto-opts.c (lto_write_options): Do not stream it.
23031 * lto-wrapper.c (merge_and_complain): Do not handle it.
23032 * opts.c (default_options_table): Do not set -fstrict-overflow.
23033 (finish_options): Likewise do not clear it when sanitizing.
23034 * simplify-rtx.c (simplify_const_relational_operation): Do not
23035 test flag_strict_overflow.
23037 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
23039 * config/alpha/alpha.md (*add<mode>3_ieee): Merge to add<mode>3
23040 using enabled attribute.
23041 (*sub<mode>3_ieee): Merge to sub<mode>3 using enabled attribute.
23042 (*mul<mode>3_ieee): Merge to mul<mode>3 using enabled attribute.
23043 (*div<mode>3_ieee): Merge to div<mode>3 using enabled attribute.
23044 (*sqrt<mode>2_ieee): Merge to sqrt<mode>2 using enabled attribute.
23045 (*fix_truncdfdi_ieee): Merge to *fix_truncdfdi2 using enabled attribute.
23046 (*fix_truncsfdi_ieee): Merge to *fix_truncsfdi2 using enabled attribute.
23047 (*floatdisf_ieee): Merge to floatdisf2 using enabled attribute.
23048 (*floatdidf_ieee): Merge to floatdidf2 using enabled attribute.
23049 (*truncdfsf2_ieee): Merge to truncdfsf2 using enabled attribute.
23050 (*cmpdf_ieee): Merge to *cmpdf_internal using enabled attribute.
23052 2017-05-02 Uros Bizjak <ubizjak@gmail.com>
23054 * config/i386/i386.c (ix86_code_end): Use {FIRST,LAST}_INT_REG.
23056 2017-05-02 Richard Biener <rguenther@suse.de>
23058 PR tree-optimization/80591
23060 2017-04-10 Richard Biener <rguenther@suse.de>
23062 * tree-ssa-structalias.c (find_func_aliases): Properly handle
23065 2017-05-02 Richard Biener <rguenther@suse.de>
23067 PR tree-optimization/80549
23068 * tree-cfgcleanup.c (mfb_keep_latches): New helper.
23069 (cleanup_tree_cfg_noloop): Create forwarders to known loop
23070 headers if they do not have a preheader.
23072 2017-05-02 Martin Liska <mliska@suse.cz>
23075 * common.opt: Fix typo.
23076 * doc/invoke.texi: Likewise.
23078 2017-05-01 Jan Beulich <jbeulich@suse.com>
23080 * config/i386/sse.md (xop_vpermil2<mode>3): Do not allow operand
23081 swapping, add (x,x,m,x,n) alternative.
23083 2017-05-01 Nathan Sidwell <nathan@acm.org>
23085 * calls.c (combine_pending_stack_adjustment_and_call): Remove
23086 unnecessary unadjusted_alignment check.
23088 2017-05-01 Xi Ruoyao <ryxi@stu.xidian.edu.cn>
23091 * cilk_common.c (expand_builtin_cilk_detach): Move pedigree
23093 * gimplify.c (gimplify_cilk_detach): New function.
23094 (gimplify_call_expr, gimplify_modify_expr): Call it as needed.
23095 * tree-core.h: Document EXPR_CILK_SPAWN.
23096 * tree.h (EXPR_CILK_SPAWN): Define.
23098 2017-05-01 David Malcolm <dmalcolm@redhat.com>
23100 * diagnostic-show-locus.c (layout::get_expanded_location): Rewrite
23101 to use new fixit_hint representation, using the "replace" logic.
23102 (get_line_span_for_fixit_hint): Likewise.
23103 (layout::print_any_fixits): Likewise.
23104 (selftest::test_one_liner_many_fixits): Rename to...
23105 (selftest::test_one_liner_many_fixits_1): ...this, and update
23106 comment and expected output to reflect that the multiple fix-it
23107 hints are now consolidated into one insertion.
23108 (selftest::test_one_liner_many_fixits_2): New test.
23109 (selftest::test_diagnostic_show_locus_one_liner): Update for
23111 (selftest::test_fixit_consolidation): Update for fix-it API
23113 * diagnostic.c (print_parseable_fixits): Likewise.
23114 * edit-context.c (edited_line::m_line_events): Convert from
23115 auto_vec <line_event *> to auto_vec <line_event>.
23116 (class line_event): Convert from abstract base class to a concrete
23117 class, taking over the role of replace_event.
23118 (class insert_event): Delete.
23119 (class replace_event): Rename to class line_event. Convert to
23121 (edit_context::add_fixits): Reimplement.
23122 (edit_context::apply_insert): Delete.
23123 (edit_context::apply_replace): Rename to...
23124 (edit_context::apply_fixit): ...this. Convert to half-open range.
23125 (edited_file::apply_insert): Delete.
23126 (edited_file::apply_replace): Rename to...
23127 (edited_file::apply_fixit): ...this.
23128 (edited_line::~edited_line): Drop deletion of events.
23129 (edited_line::apply_insert): Delete.
23130 (edited_line::apply_replace): Rename to...
23131 (edited_line::apply_fixit): ...this. Convert to half-open range.
23132 Update for change to type of m_line_events.
23133 * edit-context.h (edit_context::apply_insert): Delete.
23134 (edit_context::apply_replace): Rename to...
23135 (edit_context::apply_fixit): ...this.
23137 2017-05-01 Martin Sebor <msebor@redhat.com>
23139 * gimple-ssa-sprintf.c (format_integer): Set knownrange when it's
23142 2017-05-01 Uros Bizjak <ubizjak@gmail.com>
23145 * config/i386/cpuid.h (__get_cpuid): Always return 0 when
23146 __get_cpuid_max returns 0.
23147 (__get_cpuid_count): Ditto.
23149 2017-05-01 Eric Botcazou <ebotcazou@adacore.com>
23151 * tree.c (substitute_in_expr) <tcc_vl_exp>: Also inline a call if the
23152 replacement expression is another instance of one of its arguments.
23154 2017-05-01 Jakub Jelinek <jakub@redhat.com>
23157 * rtlanal.c (reg_set_p): If reg is a stack_pointer_rtx, also
23158 check for stack push/pop autoinc.
23159 * config/i386/i386.c (ix86_agi_dependent): Return false
23160 if the only reason why modified_in_p returned true is that
23161 addr is SP based and set_insn is a push or pop.
23163 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
23165 * ipa-inline.c (compute_inlined_call_time): Remove now unnecesary
23168 2017-04-29 Jan Hubicka <hubicka@ucw.cz>
23171 * ipa-inline-analysis.c (dump_predicate): Add optional parameter NL.
23172 (account_size_time): Use two predicates - exec_pred and
23174 (evaluate_conditions_for_known_args): Compute both clause and
23176 (evaluate_properties_for_edge): Evaulate both clause and nonspec_clause.
23177 (inline_summary_t::duplicate): Update.
23178 (estimate_function_body_sizes): Caluculate exec and nonconst predicates
23180 (compute_inline_parameters): Likewise.
23181 (estimate_edge_size_and_time): Update caluclation of time.
23182 (estimate_node_size_and_time): Compute both time and nonspecialized
23184 (estimate_ipcp_clone_size_and_time): Update.
23185 (inline_merge_summary): Update.
23186 (do_estimate_edge_time): Update.
23187 (do_estimate_edge_size): Update.
23188 (do_estimate_edge_hints): Update.
23189 (inline_read_section, inline_write_summary): Stream both new predicates.
23190 * ipa-inline.c (compute_uninlined_call_time): Take uninlined_call_time
23192 (compute_inlined_call_time): Cleanup.
23193 (big_speedup_p): Update.
23194 (edge_badness): Update.
23195 * ipa-inline.h (INLINE_TIME_SCALE): Remove.
23196 (size_time_entry): Replace predicate by exec_predicate and
23197 nonconst_predicate.
23198 (edge_growth_cache_entry): Cache both time nad nonspecialized time.
23199 (estimate_edge_time): Return also nonspec_time.
23200 (reset_edge_growth_cache): Update.
23202 2017-04-29 Jakub Jelinek <jakub@redhat.com>
23204 PR rtl-optimization/80491
23205 * ifcvt.c (noce_process_if_block): When looking for x setter
23206 with missing else_bb, don't check only the insn right before
23207 cond_earliest, but look for the last insn that x is modified in
23208 within the same bb.
23210 PR rtl-optimization/80491
23211 * alias.c (memory_modified_in_insn_p): Return true for CALL_INSNs.
23213 2017-04-29 Marc Glisse <marc.glisse@inria.fr>
23215 PR tree-optimization/80487
23216 * tree-ssa-alias.c (stmt_kills_ref_p): Handle stpncpy and strncpy.
23218 2017-04-29 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23220 PR tree-optimization/79697
23221 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Check if callee
23222 is BUILT_IN_STRDUP, BUILT_IN_STRNDUP, BUILT_IN_REALLOC.
23223 (propagate_necessity): Check if def_callee is BUILT_IN_STRDUP or
23225 * gimple-fold.c (gimple_fold_builtin_realloc): New function.
23226 (gimple_fold_builtin): Call gimple_fold_builtin_realloc.
23228 2017-04-28 Martin Sebor <msebor@redhat.com>
23230 PR tree-optimization/80523
23231 * gimple-ssa-sprintf.c (target_to_host_charmap): New global variable.
23232 (init_target_to_host_charmap, target_to_host, target_strtol10): New
23234 (maybe_warn, format_directive, parse_directive): Use new functions.
23235 (pass_sprintf_length::execute): Call init_target_to_host_charmap.
23237 2017-04-28 Marc Glisse <marc.glisse@inria.fr>
23239 * match.pd (X+Z OP Y+Z, X-Z OP Y-Z, Z-X OP Z-Y): New transformations.
23241 2017-04-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
23243 * configure.ac (SYSTEM_HEADER_DIR, BUILD_SYSTEM_HEADER_DIR,
23244 target_header_dir): Set correctly.
23245 * configure: Regenerated.
23246 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
23247 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
23248 instead of SYSTEM_HEADER_DIR.
23250 2017-04-28 Jan Hubicka <hubicka@ucw.cz>
23252 * ipa-cp.c (perform_estimation_of_a_value): Turn time to sreal.
23253 (estimate_local_effects): Likewise.
23254 * ipa-inline.c (compute_inlined_call_time, want_inline_small_function_p,
23255 edge_badness, inline_small_functions, dump_overall_stats): LIkewise.
23256 * ipa-inline.h (edge_growth_cache_entry, estimate_time_after_inlining,
23257 estimate_ipcp_clone_size_and_time, do_estimate_edge_time,
23258 do_estimate_edge_time, estimate_edge_time): Likewise.
23259 * ipa-inline-analysis.c (estimate_node_size_and_time,
23260 estimate_ipcp_clone_size_and_time, do_estimate_edge_time): Likewise.
23261 (estimate_time_after_inlining): Remove.
23263 2017-04-28 Martin Liska <mliska@suse.cz>
23265 * doc/gcov.texi: Enhance documentation of gcov.
23267 2017-04-28 Martin Liska <mliska@suse.cz>
23269 * doc/gcov.texi: Sort options in alphabetic order.
23270 * doc/gcov-dump.texi: Likewise.
23271 * doc/gcov-tool.texi: Likewise.
23272 * gcov.c (print_usage): Likewise.
23273 * gcov-dump.c (print_usage): Likewise.
23274 * gcov-tool.c (print_merge_usage_message): Likewise.
23275 (print_rewrite_usage_message): Likewise.
23276 (print_overlap_usage_message): Likewise.
23278 2017-04-28 Martin Liska <mliska@suse.cz>
23280 PR gcov-profile/53915
23281 * gcov.c (format_gcov): Print 'NAN %' when top > bottom.
23283 2017-04-28 Martin Liska <mliska@suse.cz>
23285 PR gcov-profile/79891
23286 * gcov.c (add_line_counts): Assign BBs to lines just if the BB
23287 is marked by compiler as living on a line.
23288 (get_cycles_count): Remove usage of the union.
23289 (output_intermediate_file): Likewise.
23290 (find_source): Fix GNU coding style.
23291 (accumulate_line_counts): Remove old non-all block mode.
23292 (output_lines): Remove usage of the union.
23293 * profile.c (output_location): Include all BBs, even if
23294 belonging to a same line (and file) as a previous BB.
23296 2017-04-28 Martin Liska <mliska@suse.cz>
23298 * gcov.c (process_args): Handle new argument 'w'.
23299 (read_graph_file): Assign ID to BBs.
23300 (output_branch_count): Display BB # if verbose flag is set.
23301 (output_lines): Likewise for arcs.
23302 (print_usage): Add '--verbose' option help.
23303 * doc/gcov.texi: Document --verbose (-w) option.
23305 2017-04-28 Martin Liska <mliska@suse.cz>
23307 * gcov.c (struct block_location_info): New struct.
23308 (process_file): Fill up the new structure.
23309 (read_graph_file): Replace usage of encoding by the newly added
23311 (add_line_counts): Likewise.
23312 (accumulate_line_counts): Remove usage of the union.
23313 (function_info::function_info): New function.
23314 (function_info::~function_info): Likewise.
23315 (process_file): Call delete instead of release_function.
23316 (release_function): Release the function.
23317 (release_structures): Call delete instead of release_function.
23318 (solve_flow_graph): Replace usage of num_blocks.
23319 (find_exception_blocks): Likewise.
23320 (output_lines): Fix GNU coding style.
23322 2017-04-28 Martin Liska <mliska@suse.cz>
23325 * coverage.c (coverage_remove_note_file): New function.
23326 * coverage.h: Declare the function.
23327 * toplev.c (finalize): Clean if an error has been seen.
23329 2017-04-28 Martin Liska <mliska@suse.cz>
23331 PR gcov-profile/80031
23332 * gcov-dump.c (tag_blocks): Just print number of basic blocks.
23333 * gcov-io.h (GCOV_TAG_BLOCKS_NUM): Remove unused macro.
23334 * gcov.c (read_graph_file): Read just number of blocks.
23335 * profile.c (branch_prob): Do not stream 0 flags per a basic
23338 2017-04-28 Martin Liska <mliska@suse.cz>
23340 * gcov-dump.c (tag_*): Add new argument to declarations.
23341 (dump_gcov_file): Likewise.
23342 (tag_blocks): Add and use new argument depth.
23343 (tag_arcs): Likewise.
23344 (tag_lines): Likewise.
23345 (tag_counters): Likewise.
23346 (tag_summary): Likewise.
23347 (dump_working_sets): Use depth to do a proper indentation.
23349 2017-04-28 Jakub Jelinek <jakub@redhat.com>
23352 * cgraph.h (symtab_node::debug_symtab): No longer inline.
23353 * symtab.c (symtab_node::debug_symtab): Move definition here.
23355 2017-04-28 Richard Biener <rguenther@suse.de>
23357 * lto-streamer.h (LTO_major_version): Bump to 7.
23359 2017-04-28 Richard Biener <rguenther@suse.de>
23361 * tree-vrp.c (assert_info): New struct.
23362 (add_assert_info): New helper.
23363 (register_edge_assert_for_2): Refactor to add asserts to a vector
23365 (register_edge_assert_for_1): Likewise.
23366 (register_edge_assert_for): Likewise.
23367 (finish_register_edge_assert_for): New helper actually registering
23368 asserts where live on edge.
23369 (find_conditional_asserts): Adjust.
23370 (find_switch_asserts): Likewise.
23371 (evrp_dom_walker::try_find_new_range): Generalize.
23372 (evrp_dom_walker::before_dom_children): Use register_edge_assert_for.
23374 2017-04-27 Marek Polacek <polacek@redhat.com>
23377 * fold-const.c (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Convert
23378 arg10 and arg11 to itype.
23380 2017-04-27 Jonathan Wakely <jwakely@redhat.com>
23382 * doc/extend.texi (Object Size Checking): Improve grammar.
23384 2017-04-27 Richard Earnshaw <rearnsha@arm.com>
23387 * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Ensure
23388 that the logic for permitting reciprocal estimates matches that
23391 2017-04-27 Jakub Jelinek <jakub@redhat.com>
23394 * tree.c (type_cache_hasher::equal): Only compare
23395 TYPE_TYPELESS_STORAGE flag on non-aggregate element types.
23396 (build_array_type_1): Only hash TYPE_TYPELESS_STORAGE flag on
23397 non-aggregate element types.
23398 * tree.h (TYPE_TYPELESS_STORAGE): Fix comment typo, add more details
23399 about the flag on ARRAY_TYPEs in the comment, formatting fix.
23401 2017-04-27 Richard Biener <rguenther@suse.de>
23403 PR middle-end/80533
23404 * emit-rtl.c (set_mem_attributes_minus_bitpos): When
23405 stripping ARRAY_REFs from MEM_EXPR make sure we're not
23406 keeping a reference to a trailing array.
23408 2017-04-27 Richard Biener <rguenther@suse.de>
23410 PR middle-end/80539
23411 * tree-chrec.c (chrec_fold_plus_poly_poly): Deal with not
23412 being in loop-closed SSA form conservatively.
23413 (chrec_fold_multiply_poly_poly): Likewise.
23415 2017-04-27 Tamar Christina <tamar.christina@arm.com>
23417 PR middle-end/79665
23418 * expr.c (expand_expr_real_2): Move TRUNC_MOD_EXPR, FLOOR_MOD_EXPR,
23419 CEIL_MOD_EXPR, ROUND_MOD_EXPR cases.
23421 2017-04-27 Jakub Jelinek <jakub@redhat.com>
23424 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): Remove.
23425 (aarch64_function_arg_alignment): Return unsigned int again, but still
23426 ignore TYPE_FIELDS chain decls other than FIELD_DECLs.
23427 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
23428 Don't emit -Wpsabi note.
23429 (aarch64_function_arg_boundary): Likewise.
23430 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
23433 2017-04-26 Nathan Sidwell <nathan@acm.org>
23435 * tree.h (crc32_unsigned_n): Declare.
23436 (crc32_unsigned, crc32_unsigned): Make inline.
23437 * tree.c (crc32_unsigned_bits): Replace with ...
23438 (crc32_unsigned_n): ... this.
23439 (crc32_unsigned, crc32_byte): Remove.
23440 (crc32_string): Remove unnecessary braces.
23442 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
23444 * ipa-cp.c (estimate_local_effects): Convert sreal to int.
23445 * ipa-inline-analysis.c (MAX_TIME): Remove.
23446 (account_size_time): Use sreal for time.
23447 (dump_inline_summary): Update.
23448 (estimate_function_body_sizes): Update.
23449 (estimate_edge_size_and_time): Update.
23450 (estimate_calls_size_and_time): Update.
23451 (estimate_node_size_and_time): Update.
23452 (inline_merge_summary): Update.
23453 (inline_update_overall_summary): Update.
23454 (estimate_time_after_inlining): Update.
23455 (inline_read_section): Update.
23456 (inline_write_summary): Update.
23457 * ipa-inline.c (compute_uninlined_call_time): Update.
23458 (compute_inlined_call_time): Update.
23459 (recursive_inlining): Update.
23460 (inline_small_functions): Update.
23461 (dump_overall_stats): Update.
23462 * ipa-inline.h: Include sreal.h.
23463 (size_time_entry): Turn time to sreal.
23464 (inline_summary): Turn self_time nad time to sreal.
23466 2017-04-25 Jan Hubicka <hubicka@ucw.cz>
23468 * sreal.c: Include backend.h, tree.h, gimple.h, cgraph.h and
23470 (sreal::stream_out, sreal::stream_in): New.
23471 * sreal.h (sreal::stream_out, sreal::stream_in): Declare.
23473 2017-04-25 Jakub Jelinek <jakub@redhat.com>
23475 * Makefile.in (s-options): Invoke opt-gather.awk with LC_ALL=C in the
23478 2017-04-25 Uros Bizjak <ubizjak@gmail.com>
23481 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
23483 (dimode_scalar_chain::compute_convert_gain): Ditto.
23484 (dimode_scalar_chain::make_vector_copies): Ditto.
23485 (dimode_scalar_chain::convert_reg): Ditto.
23486 (dimode_scalar_chain::convert_insn): Ditto.
23487 * config/i386/sse.md (VI24_AVX512BW_1): Remove mode iterator.
23488 (VI248_AVX512BW_1): New mode iterator.
23489 (<mask_codefor>ashr<mode>3<mask_name>): Merge insn pattern with
23490 <mask_codefor>ashrv2di3<mask_name> insn using VI248_AVX512BW_1
23493 2017-04-25 Martin Sebor <msebor@redhat.com>
23495 PR tree-optimization/80497
23496 * gimple-ssa-sprintf.c (get_int_range): Avoid assuming all integer
23497 constants are representable in HOST_WIDE_INT.
23498 (parse_directive): Ditto.
23500 2017-04-25 Martin Sebor <msebor@redhat.com>
23503 * dominance.c (dom_info::m_n_basic_blocks): Change type to unsigned.
23504 (new_zero_array): Adjust signature.
23505 (dom_info::dom_init): Used unsigned rather that size_t.
23506 (dom_info::dom_info): Same.
23508 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23509 Jakub Jelinek <jakub@redhat.com>
23512 * config/arm/arm.c: Include gimple.h.
23513 (aapcs_layout_arg): Emit -Wpsabi note if arm_needs_doubleword_align
23514 returns negative, increment ncrn only if it returned positive.
23515 (arm_needs_doubleword_align): Return int instead of bool,
23516 ignore DECL_ALIGN of non-FIELD_DECL TYPE_FIELDS chain
23517 members, but if there is any such non-FIELD_DECL
23518 > PARM_BOUNDARY aligned decl, return -1 instead of false.
23519 (arm_function_arg): Emit -Wpsabi note if arm_needs_doubleword_align
23520 returns negative, increment nregs only if it returned positive.
23521 (arm_setup_incoming_varargs): Likewise.
23522 (arm_function_arg_boundary): Emit -Wpsabi note if
23523 arm_needs_doubleword_align returns negative, return
23524 DOUBLEWORD_ALIGNMENT only if it returned positive.
23526 2017-04-25 Marek Polacek <polacek@redhat.com>
23529 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
23530 first argument to type.
23532 2017-04-25 Bill Seurer <seurer@linux.vnet.ibm.com>
23535 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Change
23536 type checks to test for compatibility instead of equality.
23538 2017-04-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23539 Jakub Jelinek <jakub@redhat.com>
23542 * config/aarch64/aarch64.c (struct aarch64_fn_arg_alignment): New
23544 (aarch64_function_arg_alignment): Return aarch64_fn_arg_alignment
23545 struct. Ignore DECL_ALIGN of decls other than FIELD_DECL for
23546 the alignment computation, but return their maximum in warn_alignment.
23547 (aarch64_layout_arg): Adjust aarch64_function_arg_alignment caller.
23548 Emit a -Wpsabi note if warn_alignment is 16 bytes, but alignment
23550 (aarch64_function_arg_boundary): Likewise. Simplify using MIN/MAX.
23551 (aarch64_gimplify_va_arg_expr): Adjust aarch64_function_arg_alignment
23554 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23556 * config/arc/simdext.md (dmpyh): Fix typo.
23558 2017-04-25 Richard Biener <rguenther@suse.de>
23560 PR tree-optimization/80492
23561 * alias.c (compare_base_decls): Handle registers with asm
23562 specification conservatively.
23563 * tree-ssa-alias.c (decl_refs_may_alias_p): Handle
23564 compare_base_decls returning dont-know properly.
23566 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23568 * config/arc/arc.c (LEGITIMATE_OFFSET_ADDRESS_P): Delete macro.
23569 (legitimate_offset_address_p): New function.
23570 (arc_legitimate_address_p): Use above function.
23572 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23574 * config/arc/arc.c (arc_output_mi_thunk): Emit PIC calls.
23576 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23578 * config/arc/arc.c (arc_conditional_register_usage): Use ACCL,
23579 ACCH registers whenever they are available.
23581 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23583 * config/arc/arc.c (arc_conditional_register_usage): Make D0, D1
23584 double regs fix when not used.
23586 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23588 * config/arc/arc.h (REGNO_OK_FOR_BASE_P): Consider also extension
23590 (REG_OK_FOR_INDEX_P_NONSTRICT): Likewise.
23591 (REG_OK_FOR_BASE_P_NONSTRICT): Likewise.
23593 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23595 * config/arc/arc.c (arc_output_addsi): Check for h-register class
23596 when emitting short ADD instructions.
23598 2017-04-25 Claudiu Zissulescu <claziss@synopsys.com>
23600 * config/arc/arc.md (cmpsi_cc_insn_mixed): Use 'h' register
23602 (cmpsi_cc_c_insn): Likewise.
23603 (cbranchsi4_scratch): Compute proper instruction length using
23604 compact_hreg_operand.
23605 * config/arc/predicates.md (compact_hreg_operand): New predicate.
23607 2017-04-25 Richard Biener <rguenther@suse.de>
23609 PR middle-end/80509
23610 * passes.c (pass_manager::pass_manager): Initialize
23611 m_name_to_pass_map.
23613 2017-04-25 Richard Biener <rguenther@suse.de>
23615 PR tree-optimization/79201
23616 * tree-ssa-sink.c (statement_sink_location): Handle calls.
23618 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23621 * config/s390/vector.md: Split MEM->GPR vector moves for
23622 non-s_operand addresses.
23624 2017-04-25 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
23627 * config/s390/predicates.md (reload_const_wide_int_operand): New
23629 * config/s390/s390.md ("movti"): Remove d/P alternative.
23630 ("movti_bigconst"): New pattern definition.
23632 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
23635 * s390-protos.h (s390_expand_cs_hqi): Removed.
23636 (s390_expand_cs, s390_expand_atomic_exchange_tdsi): New prototypes.
23637 * config/s390/s390.c (s390_emit_compare_and_swap): Handle all integer
23638 modes as well as CCZ1mode and CCZmode.
23639 (s390_expand_atomic_exchange_tdsi, s390_expand_atomic): Adapt to new
23640 signature of s390_emit_compare_and_swap.
23641 (s390_expand_cs_hqi): Likewise, make static.
23642 (s390_expand_cs_tdsi): Generate an explicit compare before trying
23643 compare-and-swap, in some cases.
23644 (s390_expand_cs): Wrapper function.
23645 (s390_expand_atomic_exchange_tdsi): New backend specific expander for
23647 (s390_match_ccmode_set): Allow CCZmode <-> CCZ1 mode.
23648 * config/s390/s390.md ("atomic_compare_and_swap<mode>"): Merge the
23649 patterns for small and large integers. Forbid symref memory operands.
23650 Move expander to s390.c. Require cc register.
23651 ("atomic_compare_and_swap<DGPR:mode><CCZZ1:mode>_internal")
23652 ("*atomic_compare_and_swap<TDI:mode><CCZZ1:mode>_1")
23653 ("*atomic_compare_and_swapdi<CCZZ1:mode>_2")
23654 ("*atomic_compare_and_swapsi<CCZZ1:mode>_3"): Use s_operand to forbid
23655 symref memory operands. Remove CC mode and call s390_match_ccmode
23657 ("atomic_exchange<mode>"): Allow and implement all integer modes.
23659 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
23661 * config/s390/s390.md (define_peephole2): New peephole to help
23662 combining the load-and-test pattern with volatile memory.
23664 2017-04-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
23666 * config/s390/s390.md ("cstorecc4"): Use load-on-condition and deal
23667 with CCZmode for TARGET_Z196.
23669 2017-04-25 Jakub Jelinek <jakub@redhat.com>
23671 PR rtl-optimization/80501
23672 * combine.c (make_compound_operation_int): Set subreg_code to SET
23673 even for AND with mask of the sign bit of mode.
23675 PR rtl-optimization/80500
23676 * loop-unroll.c (combine_var_copies_in_loop_exit): Call copy_rtx on
23677 sum's initial value.
23679 2017-04-25 Julian Brown <julian@codesourcery.com>
23680 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
23682 * config/aarch64/thunderx2t99.md (thunderx2t99_crc): New Reservation.
23684 2017-04-25 Marc Glisse <marc.glisse@inria.fr>
23686 * fold-const.c (tree_single_nonzero_warnv_p): Handle SSA_NAME.
23688 2017-04-25 Julian Brown <julian@codesourcery.com>
23689 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
23691 * config/aarch64/thunderx2t99.md (thunderx2t99_aes): New Reservation.
23692 (thunderx2t99_sha): New Reservation.
23694 2017-04-25 Julian Brown <julian@codesourcery.com>
23695 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
23697 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_set<mode>): Fix
23698 type for 1-element load.
23700 2017-04-24 Marc Glisse <marc.glisse@inria.fr>
23702 * match.pd (X/[ex]C CMP Y/[ex]C): New transformation.
23704 2017-04-24 Martin Jambor <mjambor@suse.cz>
23706 PR tree-optimization/80293
23707 * tree-sra.c (scalarizable_type_p): New parameter const_decl, make
23708 char arrays not totally scalarizable if it is false.
23709 (analyze_all_variable_accesses): Pass correct value in the new
23710 parameter. Add a statistics counter.
23712 2017-04-24 Jan Hubicka <hubicka@ucw.cz>
23714 PR middle-end/79931
23715 * ipa-devirt.c (dump_possible_polymorphic_call_targets): Fix ICE.
23717 2017-04-24 Richard Biener <rguenther@suse.de>
23719 PR tree-optimization/80494
23720 * tree-scalar-evolution.c (analyze_scalar_evolution_1): Bail
23721 out for complex types.
23723 2017-04-24 Richard Biener <rguenther@suse.de>
23725 * tree-ssa-sccvn.h (run_scc_vn): Adjust prototype.
23726 * tree-ssa-sccvn.c (print_scc): Print SCC size.
23727 (extract_and_process_scc_for_name): Never fail but drop SCC to varying.
23728 (DFS): Adjust and never fail.
23729 (sccvn_dom_walker::fail): Remove.
23730 (sccvn_dom_walker::before_dom_children): Adjust.
23731 (run_scc_vn): Likewise and never fail.
23732 * tree-ssa-pre.c (pass_pre::execute): Adjust.
23733 (pass_fre::execute): Likewise.
23735 2017-04-24 Richard Biener <rguenther@suse.de>
23737 PR tree-optimization/79725
23738 * tree-ssa-sink.c (statement_sink_location): Return whether
23739 failure reason was zero uses. Move that check later.
23740 (sink_code_in_bb): Deal with zero uses by removing the stmt
23743 2017-04-24 Richard Biener <rguenther@suse.de>
23746 * tree-ssa-uninit.c (warn_uninitialized_vars): Handle some
23747 pointer-based references.
23749 2017-04-24 Richard Biener <rguenther@suse.de>
23752 * pass_manager.h (pass_manager::operator new): Remove.
23753 (pass_manager::operator delete): Likewise.
23754 * passes.c (pass_manager::operator new): Remove.
23755 (pass_manager::operator delete): Likewise.
23756 (pass_manager::pass_manager): Zero individual pass members.
23758 2017-04-23 Uros Bizjak <ubizjak@gmail.com>
23761 * config/i386/i386.c (dimode_scalar_to_vector_candidate_p)
23762 <case ASHIFT, case LSHIFTRT>: Also consider variable shifts.
23763 Check "XEXP (src, 1)" operand here.
23764 <case PLUS, case MINUS, case IOR, case XOR, case AND>:
23765 Check "XEXP (src, 1)" operand here.
23766 (dimode_scalar_chain::make_vector_copies): Detect count register
23767 of a shift instruction. Zero extend count register from QImode
23768 to DImode to satisfy vector shift pattern count operand predicate.
23769 Substitute vector shift count operand with a DImode copy.
23770 (dimode_scalar_chain::convert_reg): Ditto, zero-extend from
23773 2017-04-21 Uros Bizjak <ubizjak@gmail.com>
23775 * config/i386/i386.md (*extzvqi_mem_rex64): Move above *extzv<mode>.
23776 Remove UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
23777 (*insvqi_1_mem_rex64): Move above insv<mode>_1. Remove
23778 UNSPEC_NOREX_MEM tag. Update corresponding peephole2 pattern.
23779 (UNSPEC_NOREX_MEM): Remove definition.
23781 2017-04-21 Richard Biener <rguenther@suse.de>
23783 PR tree-optimization/79547
23784 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
23785 Handle strlen, strcmp, strncmp, strcasecmp, strncasecmp, memcmp,
23786 bcmp, strspn, strcspn, __builtin_object_size and __builtin_constant_p
23787 without any constraints.
23789 2017-04-21 Richard Biener <rguenther@suse.de>
23791 PR tree-optimization/78847
23792 * fold-const.c (split_tree): Handle POINTER_PLUS_EXPR.
23794 2017-04-21 Richard Biener <rguenther@suse.de>
23796 * tree.h (build_qualified_type): Annotate with CXX_MEM_STAT_INFO.
23797 (build_distinct_type_copy): Likewise.
23798 (build_variant_type_copy): Likewise.
23799 * tree.c (build_qualified_type): Pass down mem-stat info.
23800 (build_distinct_type_copy): Likewise.
23801 (build_variant_type_copy): Likewise.
23803 2017-04-21 Richard Biener <rguenther@suse.de>
23805 PR tree-optimization/80237
23806 * tree-ssa-pre.c (find_leader_in_sets): Add third set argument,
23808 (phi_translate_1): Also allow a leader in AVAIL_OUT of pred
23809 for a simplified result.
23811 2016-04-21 Richard Biener <rguenther@suse.de>
23813 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Do not require
23814 sth as strict as a simple_iv but a chrec without symbols and an
23815 operand defined in the loop we are peeling (and not some subloop).
23816 (propagate_constants_for_unrolling): Propagate all constants.
23818 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
23821 * config/i386/i386.c (print_reg): Remove assert for disalowed
23822 regno values, call output_operand_lossage instead.
23824 2017-04-20 Uros Bizjak <ubizjak@gmail.com>
23827 * config/i386/constraints.md (Yc): New register constraint.
23828 * config/i386/i386.md (*float<SWI48:mode><MODEF:mode>2_mixed):
23829 Use Yc constraint for alternative 2 of operand 0. Remove
23830 preferred_for_speed attribute.
23832 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
23834 * omp-low.c (lower_lastprivate_clauses): Correct handling of linear and
23835 lastprivate clauses in SIMT case.
23837 2017-04-20 Volker Reichelt <v.reichelt@netcologne.de>
23839 * doc/invoke.texi (-Wextra-semi): Document new warning option.
23841 2017-04-20 Richard Biener <rguenther@suse.de>
23843 PR tree-optimization/57796
23844 * tree-vect-stmts.c (vect_model_store_cost): Cost scatters
23845 as N scalar stores.
23846 (vect_model_load_cost): Cost gathers as N scalar loads.
23848 2017-04-20 Richard Biener <rguenther@suse.de>
23850 * ggc-page.c (ggc_allocated_p): Rename to ...
23851 (safe_lookup_page_table_entry): ... this and return the lookup
23853 (gt_ggc_m_S): Use safe_lookup_page_table_entry.
23855 2017-04-20 Richard Biener <rguenther@suse.de>
23857 PR tree-optimization/80453
23858 * tree-ssa-sccvn.h (struct vn_phi_s): Add cclhs and ccrhs members.
23859 * tree-ssa-sccvn.c (cond_stmts_equal_p): Use recorded lhs and rhs
23860 from the conditions.
23861 (vn_phi_eq): Pass them down.
23862 (vn_phi_lookup): Record them.
23863 (vn_phi_insert): Likewise.
23865 2017-04-20 Matthew Fortune <matthew.fortune@imgtec.com>
23867 * config/mips/mips.c (mips_expand_vec_perm_const): Re-fix
23868 uninitialized variable warning to avoid buffer overrun.
23870 2017-04-20 Alexander Monakov <amonakov@ispras.ru>
23873 * doc/invoke.texi (-Wmissing-field-initializers): Mention that warning
23874 is suppressed for '{ 0 }' in C.
23876 2017-04-20 Jakub Jelinek <jakub@redhat.com>
23878 * BASE-VER: Set to 8.0.0.
23880 2017-04-20 Thomas Preud'homme <thomas.preudhomme@arm.com>
23882 * config/arm/arm.c (arm_elf_asm_cdtor): Create non-default
23883 priority .init_array and .fini_array section with SECTION_NOTYPE
23886 2017-04-20 Jakub Jelinek <jakub@redhat.com>
23888 PR middle-end/80423
23889 * tree.h (build_array_type): Add typeless_storage default argument.
23890 * tree.c (type_cache_hasher::equal): Also compare
23891 TYPE_TYPELESS_STORAGE flag for ARRAY_TYPEs.
23892 (build_array_type): Add typeless_storage argument, set
23893 TYPE_TYPELESS_STORAGE to it, if shared also hash it, and pass to
23895 (build_nonshared_array_type): Adjust build_array_type_1 caller.
23896 (build_array_type): Likewise. Add typeless_storage argument.
23898 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
23899 Jakub Jelinek <jakub@redhat.com>
23901 PR tree-optimization/80426
23902 * tree-vrp.c (extract_range_from_binary_expr_1): For an additive
23903 operation on symbolic operands, also compute the overflow for the
23904 invariant part when the operation degenerates into a negation.
23906 2017-04-19 Jakub Jelinek <jakub@redhat.com>
23909 * dwarf2out.c (modified_type_die, gen_type_die_with_usage):
23910 Check for t with zero TYPE_QUALS_NO_ADDR_SPACE.
23913 * tree-ssa-loop-manip.c (find_uses_to_rename_def): Ignore debug uses.
23915 2017-04-19 Georg-Johann Lay <avr@gjlay.de>
23918 * config/avr/avr.c (tree.h): Include it.
23919 (cgraph.h): Include it.
23920 (avr_encode_section_info): Don't warn for uninitialized progmem
23921 variable if it's just an alias.
23923 2017-04-19 Richard Biener <rguenther@suse.de>
23926 * auto-profile.c (afdo_vpt_for_early_inline): Update SSA
23927 when needed by AutoPGO.
23929 2017-04-19 Paulo J. Matos <paulo@matos-sorge.com>
23932 * doc/lto.texi: Remove an extra 'that'.
23934 2017-04-19 Segher Boessenkool <segher@kernel.crashing.org>
23936 PR rtl-optimization/80429
23937 * ira.c (split_live_ranges_for_shrink_wrap): Don't split regs that
23938 are only used in debug insns.
23940 2017-04-19 Eric Botcazou <ebotcazou@adacore.com>
23941 Vladimir Makarov <vmakarov@redhat.com>
23943 * config/sparc/predicates.md (input_operand): Add comment. Return
23944 true for any memory operand when LRA is in progress.
23945 * config/sparc/sparc.c (sparc_expand_move): Minor formatting fix.
23947 2017-04-18 Jeff Law <law@redhat.com>
23950 * mips.md ({return,simple_return}_internal): Do not overwrite
23953 2017-04-18 Jakub Jelinek <jakub@redhat.com>
23955 PR tree-optimization/80443
23956 * tree-vrp.c (intersect_ranges): For signed 1-bit precision type,
23957 instead of adding 1, subtract -1 and similarly instead of subtracting
23960 2017-04-18 Richard Sandiford <richard.sandiford@arm.com>
23962 PR rtl-optimization/80357
23963 * haifa-sched.c (tmp_bitmap): New variable.
23964 (model_recompute): Handle duplicate use records.
23965 (alloc_global_sched_pressure_data): Initialize tmp_bitmap.
23966 (free_global_sched_pressure_data): Free it.
23968 2017-04-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
23971 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
23972 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
23973 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
23974 instead of SYSTEM_HEADER_DIR.
23976 2017-04-18 Jeff Law <law@redhat.com>
23978 PR middle-end/80422
23979 * cfgcleanup.c (try_crossjump_to_edge): Verify SRC1 and SRC2 have
23980 predecessors after walking up the insn chain.
23982 2017-04-18 Jakub Jelinek <jakub@redhat.com>
23985 * dwarf2out.c (modified_type_die): Try harder not to emit internal
23986 sizetype type into debug info.
23988 2017-04-18 Michael Meissner <meissner@linux.vnet.ibm.com>
23991 * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Eliminate
23992 unneeded test for TARGET_UPPER_REGS_SF.
23993 * config/rs6000/vsx.md (vsx_extract_v4sf_var): Likewise.
23995 2017-04-18 Jakub Jelinek <jakub@redhat.com>
23998 * sancov.c (sancov_pass): Use gsi_start_nondebug_after_labels_bb
23999 instead of gsi_after_labels.
24001 2017-04-18 Jeff Law <law@redhat.com>
24003 * regcprop.c (maybe_mode_change): Avoid creating copies of the
24007 2017-04-13 Jeff Law <law@redhat.com>
24008 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
24009 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
24011 2017-04-18 Georg-Johann Lay <avr@gjlay.de>
24014 * config/avr/avr.c (intl.h): Include it.
24015 (avr_pgm_check_var_decl) [reason]: Wrap diagnostic snippets into _().
24017 2017-04-18 Martin Liska <mliska@suse.cz>
24019 PR gcov-profile/78783
24020 * gcov-tool.c (gcov_output_files): Validate that destination
24021 file is either removed by the tool or by a user.
24023 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
24024 Guy Benyei <guybe@mellanox.com>
24026 * config/arc/arc.c (arc_reorg): Move loop_end_id into a more local
24027 block, and do not negate it, the stored id is already negative.
24029 2017-04-14 Andrew Burgess <andrew.burgess@embecosm.com>
24031 * config/arc/arc.md (doloop_begin_i): Use @pcl assembler syntax.
24033 2017-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
24036 * config/rs6000/rs6000-cpus.def (OTHER_P9_VECTOR_MASKS): Define
24037 masks of options that should be turned off if the VSX vector
24038 options are turned off.
24039 (OTHER_P8_VECTOR_MASKS): Likewise.
24040 (OTHER_VSX_VECTOR_MASKS): Likewise.
24041 * config/rs6000/rs6000.c (rs6000_option_override_internal): Call
24042 rs6000_disable_incompatible_switches to validate no type switches
24044 (rs6000_incompatible_switch): New function to disallow turning on
24045 other vector options if -mno-vsx, -mno-power8-vector, or
24046 -mno-power9-vector are specified.
24048 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
24050 * config/arc/arc.h (CRT_CALL_STATIC_FUNCTION): Use long calls.
24052 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
24054 * config/arc/arc-protos.h (arc_decl_pretend_args): Remove.
24055 * config/arc/arc.c (arc_decl_pretend_args): Likewise.
24056 * config/arc/arc.h (CFA_FRAME_BASE_OFFSET): Likewise.
24057 (ARG_POINTER_CFA_OFFSET): Likewise.
24059 2017-04-14 Claudiu Zissulescu <claziss@synopsys.com>
24061 * config/arc/arc.c (arc_mode_dependent_address_p): Relax
24062 conditions to take advantage of various optimizations.
24064 2017-04-13 Jeff Law <law@redhat.com>
24066 * config/mips.mips.md (zero_extendsidi2): Do not allow SP to appear
24067 in operands[1] if it is a MEM and TARGET_MIPS16 is active.
24068 (zero_extendsidi2_dext): Likewise.
24070 2017-04-13 Jakub Jelinek <jakub@redhat.com>
24073 * fold-const.c (fold_ternary_loc): Revert
24074 use op0 instead of fold_convert_loc (loc, type, arg0) part of
24077 2017-04-13 Vladimir Makarov <vmakarov@redhat.com>
24079 PR rtl-optimization/80343
24080 * lra-remat.c (update_scratch_ops): Assign original hard reg to
24081 new scratch pseudo.
24083 2017-04-13 Denis Khalikov <d.khalikov@partner.samsung.com>
24086 * ubsan.c (ubsan_expand_bounds_ifn): Pass original index
24087 to ubsan_encode_value.
24089 2017-04-13 Jeff Law <law@redhat.com>
24091 * reload1.c (eliminate_regs_1): Call gen_rtx_raw_SUBREG for SUBREGs
24092 appearing in DEBUG_INSNs.
24094 2017-04-13 Martin Liska <mliska@suse.cz>
24096 PR gcov-profile/80413
24097 * gcov-io.c (gcov_write_string): Copy to buffer just when
24098 allocated size is greater than zero.
24100 2017-04-13 Jakub Jelinek <jakub@redhat.com>
24103 * dwarf2out.c (decls_for_scope): Ignore declarations of
24104 current_function_decl in BLOCK_NONLOCALIZED_VARS.
24106 2017-04-12 Jan Hubicka <hubicka@ucw.cz>
24109 * ipa-visibility.c (non_local_p): Fix typos.
24110 (localize_node): When localizing symbol in same comdat group,
24111 dissolve the group only when we know external symbols are going
24113 (function_and_variable_visibility): Do not localize DECL_EXTERNAL.
24115 2017-04-12 Jakub Jelinek <jakub@redhat.com>
24117 PR tree-optimization/79390
24118 * optabs.c (emit_conditional_move): If the preferred op2/op3 operand
24119 order does not result in usable sequence, retry with reversed operand
24125 * fold-const.c (fold_ternary_loc): Use op1 instead of arg1 as argument
24126 to fold_build2_loc. Convert TREE_OPERAND (tem, 0) to type. Use
24127 op0 instead of fold_convert_loc (loc, type, arg0).
24129 2017-04-12 Jeff Law <law@redhat.com>
24131 * genattrtab.c (write_eligible_delay): Verify DELAY_INSN still
24132 has a delay slot in the generated code.
24134 * config/cris/cris.md (cris_preferred_reload_class): Return
24135 GENNONACR_REGS rather than GENERAL_REGS.
24137 2017-04-12 Jakub Jelinek <jakub@redhat.com>
24140 * expr.c <CASE_CONVERT>: For EXPAND_INITIALIZER determine SIGN_EXTEND
24141 vs. ZERO_EXTEND based on signedness of treeop0's type rather than
24142 signedness of the result type.
24144 2017-04-12 Richard Biener <rguenther@suse.de>
24145 Jeff Law <law@redhat.com>
24147 PR tree-optimization/80359
24148 * tree-ssa-dse.c (maybe_trim_partially_dead_store): Do not
24149 trim stores to TARGET_MEM_REFs.
24151 2017-04-12 Richard Biener <rguenther@suse.de>
24153 PR tree-optimization/79390
24154 * gimple-ssa-split-paths.c (is_feasible_trace): Restrict
24155 threading case even more.
24157 2017-04-12 Segher Boessenkool <segher@kernel.crashing.org>
24160 * config/rs6000/sync.md (atomic_load<mode>, atomic_store<mode): Test
24161 for quad_address_p for TImode, instead of just not indexed_address.
24163 2017-04-12 Richard Biener <rguenther@suse.de>
24164 Bernd Edlinger <bernd.edlinger@hotmail.de>
24166 PR middle-end/79671
24167 * alias.c (component_uses_parent_alias_set_from): Handle
24168 TYPE_TYPELESS_STORAGE.
24169 (get_alias_set): Likewise.
24170 * tree-core.h (tree_type_common): Add typeless_storage flag.
24171 * tree.h (TYPE_TYPELESS_STORAGE): New macro.
24172 * stor-layout.c (place_union_field): Set TYPE_TYPELESS_STORAGE
24173 for types containing members with TYPE_TYPELESS_STORAGE.
24174 (place_field): Likewise.
24175 (layout_type): Likewise for ARRAY_TYPE.
24176 * lto-streamer-out.c (hash_tree): Hash TYPE_TYPELESS_STORAGE.
24177 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Stream
24178 TYPE_TYPELESS_STORAGE.
24179 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
24181 2017-04-12 Jakub Jelinek <jakub@redhat.com>
24184 * fold-const.c (fold_binary_loc) <case BIT_IOR_EXPR>: Convert arg0's
24185 first argument to type.
24187 2017-04-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24191 * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
24192 CONST0_RTX (mode) rather than const0_rtx where appropriate.
24193 (rs6000_expand_binop_builtin): Likewise.
24194 (rs6000_expand_ternop_builtin): Likewise; also add missing
24195 vsx_xxpermdi_* variants; also fix typo (arg1 => arg2) for
24196 vshasigma built-ins.
24197 * doc/extend.texi: Document that vec_xxpermdi's third argument
24198 must be a constant.
24200 2017-04-11 Uros Bizjak <ubizjak@gmail.com>
24202 * config/i386/i386.c (dimode_scalar_chain::compute_convert_gain):
24203 Use shift_const cost parameter when calculating gain of STV shifts.
24205 2017-04-11 Vladimir Makarov <vmakarov@redhat.com>
24207 PR rtl-optimization/70478
24208 * lra-constraints.c (process_alt_operands): Check memory for
24209 disfavoring memory insn operand.
24211 2017-04-11 Jakub Jelinek <jakub@redhat.com>
24213 PR middle-end/80100
24214 * simplify-rtx.c (simplify_binary_operation_1) <case IOR>: Perform
24215 left shift in unsigned HOST_WIDE_INT type.
24217 PR rtl-optimization/80385
24218 * simplify-rtx.c (simplify_unary_operation_1): Don't transform
24219 (not (neg X)) into (plus X -1) for complex or non-integral modes.
24222 * omp-low.c (scan_omp_task): Don't optimize away empty tasks
24223 if they have any depend clauses.
24225 2017-04-11 Martin Liska <mliska@suse.cz>
24228 * cgraph.c (cgraph_node::dump): Dump calls_comdat_local.
24229 * ipa-split.c (split_function): Create a local comdat symbol
24230 if caller is in a comdat group.
24232 2017-04-11 Martin Liska <mliska@suse.cz>
24235 * ipa-cp.c (determine_versionability): Handle calls_comdat_local
24238 2017-04-11 Martin Sebor <msebor@redhat.com>
24240 PR middle-end/80364
24241 * gimple-ssa-sprintf.c (get_int_range): Remove second argument and
24242 always use the int type. Use INTEGRAL_TYPE_P() rather than testing
24244 (directive::set_width, directive::set_precision, format_character):
24246 (parse_directive): Use INTEGRAL_TYPE_P() rather than testing for
24249 2017-04-11 Richard Earnshaw <rearnsha@arm.com>
24252 * config/arm/arm.c (arm_configure_build_target): When -mcpu and -arch
24253 conflict, set target->arch_name instead of target->cpu_name.
24255 2017-04-11 Richard Biener <rguenther@suse.de>
24257 PR tree-optimization/80374
24258 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Use
24259 build_zero_cst, remove fold_convertible_p check again.
24261 2017-04-11 Martin Liska <mliska@suse.cz>
24264 * ubsan.c (instrument_object_size): Do not instrument register
24267 2017-04-11 Jakub Jelinek <jakub@redhat.com>
24270 * config/i386/i386-builtin-types.def
24271 (V16HI_FTYPE_V16HI_INT_V16HI_UHI_COUNT,
24272 V16HI_FTYPE_V16HI_V8HI_V16HI_UHI_COUNT,
24273 V16SI_FTYPE_V16SI_INT_V16SI_UHI_COUNT,
24274 V16SI_FTYPE_V16SI_V4SI_V16SI_UHI_COUNT,
24275 V2DI_FTYPE_V2DI_INT_V2DI_UQI_COUNT,
24276 V2DI_FTYPE_V2DI_V2DI_V2DI_UQI_COUNT,
24277 V32HI_FTYPE_V32HI_INT_V32HI_USI_COUNT,
24278 V32HI_FTYPE_V32HI_V8HI_V32HI_USI_COUNT,
24279 V4DI_FTYPE_V4DI_INT_V4DI_UQI_COUNT,
24280 V4DI_FTYPE_V4DI_V2DI_V4DI_UQI_COUNT,
24281 V4SI_FTYPE_V4SI_INT_V4SI_UQI_COUNT,
24282 V4SI_FTYPE_V4SI_V4SI_V4SI_UQI_COUNT,
24283 V8DI_FTYPE_V8DI_INT_V8DI_UQI_COUNT,
24284 V8DI_FTYPE_V8DI_V2DI_V8DI_UQI_COUNT,
24285 V8HI_FTYPE_V8HI_INT_V8HI_UQI_COUNT,
24286 V8HI_FTYPE_V8HI_V8HI_V8HI_UQI_COUNT,
24287 V8SI_FTYPE_V8SI_INT_V8SI_UQI_COUNT,
24288 V8SI_FTYPE_V8SI_V4SI_V8SI_UQI_COUNT): New function type aliases.
24289 * config/i386/i386-builtin.def (__builtin_ia32_pslld512_mask,
24290 __builtin_ia32_pslldi512_mask, __builtin_ia32_psllq512_mask,
24291 __builtin_ia32_psllqi512_mask, __builtin_ia32_psrad512_mask,
24292 __builtin_ia32_psradi512_mask, __builtin_ia32_psraq512_mask,
24293 __builtin_ia32_psraqi512_mask, __builtin_ia32_psrld512_mask,
24294 __builtin_ia32_psrldi512_mask, __builtin_ia32_psrlq512_mask,
24295 __builtin_ia32_psrlqi512_mask, __builtin_ia32_psllwi128_mask,
24296 __builtin_ia32_pslldi128_mask, __builtin_ia32_psllqi128_mask,
24297 __builtin_ia32_psllw128_mask, __builtin_ia32_pslld128_mask,
24298 __builtin_ia32_psllq128_mask, __builtin_ia32_psllwi256_mask,
24299 __builtin_ia32_psllw256_mask, __builtin_ia32_pslldi256_mask,
24300 __builtin_ia32_pslld256_mask, __builtin_ia32_psllqi256_mask,
24301 __builtin_ia32_psllq256_mask, __builtin_ia32_psradi128_mask,
24302 __builtin_ia32_psrad128_mask, __builtin_ia32_psradi256_mask,
24303 __builtin_ia32_psrad256_mask, __builtin_ia32_psraqi128_mask,
24304 __builtin_ia32_psraq128_mask, __builtin_ia32_psraqi256_mask,
24305 __builtin_ia32_psraq256_mask, __builtin_ia32_psrldi128_mask,
24306 __builtin_ia32_psrld128_mask, __builtin_ia32_psrldi256_mask,
24307 __builtin_ia32_psrld256_mask, __builtin_ia32_psrlqi128_mask,
24308 __builtin_ia32_psrlq128_mask, __builtin_ia32_psrlqi256_mask,
24309 __builtin_ia32_psrlq256_mask, __builtin_ia32_psrawi256_mask,
24310 __builtin_ia32_psraw256_mask, __builtin_ia32_psrawi128_mask,
24311 __builtin_ia32_psraw128_mask, __builtin_ia32_psrlwi256_mask,
24312 __builtin_ia32_psrlw256_mask, __builtin_ia32_psrlwi128_mask,
24313 __builtin_ia32_psrlw128_mask, __builtin_ia32_psllwi512_mask,
24314 __builtin_ia32_psllw512_mask, __builtin_ia32_psrawi512_mask,
24315 __builtin_ia32_psraw512_mask, __builtin_ia32_psrlwi512_mask,
24316 __builtin_ia32_psrlw512_mask): Use _COUNT suffixed function type
24318 * config/i386/i386.c (ix86_expand_args_builtin): Rename last_arg_count
24319 flag to second_arg_count, handle 4 argument function type _COUNT
24320 aliases, handle second_arg_count on second argument rather than last.
24322 2017-04-10 Jeff Law <law@redhat.com>
24324 PR tree-optimization/80374
24325 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Do not try to
24326 record anything if we can not convert integer_zero_node to the
24329 2017-04-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
24332 * config/rs6000/rs6000.c (rs6000_option_override_internal):
24333 Enhance special handling given to the TARGET_P9_MINMAX option in
24334 relation to certain other options.
24336 2017-04-10 Bin Cheng <bin.cheng@arm.com>
24338 PR tree-optimization/80153
24339 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Check and
24340 remove POINTER_PLUS_EXPR's base part directly, rather than through
24343 2017-04-10 Richard Biener <rguenther@suse.de>
24344 Bin Cheng <bin.cheng@arm.com>
24346 PR tree-optimization/80153
24347 * tree-affine.c (aff_combination_to_tree): Get base pointer from
24348 the first element of pointer type aff_tree. Build result expr in
24350 (add_elt_to_tree): Convert to type unconditionally. Remove other
24351 fold_convert calls.
24352 * tree-ssa-loop-ivopts.c (alloc_iv): Pass in consistent types.
24353 (rewrite_use_nonlinear_expr): Check invariant using iv information.
24355 2017-04-10 Richard Biener <rguenther@suse.de>
24357 * tree-ssa-structalias.c (find_func_aliases): Properly handle
24360 2017-04-10 Vladimir Makarov <vmakarov@redhat.com>
24362 PR rtl-optimization/70478
24363 * lra-constraints.c (curr_small_class_check): New.
24364 (update_and_check_small_class_inputs): New.
24365 (process_alt_operands): Update curr_small_class_check. Disfavor
24366 alternative insn memory operands. Check available regs for small
24369 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
24372 * config/mips/mips.opt (-mvirt): Update description.
24373 * doc/invoke.texi (-mvirt): Likewise.
24375 2017-04-10 Richard Biener <rguenther@suse.de>
24377 PR middle-end/80362
24378 * fold-const.c (fold_binary_loc): Look at unstripped ops when
24379 looking for NEGATE_EXPR in -A / -B to A / B folding.
24381 2017-04-10 Martin Liska <mliska@suse.cz>
24383 PR gcov-profile/80224
24384 * gcov.c (print_usage): Fix usage string.
24385 (get_gcov_intermediate_filename): Remove.
24386 (output_gcov_file): Use both for normal and intermediate format.
24387 (generate_results): Do not initialize special file for
24388 intermediate format.
24390 2017-04-10 Richard Biener <rguenther@suse.de>
24392 PR tree-optimization/80304
24393 * tree-ssa-loop-im.c (ref_indep_loop_p_1): Also recurse
24396 2017-04-10 Nathan Sidwell <nathan@acm.org>
24399 * config/rs6000/rs6000.c (rs6000_vector_type): New.
24400 (rs6000_init_builtins): Use it.
24402 2016-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24404 * config/arm/arm.md (<mrc>): Add mode to SET source.
24405 (<mrrc>): Likewise.
24407 2017-04-10 Richard Biener <rguenther@suse.de>
24409 PR middle-end/80344
24410 * gimplify.c (is_gimple_mem_rhs_or_call): Allow CLOBBERs.
24412 2017-04-10 Jakub Jelinek <jakub@redhat.com>
24415 * config/i386/avx512fintrin.h (_mm512_reduce_add_epi32,
24416 _mm512_reduce_mul_epi32, _mm512_reduce_and_epi32,
24417 _mm512_reduce_or_epi32, _mm512_mask_reduce_add_epi32,
24418 _mm512_mask_reduce_mul_epi32, _mm512_mask_reduce_and_epi32,
24419 _mm512_mask_reduce_or_epi32, _mm512_reduce_min_epi32,
24420 _mm512_reduce_max_epi32, _mm512_reduce_min_epu32,
24421 _mm512_reduce_max_epu32, _mm512_mask_reduce_min_epi32,
24422 _mm512_mask_reduce_max_epi32, _mm512_mask_reduce_min_epu32,
24423 _mm512_mask_reduce_max_epu32, _mm512_reduce_add_ps,
24424 _mm512_reduce_mul_ps, _mm512_mask_reduce_add_ps,
24425 _mm512_mask_reduce_mul_ps, _mm512_reduce_min_ps, _mm512_reduce_max_ps,
24426 _mm512_mask_reduce_min_ps, _mm512_mask_reduce_max_ps,
24427 _mm512_reduce_add_epi64, _mm512_reduce_mul_epi64,
24428 _mm512_reduce_and_epi64, _mm512_reduce_or_epi64,
24429 _mm512_mask_reduce_add_epi64, _mm512_mask_reduce_mul_epi64,
24430 _mm512_mask_reduce_and_epi64, _mm512_mask_reduce_or_epi64,
24431 _mm512_reduce_min_epi64, _mm512_reduce_max_epi64,
24432 _mm512_mask_reduce_min_epi64, _mm512_mask_reduce_max_epi64,
24433 _mm512_reduce_min_epu64, _mm512_reduce_max_epu64,
24434 _mm512_mask_reduce_min_epu64, _mm512_mask_reduce_max_epu64,
24435 _mm512_reduce_add_pd, _mm512_reduce_mul_pd, _mm512_mask_reduce_add_pd,
24436 _mm512_mask_reduce_mul_pd, _mm512_reduce_min_pd, _mm512_reduce_max_pd,
24437 _mm512_mask_reduce_min_pd, _mm512_mask_reduce_max_pd): New intrinsics.
24439 2017-04-08 Vladimir Makarov <vmakarov@redhat.com>
24441 PR rtl-optimization/70478
24442 * lra-constraints.c: Reverse the last patch.
24444 2017-04-08 Andreas Tobler <andreast@gcc.gnu.org>
24446 * config/aarch64/aarch64-freebsd.h: Define MCOUNT_NAME.
24447 Add comment for WCHAR_T.
24449 2017-04-08 Martin Liska <mliska@suse.cz>
24452 2017-04-07 Martin Liska <mliska@suse.cz>
24455 * ipa-split.c (split_function): Add function part to a same comdat
24458 2017-04-08 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
24461 * config/rs6000/rs6000.c (expand_block_compare): Fix boundary check.
24463 2017-04-07 Pat Haugen <pthaugen@us.ibm.com>
24465 * rs6000/rs6000.c (vec_load_pendulum): Rename...
24466 (vec_pairing): ...to this.
24467 (power9_sched_reorder2): Rewrite code for pairing vector/vecload insns.
24468 (rs6000_sched_init): Adjust for name change.
24469 (struct rs6000_sched_context): Likewise.
24470 (rs6000_init_sched_context): Likewise.
24471 (rs6000_set_sched_context): Likewise.
24473 2017-04-07 Jakub Jelinek <jakub@redhat.com>
24479 * config/i386/avxintrin.h (_mm256_cvtsd_f64, _mm256_cvtss_f32): New
24481 * config/i386/avx512fintrin.h (_mm512_int2mask, _mm512_mask2int,
24482 _mm512_abs_ps, _mm512_mask_abs_ps, _mm512_abs_pd, _mm512_mask_abs_pd,
24483 _mm512_cvtsd_f64, _mm512_cvtss_f32): Likewise.
24485 2017-04-07 Andreas Tobler <andreast@gcc.gnu.org>
24487 * config/aarch64/aarch64-freebsd.h: Define WCHAR_TYPE.
24489 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
24491 PR rtl-optimization/70703
24492 * ira-color.c (update_conflict_hard_regno_costs): Use
24493 int64_t instead of HOST_WIDE_INT.
24495 2017-04-07 Vladimir Makarov <vmakarov@redhat.com>
24497 PR rtl-optimization/70478
24498 * lra-constraints.c (process_alt_operands): Disfavor alternative
24499 insn memory operands.
24501 2017-04-07 Jeff Law <law@redhat.com>
24503 * config/iq2000/iq2000.c (final_prescan_insn): Do not separate a
24504 CALL and NOTE_INSN_CALL_ARG_LOCATION.
24506 2017-04-07 Martin Liska <mliska@suse.cz>
24509 * config/aarch64/aarch64.c (aarch64_process_target_attr):
24510 Show error message instead of an ICE.
24512 2017-04-07 Martin Liska <mliska@suse.cz>
24515 * ipa-split.c (split_function): Add function part to a same comdat
24518 2017-04-07 Richard Biener <rguenther@suse.de>
24520 PR middle-end/80341
24521 * tree.c (get_unwidened): Also handle ! for_type case for
24523 * convert.c (do_narrow): Split out from ...
24524 (convert_to_integer_1): ... here. Do not pass final truncation
24525 type to get_unwidened for TRUNC_DIV_EXPR.
24527 2017-04-07 Richard Biener <rguenther@suse.de>
24529 * tree-affine.c (wide_int_ext_for_comb): Take type rather
24531 (aff_combination_const): Adjust.
24532 (aff_combination_scale): Likewise.
24533 (aff_combination_add_elt): Likewise.
24534 (aff_combination_add_cst): Likewise.
24535 (aff_combination_convert): Likewise.
24536 (add_elt_to_tree): Likewise. Remove unused argument.
24537 (aff_combination_to_tree): Adjust calls to add_elt_to_tree.
24539 2017-04-07 Sebastian Huber <sebastian.huber@embedded-brains.de>
24541 * config/arm/arm.h (ARM_DEFAULT_SHORT_ENUMS): Provide default
24543 * config/arm/arm.c (arm_default_short_enums): Use
24544 ARM_DEFAULT_SHORT_ENUMS.
24545 * config/arm/rtems.h (ARM_DEFAULT_SHORT_ENUMS): Define.
24547 2017-04-06 Jakub Jelinek <jakub@redhat.com>
24550 * dwarf2out.c (gen_member_die): Handle C++17 inline static data
24551 members with redundant out-of-class redeclaration.
24553 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
24556 * config/i386/sse.md (*vec_extractv4si_0_zext_sse4): New pattern.
24557 * config/i386/i386.md (*zero_extendsidi2):
24558 Add (?*x,*x) and (?*v,*v) alternatives.
24560 2017-04-06 Uros Bizjak <ubizjak@gmail.com>
24563 * config/i386/i386.c (ix86_expand_builtin)
24564 <case IX86_BUILTIN_K{,OR}TEST{C,Z}{8,16,32,64}>: Determine insn operand
24565 mode from insn data. Convert operands to insn operand mode.
24566 Copy operands that don't satisfy insn predicate to a register.
24568 2017-04-06 Sam Thursfield <sam.thursfield@codethink.co.uk>
24570 * config/rs6000/x-aix: Increase memory limit for genautomata on AIX.
24573 2017-04-06 Richard Biener <rguenther@suse.de>
24575 PR tree-optimization/80334
24576 * tree-ssa-loop-ivopts.c (rewrite_use_address): Properly
24577 preserve alignment of accesses.
24579 2017-04-06 Richard Biener <rguenther@suse.de>
24581 PR tree-optimization/80262
24582 * tree-sra.c (build_ref_for_offset): Preserve address-space
24584 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
24585 Drop useless address-space information on MEM_REF offsets.
24587 2017-04-05 Andreas Schwab <schwab@linux-m68k.org>
24589 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): Fix type.
24591 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
24593 PR rtl-optimization/70703
24594 * ira-color.c (update_conflict_hard_regno_costs): Use
24595 HOST_WIDE_INT instead of long.
24597 2017-04-05 Uros Bizjak <ubizjak@gmail.com>
24600 * config/i386/mmintrin.h: Add -msse target option when __SSE__ is
24601 not defined for x86_64 target. Add -mmmx target option when __SSE2__
24603 * config/i386/mm3dnow.h: Add -msse target when __SSE__ is not defined
24604 for x86_64 target. Handle -m3dnowa option.
24606 2017-04-05 Vladimir Makarov <vmakarov@redhat.com>
24608 PR rtl-optimization/70703
24609 * ira-color.c (update_costs_from_allocno): Use the smallest mode.
24610 (update_conflict_hard_regno_costs): Use long instead of unsigned
24611 arithmetic for cost calculation.
24613 2017-04-05 Jakub Jelinek <jakub@redhat.com>
24614 Bernd Edlinger <bernd.edlinger@hotmail.de>
24617 * asan.c (asan_store_shadow_bytes): Fix location of last_chunk_value
24620 2017-04-05 Eric Botcazou <ebotcazou@adacore.com>
24623 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): Replace
24624 ptr_mode with Pmode throughout.
24625 * config/aarch64/aarch64.md (probe_stack_range_<PTR:mode): Rename
24626 into probe_stack_range and use DImode.
24628 2017-04-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
24631 * config/s390/s390.c (s390_register_info_gprtofpr): Return if
24632 call_eh_return is true.
24634 2017-04-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24636 * config/s390/s390-c.c (s390_resolve_overloaded_builtin):
24637 Initialize last_match_fntype_index.
24639 2017-04-05 Jakub Jelinek <jakub@redhat.com>
24642 * tree-nvr.c: Include internal-fn.h.
24643 (pass_return_slot::execute): Ignore internal calls without
24646 2017-04-04 Jakub Jelinek <jakub@redhat.com>
24647 Richard Biener <rguenther@suse.de>
24650 * genmatch.c (capture::gen_transform): For GENERIC unshare_expr
24651 captures used multiple times, except for the last use.
24652 * generic-match-head.c: Include gimplify.h.
24654 2017-04-04 Jakub Jelinek <jakub@redhat.com>
24656 PR tree-optimization/79390
24657 * target.h (struct noce_if_info): Declare.
24658 * targhooks.h (default_noce_conversion_profitable_p): Declare.
24659 * target.def (noce_conversion_profitable_p): New target hook.
24660 * ifcvt.h (struct noce_if_info): New type, moved from ...
24661 * ifcvt.c (struct noce_if_info): ... here.
24662 (noce_conversion_profitable_p): Renamed to ...
24663 (default_noce_conversion_profitable_p): ... this. No longer
24665 (noce_try_store_flag_constants, noce_try_addcc,
24666 noce_try_store_flag_mask, noce_try_cmove, noce_try_cmove_arith,
24667 noce_convert_multiple_sets): Use targetm.noce_conversion_profitable_p
24668 instead of noce_conversion_profitable_p.
24669 * config/i386/i386.c: Include ifcvt.h.
24670 (ix86_option_override_internal): Don't override
24671 PARAM_MAX_RTL_IF_CONVERSION_INSNS default.
24672 (ix86_noce_conversion_profitable_p): New function.
24673 (TARGET_NOCE_CONVERSION_PROFITABLE_P): Redefine.
24674 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): Adjust comment.
24675 * doc/tm.texi.in (TARGET_NOCE_CONVERSION_PROFITABLE_P): Add.
24676 * doc/tm.texi: Regenerated.
24678 2017-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24680 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Grammar
24683 2017-04-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
24686 * config/arm/arm.c (thumb1_rtx_costs): Give a cost of 32
24687 instructions for small multiply cores.
24689 2017-04-04 Jeff Law <law@redhat.com>
24691 * config/mips/mips.c (mips_multi_add): Zero initialize the newly
24693 (mips_expand_vec_perm_const): Initialize elements in orig_perm
24694 that are not set by the loop over the elements.
24696 2017-04-04 Jakub Jelinek <jakub@redhat.com>
24699 * config/i386/i386.c (ix86_expand_args_builtin): If op has scalar
24700 int mode, convert_modes it to mode as unsigned, otherwise use
24701 lowpart_subreg to mode rather than SImode.
24702 * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>,
24703 ashr<mode>3, ashr<mode>3<mask_name>, <shift_insn><mode>3<mask_name>):
24704 Use DImode instead of SImode for the shift count operand.
24705 * config/i386/mmx.md (mmx_ashr<mode>3, mmx_<shift_insn><mode>3):
24708 2017-04-04 Richard Biener <rguenther@suse.de>
24710 PR middle-end/80281
24711 * match.pd (A + (-B) -> A - B): Make sure to preserve unsigned
24712 arithmetic done for the negate or the plus. Simplify.
24713 (A - (-B) -> A + B): Likewise.
24714 * fold-const.c (split_tree): Make sure to not negate pointers.
24716 2017-04-04 Segher Boessenkool <segher@kernel.crashing.org>
24718 PR rtl-optimization/60818
24719 * simplify-rtx.c (simplify_binary_operation_1): Do not replace
24720 a compare of comparisons with the thing compared if this results
24721 in a different machine mode.
24723 2017-04-03 Jonathan Wakely <jwakely@redhat.com>
24725 * alias.c (base_alias_check): Fix typo in comment.
24726 * cgraph.h (class ipa_polymorphic_call_context): Likewise.
24727 * cgraphunit.c (symbol_table::compile): Likewise.
24728 * collect2.c (maybe_run_lto_and_relink): Likewise.
24729 * config/arm/arm.c (arm_thumb1_mi_thunk): Likewise.
24730 * config/avr/avr-arch.h (avr_arch_info_t): Likewise.
24731 * config/avr/avr.c (avr_map_op_t): Likewise.
24732 * config/cr16/cr16.h (DATA_ALIGNMENT): Likewise.
24733 * config/epiphany/epiphany.c (TARGET_ARG_PARTIAL_BYTES): Likewise.
24734 * config/epiphany/epiphany.md (movcc): Likewise.
24735 * config/i386/i386.c (legitimize_pe_coff_extern_decl): Likewise.
24736 * config/m68k/m68k.c (struct _sched_ib, m68k_sched_variable_issue):
24738 * config/mips/mips.c (mips_save_restore_reg): Likewise.
24739 * config/rx/rx.c (rx_is_restricted_memory_address): Likewise.
24740 * config/s390/s390.c (Z10_EARLYLOAD_DISTANCE): Likewise.
24741 * config/sh/sh.c (sh_rtx_costs): Likewise.
24742 * fold-const.c (fold_truth_andor): Likewise.
24743 * genautomata.c (collapse_flag): Likewise.
24744 * gengtype.h (struct type::u::s): Likewise.
24745 * gensupport.c (has_subst_attribute, add_mnemonic_string): Likewise.
24746 * input.c (FORMAT_AMOUNT): Likewise.
24747 * ipa-cp.c (class ipcp_lattice, agg_replacements_to_vector)
24748 (known_aggs_to_agg_replacement_list): Likewise.
24749 * ipa-inline-analysis.c: Likewise.
24750 * ipa-inline.h (estimate_edge_time, estimate_edge_hints): Likewise.
24751 * ipa-polymorphic-call.c
24752 (ipa_polymorphic_call_context::restrict_to_inner_class): Likewise.
24753 * loop-unroll.c (analyze_insn_to_expand_var): Likewise.
24754 * lra.c (lra_optional_reload_pseudos, lra_subreg_reload_pseudos):
24756 * modulo-sched.c (apply_reg_moves): Likewise.
24757 * omp-expand.c (build_omp_regions_1): Likewise.
24758 * trans-mem.c (struct tm_wrapper_hasher): Likewise.
24759 * tree-ssa-loop-ivopts.c (may_eliminate_iv): Likewise.
24760 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Likewise.
24761 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
24762 * value-prof.c: Likewise.
24763 * var-tracking.c (val_reset): Likewise.
24765 2017-04-03 Richard Biener <rguenther@suse.de>
24767 PR tree-optimization/80275
24768 * fold-const.c (split_address_to_core_and_offset): Handle
24771 2017-04-03 Eric Botcazou <ebotcazou@adacore.com>
24773 * tree-nested.c (get_descriptor_type): Make sure that the alignment of
24774 descriptors is at least equal to that of functions.
24776 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
24778 * config/i386/sse.md (movdi_to_sse): Add missing DONE.
24780 2017-04-02 Uros Bizjak <ubizjak@gmail.com>
24783 * config/i386/sse.md (mov<IMOD4:mode>): Remove insn pattern.
24784 (mov<IMOD4:mode>): New expander.
24785 (*mov<IMOD4:mode>_internal): New insn and split pattern.
24787 2017-03-31 Segher Boessenkool <segher@kernel.crashing.org>
24789 PR rtl-optimization/79405
24790 * fwprop.c (propagations_left): New variable.
24791 (forward_propagate_into): Decrement it.
24792 (fwprop_init): Initialize it.
24793 (fw_prop): If the variable has reached zero, stop propagating.
24794 (fwprop_addr): Ditto.
24796 2017-03-31 Jakub Jelinek <jakub@redhat.com>
24799 * dwarf2out.c (decls_for_scope): If BLOCK_NONLOCALIZED_VAR is
24800 a FUNCTION_DECL, pass it as decl instead of origin to
24803 2017-03-31 Alexander Monakov <amonakov@ispras.ru>
24805 * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Correct format
24808 2017-03-31 Pat Haugen <pthaugen@us.ibm.com>
24811 * config/rs6000/rs6000.md (extendhi<mode>2): Add test for
24812 TARGET_VSX_SMALL_INTEGER.
24814 2017-03-31 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24816 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Add
24817 reference to the OpenPOWER 64-Bit ELF V2 ABI Specification.
24819 2017-03-31 Matthew Fortune <matthew.fortune@imgtec.com>
24821 * config/mips/mips-msa.md (msa_vec_extract_<msafmt_f>): Update
24822 extraction from odd-numbered MSA register.
24824 2017-03-31 Jakub Jelinek <jakub@redhat.com>
24826 PR middle-end/80173
24827 * expmed.c (store_bit_field_1): Don't attempt to create
24828 a word subreg out of hard registers wider than word if they
24829 have HARD_REGNO_NREGS of 1 for their mode.
24831 PR middle-end/80163
24832 * varasm.c (initializer_constant_valid_p_1): Disallow sign-extending
24833 conversions to integer types wider than word and pointer.
24836 * cselib.h (rtx_equal_for_cselib_1): Add depth argument.
24837 (rtx_equal_for_cselib_p): Pass 0 to it.
24838 * cselib.c (cselib_hasher::equal): Likewise.
24839 (rtx_equal_for_cselib_1): Add depth argument. If depth
24840 is 128, don't look up VALUE locs and punt. Increment
24841 depth in recursive calls when walking VALUE locs.
24843 2017-03-31 Bernd Edlinger <bernd.edlinger@hotmail.de>
24845 * gcov.c (md5sum_to_hex): Fix output of MD5 hex bytes.
24846 (make_gcov_file_name): Use the canonical path name for generating
24848 (read_line): Fix handling of files with ascii null bytes.
24850 2017-03-30 Matthew Fortune <matthew.fortune@imgtec.com>
24852 * config/mips/mips.c (mips_expand_vector_init): Create a const_vector
24853 to initialise a vector register instead
24854 of using a const_int.
24856 2017-03-30 Jakub Jelinek <jakub@redhat.com>
24858 PR translation/80189
24859 * gimplify.c (omp_default_clause): Use %qs instead of %s in
24860 diagnostic messages.
24862 2017-03-30 Peter Bergner <bergner@vnet.ibm.com>
24865 * config/rs6000/dfp.md (dfp_dxex_<mode>): Update mode of operand 0.
24866 (dfp_diex_<mode>): Update mode of operand 1.
24867 * doc/extend.texi (dxex, dxexq): Document change to return type.
24868 (diex, diexq): Document change to argument type.
24870 2017-03-30 Martin Jambor <mjambor@suse.cz>
24873 * cgraph.h (cgraph_build_function_type_skip_args): Declare.
24874 * cgraph.c (redirect_call_stmt_to_callee): Set gimple fntype so that
24875 it reflects the signature changes performed at the callee side.
24876 * cgraphclones.c (build_function_type_skip_args): Make public, renamed
24877 to cgraph_build_function_type_skip_args.
24878 (build_function_decl_skip_args): Adjust call to the above function.
24880 2017-03-30 Jakub Jelinek <jakub@redhat.com>
24883 * config/i386/sse.md
24884 (<extract_type>_vextract<shuffletype><extract_suf>_mask): Use
24885 register as dest whenever it is a MEM not rtx_equal_p to the
24886 corresponding dup operand, and when forcing into reg move the
24887 reg into the memory afterwards.
24888 (<extract_type_2>_vextract<shuffletype><extract_suf_2>_mask):
24889 Likewise. Use <ssehalfvecmode> instead of <ssequartermode>
24890 for the force_reg mode.
24891 (avx512vl_vextractf128<mode>): Use register as dest either
24892 always when a MEM, or when it is a MEM not rtx_equal_p to the
24893 corresponding dup operand, or even not when it is a CONST_VECTOR
24894 depending on the mode and lo vs. hi.
24895 (avx512dq_vextract<shuffletype>64x2_1_maskm): Remove extraneous
24897 (avx512f_vextract<shuffletype>32x4_1_maskm): Likewise.
24898 (<mask_codefor>avx512dq_vextract<shuffletype>64x2_1<mask_name>):
24899 Likewise. Require that operands[2] is even.
24900 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>):
24901 Remove extraneous parens. Require that operands[2] is a multiple
24903 (vec_extract_lo_<mode><mask_name>): Don't bother testing if
24904 operands[0] is a MEM if <mask_applied>, the predicates/constraints
24905 disallow memory then.
24907 2017-03-30 Richard Biener <rguenther@suse.de>
24909 PR tree-optimization/77498
24910 * tree-ssa-pre.c (phi_translate_1): Do not allow simplifications
24911 to non-constants over backedges.
24913 2017-03-29 Segher Boessenkool <segher@kernel.crashing.org>
24915 PR rtl-optimization/80233
24916 * combine.c (combine_instructions): Only take NONDEBUG_INSN_P insns
24917 as last_combined_insn. Do not test for BARRIER_P separately.
24919 2017-03-29 Andreas Schwab <schwab@suse.de>
24922 * calls.c (prepare_call_address): Convert funexp to Pmode before
24923 copying to temp reg.
24925 2017-03-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24927 PR tree-optimization/80158
24928 * gimple-ssa-strength-reduction.c (replace_mult_candidate):
24929 Handle possible future case of more than one alternate
24931 (replace_rhs_if_not_dup): Likewise.
24932 (replace_one_candidate): Likewise.
24934 2017-03-28 Vladimir Makarov <vmakarov@redhat.com>
24936 PR rtl-optimization/80193
24937 * ira.c (ira): Do not check allocation for LRA.
24939 2017-03-28 Alexander Monakov <amonakov@ispras.ru>
24941 * config/nvptx/nvptx-protos.h (nvptx_output_simt_enter): Declare.
24942 (nvptx_output_simt_exit): Declare.
24943 * config/nvptx/nvptx.c (nvptx_init_unisimt_predicate): Use
24944 cfun->machine->unisimt_location. Handle NULL unisimt_predicate.
24945 (init_softstack_frame): Move initialization of crtl->is_leaf to...
24946 (nvptx_declare_function_name): ...here. Emit declaration of local
24947 memory space buffer for omp_simt_enter insn.
24948 (nvptx_output_unisimt_switch): New.
24949 (nvptx_output_softstack_switch): New.
24950 (nvptx_output_simt_enter): New.
24951 (nvptx_output_simt_exit): New.
24952 * config/nvptx/nvptx.h (struct machine_function): New fields
24953 has_simtreg, unisimt_location, simt_stack_size, simt_stack_align.
24954 * config/nvptx/nvptx.md (UNSPECV_SIMT_ENTER): New unspec.
24955 (UNSPECV_SIMT_EXIT): Ditto.
24956 (omp_simt_enter_insn): New insn.
24957 (omp_simt_enter): New expansion.
24958 (omp_simt_exit): New insn.
24959 * config/nvptx/nvptx.opt (msoft-stack-reserve-local): New option.
24961 * internal-fn.c (expand_GOMP_SIMT_ENTER): New.
24962 (expand_GOMP_SIMT_ENTER_ALLOC): New.
24963 (expand_GOMP_SIMT_EXIT): New.
24964 * internal-fn.def (GOMP_SIMT_ENTER): New internal function.
24965 (GOMP_SIMT_ENTER_ALLOC): Ditto.
24966 (GOMP_SIMT_EXIT): Ditto.
24967 * target-insns.def (omp_simt_enter): New insn.
24968 (omp_simt_exit): Ditto.
24969 * omp-low.c (struct omplow_simd_context): New fields simt_eargs,
24971 (lower_rec_simd_input_clauses): Implement SIMT privatization.
24972 (lower_rec_input_clauses): Likewise.
24973 (lower_lastprivate_clauses): Handle SIMT privatization.
24975 * omp-offload.c: Include langhooks.h, tree-nested.h, stor-layout.h.
24976 (ompdevlow_adjust_simt_enter): New.
24977 (find_simtpriv_var_op): New.
24978 (execute_omp_device_lower): Handle IFN_GOMP_SIMT_ENTER,
24979 IFN_GOMP_SIMT_ENTER_ALLOC, IFN_GOMP_SIMT_EXIT.
24981 * tree-inline.h (struct copy_body_data): New field dst_simt_vars.
24982 * tree-inline.c (expand_call_inline): Handle SIMT privatization.
24983 (copy_decl_for_dup_finish): Ditto.
24985 * tree-ssa.c (execute_update_addresses_taken): Handle GOMP_SIMT_ENTER.
24987 2017-03-28 Uros Bizjak <ubizjak@gmail.com>
24990 * config/i386/i386.c (ix86_option_override_internal): Always
24991 allow -mpreferred-stack-boundary=3 for 64-bit targets.
24993 2017-03-28 Bin Cheng <bin.cheng@arm.com>
24995 * tree-vect-loop.c (optimize_mask_stores): Add bb to the right loop.
24997 2017-03-28 Bin Cheng <bin.cheng@arm.com>
24999 * tree-vect-loop-manip.c (slpeel_add_loop_guard): New param and
25000 mark new edge's irreducible flag accordign to it.
25001 (vect_do_peeling): Check loop preheader edge's irreducible flag
25002 and pass it to function slpeel_add_loop_guard.
25004 2017-03-28 Richard Sandiford <richard.sandiford@arm.com>
25006 PR tree-optimization/80218
25007 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
25008 Update block frequencies and counts.
25010 2017-03-28 Richard Biener <rguenther@suse.de>
25012 PR tree-optimization/78644
25013 * tree-ssa-ccp.c (evaluate_stmt): When we may not use the value
25014 of a simplification result we may not use it at all.
25016 2017-03-28 Richard Biener <rguenther@suse.de>
25019 * tree-inline.c (copy_phis_for_bb): Do not create PHI node
25020 without arguments, generate default definition of a SSA name.
25022 2017-03-28 Richard Biener <rguenther@suse.de>
25024 PR middle-end/80222
25025 * gimple-fold.c (gimple_fold_indirect_ref): Do not touch
25026 TYPE_REF_CAN_ALIAS_ALL references.
25027 * fold-const.c (fold_indirect_ref_1): Likewise.
25029 2017-03-28 Martin Liska <mliska@suse.cz>
25032 * cgraphunit.c (cgraph_node::expand_thunk): Mark argument of a
25033 thunk call as DECL_GIMPLE_REG_P when vector or complex type.
25035 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
25036 Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
25038 * config/arc/arc.h (CPP_SPEC): Add subtarget_cpp_spec.
25039 (EXTRA_SPECS): Define.
25040 (SUBTARGET_EXTRA_SPECS): Likewise.
25041 (SUBTARGET_CPP_SPEC): Likewise.
25042 * config/arc/elf.h (EXTRA_SPECS): Renamed to
25043 SUBTARGET_EXTRA_SPECS.
25044 * config/arc/linux.h (SUBTARGET_CPP_SPEC): Define.
25046 2017-03-28 Claudiu Zissulescu <claziss@synopsys.com>
25048 * config/arc/simdext.md (vst64_insn): Update pattern.
25049 (vld32wh_insn): Likewise.
25050 (vld32wl_insn): Likewise.
25051 (vld64_insn): Likewise.
25052 (vld32_insn): Likewise.
25054 2017-03-28 Marek Polacek <polacek@redhat.com>
25057 * fold-const.c (fold_comparison): Use protected_set_expr_location
25058 instead of SET_EXPR_LOCATION.
25060 2017-03-28 Markus Trippelsdorf <markus@trippelsdorf.de>
25062 * tree.c (add_expr): Avoid name lookup warning.
25064 2017-03-27 Jeff Law <law@redhat.com>
25066 PR tree-optimization/80216
25067 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): Fix typo in
25068 function name. Limit recursion depth.
25069 (record_temporary_equivalences): Corresponding changes.
25071 2017-03-27 Jonathan Wakely <jwakely@redhat.com>
25073 * doc/invoke.texi (-Wno-narrowing): Reorder so default behavior is
25076 2017-03-27 Jakub Jelinek <jakub@redhat.com>
25079 * reg-notes.def (REG_CFA_NOTE): Define. Use it for CFA related
25081 * cfgcleanup.c (reg_note_cfa_p): New array.
25082 (insns_have_identical_cfa_notes): New function.
25083 (old_insns_match_p): Don't cross-jump in between /f
25084 and non-/f instructions. If both i1 and i2 are frame related,
25085 verify all CFA notes, their order and content.
25087 2017-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25090 * config/rs6000/rs6000.md (bswaphi2_extenddi): Combine bswap
25091 HImode and SImode with zero extend to DImode to one insn.
25092 (bswap<mode>2_extenddi): Likewise.
25093 (bswapsi2_extenddi): Likewise.
25094 (bswaphi2_extendsi): Likewise.
25095 (bswaphi2): Combine bswap HImode and SImode into one insn.
25096 Separate memory insns from swapping register.
25097 (bswapsi2): Likewise.
25098 (bswap<mode>2): Likewise.
25099 (bswaphi2_internal): Delete, no longer used.
25100 (bswapsi2_internal): Likewise.
25101 (bswap<mode>2_load): Split bswap HImode/SImode into separate load,
25102 store, and gpr<-gpr swap insns.
25103 (bswap<mode>2_store): Likewise.
25104 (bswaphi2_reg): Register only splitter, combine with the splitter.
25105 (bswaphi2 splitter): Likewise.
25106 (bswapsi2_reg): Likewise.
25107 (bswapsi2 splitter): Likewise.
25108 (bswapdi2): If we have the LDBRX and STDBRX instructions, split
25109 the insns into load, store, and register/register insns.
25110 (bswapdi2_ldbrx): Likewise.
25111 (bswapdi2_load): Likewise.
25112 (bswapdi2_store): Likewise.
25113 (bswapdi2_reg): Likewise.
25115 2017-03-27 Gunther Nikl <gnikl@users.sourceforge.net>
25117 * system.h (HAVE_DESIGNATED_INITIALIZERS): Fix non C++ case.
25118 (HAVE_DESIGNATED_UNION_INITIALIZERS): Likewise.
25120 2017-03-27 Kelvin Nilsen <kelvin@gcc.gnu.org>
25123 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Edit and
25125 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25126 special handling for target option conflicts between dform
25127 options (-mpower9-dform, -mpower9-dform-vector,
25128 -mpower9-dform-scalar) and -mno-direct-move.
25130 2017-03-27 Richard Biener <rguenther@suse.de>
25132 PR tree-optimization/80181
25133 * tree-ssa-ccp.c (likely_value): UNDEFINED ^ X is UNDEFINED.
25135 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
25137 * config/arc/predicates.md (move_double_src_operand): Replace the
25138 call to move_double_src_operand with a call to address_operand.
25140 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
25142 * config/arc/elf.h (ARGET_ARC_TP_REGNO_DEFAULT): Define.
25143 * config/arc/linux.h (ARGET_ARC_TP_REGNO_DEFAULT): Likewise.
25144 * config/arc/arc.opt (mtp-regno): Use ARGET_ARC_TP_REGNO_DEFAULT.
25146 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
25148 * config/arc/predicates.md (long_immediate_loadstore_operand):
25149 Consider scaled addresses cases.
25151 2017-03-27 Claudiu Zissulescu <claziss@synopsys.com>
25153 * config/arc/arc.c (arc_epilogue_uses): BLINK should be also
25154 restored when in interrupt.
25155 * config/arc/arc.md (simple_return): ARCv2 rtie instruction
25156 doesn't have delay slot.
25158 2017-03-27 Richard Biener <rguenther@suse.de>
25161 * tree-ssa-structalias.c (associate_varinfo_to_alias): Skip
25162 inlined thunk clones.
25164 2017-03-27 Jakub Jelinek <jakub@redhat.com>
25167 * asan.c (instrument_derefs): Copy over last operand from
25168 original COMPONENT_REF to the new COMPONENT_REF with
25169 DECL_BIT_FIELD_REPRESENTATIVE.
25170 * ubsan.c (instrument_object_size): Likewise.
25172 2017-03-27 Richard Biener <rguenther@suse.de>
25174 PR tree-optimization/80170
25175 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Make
25176 sure DR/SCEV didnt fold in constants we do not see when looking
25177 at the reference base alignment.
25179 2017-03-27 Richard Biener <rguenther@suse.de>
25181 PR middle-end/80171
25182 * gimple-fold.c (fold_ctor_reference): Properly guard against
25183 NULL return value from canonicalize_constructor_val.
25185 2017-03-25 Uros Bizjak <ubizjak@gmail.com>
25188 * config/i386/i386.c (ix86_expand_builtin)
25189 <IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Do not expand arg0 between
25190 flags reg setting and flags reg using instructions.
25191 <IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Ditto. Use non-flags reg
25192 clobbering instructions to zero extend op2.
25194 2017-03-25 Gerald Pfeifer <gerald@pfeifer.com>
25196 * doc/install.texi (Configuration) <--with-aix-soname>:
25197 Update link to AIX ld.
25199 2017-03-25 Bernd Schmidt <bschmidt@redhat.com>
25201 PR rtl-optimization/80160
25202 PR rtl-optimization/80159
25203 * lra-assigns.c (must_not_spill_p): Tighten new test to also take
25204 reg_alternate_class into account.
25206 2017-03-24 Vladimir Makarov <vmakarov@redhat.com>
25209 * lra-assigns.c (assign_by_spills): Add spilled non-reload pseudos
25210 to consider in curr_insn_transform.
25212 2017-03-24 Jakub Jelinek <jakub@redhat.com>
25214 * genrecog.c (validate_pattern): Add VEC_SELECT validation.
25215 * genmodes.c (emit_min_insn_modes_c): Call emit_mode_nunits
25216 and emit_mode_inner.
25218 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25220 * config/s390/s390-builtins.def: Add VXE builtins. Add a flags
25221 argument to the overloaded builtin variants. Use the new flag to
25222 deprecate certain builtin variants.
25223 * config/s390/s390-builtin-types.def: Add new builtin types.
25224 * config/s390/s390-builtins.h: Support new flags field for
25225 overloaded builtins.
25226 * config/s390/s390-c.c (OB_DEF_VAR): New flags field.
25227 (s390_macro_to_expand): Enable vector float data type.
25228 (s390_cpu_cpp_builtins_internal): Indicate support of the new
25229 builtins by incrementing the __VEC__ version number.
25230 (s390_expand_overloaded_builtin): Support expansion of vec_xl and
25232 (s390_resolve_overloaded_builtin): Emit error messages depending
25233 on the builtin flags.
25234 * config/s390/s390.c (s390_expand_builtin): Support additional
25235 flags argument. Change error message to match the messages
25236 emitted in s390-c.c.
25237 * config/s390/s390.md: New UNSPEC_* constants.
25238 (op_type): Add new instruction types.
25239 * config/s390/vecintrin.h: Add new builtins and test data class
25241 * config/s390/vx-builtins.md (V_HW_32_64): Add V4SF.
25242 (V_HW_4, VEC_HW, VECF_HW): New mode iterators.
25243 (VEC_INEXACT, VEC_NOINEXACT): New constants.
25244 ("vec_splats<mode>", "vec_insert<mode>", "vec_promote<mode>")
25245 ("vec_insert_and_zero<mode>", "vec_mergeh<mode>")
25246 ("vec_mergel<mode>"): V_HW -> VEC_HW.
25248 ("vlrlrv16qi", "vstrlrv16qi", "vbpermv16qi", "vec_msumv2di")
25249 ("vmslg", "*vftci<mode>_cconly", "vftci<mode>_intcconly")
25250 ("*vftci<mode>", "vftci<mode>_intcc", "vec_double_s64")
25251 ("vec_double_u64", "vfmin<mode>", "vfmax<mode>"): New definition.
25253 ("and_av2df3", "and_cv2df3", "vec_andc_av2df3")
25254 ("vec_andc_cv2df3", "xor_av2df3", "xor_cv2df3", "vec_nor_av2df3")
25255 ("vec_nor_cv2df3", "ior_av2df3", "ior_cv2df3", "vec_nabs")
25256 ("*vftcidb", "*vftcidb_cconly", "vftcidb"): Remove definition.
25258 ("vec_all_<fpcmpcc:code>v2df", "vec_any_<fpcmpcc:code>v2df")
25259 ("vec_scatter_elementv4si_DI", "vec_cmp<fpcmp:code>v2df")
25260 ("vec_di_to_df_s64", "vec_di_to_df_u64", "vec_df_to_di_u64")
25261 ("vfidb", "*vldeb", "*vledb", "*vec_cmp<insn_cmp>v2df_cconly")
25262 ("vec_cmpeqv2df_cc", "vec_cmpeqv2df_cc", "vec_cmphv2df_cc")
25263 ("vec_cmphev2df_cc", "*vec_cmpeqv2df_cc")
25264 ("*vec_cmphv2df_cc", "*vec_cmphev2df_cc"): Enable new modes as ...
25266 ("vec_all_<fpcmpcc:code><mode>", "vec_any_<fpcmpcc:code><mode>")
25267 ("vec_scatter_element<V_HW_4:mode>_DI")
25268 ("vec_cmp<fpcmp:code><mode>", "vcdgb", "vcdlgb", "vclgdb")
25269 ("vec_fpint<mode>", "vflls")
25270 ("vflrd", "*vec_cmp<insn_cmp><mode>_cconly", "vec_cmpeq<mode>_cc")
25271 ("vec_cmpeq<mode>_cc", "vec_cmph<mode>_cc", "vec_cmphe<mode>_cc")
25272 ("*vec_cmpeq<mode>_cc", "*vec_cmph<mode>_cc")
25273 ("*vec_cmphe<mode>_cc"): ... these.
25275 ("vec_ctd_s64", "vec_ctsl", "vec_ctul", "vec_st2f"): Use rounding
25276 mode constant instead of magic value.
25278 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25280 * config/s390/s390.c (s390_expand_vec_compare): Support other
25281 vector floating point modes than just V2DF.
25282 (s390_expand_vcond): Likewise.
25283 (s390_hard_regno_mode_ok): Allow SFmode values in VRs.
25284 (s390_cannot_change_mode_class): Prevent mode changes between TF
25285 and V1TF in vector registers.
25286 * config/s390/s390.md (DF, SF): New mode attributes.
25287 ("*cmp<mode>_ccs", "add<mode>3", "sub<mode>3", "mul<mode>3")
25288 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2"): Add
25289 SFmode support for VRs.
25290 * config/s390/vector.md (V_HW, V_HW2, VT_HW, ti*, nonvec): Add new
25292 (VFT, VF_HW): New mode iterators.
25293 (vw, sdx): New mode attributes.
25294 ("addv2df3", "subv2df3", "mulv2df3", "divv2df3", "sqrtv2df2")
25295 ("fmav2df4","fmsv2df4", "negv2df2", "absv2df2", "*negabsv2df2")
25296 ("smaxv2df3", "sminv2df3", "*vec_cmp<VFCMP_HW_OP:code>v2df_nocc")
25297 ("vec_cmpuneqv2df", "vec_cmpltgtv2df", "vec_orderedv2df")
25298 ("vec_unorderedv2df"): Adjust the v2df only patterns to support
25299 also the new vector floating point modes. Renaming to ...
25301 ("add<mode>3", "sub<mode>3", "mul<mode>3", "div<mode>3")
25302 ("sqrt<mode>2", "fma<mode>4", "fms<mode>4", "neg<mode>2")
25303 ("abs<mode>2", "negabs<mode>2", "smax<mode>3")
25304 ("smin<mode>3", "*vec_cmp<VFCMP_HW_OP:code><mode>_nocc")
25305 ("vec_cmpuneq<mode>", "vec_cmpltgt<mode>", "vec_ordered<mode>")
25306 ("vec_unordered<mode>"): ... these.
25308 ("neg_fma<mode>4", "neg_fms<mode>4", "*smax<mode>3_vxe")
25309 ("*smin<mode>3_vxe", "*sminv2df3_vx", "*vec_extendv4sf")
25310 ("*vec_extendv2df"): New insn definitions.
25312 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25314 * config/s390/s390.md ("*adddi3_sign", "*subdi3_sign", "mulditi3")
25315 ("mulditi3_2", "*muldi3_sign"): New patterns.
25316 ("muldi3", "*muldi3", "mulsi3", "*mulsi3"): Add an expander and
25317 rename the pattern definition.
25319 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25321 * config/s390/s390.md ("indirect_jump"): Turn insn definition into
25323 ("*indirect_jump", "*indirect2_jump"): New pattern definitions.
25325 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25327 * config/s390/s390.c (s390_expand_vec_init): Use vllezl
25328 instruction if possible.
25329 * config/s390/vector.md (vec_halfnumelts): New mode
25331 ("*vec_vllezlf<mode>"): New pattern.
25333 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25335 * config/s390/vector.md ("popcountv16qi2", "popcountv8hi2")
25336 ("popcountv4si2", "popcountv2di2"): Rename to ...
25337 ("popcount<mode>2", "popcountv8hi2_vx", "popcountv4si2_vx")
25338 ("popcountv2di2_vx"): ... these and add !TARGET_VXE to the
25340 ("popcount<mode>2_vxe"): New pattern.
25342 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25344 * common/config/s390/s390-common.c (processor_flags_table): Add
25346 * config.gcc: Add arch12.
25347 * config/s390/driver-native.c (s390_host_detect_local_cpu):
25348 Default to arch12 for unknown CPU model numbers.
25349 * config/s390/s390-builtins.def: Add B_VXE builtin flag.
25350 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Adjust
25351 PROCESSOR_max sanity check.
25352 * config/s390/s390-opts.h (enum processor_type): Add
25354 * config/s390/s390.c (processor_table): Add arch12.
25355 (s390_expand_builtin): Add check for B_VXE flag.
25356 (s390_issue_rate): Add PROCESSOR_ARCH12.
25357 (s390_get_sched_attrmask): Likewise.
25358 (s390_get_unit_mask): Likewise.
25359 (s390_sched_score): Enable z13 scheduling for arch12.
25360 (s390_sched_reorder): Likewise.
25361 (s390_sched_variable_issue): Likewise.
25362 * config/s390/s390.h (enum processor_flags): Add PF_ARCH12 and
25364 (s390_tune_attr): Use z13 scheduling also for arch12.
25365 (TARGET_CPU_ARCH12, TARGET_CPU_ARCH12_P, TARGET_CPU_VXE)
25366 (TARGET_CPU_VXE_P, TARGET_ARCH12, TARGET_ARCH12_P, TARGET_VXE)
25367 (TARGET_VXE_P): New macros.
25368 * config/s390/s390.md: Add arch12 to cpu attribute. Add arch12
25369 and vxe to cpu_facility. Add arch12 and vxe to enabled attribute.
25370 * config/s390/s390.opt: Add arch12 as processor_type.
25372 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25374 * config/s390/s390.md
25375 ("fixuns_truncdddi2", "fixuns_trunctddi2")
25376 ("fixuns_trunc<BFP:mode><GPR:mode>2"): Merge into ...
25377 ("fixuns_trunc<FP:mode><GPR:mode>2"): New expander.
25379 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2"):
25380 Rename expanders to ...
25382 ("fixuns_trunc<BFP:mode><GPR:mode>2_emu")
25383 ("fixuns_truncdddi2_emu"): ... these.
25385 ("fixuns_trunc<mode>si2_emu"): New expander.
25387 ("*fixuns_truncdfdi2_z13"): Rename to ...
25388 ("*fixuns_truncdfdi2_vx"): ... this.
25390 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25392 * config/s390/2964.md: Remove the single element vector compare
25393 instructions which are no longer used.
25394 * config/s390/s390.c (s390_select_ccmode): Remove handling of
25396 (s390_canonicalize_comparison): Remove handling of DFmode
25398 (s390_expand_vec_compare_scalar): Remove function.
25399 (s390_emit_compare): Don't call s390_expand_vec_compare_scalar.
25400 * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly"): Remove
25402 ("*cmp<mode>_ccs"): Add wfcdb instruction.
25404 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25406 * config/s390/s390.md ("mov<mode>_64dfp" DD_DF): Use vleig for loading a
25408 ("*mov<mode>_64" DD_DF): Remove the vector instructions. These
25409 will anyway by matched by mov<mode>_64dfp.
25411 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25413 * config/s390/s390.md ("mov<mode>" SD_SF): Change vleg/vsteg to
25414 vlef/vstef. Add missing operand to vleif.
25416 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25418 * config/s390/s390.c (s390_expand_vec_init): Enable vector load
25419 pair for all vector types with 64 bit elements.
25420 * config/s390/vx-builtins.md (V_HW_64): Move mode iterator to ...
25421 * config/s390/vector.md (V_HW_64): ... here.
25422 (V_128_NOSINGLE): New mode iterator.
25423 ("vec_init<V_HW:mode>"): Use V_128 as mode iterator.
25424 ("*vec_splat<mode>"): Use V_128_NOSINGLE mode iterator.
25425 ("*vec_tf_to_v1tf", "*vec_ti_to_v1ti"): New pattern definitions.
25426 ("*vec_load_pairv2di"): Change to ...
25427 ("*vec_load_pair<mode>"): ... this one.
25429 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25431 * config/s390/constraints.md: Add comments.
25432 (jKK): Reject element sizes > 8 bytes.
25433 * config/s390/s390.c (s390_split_ok_p): Enable splitting also for
25435 * config/s390/s390.md: Add the s_operand checks formerly in
25436 s390_split_ok_p to various splitters where they are still
25438 * config/s390/vector.md ("mov<mode>" V_128): Add GPR alternatives
25439 for 128 bit vectors. Plus two splitters.
25441 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25443 * config/s390/s390.md: Rename the cpu facilty vec to vx throughout
25446 2017-03-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25449 * config/s390/s390-c.c (s390_adjust_builtin_arglist): Issue an
25450 error if the boundary argument is not constant.
25452 2017-03-24 Jakub Jelinek <jakub@redhat.com>
25454 PR rtl-optimization/80112
25455 * loop-doloop.c (doloop_condition_get): Don't check condition
25456 if cmp isn't SET with IF_THEN_ELSE src.
25458 2017-03-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25460 PR tree-optimization/80158
25461 * gimple-ssa-strength-reduction.c (replace_mult_candidate): When
25462 replacing a candidate statement, also replace it for the
25463 candidate's alternate interpretation.
25464 (replace_rhs_if_not_dup): Likewise.
25465 (replace_one_candidate): Likewise.
25467 2017-03-24 Richard Biener <rguenther@suse.de>
25469 PR tree-optimization/80167
25470 * graphite-isl-ast-to-gimple.c
25471 (translate_isl_ast_to_gimple::is_valid_rename): Handle default-defs
25473 (translate_isl_ast_to_gimple::get_rename): Likewise.
25475 2017-03-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
25477 * config/rs6000/rs6000.c (rs6000_option_override_internal): Change
25478 handling of certain combinations of target options, including the
25479 combinations -mpower8-vector vs. -mno-vsx, -mpower9-vector vs.
25480 -mno-power8-vector, and -mpower9_dform vs. -mno-power9-vector.
25482 2017-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25485 * config/arm/arm.md (*load_multiple): Add reload_completed to
25486 matching condition.
25488 2017-03-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25489 Richard Biener <rguenth@suse.de>
25491 PR tree-optimization/79908
25492 PR tree-optimization/80136
25493 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
25494 been cast away, gimplify_and_add suffices.
25496 2017-03-23 Markus Trippelsdorf <markus@trippelsdorf.de>
25498 * tree-vrp.c (identify_jump_threads): Delete avail_exprs.
25500 2017-03-23 Richard Biener <rguenther@suse.de>
25502 PR tree-optimization/80032
25503 * gimplify.c (gimple_push_cleanup): Forced unconditional
25504 cleanups still have to go to the conditional_cleanups
25507 2017-03-22 Jakub Jelinek <jakub@redhat.com>
25509 PR tree-optimization/80072
25510 * tree-ssa-reassoc.c (struct operand_entry): Change id field type
25512 (next_operand_entry_id): Change type to unsigned int.
25513 (sort_by_operand_rank): Make sure to return the right return value
25514 even if unsigned fields are bigger than INT_MAX.
25515 (struct oecount): Change cnt and id type to unsigned int.
25516 (oecount_hasher::equal): Formatting fix.
25517 (oecount_cmp): Make sure to return the right return value
25518 even if unsigned fields are bigger than INT_MAX.
25519 (undistribute_ops_list): Change next_oecount_id type to unsigned int.
25522 * gimplify.c (gimplify_modify_expr_rhs) <case COND_EXPR>: Clear
25523 TREE_READONLY on result if writing it more than once.
25526 * doc/invoke.texi (-fsanitize=thread): Document that with
25527 -fnon-call-exceptions atomics are not able to throw
25531 * tsan.c: Include tree-eh.h.
25532 (instrument_builtin_call): Call maybe_clean_eh_stmt or
25533 maybe_clean_or_replace_eh_stmt where needed.
25534 (instrument_memory_accesses): Add cfg_changed argument.
25535 Call gimple_purge_dead_eh_edges on each block and set *cfg_changed
25536 if it returned true.
25537 (tsan_pass): Adjust caller. Return TODO_cleanup_cfg if cfg_changed.
25539 PR rtl-optimization/63191
25540 * config/i386/i386.c (ix86_delegitimize_address): Turn into small
25541 wrapper function, moved the whole old content into ...
25542 (ix86_delegitimize_address_1): ... this. New inline function.
25543 (ix86_find_base_term): Use ix86_delegitimize_address_1 with
25544 true as last argument instead of ix86_delegitimize_address.
25546 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
25548 * config/aarch64/aarch64.c (generic_branch_cost): Copy
25549 cortexa57_branch_cost.
25551 2017-03-22 Wilco Dijkstra <wdijkstr@arm.com>
25553 * config/aarch64/aarch64.c (generic_tunings): Add AES fusion.
25555 2017-03-21 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
25558 * doc/md.texi (Constraints): Document wA constraint.
25559 * config/rs6000/constraints.md (wA): New.
25560 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add wA reg_class.
25561 (rs6000_init_hard_regno_mode_ok): Init wA constraint.
25562 * config/rs6000/rs6000.h (RS6000_CONSTRAINT_wA): New.
25563 * config/rs6000/vsx.md (vsx_splat_<mode>): Use wA constraint.
25565 2017-03-22 Cesar Philippidis <cesar@codesourcery.com>
25568 * gimplify.c (is_oacc_declared): New function.
25569 (oacc_default_clause): Use it to set default flags for acc declared
25570 variables inside parallel regions.
25571 (gimplify_scan_omp_clauses): Strip firstprivate pointers for acc
25572 declared variables.
25573 (gimplify_oacc_declare): Gimplify the declare clauses. Add the
25574 declare attribute to any decl as necessary.
25576 2017-03-22 Thomas Preud'homme <thomas.preudhomme@arm.com>
25579 * config/arm/arm-isa.h (isa_bit_lpae): New feature bit.
25580 (ISA_ARMv7ve): Add isa_bit_lpae to the definition.
25581 * config/arm/arm-protos.h (arm_arch7ve): Rename into ...
25582 (arm_arch_lpae): This.
25583 * config/arm/arm.c (arm_arch7ve): Rename into ...
25584 (arm_arch_lpae): This. Define it in term of isa_bit_lpae.
25585 * config/arm/arm.h (TARGET_HAVE_LPAE): Redefine in term of
25588 2017-03-22 Martin Liska <mliska@suse.cz>
25591 * config/rs6000/rs6000.c (rs6000_inner_target_options): Show
25592 error message instead of an ICE.
25594 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25596 * doc/extend.texi (6.11 Additional Floating Types): Revise.
25598 2017-03-21 Kelvin Nilsen <kelvin@gcc.gnu.org>
25600 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
25602 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
25605 2017-03-21 Martin Sebor <msebor@redhat.com>
25607 * doc/extend.texi: Use "cannot" instead of "can't."
25608 * doc/hostconfig.texi: Same.
25609 * doc/install.texi: Same.
25610 * doc/invoke.texi: Same.
25611 * doc/loop.texi: Same.
25612 * doc/md.texi: Same.
25613 * doc/objc.texi: Same.
25614 * doc/rtl.texi: Same.
25615 * doc/tm.texi: Same.
25616 * doc/tm.texi.in: Same.
25617 * doc/trouble.texi: Same.
25619 2017-03-21 Alexandre Oliva <aoliva@redhat.com>
25622 * dwarf2out.c (struct checksum_attributes): Add at_alignment.
25623 (collect_checksum_attributes): Set it.
25624 (die_checksum_ordered): Use it.
25626 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25628 PR tree-optimization/79908
25629 * tree-stdarg.c (expand_ifn_va_arg_1): Revert the following
25630 change: For a VA_ARG whose LHS has been cast away, use
25631 force_gimple_operand to construct the side effects.
25633 2017-03-21 David Malcolm <dmalcolm@redhat.com>
25635 PR translation/80001
25636 * omp-offload.c (oacc_loop_fixed_partitions): Make diagnostics
25637 more amenable to translation.
25638 (oacc_loop_auto_partitions): Likewise.
25640 2017-03-21 Marek Polacek <polacek@redhat.com>
25641 Martin Sebor <msebor@redhat.com>
25643 PR tree-optimization/80109
25644 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call get_range_info
25645 on INTEGRAL_TYPE_P.
25647 2017-03-21 Jakub Jelinek <jakub@redhat.com>
25648 Segher Boessenkool <segher@kernel.crashing.org>
25651 * combine.c (can_combine_p): Revert the 2017-03-20 change, only
25652 check reg_used_between_p between insn and one of succ or succ2
25653 depending on if succ is artificial insn not inserted into insn
25656 2017-03-21 Martin Liska <mliska@suse.cz>
25658 PR gcov-profile/80081
25659 * Makefile.in: Add gcov-dump and fix installation of gcov-tool.
25660 * doc/gcc.texi: Include gcov-dump stuff.
25661 * doc/gcov-dump.texi: New file.
25663 2017-03-21 Toma Tabacu <toma.tabacu@imgtec.com>
25665 PR rtl-optimization/79150
25666 * config/mips/mips.c (mips_block_move_loop): Emit a NOP after the
25667 conditional jump, if the jump is the last insn of the loop.
25669 2017-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25670 Richard Biener <rguenth@suse.de>
25672 PR tree-optimization/79908
25673 * tree-stdarg.c (expand_ifn_va_arg_1): For a VA_ARG whose LHS has
25674 been cast away, use force_gimple_operand to construct the side
25677 2017-03-21 Martin Liska <mliska@suse.cz>
25679 PR libfortran/79956
25680 * simplify-rtx.c (simplify_immed_subreg): Initialize a variable
25683 2017-03-21 Brad Spengler <spender@grsecurity.net>
25686 * plugin.c (htab_hash_plugin): New function.
25687 (add_new_plugin): Use it and adjust.
25688 (parse_plugin_arg_opt): Adjust.
25689 (init_one_plugin): Likewise.
25691 2017-03-21 Richard Biener <rguenther@suse.de>
25693 PR tree-optimization/80032
25694 * gimplify.c (gimple_push_cleanup): Add force_uncond parameter,
25695 if set force the cleanup to happen unconditionally.
25696 (gimplify_target_expr): Push inserted clobbers with force_uncond
25697 to avoid them being removed by control-dependent DCE.
25699 2017-03-21 Richard Biener <rguenther@suse.de>
25701 PR tree-optimization/80122
25702 * tree-inline.c (copy_bb): Do not expans va-arg packs or
25703 va_arg_pack_len when the inlined call stmt requires pack
25705 * tree-inline.h (struct copy_body_data): Make call_stmt a gcall *.
25707 2017-03-21 Jakub Jelinek <jakub@redhat.com>
25710 * tsan.c (instrument_builtin_call): If the memory model argument
25711 is not a constant, assume it is valid.
25714 * fold-const.c (round_up_loc): Negate divisor in unsigned type to
25717 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
25719 PR rtl-optimization/79910
25720 * combine.c (can_combine_p): Do not allow combining an I0 or I1
25721 if its dest is used by an insn before I2 (other than the combined
25722 insns themselves, which are properly handled already).
25724 2017-03-20 Segher Boessenkool <segher@kernel.crashing.org>
25727 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
25729 * combine.c (record_used_regs): New static function.
25730 (try_combine): Handle situations where there is an additional
25731 instruction between I2 and I3 which needs to have a LOG_LINK
25735 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
25737 * combine.c (try_combine): Delete redundant i1 test. Call
25738 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
25740 2017-03-20 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
25743 * config/rs6000/rs6000.md (*movsi_internal1): Fix constraints for
25744 alternatives 13/14.
25746 2017-03-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25748 PR tree-optimization/80054
25749 * gimple-ssa-strength-reduction.c (all_phi_incrs_profitable): Fail
25750 the optimization if a PHI or any of its arguments is not dominated
25751 by the candidate's basis. Use gphi* rather than gimple* as
25753 (replace_profitable_candidates): Clean up a gimple* variable that
25754 should be a gphi* variable.
25756 2017-03-20 Martin Sebor <msebor@redhat.com>
25759 * doc/extend.texi (attribute constructor): Document present limitation.
25761 2017-03-20 Kelvin Nilsen <kelvin@gcc.gnu.org>
25764 * config/rs6000/altivec.h (vec_all_ne): Under __cplusplus__ and
25765 __POWER9_VECTOR__ #ifdef control, change template definition to
25766 use Power9-specific built-in function.
25767 (vec_any_eq): Likewise.
25768 * config/rs6000/vector.md (vector_ae_v2di_p): Change the flag used
25769 to control outcomes from this test.
25770 (vector_ae_<mode>p): For VEC_F modes, likewise.
25772 2017-03-20 Ian Lance Taylor <iant@google.com>
25774 * config/i386/i386.c (ix86_function_regparm): Save an extra
25775 register for -fsplit-stack with DECL_STATIC_CHAIN.
25777 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
25780 * config/riscv/riscv.c (riscv_preferred_reload_class): Remove.
25781 (TARGET_PREFERRED_RELOAD_CLASS): Likewise.
25783 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com>
25785 * config/riscv/riscv.c (riscv_print_operand): Use "fence
25787 * config/riscv/sync.mc (mem_thread_fence_1): Use "fence
25790 2017-03-20 Marek Polacek <polacek@redhat.com>
25793 * asan.c (DEF_SANITIZER_BUILTIN): Use do { } while (0).
25795 2017-03-20 Richard Biener <rguenther@suse.de>
25797 PR tree-optimization/80113
25798 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Do not
25799 allocate extra SSA name for PHI def.
25800 (add_close_phis_to_outer_loops): Likewise.
25801 (add_close_phis_to_merge_points): Likewise.
25802 (copy_loop_close_phi_args): Likewise.
25803 (copy_cond_phi_nodes): Likewise.
25805 2017-03-20 Martin Liska <mliska@suse.cz>
25807 PR middle-end/79753
25808 * tree-chkp.c (chkp_build_returned_bound): Do not build
25809 returned bounds for a LHS that's not a BOUNDED_P type.
25811 2017-03-20 Martin Liska <mliska@suse.cz>
25815 * tree-chkp.c (chkp_find_bounds_1): Handle REAL_CST,
25816 COMPLEX_CST and VECTOR_CST.
25818 2017-03-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25821 * config/s390/s390.md ("cmp<mode>_ccs_0"): Add a clobber of the
25822 target operand. A new splitter adds the clobber statement in case
25823 the target operand is dead anyway.
25825 2017-03-19 Gerald Pfeifer <gerald@pfeifer.com>
25827 * doc/install.texi (Specific) <sparc-*-linux*>: No longer refer
25828 to age-old versions of binutils and glibc.
25830 2017-03-18 Segher Boessenkool <segher@kernel.crashing.org>
25832 * doc/contrib.texi (Contributors): Remove duplicate entry for myself.
25834 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
25836 * doc/contrib.texi (Contributors): Add Segher Boessenkool.
25838 2017-03-18 Gerald Pfeifer <gerald@pfeifer.com>
25840 * doc/install.texi (Specific) <arm-*-eabi>: Remove old
25841 requirement for binutils 2.13.
25843 2017-03-17 Jim Wilson <jim.wilson@linaro.org>
25845 * combine.c (try_combine): Delete redundant i1 test. Call
25846 prev_nonnote_nondebug_insn instead of prev_nonnote_insn.
25848 2017-03-17 Palmer Dabbelt <palmer@dabbelt.com
25850 * doc/install.texi (Specific) <riscv32-*-elf>: Add riscv32-*-elf,
25851 riscv32-*-linux, riscv64-*-elf, riscv64-*-linux to the table of
25853 <riscv64-*-elf>: Re-arrange section
25854 <riscv32-*-elf>: Add a note about requiring binutils 2.28.
25855 <riscv32-*-linux>: Likewise.
25856 <riscv64-*-elf>: Likewise
25857 <riscv64-*-linux>: Likewise.
25859 2017-03-17 Richard Earnshaw <rearnsha@arm.com>
25862 * aarch64.opt(verbose-cost-dump): Fix typo.
25864 2017-03-17 Pat Haugen <pthaugen@us.ibm.com>
25867 * config/rs6000/rs6000.md (copysign<mode>3_fcpsgn): Test
25868 for VECTOR_UNIT_VSX_P (<MODE>mode) too.
25870 2017-03-17 Bernd Schmidt <bschmidt@redhat.com>
25872 * reload.c (find_reloads): When reloading a nonoffsettable address,
25873 use RELOAD_OTHER for it and its address reloads.
25875 PR rtl-optimization/79910
25876 * combine.c (record_used_regs): New static function.
25877 (try_combine): Handle situations where there is an additional
25878 instruction between I2 and I3 which needs to have a LOG_LINK
25881 2017-03-17 Jeff Law <law@redhat.com>
25883 PR tree-optimization/71437
25884 * tree-vrp.c (simplify_stmt_for_jump_threading): Lookup the
25885 conditional in the hash table first.
25886 (vrp_dom_walker::before_dom_children): Extract condition from
25887 ASSERT_EXPR. Record condition, its inverion and any implied
25888 conditions as well.
25890 2017-03-17 Marek Polacek <polacek@redhat.com>
25891 Markus Trippelsdorf <markus@trippelsdorf.de>
25893 PR tree-optimization/80079
25894 * gimple-ssa-store-merging.c (class pass_store_merging): Initialize
25897 2017-03-17 Richard Biener <rguenther@suse.de>
25899 PR middle-end/80075
25900 * tree-eh.c (stmt_could_throw_1_p): Only handle gimple assigns.
25901 Properly verify the LHS before the RHS possibly claims to be
25903 (stmt_could_throw_p): Hande gimple conds fully here. Clobbers
25906 2017-03-17 Martin Jambor <mjambor@suse.cz>
25908 * doc/invoke.texi (Option Options): Include -fipa-vrp in the list.
25909 (List of -O2 options): Likewise.
25910 (-fipa-bit-cp): Replace "ipa" with "interprocedural."
25913 2017-03-17 Tom de Vries <tom@codesourcery.com>
25915 * gcov-dump.c (print_usage): Print bug_report_url.
25917 2017-03-17 Richard Biener <rguenther@suse.de>
25919 PR middle-end/80050
25920 * genmatch.c (parser::next): Remove pointless check for CPP_EOF.
25921 (parser::peek): Likewise.
25923 2017-03-17 Richard Biener <rguenther@suse.de>
25925 PR tree-optimization/80048
25926 * sese.c (free_sese_info): Properly release rename_map and
25927 copied_bb_map elements.
25929 2017-03-16 Alexandre Oliva <aoliva@redhat.com>
25931 * gimple-ssa-store-merging.c (struct imm_store_chain_info):
25932 Add linked-list forward and backlinks. Insert on
25933 construction, remove on destruction.
25934 (class pass_store_merging): Add m_stores_head field.
25935 (pass_store_merging::terminate_and_process_all_chains):
25936 Iterate over m_stores_head list.
25937 (pass_store_merging::terminate_all_aliasing_chains):
25939 (pass_store_merging::execute): Check for debug stmts first.
25940 Push new chains onto the m_stores_head stack.
25942 2017-03-16 Michael Meissner <meissner@linux.vnet.ibm.com>
25945 * config/rs6000/vsx.md (vsx_splat_<mode>, VSX_D iterator): Allow a
25946 SPLAT operation on ISA 2.07 64-bit systems that have direct move,
25947 but no MTVSRDD support, by doing MTVSRD and XXPERMDI.
25949 2017-03-16 Jeff Law <law@redhat.com>
25951 PR tree-optimization/71437
25952 * tree-ssa-dom.c (dom_opt_dom_walker): Remove thread_across_edge
25953 member function. Implementation moved into after_dom_children
25954 member function and into the threader's thread_outgoing_edges
25956 (dom_opt_dom_walker::after_dom_children): Simplify by moving
25957 some code into new thread_outgoing_edges.
25958 * tree-ssa-threadedge.c (thread_across_edge): Make static and simplify
25959 definition. Simplify marker handling (do it here). Assume we always
25960 have the available expression and the const/copies tables.
25961 (thread_outgoing_edges): New function extracted from tree-ssa-dom.c
25963 * tree-ssa-threadedge.h (thread_outgoing_edges): Declare.
25964 * tree-vrp.c (equiv_stack): No longer file scoped.
25965 (vrp_dom_walker): New class.
25966 (vrp_dom_walker::before_dom_children): New member function.
25967 (vrp_dom_walker::after_dom_children): Likewise.
25968 (identify_jump_threads): Setup domwalker. Use it rather than
25969 walking edges in a random order by hand. Simplify setup/finalization.
25970 (finalize_jump_threads): Remove.
25971 (vrp_finalize): Do not call identify_jump_threads here.
25972 (execute_vrp): Do it here instead and call thread_through_all_blocks
25975 PR tree-optimization/71437
25976 * tree-ssa-dom.c (pfn_simplify): Add basic_block argument. All
25978 (simplify_stmt_for_jump_threading): Add basic_block argument. All
25980 (lhs_of_dominating_assert): Moved from here into tree-vrp.c.
25981 (dom_opt_dom_walker::thread_across_edge): Remove
25982 handle_dominating_asserts argument. All callers changed.
25983 (record_temporary_equivalences_from_stmts_at_dest): Corresponding
25984 changes. Remove calls to lhs_of_dominating_assert. Other
25985 uses of handle_dominating_asserts turn into unconditional code
25986 (simplify_control_stmt_condition_1): Likewise.
25987 (simplify_control_stmt_condition): Likewise.
25988 (thread_through_normal_block, thread_across_edge): Likewise.
25989 * tree-ssa-threadedge.h (thread_across_edge): Corresponding changes.
25990 * tree-vrp.c (lhs_of_dominating_assert): Move here. Return original
25991 object if it is not an SSA_NAME.
25992 (simplify_stmt_for_jump_threading): Call lhs_of_dominating_assert
25993 before calling into the VRP specific simplifiers.
25994 (identify_jump_threads): Remove handle_dominating_asserts
25997 2017-03-16 Jakub Jelinek <jakub@redhat.com>
26000 * tree-diagnostic.c (default_tree_printer): No longer static.
26001 * tree-diagnostic.h (default_tree_printer): New prototype.
26003 2017-03-16 Tamar Christina <tamar.christina@arm.com>
26005 * config/aarch64/aarch64-simd.md (*aarch64_simd_mov<mode>)
26006 Change ins into fmov.
26008 2017-03-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26010 * config/aarch64/iterators.md (h_con): Return "x" for V4HF and V8HF.
26011 * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_from_dup<mode>):
26012 Use h_con constraint for operand 1.
26013 (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
26014 (*aarch64_mulx_elt_from_dup<mode>): Likewise for operand 2.
26016 2017-03-15 Jeff Law <law@redhat.com>
26018 PR tree-optimization/71437
26019 * tree-ssa-dom.c (derive_equivalences_from_bit_ior): New function.
26020 (record_temporary_equivalences): Use it.
26022 PR tree-optimization/71437
26023 * tree-ssa-dom.c (struct cond_equivalence): Moved from here into
26024 tree-ssa-scopedtables.
26025 (lookup_avail_expr, build_and_record_new_cond): Likewise.
26026 (record_conditions, record_cond, vuse_eq): Likewise.
26027 (record_edge_info): Adjust to API tweak of record_conditions.
26028 (simplify_stmt_for_jump_threading): Similarly for lookup_avail_expr.
26029 (record_temporary_equivalences, optimize_stmt): Likewise.
26030 (eliminate_redundant_computations): Likewise.
26031 (record_equivalences_from_stmt): Likewise.
26032 * tree-ssa-scopedtables.c: Include options.h and params.h.
26033 (vuse_eq): New function, moved from tree-ssa-dom.c
26034 (build_and_record_new_cond): Likewise.
26035 (record_conditions): Likewise. Accept vector of conditions rather
26036 than edge_equivalence structure for first argument.
26037 for the first argument.
26038 (avail_exprs_stack::lookup_avail_expr): New member function, moved
26039 from tree-ssa-dom.c.
26040 (avail_exprs_stack::record_cond): Likewise.
26041 * tree-ssa-scopedtables.h (struct cond_equivalence): Moved here
26042 from tree-ssa-dom.c.
26043 (avail_exprs_stack): Add new member functions lookup_avail_expr
26045 (record_conditions): Declare.
26047 2017-03-15 Vladimir Makarov <vmakarov@redhat.com>
26050 * lra-constraints.c (process_alt_operands): Increase reject for
26051 reloading an input/output operand.
26053 2017-03-15 Michael Meissner <meissner@linux.vnet.ibm.com>
26056 * config/rs6000/rs6000.md (float<QHI:mode><IEEE128:mode>2): Define
26057 insns to convert from signed/unsigned char/short to IEEE 128-bit
26059 (floatuns<QHI:mode><IEEE128:mode>2): Likewise.
26061 2017-03-15 Uros Bizjak <ubizjak@gmail.com>
26064 * config/i386/i386.c (ix86_vector_duplicate_value): Create
26065 subreg of inner mode for values already in registers.
26067 2017-03-15 Bernd Schmidt <bschmidt@redhat.com>
26069 * config/c6x/c6x.c (hwloop_optimize): Handle case where the old
26070 iteration reg is used after the loop.
26072 2017-03-14 Martin Sebor <msebor@redhat.com>
26074 PR tree-optimization/79800
26075 * gimple-ssa-sprintf.c (format_floating: Add argument. Handle
26076 precision in negative-positive range.
26077 (format_floating): Call non-const overload with adjusted precision.
26079 2017-03-14 Michael Meissner <meissner@linux.vnet.ibm.com>
26082 * config/rs6000/rs6000.h (TARGET_FRSQRTES): Add check for
26085 2017-03-14 Martin Sebor <msebor@redhat.com>
26087 PR middle-end/80020
26088 * builtin-attrs.def (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): New macro.
26089 * builtins.def (aligned_alloc): Use it.
26092 * Makefile.in (GTFILES): Add calls.c.
26093 * calls.c: Include "gt-calls.h".
26095 2017-03-14 Bernd Schmidt <bschmidt@redhat.com>
26097 PR rtl-optimization/79728
26098 * regs.h (struct target_regs): New field
26099 x_contains_allocatable_regs_of_mode.
26100 (contains_allocatable_regs_of_mode): New macro.
26101 * reginfo.c (init_reg_sets_1): Initialize it, and change
26102 contains_reg_of_mode so it includes global regs as well.
26103 * reload.c (push_reload): Use contains_allocatable_regs_of_mode
26104 rather than contains_regs_of_mode.
26106 2017-03-14 Martin Liska <mliska@suse.cz>
26108 * doc/invoke.texi: Document options that can't be combined with
26109 -fcheck-pointer-bounds.
26111 2017-03-14 Martin Liska <mliska@suse.cz>
26113 PR middle-end/79831
26114 * doc/invoke.texi (-Wchkp): Document the option.
26116 2017-03-14 Martin Liska <mliska@suse.cz>
26118 * Makefile.in: Install gcov-dump.
26120 2017-03-14 Martin Liska <mliska@suse.cz>
26122 * multiple_target.c (expand_target_clones): Bail out for
26123 an invalid attribute.
26125 2017-03-14 Richard Biener <rguenther@suse.de>
26127 * alias.c (struct alias_set_entry): Pack properly.
26128 * cfgloop.h (struct loop): Likewise.
26129 * cse.c (struct set): Likewise.
26130 * ipa-utils.c (struct searchc_env): Likewise.
26131 * loop-invariant.c (struct invariant): Likewise.
26132 * lra-remat.c (struct cand): Likewise.
26133 * recog.c (struct change_t): Likewise.
26134 * rtl.h (struct address_info): Likewise.
26135 * symbol-summary.h (function_summary): Likewise.
26136 * tree-loop-distribution.c (struct partition): Likewise.
26137 * tree-object-size.c (struct object_size_info): Likewise.
26138 * tree-ssa-loop-ivopts.c (struct cost_pair): Likewise.
26139 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Likewise.
26140 * tree-vect-data-refs.c (struct _vect_peel_info): Likewise.
26141 * tree-vect-slp.c (struct _slp_oprnd_info): Likewise.
26142 * tree-vect-stmts.c (struct simd_call_arg_info): Likewise.
26143 * tree-vectorizer.h (struct _loop_vec_info): Likewise.
26144 (struct _stmt_vec_info): Likewise.
26146 2017-03-14 Martin Liska <mliska@suse.cz>
26149 * multiple_target.c (create_dispatcher_calls): Check that
26150 a target can create a function dispatcher.
26152 2017-03-14 Martin Liska <mliska@suse.cz>
26155 * multiple_target.c (expand_target_clones): Drop local.local
26156 flag for default implementation.
26158 2017-03-14 Richard Biener <rguenther@suse.de>
26160 PR tree-optimization/80030
26161 * tree-vect-stmts.c (vectorizable_store): Plug memleak.
26163 2017-03-13 Kito Cheng <kito.cheng@gmail.com>
26165 * config/riscv/riscv.c (riscv_emit_float_compare>: Use
26166 gcc_fallthrough() instead of __attribute__((fallthrough));
26168 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
26170 * doc/gcc.texi: Remove "up" link to (DIR).
26171 * doc/gccint.texi: Ditto.
26173 2017-03-13 Gerald Pfeifer <gerald@pfeifer.com>
26175 * doc/install.texi (Specific) <avr>: Remove reference to
26178 2017-03-13 Jeff Law <law@redhat.com>
26180 * config/riscv/riscv.c (riscv_emit_float_compare): Use fallthru
26181 attribute rather than comments.
26183 * config/pdp11/pdp11.md (movmemhi): Adjust operand numbers to
26184 match_scratch operand is highest.
26186 2017-03-13 Martin Liska <mliska@suse.cz>
26188 PR middle-end/78339
26189 * ipa-pure-const.c (warn_function_noreturn): If the declarations
26190 is a CHKP clone, use original declaration.
26192 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
26194 * config/arc/arc.c (arc_init): Use multiplier whenever we have it.
26195 (arc_conditional_register_usage): Use a different allocation order
26196 when optimizing for size.
26197 * common/config/arc/arc-common.c (arc_option_optimization_table):
26198 Section anchors default on when optimizing for size.
26200 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
26202 * config/arc/arc.md (*tst_bitfield_tst): Fix pattern.
26204 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
26206 * config/arc/arc.c (arc_output_addsi): Emit code density adds.
26207 * config/arc/arc.md (cpu_facility): Add cd variant.
26208 (*movqi_insn): Add code density variant.
26209 (*movhi_insn): Likewise.
26210 (*movqi_insn): Likewise.
26211 (*addsi3_mixed): Likewise.
26212 (subsi3_insn): Likewise.
26214 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
26216 * config/arc/arc.md (movsi_cond_exec): Update constraint.
26218 2017-03-13 Claudiu Zissulescu <claziss@synopsys.com>
26220 * config/arc/arc.c (arc_legitimize_pic_address): Handle PIC
26221 expressions with MINUS and UNARY ops.
26223 2017-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26226 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3):
26228 (vec_sel_widen_ssum_lo<mode><V_half>3): ... This. Avoid mismatch
26229 between vec_select and vector argument.
26230 (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): Rename to...
26231 (vec_sel_widen_ssum_hi<mode><V_half>3): ... This. Likewise.
26232 (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): Rename to...
26233 (vec_sel_widen_usum_lo<mode><V_half>3): ... This.
26234 (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): Rename to...
26235 (vec_sel_widen_usum_hi<mode><V_half>3): ... This.
26237 2017-03-13 Richard Biener <rguenther@suse.de>
26240 * params.def (vect-max-peeling-for-alignment): Fix typo.
26242 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
26244 * doc/install.texi (Specific) <mips-*-*>: Remove description of
26245 issue that only occurred with binutils below 2.18.
26247 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
26249 * doc/install.texi (Specific) <cris-axis-elf>: No longer
26250 refer to binutils 2.11/2.12 minimum.
26252 2017-03-12 Gerald Pfeifer <gerald@pfeifer.com>
26254 * doc/install.texi (Specific) <powerpc-*-*>: Remove link to
26255 ftp.kernel.org and simplify binutils requirement.
26257 2017-03-11 Gerald Pfeifer <gerald@pfeifer.com>
26259 * doc/invoke.texi (Warning Options): Fix spelling of link-time
26261 (Optimize Options): Ditto. Also remove redundancy.
26263 2017-03-10 David Malcolm <dmalcolm@redhat.com>
26265 PR translation/79848
26266 * ipa-devirt.c (warn_types_mismatch): Simplify uses of "%<%s%>" to
26268 * ipa-pure-const.c (suggest_attribute): Likewise. Convert _
26269 to G_ to avoid double translation.
26271 2017-03-10 David Malcolm <dmalcolm@redhat.com>
26273 PR translation/79923
26274 * auto-profile.c (get_combined_location): Convert leading
26275 character of diagnostics to lower case and remove trailing period.
26276 (read_profile): Likewise for various diagnostics.
26277 * config/arm/arm.c (arm_option_override): Remove trailing period
26278 from various diagnostics.
26279 * config/msp430/msp430.c (msp430_expand_delay_cycles): Likewise.
26280 (msp430_expand_delay_cycles): Likewise.
26282 2017-03-10 David Malcolm <dmalcolm@redhat.com>
26285 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Quote the
26286 full command-line argument, rather than just "str".
26287 (aarch64_validate_march): Likewise.
26288 (aarch64_validate_mtune): Likewise.
26290 2017-03-10 Bernd Schmidt <bschmidt@redhat.com>
26292 PR rtl-optimization/78911
26293 * lra-assigns.c (must_not_spill_p): New function.
26294 (spill_for): Use it.
26296 2017-03-10 Jakub Jelinek <jakub@redhat.com>
26298 PR tree-optimization/79981
26299 * tree-vrp.c (extract_range_basic): Handle IMAGPART_EXPR of
26300 ATOMIC_COMPARE_EXCHANGE ifn result.
26301 (stmt_interesting_for_vrp, vrp_visit_stmt): Handle
26302 IFN_ATOMIC_COMPARE_EXCHANGE.
26304 2017-03-10 David Malcolm <dmalcolm@redhat.com>
26307 * opts.c (parse_sanitizer_options): Add missing question mark to
26308 "did you mean" message.
26310 2017-03-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26312 * config/rs6000/rs6000-builtin.def (VMULEUB_UNS): Remove orphaned
26314 (VMULEUH_UNS): Likewise.
26315 (VMULOUB_UNS): Likewise.
26316 (VMULOUH_UNS): Likewise.
26317 * config/rs6000/rs6000.c (builtin_function_type): Remove
26318 references to ALTIVEC_BUILTIN_VMUL[EO]U[BH]_UNS.
26320 2017-03-10 David Malcolm <dmalcolm@redhat.com>
26323 * read-rtl-function.c (function_reader::read_rtx_operand): Update
26324 x with result of extra_parsing_for_operand_code_0.
26325 (function_reader::extra_parsing_for_operand_code_0): Convert
26326 return type from void to rtx, returning x. When reading
26327 SYMBOL_REF with SYMBOL_FLAG_HAS_BLOCK_INFO, reallocate x to the
26328 larger size containing struct block_symbol.
26330 2017-03-10 Segher Boessenkool <segher@kernel.crashing.org>
26332 * config/rs6000/rs6000.c (rs6000_option_override_internal): Disallow
26333 -mfloat128-hardware without -m64.
26335 2017-03-10 Will Schmidt <will_schmidt@vnet.ibm.com>
26338 * config/rs6000/rs6000.c (builtin_function_type): Add VMUL*U[HB]
26339 entries to the case statement that marks unsigned arguments to
26340 overloaded functions.
26342 2017-03-10 Kelvin Nilsen <kelvin@gcc.gnu.org>
26344 * config/rs6000/rs6000.c (rs6000_option_override_internal): Fix
26345 two typographic errors in the handling of TARGET_UPPER_REGS_DI.
26347 2017-03-10 Pat Haugen <pthaugen@us.ibm.com>
26350 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Test
26351 TARGET_UPPER_REGS_DI when setting 'wi' constraint regclass.
26353 2017-03-10 Martin Liska <mliska@suse.cz>
26357 * toplev.c (process_options): Enable MPX with LSAN and UBSAN.
26358 * tree-chkp.c (chkp_walk_pointer_assignments): Verify that
26361 2017-03-10 Olivier Hainque <hainque@adacore.com>
26363 * tree-switch-conversion (array_value_type): Start by resetting
26364 candidate type to it's main variant.
26366 2017-03-10 Jakub Jelinek <jakub@redhat.com>
26368 PR rtl-optimization/79909
26369 * combine.c (try_combine): Use simplify_replace_rtx on individual
26370 CALL_INSN_FUNCTION_USAGE elements instead of replace_rtx on copy_rtx
26371 of the whole CALL_INSN_FUNCTION_USAGE.
26373 PR tree-optimization/79972
26374 * gimple-ssa-warn-alloca.c (alloca_call_type): Only call
26375 get_range_info on SSA_NAMEs. Formatting fixes.
26377 2017-03-10 Richard Biener <rguenther@suse.de>
26378 Jakub Jelinek <jakub@redhat.com>
26380 PR tree-optimization/77975
26381 * tree-ssa-loop-niter.c (get_base_for): Allow phi argument from latch
26382 edge to be constant.
26383 (get_val_for): For constant x return it. Formatting fix.
26384 (loop_niter_by_eval): Avoid pointless looping if the next iteration
26385 would use the same bases as the current one.
26387 2017-03-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26389 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use rotate
26390 instead of vec_select for V1TImode.
26391 * conifg/rs6000/vsx.md (VSX_LE): Remove mode iterator that is no
26393 (VSX_LE_128): Add V1TI to this mode iterator.
26394 (*vsx_le_perm_load_<mode>): Change to use VSX_D mode iterator.
26395 (*vsx_le_perm_store_<mode>): Likewise.
26396 (pre-reload splitter for VSX stores): Likewise.
26397 (post-reload splitter for VSX stores): Likewise.
26398 (*vsx_xxpermdi2_le_<mode>): Likewise.
26399 (*vsx_lxvd2x2_le_<mode>): Likewise.
26400 (*vsx_stxvd2x2_le_<mode>): Likewise.
26402 2017-03-09 Michael Eager <eager@eagercon.com>
26404 Correct failures with --enable-checking=yes,rtl.
26406 * config/microblaze/microblaze.c (microblaze_expand_shift):
26407 Replace GET_CODE test with CONST_INT_P and INTVAL test with
26408 test for const0_rtx.
26409 * config/microblaze/microblaze.md (ashlsi3_byone, ashrsi3_byone,
26410 lshrsi3_byone): Replace INTVAL with test for const1_rtx.
26412 2017-03-09 Richard Biener <rguenther@suse.de>
26414 PR tree-optimization/79977
26415 * graphite-scop-detection.c (scop_detection::merge_sese):
26416 Handle the case of extra exits to blocks dominating the entry.
26418 2017-03-09 Toma Tabacu <toma.tabacu@imgtec.com>
26420 * doc/sourcebuild.texi (Effective-Target Keywords, Other attributes):
26423 2017-03-09 Vladimir Makarov <vmakarov@redhat.com>
26425 PR rtl-optimization/79949
26426 * lra-constraints.c (process_alt_operands): Check memory when
26427 trying to predict a cycle. Print about the overall increase.
26429 2017-03-09 Richard Biener <rguenther@suse.de>
26431 PR middle-end/79971
26432 * gimple-expr.c (useless_type_conversion_p): Preserve
26433 TYPE_SATURATING for fixed-point types.
26435 2017-03-09 Richard Biener <rguenther@suse.de>
26438 * ipa-prop.c (ipa_modify_formal_parameters): Avoid changing
26439 alignment of BLKmode params.
26441 2017-03-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26444 * config/aarch64/iterators.md (VALL_F16_NO_V2Q): New mode iterator.
26445 (VALL_NO_V2Q): Likewise.
26447 * config/aarch64/aarch64-simd.md
26448 (aarch64_dup_lane_<vswap_width_name><mode>): Use VALL_F16_NO_V2Q
26450 (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Use
26451 VALL_NO_V2Q mode iterator.
26452 (*aarch64_vgetfmulx<mode>): Use VDQF iterator.
26454 2017-03-09 Martin Liska <mliska@suse.cz>
26456 PR tree-optimization/79631
26457 * tree-chkp-opt.c (chkp_is_constant_addr): Call
26458 tree_int_cst_sign_bit just for INTEGER constants.
26460 2017-03-09 Martin Liska <mliska@suse.cz>
26464 * toplev.c (process_options): Disable -fcheck-pointer-bounds with
26467 2017-03-09 Marek Polacek <polacek@redhat.com>
26470 * tree.c (inchash::add_expr): Handle TREE_VEC.
26472 2017-03-09 Martin Liska <mliska@suse.cz>
26475 (chkp_narrow_size_and_offset): New function.
26476 (chkp_parse_array_and_component_ref): Support BIT_FIELD_REF.
26477 (void chkp_parse_bit_field_ref): New function.
26478 (chkp_make_addressed_object_bounds): Add case for BIT_FIELD_REF.
26479 (chkp_process_stmt): Use chkp_parse_bit_field_ref.
26481 2017-03-09 Martin Liska <mliska@suse.cz>
26484 * tree-chkp.c (chkp_get_bound_for_parm): Get bounds for a param.
26485 (chkp_find_bounds_1): Remove gcc_unreachable.
26487 2017-03-09 Jakub Jelinek <jakub@redhat.com>
26490 * asan.c (get_mem_refs_of_builtin_call): For BUILT_IN_ATOMIC* and
26491 BUILT_IN_SYNC*, determine the access type from the size suffix and
26492 always build a MEM_REF with that type. Handle forgotten
26493 BUILT_IN_SYNC_FETCH_AND_NAND_16 and BUILT_IN_SYNC_NAND_AND_FETCH_16.
26496 * config/i386/avx512vlintrin.h (_mm256_cmpge_epi32_mask,
26497 _mm256_cmpge_epi64_mask, _mm256_cmpge_epu32_mask,
26498 _mm256_cmpge_epu64_mask, _mm256_cmple_epi32_mask,
26499 _mm256_cmple_epi64_mask, _mm256_cmple_epu32_mask,
26500 _mm256_cmple_epu64_mask, _mm256_cmplt_epi32_mask,
26501 _mm256_cmplt_epi64_mask, _mm256_cmplt_epu32_mask,
26502 _mm256_cmplt_epu64_mask, _mm256_cmpneq_epi32_mask,
26503 _mm256_cmpneq_epi64_mask, _mm256_cmpneq_epu32_mask,
26504 _mm256_cmpneq_epu64_mask, _mm256_mask_cmpge_epi32_mask,
26505 _mm256_mask_cmpge_epi64_mask, _mm256_mask_cmpge_epu32_mask,
26506 _mm256_mask_cmpge_epu64_mask, _mm256_mask_cmple_epi32_mask,
26507 _mm256_mask_cmple_epi64_mask, _mm256_mask_cmple_epu32_mask,
26508 _mm256_mask_cmple_epu64_mask, _mm256_mask_cmplt_epi32_mask,
26509 _mm256_mask_cmplt_epi64_mask, _mm256_mask_cmplt_epu32_mask,
26510 _mm256_mask_cmplt_epu64_mask, _mm256_mask_cmpneq_epi32_mask,
26511 _mm256_mask_cmpneq_epi64_mask, _mm256_mask_cmpneq_epu32_mask,
26512 _mm256_mask_cmpneq_epu64_mask, _mm_cmpge_epi32_mask,
26513 _mm_cmpge_epi64_mask, _mm_cmpge_epu32_mask, _mm_cmpge_epu64_mask,
26514 _mm_cmple_epi32_mask, _mm_cmple_epi64_mask, _mm_cmple_epu32_mask,
26515 _mm_cmple_epu64_mask, _mm_cmplt_epi32_mask, _mm_cmplt_epi64_mask,
26516 _mm_cmplt_epu32_mask, _mm_cmplt_epu64_mask, _mm_cmpneq_epi32_mask,
26517 _mm_cmpneq_epi64_mask, _mm_cmpneq_epu32_mask, _mm_cmpneq_epu64_mask,
26518 _mm_mask_cmpge_epi32_mask, _mm_mask_cmpge_epi64_mask,
26519 _mm_mask_cmpge_epu32_mask, _mm_mask_cmpge_epu64_mask,
26520 _mm_mask_cmple_epi32_mask, _mm_mask_cmple_epi64_mask,
26521 _mm_mask_cmple_epu32_mask, _mm_mask_cmple_epu64_mask,
26522 _mm_mask_cmplt_epi32_mask, _mm_mask_cmplt_epi64_mask,
26523 _mm_mask_cmplt_epu32_mask, _mm_mask_cmplt_epu64_mask,
26524 _mm_mask_cmpneq_epi32_mask, _mm_mask_cmpneq_epi64_mask,
26525 _mm_mask_cmpneq_epu32_mask, _mm_mask_cmpneq_epu64_mask): Move
26526 definitions outside of __OPTIMIZE__ guarded section.
26529 * config/i386/avx512bwintrin.h (_mm512_packs_epi32,
26530 _mm512_maskz_packs_epi32, _mm512_mask_packs_epi32,
26531 _mm512_packus_epi32, _mm512_maskz_packus_epi32,
26532 _mm512_mask_packus_epi32): Move definitions outside of __OPTIMIZE__
26535 2017-03-09 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26537 * config/s390/vx-builtins.md ("vfee<mode>", "vfeez<mode>")
26538 ("vfenez<mode>"): Add missing constraints.
26540 2017-03-08 Martin Sebor <msebor@redhat.com>
26543 * config/nds32/nds32.c (nds32_option_override):
26544 Fix misspelled diagnostic.
26546 2017-03-08 Jakub Jelinek <jakub@redhat.com>
26549 * gimplify.c (gimplify_omp_for): Replace index var in outer
26550 taskloop statement with an artificial variable and add
26551 OMP_CLAUSE_PRIVATE clause for it.
26553 2017-03-08 Richard Biener <rguenther@suse.de>
26555 PR tree-optimization/79955
26556 * tree-ssa-uninit.c (warn_uninitialized_vars): Do not warn
26557 for accesses that are completely outside of the variable.
26559 2017-03-08 Andrew Haley <aph@redhat.com>
26561 PR tree-optimization/79943
26562 * tree-ssa-loop-split.c (compute_new_first_bound): When
26563 calculating the new upper bound, (END-BEG) should be added, not
26566 2017-03-08 Jakub Jelinek <jakub@redhat.com>
26568 * config/avr/avr.md (setmemhi): Make sure match_dup
26569 operand number comes before match_scratch.
26571 2017-03-08 Richard Biener <rguenther@suse.de>
26573 PR tree-optimization/79920
26574 * tree-vect-slp.c (vect_create_mask_and_perm): Remove and inline
26575 with ncopies == 1 to ...
26576 (vect_transform_slp_perm_load): ... here. Properly compute
26577 all element loads by iterating VF times over the group. Do
26578 not handle ncopies (computed in a broken way) in
26579 vect_create_mask_and_perm.
26581 2017-03-08 Jakub Jelinek <jakub@redhat.com>
26584 * internal-fn.c (expand_vector_ubsan_overflow): If arg0 or arg1
26585 is a uniform vector, use uniform_vector_p return value instead of
26586 building ARRAY_REF on folded VIEW_CONVERT_EXPR to array type.
26588 2017-03-07 Marek Polacek <polacek@redhat.com>
26590 PR middle-end/79809
26591 * gimple-ssa-warn-alloca.c (pass_walloca::gate): Use HOST_WIDE_INT.
26592 (alloca_call_type): Likewise.
26594 2017-03-07 Martin Liska <mliska@suse.cz>
26596 * gcov.c (process_args): Put comment to correct location.
26598 2017-03-07 Martin Liska <mliska@suse.cz>
26600 PR middle-end/68270
26601 * tree-chkp.c (chkp_may_narrow_to_field): Add new argument ref.
26602 Use array_at_struct_end_p instead of DECL_CHAIN (field).
26603 (chkp_narrow_bounds_for_field): Likewise.
26604 (chkp_parse_array_and_component_ref): Pass one more argument to
26607 2017-03-07 Richard Biener <rguenther@suse.de>
26609 * tree-vect-loop-manip.c (slpeel_add_loop_guard): Preserve
26612 2017-03-07 Segher Boessenkool <segher@kernel.crashing.org>
26614 * config/i386/i386.c (ix86_local_alignment): Align most aggregates
26615 of 16 bytes and more to 16 bytes, not those of 16 bits and more.
26617 2017-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26620 * params.def (PARAM_STORE_MERGING_ALLOW_UNALIGNED): Add full stop
26621 to end of description.
26622 (PARAM_MAX_STORES_TO_MERGE): Likewise.
26624 2017-03-07 Jakub Jelinek <jakub@redhat.com>
26626 PR rtl-optimization/79901
26627 * config/i386/sse.md (*avx512bw_<code><mode>3<mask_name>): Renamed to
26629 (*avx512f_<code><mode>3<mask_name>): ... this.
26630 (<code><mode>3 with maxmin code iterator): Use VI8_AVX2_AVX512F
26631 iterator instead of VI8_AVX2_AVX512BW.
26633 PR rtl-optimization/79901
26634 * expr.c (expand_expr_real_2): For vector MIN/MAX, if there is no
26635 min/max expander, expand it using expand_vec_cond_expr.
26638 * ubsan.c (ubsan_encode_value): Call mark_addressable on the
26641 2017-03-06 Jakub Jelinek <jakub@redhat.com>
26644 * dwarf2out.h (dw_vec_const): Change array type from unsigned char *
26645 to void * for PCH reasons.
26646 * dwarf2out.c (output_loc_operands, output_die): Cast
26647 v.val_vec.array to unsigned char *.
26649 2017-03-06 John David Anglin <danglin@gcc.gnu.org>
26652 * config/pa/pa-64.h (PAD_VARARGS_DOWN): Don't pad down complex and
26655 2017-03-06 Vladimir Makarov <vmakarov@redhat.com>
26657 PR rtl-optimization/79571
26658 * lra-constraints.c (process_alt_operands): Calculate static
26659 reject and subtract it from overall when only addresses will be
26662 2017-03-06 Julia Koval <julia.koval@intel.com>
26665 * config/i386/i386.c (ix86_minimum_incoming_stack_boundary): Set
26666 incoming stack boundary to 128 for 64-bit targets.
26668 2017-03-06 Richard Biener <rguenther@suse.de>
26670 PR tree-optimization/79894
26671 * tree-vectorizer.c (vectorize_loops): Set loop_vectorized_call
26672 to NULL after folding it.
26674 2017-03-06 Richard Biener <rguenther@suse.de>
26676 PR tree-optimization/79824
26677 * tree-vect-stmts.c (get_group_load_store_type): Fix alignment
26678 check disabling peeling for gaps.
26680 2017-03-06 Toma Tabacu <toma.tabacu@imgtec.com>
26682 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
26683 attributes): Document gettimeofday.
26685 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
26687 * config/s390/s390.c (s390_option_override_internal): Set
26688 PARAM_MIN_VECT_LOOP_BOUND
26690 2017-03-06 Robin Dapp <rdapp@linux.vnet.ibm.com>
26692 * config/s390/s390.c (s390_asm_output_function_label): Use nopr %r0.
26693 * config/s390/s390.md: Likewise.
26695 2017-03-06 Jakub Jelinek <jakub@redhat.com>
26698 * config/i386/sse.md (VI8F_256_512): Remove mode iterator.
26699 (<avx2_avx512>_perm<mode>): Rename to ...
26700 (avx2_perm<mode>): ... this. Use VI8F_256 iterator instead
26702 (<avx512>_perm<mode>_mask): Rename to ...
26703 (avx512vl_perm<mode>_mask): ... this. Use VI8F_256 iterator instead
26705 (<avx2_avx512>_perm<mode>_1<mask_name>): Rename to ...
26706 (avx2_perm<mode>_1<mask_name): ... this. Use VI8F_256 iterator
26707 instead of VI8F_256_512.
26708 (avx512f_perm<mode>): New define_expand.
26709 (avx512f_perm<mode>_mask): Likewise.
26710 (avx512f_perm<mode>_1<mask_name>): New define_insn.
26711 (<avx512>_vec_dup<mode>_1): Fix up vec_select mode.
26713 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
26715 * config/mips/mips-msa.md (msa_fmax_a_<msafmt>, msa_fmin_a_<msafmt>,
26716 msa_max_a_<msafmt>, msa_min_a_<msafmt>): Introduce mode interator for
26718 (smin<mode>3, smax<mode>3): Change operand print code from 'B' to 'E'.
26720 2017-03-06 Martin Liska <mliska@suse.cz>
26723 * asan.c (asan_expand_poison_ifn): Do not expand ASAN_POISON
26724 when having a SSA NAME w/o VAR_DECL assigned to it.
26726 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
26728 * config/mips/mips-msa.md (msa_dotp_<su>_d, msa_dpadd_<su>_d,
26729 msa_dpsub_<su>_d): Fix MODE for vec_select.
26731 2017-03-06 Prachi Godbole <prachi.godbole@imgtec.com>
26733 * config/mips/mips.c (mips_gen_const_int_vector): Change type of last
26735 * config/mips/mips-protos.h (mips_gen_const_int_vector): Likewise.
26737 2017-03-06 Richard Biener <rguenther@suse.de>
26739 * lto-streamer.c (lto_check_version): Use %qs in diagnostics.
26740 * plugin.c (register_plugin_info): Likewise.
26741 * tree-chkp.c (chkp_make_static_const_bounds): Likewise.
26743 2017-03-05 Jakub Jelinek <jakub@redhat.com>
26745 * config/i386/sse.md (sse_storehps, sse_storelps,
26746 avx_<castmode><avxsizesuffix>_<castmode>,
26747 avx512f_<castmode><avxsizesuffix>_<castmode>,
26748 avx512f_<castmode><avxsizesuffix>_256<castmode>): Require
26749 in condition that at least one operand is not a MEM.
26751 2017-03-03 Jakub Jelinek <jakub@redhat.com>
26753 PR middle-end/79805
26754 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET, ATOMIC_BIT_TEST_AND_RESET,
26755 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_COMPARE_EXCHANGE): Remove
26757 * gimple-fold.c (fold_builtin_atomic_compare_exchange): Set
26758 gimple_call_nothrow_p flag based on whether original builtin can throw.
26759 If it can, emit following stmts on the fallthrough edge.
26760 * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Similarly, except
26761 don't create new bb if inserting just debug stmts on the edge, try to
26762 insert them on the fallthru bb or just reset debug stmts.
26764 2017-03-03 Segher Boesssenkool <segher@kernel.crashing.org>
26767 * config/rs6000/rs6000.c (rs6000_final_prescan_insn): Save and
26768 restore recog_data (including the operand rtxes inside it) around
26769 the call to get_insn_template.
26771 2017-03-03 Martin Sebor <msebor@redhat.com>
26773 PR tree-optimization/79699
26774 * context.c (context::~context): Free MPFR caches to avoid
26775 a memory leak on program exit.
26777 2017-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26779 * config/aarch64/aarch64.c (aarch64_float_const_representable_p):
26780 Use wide_int::ulow () instead of .elt (0).
26782 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
26784 * config/i386/i386.md (*pushtf): Change *roF constraint to *roC.
26785 (*pushxf): Limit oF constraint to 32bit targets and add oC
26786 constraint for 64bit targets.
26787 (pushxf splitter): Use PUSH_ROUNDING to calculate stack adjustment.
26788 (*pushdf): Change rmF constraint to rmC.
26790 2017-03-03 Martin Liska <mliska@suse.cz>
26792 * tree-ssa-loop-prefetch.c (pass_loop_prefetch::execute):
26793 Remove unused variable.
26795 2017-03-03 Jakub Jelinek <jakub@redhat.com>
26798 * config/i386/i386.c (ix86_expand_multi_arg_builtin): If target
26799 is a memory operand, increase num_memory.
26800 (ix86_expand_args_builtin): Likewise.
26802 2017-03-03 Jan Hubicka <jh@suse.cz>
26805 * ipa-devirt.c (maybe_record_node): Properly handle
26806 __cxa_pure_virtual visibility.
26808 2017-03-03 Martin Liska <mliska@suse.cz>
26810 PR tree-optimization/79803
26811 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Remove
26813 (pass_loop_prefetch::execute): Disabled optimization if an
26814 assumption about L1 cache size is not met.
26816 2017-03-03 Martin Liska <mliska@suse.cz>
26818 PR rtl-optimization/79574
26819 * gcse.c (struct gcse_expr): Use HOST_WIDE_INT instead of int.
26820 (hash_scan_set): Likewise.
26821 (dump_hash_table): Likewise.
26822 (hoist_code): Likewise.
26824 2017-03-03 Richard Biener <rguenther@suse.de>
26826 * fixed-value.c (fixed_from_string): Restore use of elt (1)
26827 in place of uhigh ().
26828 (fixed_convert_from_real): Likewise.
26830 2017-03-03 Uros Bizjak <ubizjak@gmail.com>
26833 * config/i386/i386.md (*pushxf_rounded): Use Pmode instead of DImode.
26835 2017-03-03 Richard Biener <rguenther@suse.de>
26837 PR middle-end/79818
26838 * match.pd ( X +- C1 CMP C2 -> X CMP C2 -+ C1): Add missing
26839 TYPE_OVERFLOW_UNDEFINED check.
26841 2017-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26843 * config/rs6000/vector.md (vector_ne_<mode>_p): Correct operand
26845 (vector_ae_<mode>_p): Likewise.
26846 (vector_nez_<mode>_p): Likewise.
26847 (vector_ne_v2di_p): Likewise.
26848 (vector_ae_v2di_p): Likewise.
26849 (vector_ne_<mode>_p): Likewise.
26850 * config/rs6000/vsx.md (vsx_tsqrt<mode>2_fg): Correct operand
26852 (vsx_tsqrt<mode>2_fe): Likewise.
26854 2017-03-02 Uros Bizjak <ubizjak@gmail.com>
26857 * config/i386/i386.md (*pushxf_rounded): New insn_and_split pattern.
26859 2017-03-02 Jakub Jelinek <jakub@redhat.com>
26861 PR rtl-optimization/79780
26862 * cprop.c (one_cprop_pass): When second and further conditional trap
26863 in a single basic block is turned into an unconditional trap, turn it
26864 into a deleted note to avoid RTL verification failures.
26866 2017-03-02 Richard Biener <rguenther@suse.de>
26868 * fold-const.c (const_binop): Use ulow () instead of elt (0).
26870 2017-03-02 Richard Biener <rguenther@suse.de>
26872 PR tree-optimization/79345
26874 * tree-ssa-alias.c (walk_aliased_vdefs_1): Take a limit
26875 param and abort the walk, returning -1 if it is hit.
26876 (walk_aliased_vdefs): Take a limit param and pass it on.
26877 * tree-ssa-alias.h (walk_aliased_vdefs): Add a limit param,
26878 defaulting to 0 and return a signed int.
26879 * tree-ssa-uninit.c (struct check_defs_data): New struct.
26880 (check_defs): New helper.
26881 (warn_uninitialized_vars): Use walk_aliased_vdefs to warn
26882 about uninitialized memory.
26883 * fixed-value.c (fixed_from_string): Use ulow/uhigh to avoid
26884 bogus uninitialized warning.
26885 (fixed_convert_from_real): Likewise.
26887 2017-03-02 Bin Cheng <bin.cheng@arm.com>
26889 PR tree-optimization/66768
26890 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Skip addr
26891 iv_use if base object can't be determined.
26893 2017-03-02 Jakub Jelinek <jakub@redhat.com>
26895 PR tree-optimization/79345
26896 * gensupport.h (struct pattern_stats): Add min_scratch_opno field.
26897 * gensupport.c (get_pattern_stats_1) <case MATCH_SCRATCH>: Update it.
26898 (get_pattern_stats): Initialize it.
26899 * genemit.c (gen_expand): Verify match_scratch numbers come after
26900 match_operand/match_dup numbers.
26901 * config/i386/i386.md (<s>mul<mode>3_highpart): Swap match_dup and
26902 match_scratch numbers.
26903 * config/i386/sse.md (avx2_gathersi<mode>, avx2_gatherdi<mode>):
26905 * config/s390/s390.md (trunctdsd2): Likewise.
26907 2017-03-02 Richard Biener <rguenther@suse.de>
26909 * wide-int.h (wide_int_storage::operator=): Implement in terms
26912 2017-03-02 Richard Biener <rguenther@suse.de>
26914 PR tree-optimization/79777
26915 * tree-ssa-pre.c (eliminate_insert): Give up if we simplify
26916 the to insert expression to sth existing.
26918 2017-03-01 Martin Sebor <msebor@redhat.com>
26920 PR middle-end/79692
26921 * gimple-ssa-sprintf.c
26922 (directive::known_width_and_precision): New function.
26923 (format_integer): Use it.
26924 (get_mpfr_format_length): Consider the full range of precision
26925 when computing %g output with the # flag. Set the likely byte
26926 count to 3 rather than 1 when precision is indeterminate.
26927 (format_floating): Correct the lower bound of precision.
26929 2017-03-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26931 * doc/invoke.texi: Document default code model for 64-bit Linux.
26933 2017-03-01 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
26936 * config/rs6000/rs6000.md (peephole2 for udiv/umod): Should emit
26937 udiv rather than div since input pattern is unsigned.
26939 2017-03-01 Uros Bizjak <ubizjak@gmail.com>
26941 * config/i386/i386.c (print_reg): Warn for values of
26942 unsupported size in integer register.
26944 2017-03-01 Michael Meissner <meissner@linux.vnet.ibm.com>
26947 * config/rs6000/predicates.md (current_file_function_operand): Do
26948 not allow self calls to be local if the function is replaceable.
26950 2017-03-01 Kelvin Nilsen <kelvin@gcc.gnu.org>
26953 * config/rs6000/altivec.h (vec_ctz and others): Change the
26954 preprocessor macro that controls conditional compilation from
26955 _ARCH_PWR9 to __POWER9_VECTOR__.
26956 (vec_all_ne): Change parameterization of __altivec_scalar_pred
26957 macro expansion under preprocessor #ifdef __POWER9_VECTOR__
26958 control (instead of _ARCH_PWR9 control) so that template
26959 definition uses power9-specific function.
26960 (vec_any_eq): Likewise.
26961 (vec_all_ne): Change macro definition to use a power9-specific
26962 expansion under #ifdef __POWER9_VECTOR__ control (instead of
26963 _ARCH_PWR9 control).
26964 (vec_any_eq) Likewise.
26965 * config/rs6000/rs6000-builtin.def (CMPNEF): Remove BU_P9V_AV_2
26966 expansion for CMPNEF to remove support for xvcmpnesp instruction.
26967 (CMPNED): Remove BU_P9V_AV2 expansion for CMPNED to remove
26968 support for xvcmpnedp instruction.
26969 (VCMPNEB_P): Replace BU_P9V_AV_P macro expansion with BU_P9V_AV_2
26970 macro expansion so that Power9 implementation of vec_all_ne does
26971 not use the AltiVec predicate framework.
26972 (VCMPNEH_P): Likewise.
26973 (VCMPNEW_P): Likewise.
26974 (VCMPNED_P): Likewise.
26975 (VCMPNEFP_P): Likewise.
26976 (VCMPNEDP_P): Likewise.
26977 (VCMPAEB_P): Add BU_P9V_AV_2 macro expansion to change
26978 implementation of vec_any_eq to not use AltiVec predicate
26980 (VCMPAEH_P): Likewise.
26981 (VCMPAEW_P): Likewise.
26982 (VCMPAED_P): Likewise.
26983 (VCMPAEFP_P): Likewise.
26984 (VCMPAEDP_P): Likewise.
26985 (VCMPNE_P): Replace BU_P9V_OVERLOAD_P macro expansion with
26986 BU_P9V_OVERLOAD_2 so that Power9 implementation of vec_all_ne does
26987 not use the AltiVec predicate framework.
26988 (VCMPAE_P): Add BU_P9V_OVERLOAD_2 macro to change implementation
26989 of vec_any_eq to not use AltiVec predicate framework.
26990 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Add
26991 support for predefined __POWER9_VECTOR__ macro to indicate that
26992 Power9 instruction selection is enabled.
26993 (altivec_overloaded_builtins): Remove extraneous
26994 ALTIVEC_BUILTIN_VEC_CMPNE entry for overloaded
26995 function argument types RS6000_BTI_bool_V16QI and
26996 RS6000_BTI_bool_V16QI. Remove erroneous ALTIVEC_BUILTIN_VEC_CMPNE
26997 entry for overloaded function argument types RS6000_BTI_bool_V4SI
26998 andRS6000_BTI_bool_V4SI, mapping to P9V_BUILTIN_CMPNEB. Remove
26999 two entries mapping to P9V_BUITIN_CMPNED and one entry mapping to
27000 P9V_BUILTIN_CMPNEF to force use of instructions not specific to
27001 Power9 for implementations of vec_cmpne. Change the signature for
27002 all definitions of the overloaded P9V_BUILTIN_VEC_CMPNE_P function
27003 (representing vec_all_ne) to remove the previously described first
27004 argument of type RS6000_BTI_INTSI, as this was an artifact of
27005 reliance on the AltiVec predicate framework, which is no longer
27006 used in the implementation of these functions. Add
27007 P9V_BUILTIN_VEC_VCMPAE_P entries (representing the vec_anyeq
27008 function) to match all of the P9V_BUILTIN_VEC_VCMNE_P entries
27009 since, unlike the AltiVec predicate framework implementation, we
27010 do not share function descriptors between vec_alle and vec_anyeq.
27011 (altivec_resolve_overloaded_builtin): Add SFmode and DFmode to the
27012 set of modes that receive special treatment even when
27013 TARGET_P9_VECTOR is true. The special treatment emits code that
27014 does not depend on Power9 instructions.
27015 * config/rs6000/vector.md (vector_ne_<mode>_p): Change this
27016 define_expand to not rely on AltiVec predicate framework.
27017 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
27019 (vector_ne_v2di_p): Change this define_expand to not rely on
27020 AltiVec predicate framework.
27021 (vector_ae_v2di_p): New define_expand to represent vec_any_eq
27023 (vector_ne_<mode>_p): Change this define_expand to not rely on
27024 AltiVec predicate framework.
27025 (vector_ae_<mode>p): New define_expand to represent vec_any_eq
27027 * config/rs6000/vsx.md (*vsx_ne_<mode>_p): For modes VSX_EXTRACT_I
27028 (V16QI, V8HI, V4SI), correct a typo in the code emitted for this
27029 define_insn pattern.
27030 (*vsx_ne_<mode>_p): For modes VSX_F (V4SF and V2DF), remove this
27031 define_insn pattern because the xvcmpne<VSs>. instruction is not
27033 (vcmpne<VSs>): Remove this define_insn because xvcmpne<VSs>
27034 instruction is not supported.
27036 2017-03-01 Jakub Jelinek <jakub@redhat.com>
27038 * config/nvptx/nvptx.c: Include intl.h.
27040 2017-03-01 Martin Jambor <mjambor@suse.cz>
27043 * ipa-prop.h (ipa_bits): Removed field known.
27044 (ipa_jump_func): Removed field vr_known. Changed fields bits and m_vr
27045 to pointers. Adjusted their comments to warn about their sharing.
27046 (ipcp_transformation_summary): Change bits to a vector of pointers.
27047 (ipa_check_create_edge_args): Moved to ipa-prop.c, declare.
27048 (ipa_get_ipa_bits_for_value): Declare.
27049 * tree-vrp.h (value_range): Mark as GTY((for_user)).
27050 * ipa-prop.c (ipa_bit_ggc_hash_traits): New.
27051 (ipa_bits_hash_table): Likewise.
27052 (ipa_vr_ggc_hash_traits): Likewise.
27053 (ipa_vr_hash_table): Likewise.
27054 (ipa_print_node_jump_functions_for_edge): Adjust for bits and m_vr
27055 being pointers and vr_known being removed.
27056 (ipa_set_jf_unknown): Likewise.
27057 (ipa_get_ipa_bits_for_value): New function.
27058 (ipa_set_jfunc_bits): Likewise.
27059 (ipa_get_value_range): New overloaded functions.
27060 (ipa_set_jfunc_vr): Likewise.
27061 (ipa_compute_jump_functions_for_edge): Use the above functions to
27062 construct bits and vr parts of jump functions.
27063 (ipa_check_create_edge_args): Move here from ipa-prop.h, also allocate
27064 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
27066 (ipcp_grow_transformations_if_necessary): Also allocate
27067 ipa_bits_hash_table and ipa_vr_hash_table if they do not already
27069 (ipa_node_params_t::duplicate): Do not copy bits, just pointers to
27070 them. Fix too long lines.
27071 (ipa_write_jump_function): Adjust for bits and m_vr being pointers and
27072 vr_known being removed.
27073 (ipa_read_jump_function): Use new setter functions to construct bits
27074 and vr parts of jump functions or set them to NULL.
27075 (write_ipcp_transformation_info): Adjust for bits being pointers.
27076 (read_ipcp_transformation_info): Likewise.
27077 (ipcp_update_bits): Likewise. Fix excessively long lines a trailing
27079 Include gt-ipa-prop.h.
27080 * ipa-cp.c (propagate_bits_across_jump_function): Adjust for bits
27082 (ipcp_store_bits_results): Likewise.
27083 (propagate_vr_across_jump_function): Adjust for m_vr being a pointer.
27084 Do not write to existing jump functions but use a temporary instead.
27086 2017-03-01 Jakub Jelinek <jakub@redhat.com>
27089 * fold-const.c (make_bit_field_ref): If orig_inner is COMPONENT_REF,
27090 attempt to use its first operand as BIT_FIELD_REF base.
27092 2017-03-01 Richard Biener <rguenther@suse.de>
27094 PR middle-end/79721
27095 * tree-chrec.c (chrec_evaluate): Perform computation of Newtons
27096 interpolating formula in wrapping arithmetic.
27097 (chrec_apply): Convert chrec_evaluate return value to wanted type.
27099 2017-03-01 Jakub Jelinek <jakub@redhat.com>
27101 PR tree-optimization/79734
27102 * tree-vect-generic.c (expand_vector_condition): Optimize
27103 AVX512 vector boolean VEC_COND_EXPRs into bitwise operations.
27104 Handle VEC_COND_EXPR where comparison has different inner width from
27105 type's inner width.
27107 2017-02-28 Sandra Loosemore <sandra@codesourcery.com>
27109 * doc/invoke.texi (ARC Options): Copy-edit to fix punctuation,
27110 markup, and similar issues. Remove @opindex entries for things
27111 that aren't options. Add missing -mmpy-option entries.
27113 2017-02-28 Jakub Jelinek <jakub@redhat.com>
27115 PR tree-optimization/79737
27116 * gimple-ssa-store-merging.c (encode_tree_to_bitpos): If bitlen is
27117 a multiple of BITS_PER_UNIT and !BYTES_BIG_ENDIAN, clear
27118 tmpbuf[byte_size - 1]. Call natice_encode_expr with byte_size - 1
27119 instead of byte_size. Formatting fix.
27120 (shift_bytes_in_array_right): Formatting fix.
27122 2017-02-28 Eric Botcazou <ebotcazou@adacore.com>
27125 * config/sparc/sparc.c (sparc_frame_pointer_required): Add missing
27126 condition on optimize for the leaf function test.
27128 2017-02-28 Martin Liska <mliska@suse.cz>
27131 * read-rtl-function.c (function_reader::handle_unknown_directive):
27132 Bail out when one uses -flto.
27134 2017-02-28 Martin Liska <mliska@suse.cz>
27136 * common.opt: Replace space with tabular for options of <number>
27138 * config/i386/i386.opt: Show <number> value for
27139 -mlarge-data-threshold.
27140 * opts.c (print_filtered_help): Do not display number in hexadecimal
27143 2017-02-28 Martin Liska <mliska@suse.cz>
27145 * common.opt: Fix --help=option -Q for options which are of
27148 2017-02-28 Uros Bizjak <ubizjak@gmail.com>
27150 * config/i386/i386.c (print_reg): Error out for values
27151 of 8-bit size in invalid integer register.
27153 2017-02-28 Martin Sebor <msebor@redhat.com>
27155 PR tree-optimization/79691
27156 * passes.def (pass_all_optimizations_g): Enable pass_sprintf_length.
27158 2017-02-28 Jakub Jelinek <jakub@redhat.com>
27161 * config/i386/i386.c (ix86_print_operand) <case 'R'>: Replace
27162 gcc_unreachable with output_operand_lossage.
27164 2017-02-28 Richard Biener <rguenther@suse.de>
27166 PR tree-optimization/79740
27167 * tree-ssa-sccvn.c (vn_nary_op_insert_into): Allow redundant
27169 (visit_nary_op): Insert the nary into the hashtable if we
27170 pattern-matched sth.
27171 * tree-ssa-pre.c (eliminate_insert): Robustify.
27173 2017-02-28 Richard Biener <rguenther@suse.de>
27175 PR middle-end/79731
27176 * fold-const.c (decode_field_reference): Reject out-of-bound
27179 2017-02-28 Jakub Jelinek <jakub@redhat.com>
27181 * config/i386/i386.c: Include intl.h.
27182 (ix86_option_override_internal): Use cond ? G_("...") : G_("...")
27183 instead of just cond ? "..." : "...".
27184 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Likewise.
27185 * coverage.c (read_counts_file): Likewise.
27186 * omp-offload.c: Include intl.h.
27187 (oacc_loop_fixed_partitions): Use cond ? G_("...") : G_("...") instead
27188 of just cond ? "..." : "...".
27189 * gcov.c (read_count_file): Use cond ? N_("...") : N_("...") instead
27190 of just cond ? "..." : "...".
27192 2017-02-28 Richard Earnshaw <rearnsha@arm.com>
27195 * config/arm/parsecpu.awk (gen_data): Set tuning target to 'tune for'
27197 * config/arm/arm-cpus.in (cortex-m0plus.small-multiply): Correct
27198 'tune for' CPU name.
27199 * config/arm/arm-cpu-data.h: Regenerated.
27201 2017-02-28 Richard Biener <rguenther@suse.de>
27203 PR tree-optimization/79732
27204 * tree-inline.c (expand_call_inline): Do not shadow var.
27206 2017-02-28 Richard Biener <rguenther@suse.de>
27208 PR tree-optimization/79723
27209 * tree-vect-stmts.c (get_vectype_for_scalar_type_and_size): Preserve
27210 address-space properly.
27212 2017-02-28 Thomas Schwinge <thomas@codesourcery.com>
27214 * doc/optinfo.texi (Optimization groups): Fix option used for
27216 * doc/invoke.texi (-fopt-info): Document "omp".
27217 * dumpfile.h: Sort OPTGROUP_OMP before OPTGROUP_VEC.
27218 (OPTGROUP_ALL): Add OPTGROUP_OMP.
27219 * hsa-gen.c (pass_data_gen_hsail): Use OPTGROUP_OMP.
27220 * ipa-hsa.c (pass_data_ipa_hsa): Likewise.
27221 * omp-simd-clone.c (pass_data_omp_simd_clone): Likewise.
27223 * dumpfile.h (OPTGROUP_OPENMP): Rename to OPTGROUP_OMP. Adjust
27225 * dumpfile.c (optgroup_options): Instead of "openmp", associate
27226 OPTGROUP_OMP with "omp".
27228 2017-02-27 Pat Haugen <pthaugen@us.ibm.com>
27231 * config/rs6000/rs6000-c.c (struct altivec_builtin_types): Use VSRAD
27232 for arithmetic shift of unsigned V2DI.
27234 2017-02-27 Claudiu Zissulescu <claziss@synopsys.com>
27236 * config.gcc (arc*-): Clean up, use arc/big.h, arc/elf.h, and
27237 arc/linux.h headers.
27238 * config/arc/arc.h (TARGET_OS_CPP_BUILTINS): Remove.
27239 (LINK_SPEC): Likewise.
27240 (ARC_TLS_EXTRA_START_SPEC): Likewise.
27241 (EXTRA_SPECS): Likewise.
27242 (STARTFILE_SPEC): Likewise.
27243 (ENDFILE_SPEC): Likewise.
27244 (LIB_SPEC): Likewise.
27245 (TARGET_SDATA_DEFAULT): Likewise.
27246 (TARGET_MMEDIUM_CALLS_DEFAULT): Likewise.
27247 (MULTILIB_DEFAULTS): Likewise.
27248 (DWARF2_UNWIND_INFO): Likewise.
27249 * config/arc/big.h: New file.
27250 * config/arc/elf.h: Likewise.
27251 * config/arc/linux.h: Likewise.
27252 * config/arc/t-uClibc: Remove.
27254 2017-02-27 Bin Cheng <bin.cheng@arm.com>
27256 PR tree-optimization/77536
27257 * tree-ssa-loop-manip.c (niter_for_unrolled_loop): New function.
27258 (tree_transform_and_unroll_loop): Use above function to compute the
27259 estimated niter of unrolled loop and use it when scaling profile.
27260 Also use count info rather than frequency if it's non-zero.
27261 * tree-ssa-loop-manip.h niter_for_unrolled_loop(): New declaration.
27262 * tree-vect-loop.c (scale_profile_for_vect_loop): New function.
27263 (vect_transform_loop): Call above function.
27265 2017-02-27 Richard Biener <rguenther@suse.de>
27267 PR tree-optimization/45397
27268 * tree-ssa-pre.c (eliminate_insert): Handle BIT_AND_EXPR.
27269 * tree-ssa-sccvn.c (valueized_wider_op): New helper.
27270 (visit_nary_op): Add pattern matching for CSEing sign-changed
27271 or truncated operations with wider ones.
27273 2017-02-27 Richard Biener <rguenther@suse.de>
27275 PR tree-optimization/79690
27276 * tree-vect-stmts.c (vectorizable_store): Use vector type
27277 built from the DR with address-space.
27279 2017-02-26 Gerald Pfeifer <gerald@pfeifer.com>
27281 * doc/invoke.texi (Optimize Options): Refine the description
27282 of asan-use-after-return.
27284 2017-02-25 Alan Modra <amodra@gmail.com>
27286 PR rtl-optimization/79584
27287 * lra-constraints.c (base_to_reg): Reload ad->base, the entire
27288 base, not ad->base_term, the reg within base. Remove assertion
27289 that ad->base == ad->base_term. Replace gen_int_mode using
27290 bogus mode with const0_rtx.
27292 2017-02-25 Jakub Jelinek <jakub@redhat.com>
27294 PR middle-end/79396
27295 * tree-eh.c (operation_could_trap_p, stmt_could_throw_1_p): Handle
27296 FMA_EXPR like tcc_binary or tcc_unary.
27298 * tree-ssa-loop-niter.c (number_of_iterations_exit): Simplify warning.
27301 * dwarf2out.c (struct dw_loc_list_struct): Add noted_variable_value
27303 (size_of_loc_descr): Handle DW_OP_GNU_variable_value.
27304 (output_loc_operands): Handle DW_OP_call_ref and
27305 DW_OP_GNU_variable_value.
27306 (struct variable_value_struct): New type.
27307 (struct variable_value_hasher): Likewise.
27308 (variable_value_hash): New variable.
27309 (string_types): Remove.
27310 (copy_loc_descr): New function.
27311 (add_loc_descr_to_each): Clarify comment. Use copy_loc_descr.
27312 (prepend_loc_descr_to_each): New function.
27313 (add_loc_list): Fix comment typo. Use prepend_loc_descr_to_each
27314 instead of add_loc_descr_to_each if the first argument is single
27315 location list and the second has multiple.
27316 (resolve_args_picking_1): Handle DW_OP_GNU_variable_value.
27317 (loc_list_from_tree_1): For early_dwarf, emit DW_OP_GNU_variable_value
27318 when looking for variable value which doesn't have other location info.
27319 (loc_list_from_tree): Formatting fix.
27320 (gen_array_type_die): Simplify DW_AT_string_length handling.
27321 (adjust_string_types): Remove.
27322 (gen_subprogram_die): Don't call adjust_string_types nor test/set
27323 string_types. Call resolve_variable_values.
27324 (prune_unused_types_walk_loc_descr): Handle DW_OP_GNU_variable_value.
27325 (resolve_addr_in_expr): Likewise. Add A argument.
27326 (copy_deref_exprloc): Remove deref argument. Adjust for the
27327 original expression being DW_OP_GNU_variable_value with optionally
27328 DW_OP_stack_value after it instead of DW_OP_call4 with DW_OP_deref
27329 optionally after it.
27330 (optimize_string_length): Rework for DW_OP_GNU_variable_value.
27331 (resolve_addr): Adjust optimize_string_length and resolve_addr_in_expr
27332 callers. Set remove_AT_byte_size if removing DW_AT_string_length.
27333 (variable_value_hasher::hash, variable_value_hasher::equal): New
27335 (resolve_variable_value_in_expr, resolve_variable_value,
27336 resolve_variable_values, note_variable_value_in_expr,
27337 note_variable_value): New functions.
27338 (dwarf2out_early_finish): Call note_variable_value on all toplevel
27341 2017-02-24 Jakub Jelinek <jakub@redhat.com>
27344 * opts.h (handle_generated_option): Add GENERATED_P argument.
27345 * opts-common.c (handle_option): Adjust function comment.
27346 (handle_generated_option): Add GENERATED_P argument, pass it to
27348 (control_warning_option): Pass false to handle_generated_option
27350 * opts.c (maybe_default_option): Pass true to handle_generated_option
27352 * optc-gen.awk: Likewise.
27354 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
27356 * config/sh/sh.md (tstsi_t): If operands[0] is a SUBREG instead of
27357 a REG, look at the REG it is a SUBREG of.
27358 (splitter for cmpeqsi_t): Ditto.
27360 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
27362 * config/pa/pa.c (pa_combine_instructions): Do not share RTL. Make
27363 the special USEs with the pattern of the insn, not the insn itself.
27365 2017-02-24 Matthew Fortune <matthew.fortune@imgtec.com>
27368 * doc/invoke.texi: Document -mload-store-pairs.
27370 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
27371 Sandra Loosemore <sandra@codesourcery.com>
27373 * config/nios2/nios2.c (nios2_simple_const_p): Returns false if the
27374 argument isn't a CONST_INT.
27375 (nios2_alternate_compare_const): Assert op is a CONST_INT.
27376 (nios2_valid_compare_const_p): Assert op is a CONST_INT.
27377 (nios2_validate_compare): Bypass alternate compare logic if *op2
27378 is not a CONST_INT.
27379 (ldstwm_operation_p): Return false if first_base is not a REG or
27380 if first_offset is not a CONST_INT.
27382 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
27384 * config/cris/cris.md: Use correct operand in a define_peephole2.
27386 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
27388 * config/c6x/c6x.c (predicate_insn): Do not incorrectly share RTL.
27390 2017-02-24 Segher Boessenkool <segher@kernel.crashing.org>
27392 * config/arc/arc.c (arc_ccfsm_advance): Only take the PATTERN of
27393 this_insn if it is an INSN or JUMP_INSN.
27394 (force_offsettable): Look at base, not at addr.
27395 * config/arc/predicates.md (brcc_nolimm_operator): Don't call INTVAL
27396 on things that aren't necessarily CONST_INTs.
27398 2017-02-24 Uros Bizjak <ubizjak@gmail.com>
27400 * doc/invoke.texi (x86 Options, -mfpmath=sse): Mention that
27401 -mfpmath=sse is the default also for x86-32 targets with SSE2
27402 instruction set when @option{-ffast-math} is enabled
27404 2017-02-24 Jeff Law <law@redhat.com>
27406 PR rtl-optimizatoin/79286
27407 * ira.c (update_equiv_regs): Drop may_trap_p exception to
27410 2017-02-24 Richard Biener <rguenther@suse.de>
27412 PR tree-optimization/79389
27413 * gimple-ssa-split-paths.c (is_feasible_trace): Properly skip
27416 2017-02-24 Aldy Hernandez <aldyh@redhat.com>
27418 * tree-ssa-loop-niter.c (number_of_iterations_exit): Update
27419 function comment to reflect reality.
27420 (loop_exits_before_overflow): Fix typo in function description.
27422 2017-02-24 Richard Biener <rguenther@suse.de>
27424 PR tree-optimization/79389
27425 * gimple-ssa-split-paths.c (is_feasible_trace): Verify more
27426 properly that a threading opportunity exists. Detect conditional
27427 copy/constant propagation opportunities.
27429 2017-02-23 Eric Botcazou <ebotcazou@adacore.com>
27431 * config/visium/visium.md (type): Add trap.
27432 (b): New mode attribute.
27433 (*btst): Rename into...
27434 (*btst<mode>): ...this and adjust.
27435 (*cbranchsi4_btst_insn): Rename into...
27436 (*cbranch<mode>4_btst_insn): ...this and adjust.
27437 (trap): New define_insn.
27439 2017-02-23 Jakub Jelinek <jakub@redhat.com>
27441 PR tree-optimization/79389
27442 * ifcvt.c (struct noce_if_info): Add rev_cond field.
27443 (noce_reversed_cond_code): New function.
27444 (noce_emit_store_flag): Use rev_cond if non-NULL instead of
27445 reversed_comparison_code. Formatting fix.
27446 (noce_try_store_flag): Test rev_cond != NULL in addition to
27447 reversed_comparison_code.
27448 (noce_try_store_flag_constants): Likewise.
27449 (noce_try_store_flag_mask): Likewise.
27450 (noce_try_addcc): Use rev_cond if non-NULL instead of
27451 reversed_comparison_code.
27452 (noce_try_cmove_arith): Likewise. Formatting fixes.
27453 (noce_try_minmax, noce_try_abs): Clear rev_cond.
27454 (noce_find_if_block): Initialize rev_cond.
27455 (find_cond_trap): Call noce_get_condition with then_bb == trap_bb
27456 instead of false as last argument never attempt to reverse it
27459 2017-02-23 Bin Cheng <bin.cheng@arm.com>
27461 PR tree-optimization/79663
27462 * tree-predcom.c (combine_chains): Process refs in reverse order
27463 only for ZERO length chains, and add explaining comment.
27465 2017-02-23 Jeff Law <law@redhat.com>
27467 PR tree-optimization/79578
27468 * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
27469 in call to operand_equal_p.
27471 2017-01-23 Dominique d'Humieres <dominiq@lps.ens.fr>
27474 * config/i386/cpuid.h: Fix another undefined behavior.
27476 2017-02-23 Richard Biener <rguenther@suse.de>
27478 PR tree-optimization/79683
27479 * tree-vect-stmts.c (vect_analyze_stmt): Do not overwrite
27480 vector types for data-refs.
27482 2017-02-23 Martin Liska <mliska@suse.cz>
27484 * params.def (PARAM_MIN_NONDEBUG_INSN_UID): Change default to 0.
27486 2017-02-23 Jakub Jelinek <jakub@redhat.com>
27488 PR middle-end/79665
27489 * internal-fn.c (get_range_pos_neg): Moved to ...
27490 * tree.c (get_range_pos_neg): ... here. No longer static.
27491 * tree.h (get_range_pos_neg): New prototype.
27492 * expr.c (expand_expr_real_2) <case TRUNC_DIV_EXPR>: If both arguments
27493 are known to be in between 0 and signed maximum inclusive, try to
27494 expand both unsigned and signed divmod and use the cheaper one from
27497 2017-02-22 Jeff Law <law@redhat.com>
27499 PR tree-optimization/79578
27500 * tree-ssa-dse.c (clear_bytes_written_by): Use operand_equal_p
27501 to compare base operands.
27503 2017-02-22 Segher Boessenkool <segher@kernel.crashing.org>
27506 * config/rs6000/rs6000.md (*fsel<SFDF:mode><SFDF2:mode>4): Use
27507 gpc_reg_operand instead of fpr_reg_operand.
27509 2017-02-22 Sameera Deshpande <sameera.deshpande@imgtec.com>
27511 * config/mips/mips.c (mips_return_in_memory): Force FP
27512 vector types to be returned in memory for o32 ABI.
27514 2017-02-22 Jakub Jelinek <jakub@redhat.com>
27516 * dwarf2out.c (gen_variable_die): For -gdwarf-5, use DW_TAG_variable
27517 instead of DW_TAG_member for static data member declarations and don't
27518 set no_linkage_name for static inline data members.
27519 (gen_member_die): For -gdwarf-5 don't change DW_TAG_variable
27522 2017-02-22 Martin Liska <mliska@suse.cz>
27524 * doc/invoke.texi: Replace inequality signs with square brackets
27527 2017-02-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27529 PR tree-optimization/68644
27530 * gcc.dg/tree-ssa/ivopts-lt-2.c: Skip for powerpc*-*-*.
27532 2017-02-22 Matthew Fortune <matthew.fortune@imgtec.com>
27535 * lra-constraints.c (simplify_operand_subreg): Handle
27536 WORD_REGISTER_OPERATIONS targets.
27538 2017-02-22 Jakub Jelinek <jakub@redhat.com>
27541 * reg-stack.c (emit_swap_insn): Treat (float_extend:?F (mem:?F))
27542 and (const_double:?F) like (mem:?F) for the purpose of fxch %st(1)
27543 elimination by swapping fld*.
27545 2017-02-22 Richard Biener <rguenther@suse.de>
27547 PR tree-optimization/79673
27548 * tree-ssa-pre.c (compute_avail): Use wide_int_to_tree to
27549 convert the [TARGET_]MEM_REF offset INTEGER_CST, scrapping off
27550 irrelevant address-space qualifiers and avoiding a
27551 ADDR_SPACE_CONVERT_EXPR from fold_convert.
27553 2017-02-22 Richard Biener <rguenther@suse.de>
27555 PR tree-optimization/79666
27556 * tree-vrp.c (extract_range_from_binary_expr_1): Make sure
27557 to not symbolically negate if that may introduce undefined
27560 2017-02-22 Martin Liska <mliska@suse.cz>
27563 * data-streamer-in.c (streamer_read_gcov_count): Remove assert.
27564 * data-streamer-out.c (streamer_write_gcov_count_stream):
27566 * value-prof.c (stream_out_histogram_value): Make assert more
27567 precise based on type of counter.
27569 2017-02-21 Uros Bizjak <ubizjak@gmail.com>
27572 * config/i386/i386.md (standard_x87sse_constant_load splitter):
27573 Use nonimmediate_operand instead of memory_operand for operand 1.
27574 (float-extend standard_x87sse_constant_load splitter): Ditto.
27576 2017-02-21 Jeff Law <law@redhat.com>
27578 PR tree-optimization/79621
27579 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior): Ignore
27580 blocks with edges to themselves.
27582 2017-02-21 Jakub Jelinek <jakub@redhat.com>
27585 * tree-chkp-opt.c (chkp_optimize_string_function_calls): Use
27586 is_gimple_call instead of comparing gimple_code with GIMPLE_CALL.
27587 Use gimple_call_builtin_p.
27590 * sel-sched.c (moveup_expr_cached): Don't call sel_bb_head
27591 on temporarily removed DEBUG_INSNs.
27593 PR tree-optimization/79649
27594 * tree-loop-distribution.c (classify_partition): Give up on
27595 non-generic address space loads/stores.
27597 2017-02-21 Aldy Hernandez <aldyh@redhat.com>
27599 * doc/loop.texi (Loop manipulation): Remove nonexistent
27600 tree_ssa_loop_version from the documentation.
27601 * cfgloopmanip.c (loop_version): Document CONDITION_BB argument.
27603 2017-02-21 Jakub Jelinek <jakub@redhat.com>
27606 * config/i386/i386.c (ix86_expand_split_stack_prologue): Call
27607 make_reg_eh_region_note_nothrow_nononlocal on call_insn.
27608 * config/rs6000/rs6000.c: Include except.h.
27609 (rs6000_expand_split_stack_prologue): Call
27610 make_reg_eh_region_note_nothrow_nononlocal on the call insn.
27612 2017-02-21 Martin Jambor <mjambor@suse.cz>
27615 * ipa-prop.c (ipa_prop_write_jump_functions): Bail out if no edges
27616 have been analyzed.
27618 2017-02-21 Martin Jambor <mjambor@suse.cz>
27620 * common.opt (-fipa-cp-alignment): Mark as ignored and preserved
27621 for backward compatibility only.
27622 * doc/invoke.texi (Option Summary): Remove all references to
27623 -fipa-cp-alignment.
27625 2017-02-21 Matthew Fortune <matthew.fortune@imgtec.com>
27629 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
27631 * lra-constraints.c (curr_insn_transform): Handle
27632 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
27634 2017-02-21 Martin Liska <mliska@suse.cz>
27636 * config/i386/i386.opt: Replace -masm-dialect with -masm.
27638 2017-02-21 Thomas Schwinge <thomas@codesourcery.com>
27640 PR translation/79638
27641 * config/nvptx/nvptx.c (ENTRY_TEMPLATE): Single out "%ntid.y".
27643 2017-02-21 Eric Botcazou <ebotcazou@adacore.com>
27646 * config/arm/arm.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define.
27647 (arm_function_ok_for_sibcall): Return false for an indirect call by
27648 descriptor if all the argument registers are used.
27649 (arm_relayout_function): Use FUNCTION_ALIGNMENT macro to adjust the
27650 alignment of the function.
27652 2017-02-21 Jakub Jelinek <jakub@redhat.com>
27654 PR tree-optimization/61441
27655 * simplify-rtx.c (simplify_const_unary_operation): For
27656 -fsignaling-nans and sNaN operand, return NULL_RTX rather than
27657 the sNaN unmodified.
27659 2017-02-20 Bernd Edlinger <bernd.edlinger@hotmail.de>
27661 * Makefile.in (BUILD_SYSTEM_HEADER_DIR): New make variabe.
27662 (LIMITS_H_TEST, if_multiarch, stmp-fixinc): Use BUILD_SYSTEM_HEADER_DIR
27663 instead of SYSTEM_HEADER_DIR.
27665 2017-02-20 Gerald Pfeifer <gerald@pfeifer.com>
27666 Martin Liška <mliska@suse.cz>
27668 * doc/invoke.texi (use-after-scope-direct-emission-threshold):
27669 Fix typos and grammar, use active voice, and clarify.
27671 2017-02-20 Marek Polacek <polacek@redhat.com>
27673 PR middle-end/79537
27674 * gimplify.c (gimplify_expr): Handle unused *&&L;.
27677 * ubsan.c (ubsan_type_descriptor): Check if TYPE_MAX_VALUE is null.
27679 2017-02-20 Jakub Jelinek <jakub@redhat.com>
27682 * config/i386/i386.c (ix86_expand_builtin): Handle
27683 OPTION_MASK_ISA_AVX512VL and OPTION_MASK_ISA_64BIT in
27684 ix86_builtins_isa[fcode].isa as a requirement of those
27685 flags and any other flag in the bitmask.
27686 (ix86_init_mmx_sse_builtins): Use 0 instead of
27687 ~OPTION_MASK_ISA_64BIT as mask.
27688 * config/i386/i386-builtin.def (__builtin_ia32_rdtsc,
27689 __builtin_ia32_rdtscp, __builtin_ia32_pause, __builtin_ia32_bsrsi,
27690 __builtin_ia32_rdpmc, __builtin_ia32_rolqi, __builtin_ia32_rolhi,
27691 __builtin_ia32_rorqi, __builtin_ia32_rorhi): Likewise.
27693 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
27696 * lra-constraints.c (split_reg): Check requested split mode
27697 is supported by the register.
27699 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
27701 * lra-constraints.c (simplify_operand_subreg): Remove early
27704 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
27707 * lra-constraints.c (curr_insn_transform): Tighten condition
27708 for converting SUBREG reloads from OP_OUT to OP_INOUT.
27710 2017-02-20 Matthew Fortune <matthew.fortune@imgtec.com>
27713 * lra-constraints.c (curr_insn_transform): Handle
27714 WORD_REGISTER_OPERATIONS requirements when reloading SUBREGs.
27716 2017-02-19 Uros Bizjak <ubizjak@gmail.com>
27719 2016-05-30 Uros Bizjak <ubizjak@gmail.com>
27721 * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
27723 2017-02-19 Jonathan Wakely <jwakely@redhat.com>
27726 * doc/invoke.texi (C++ Dialect Options) [-Wliteral-suffix]: Update
27729 2017-02-19 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
27731 * gimple-pretty-print.c (dump_ternary_rhs): Adjust gimple dump format
27734 2017-02-18 Jakub Jelinek <jakub@redhat.com>
27736 * final.c (last_columnnum, override_columnnum): New variables.
27737 (final_start_function): Set last_columnnum, pass it to begin_prologue
27738 hook and pass 0 to dwarf2out_begin_prologue.
27739 (final_scan_insn): Update override_columnnum. Pass last_columnnum
27740 to source_line debug hook.
27741 (notice_source_line): Compute last_columnnum and for debug_column_info
27742 return true on column changes.
27743 * debug.h (struct gcc_debug_hooks): Add column argument to
27744 source_line and begin_prologue hooks.
27745 (debug_nothing_int_charstar_int_bool): Remove prototype.
27746 (debug_nothing_int_int_charstar,
27747 debug_nothing_int_int_charstar_int_bool): New prototypes.
27748 (dwarf2out_begin_prologue): Add column argument.
27749 * debug.c (do_nothing_debug_hooks): Adjust source_line and
27750 begin_prologue hooks.
27751 (debug_nothing_int_charstar_int_bool): Remove.
27752 (debug_nothing_int_int_charstar,
27753 debug_nothing_int_int_charstar_int_bool): New functions.
27754 * dwarf2out.c (dwarf2out_begin_prologue): Add column argument, pass it
27755 through to dwarf2out_source_line.
27756 (dwarf2_lineno_debug_hooks): Adjust begin_prologue hook.
27757 (dwarf2out_source_line): Add column argument, emit it if requested.
27758 * sdbout.c (sdbout_source_line, sdbout_begin_prologue): Add column
27760 * xcoffout.h (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
27761 * xcoffout.c (xcoffout_begin_prologue, xcoffout_source_line): Likewise.
27762 * vmsdbgout.c (vmsdbgout_begin_prologue): Add column argument, pass it
27763 through to dwarf2out_begin_prologue.
27764 (vmsdbgout_source_line): Add column argument, pass it through to
27765 dwarf2out_source_line.
27766 * dbxout.c (dbxout_begin_prologue): Add column argument, adjust
27767 dbxout_source_line caller.
27768 (dbxout_source_line): Add column argument.
27770 * common.opt (gno-column-info, gcolumn-info): New options.
27771 * dwarf2out.c (dwarf2_lineno_debug_hooks): Formatting fix.
27772 (check_die): Also test for multiple DW_AT_decl_column attributes.
27773 (add_src_coords_attributes, dwarf2out_imported_module_or_decl_1): Add
27774 DW_AT_decl_column if requested.
27775 (gen_subprogram_die): Compare and/or add also DW_AT_decl_column
27777 (gen_variable_die): Likewise.
27778 (add_call_src_coords_attributes): Add DW_AT_call_column if requested.
27779 * doc/invoke.texi (-gcolumn-info, -gno-column-info): Document.
27782 * config/i386/i386.opt (m3dnowa): Replace Undocumented with Report.
27783 * common/config/i386/i386-common.c (OPTION_MASK_ISA_3DNOW_A_SET): Define.
27784 (ix86_handle_option): Handle OPT_m3dnowa.
27785 * doc/invoke.texi (-m3dnowa): Document.
27786 * doc/extend.texi (__builtin_ia32_pmulhuw, __builtin_ia32_pf2iw): Use
27787 -m3dnowa instead of -m3dnow -march=athlon.
27790 * config/i386/i386.c (ix86_print_operand): Use output_operand_lossage
27791 instead of gcc_assert for K, r and R code checks. Formatting fixes.
27793 2017-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27796 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Add
27797 support for CODE_FOR_vsx_xxpermdi_v2d[fi]_be.
27798 * config/rs6000/rs6000.md (reload_gpr_from_vsx<mode>): Call
27799 generator for vsx_xxpermdi_<mode>_be.
27800 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Remove logic to
27801 force big-endian semantics.
27802 (vsx_xxpermdi_<mode>_be): New define_expand with same
27803 implementation as previous version of vsx_xxpermdi_<mode>.
27805 2017-02-17 Jakub Jelinek <jakub@redhat.com>
27807 PR tree-optimization/79327
27808 * gimple-ssa-sprintf.c (format_integer): Remove likely_adjust
27809 variable, its initialization and use.
27811 2017-02-17 Julia Koval <julia.koval@intel.com>
27813 * common/config/i386/i386-common.c (OPTION_MASK_ISA_RDPID_SET): New.
27814 (OPTION_MASK_ISA_PKU_UNSET): New.
27815 (ix86_handle_option): Handle -mrdpid.
27816 * config/i386/cpuid.h (bit_RDPID): New.
27817 * config/i386/driver-i386.c (host_detect_local_cpu):
27818 Detect RDPID feature.
27819 * config/i386/i386-builtin.def (__builtin_ia32_rdpid): New.
27820 * config/i386/i386-c.c (ix86_target_macros_internal):
27822 * config/i386/i386.c (ix86_target_string): Add -mrdpid to isa2_opts.
27823 (ix86_valid_target_attribute_inner_p): Add "rdpid".
27824 (ix86_expand_builtin): Handle IX86_BUILTIN_RDPID.
27825 * config/i386/i386.h (TARGET_RDPID, TARGET_RDPID_P): New.
27826 * config/i386/i386.md (define_insn "rdpid"): New.
27827 * config/i386/i386.opt Add -mrdpid.
27828 * config/i386/immintrin.h (_rdpid_u32): New.
27830 2017-02-17 Vladimir Makarov <vmakarov@redhat.com>
27832 PR rtl-optimization/79541
27833 * lra-constraints.c (curr_insn_transform): Remove wrong asm insn
27834 instead of transforming it into USE.
27836 2017-02-17 Segher Boessenkool <segher@kernel.crashing.org>
27838 * config/rs6000/rs6000.md (extendsfdf2): Remove default arguments.
27839 If HONOR_SNANS (SFmode) force the input to a register.
27840 (*extendsfdf2_fpr): Add !HONOR_SNANS (SFmode) condition.
27841 (*extendsfdf2_snan): New pattern, used when using SNaNs; it generates
27842 an frsp or similar insn.
27844 2017-02-17 Martin Liska <mliska@suse.cz>
27846 PR rtl-optimization/79577
27847 * params.def (selsched-max-sched-times): Increase minimum to 1.
27849 2017-02-17 Martin Liska <mliska@suse.cz>
27851 PR rtl-optimization/79574
27852 * gcse.c (want_to_gcse_p): Prevent integer overflow.
27854 2017-02-17 Martin Liska <mliska@suse.cz>
27856 PR tree-optimization/79529
27857 * tree-ssa-loop-unswitch.c (is_maybe_undefined): Use
27858 ssa_defined_default_def_p to handle cases which are implicitly
27860 * tree-ssa.c (ssa_defined_default_def_p): New function.
27861 (ssa_undefined_value_p): Use ssa_defined_default_def_p to handle cases
27862 which are implicitly defined.
27863 * tree-ssa.h (ssa_defined_default_def_p): Declare.
27865 2017-02-17 Richard Biener <rguenther@suse.de>
27867 PR middle-end/79576
27868 * params.def (max-ssa-name-query-depth): Limit to 10.
27870 2017-02-17 Richard Biener <rguenther@suse.de>
27872 PR tree-optimization/79552
27873 * tree-ssa-structalias.c (visit_loadstore): Properly verify
27876 2017-02-17 Richard Biener <rguenther@suse.de>
27879 * genmatch.c (output_line_directive): Handle DIR_SEPARATOR_2.
27881 2017-02-17 Marek Polacek <polacek@redhat.com>
27883 PR middle-end/79536
27884 * fold-const.c (fold_negate_expr_1): Renamed from fold_negate_expr.
27885 (fold_negate_expr): New wrapper.
27887 2017-02-16 Sandra Loosemore <sandra@codesourcery.com>
27889 * doc/invoke.texi (C++ Dialect Options) [-Wno-non-template-friend]:
27890 Correct terminology and de-emphasize pre-standard behavior.
27892 2017-02-16 Alan Modra <amodra@gmail.com>
27894 PR rtl-optimization/79286
27895 * ira.c (def_dominates_uses): New function.
27896 (update_equiv_regs): Don't create an equivalence for insns that
27897 may trap where the register def does not dominate the use.
27899 2017-02-16 Vladimir Makarov <vmakarov@redhat.com>
27901 PR rtl-optimization/78127
27902 * lra.c (lra): Call lra_eliminate before finish the loop after
27905 2017-02-16 Richard Biener <rguenther@suse.de>
27907 * graphite.h: Do not include isl/isl_val_gmp.h, instead include
27909 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): Remove.
27910 (gcc_expression_from_isl_expr_int): Use generic isl_val interface.
27911 * graphite-sese-to-poly.c: Do not include isl/isl_val_gmp.h.
27912 (isl_val_int_from_wi): New function.
27913 (extract_affine_gmp): Rename to ...
27914 (extract_affine_wi): ... this, take a widest_int.
27915 (extract_affine_int): Just wrap extract_affine_wi.
27916 (add_param_constraints): Use isl_val_int_from_wi.
27917 (add_loop_constraints): Likewise, and extract_affine_wi.
27919 2017-02-15 Jeff Law <law@redhat.com>
27921 PR middle-end/79521
27922 * ira-costs.c (scan_one_insn): Check have_regs_of_mode before calling
27923 ira_init_register_move_cost_if_necessary.
27925 2017-02-15 Martin Sebor <msebor@redhat.com>
27927 PR middle-end/32003
27928 * doc/invoke.texi (-fdump-final-insns): Replace option accidentally
27929 removed in a prior commit.
27931 2017-02-15 Bin Cheng <bin.cheng@arm.com>
27933 PR tree-optimization/79347
27934 * tree-vect-loop-manip.c (vect_do_peeling): Maintain profile
27935 counters during peeling.
27937 2017-02-15 Thomas Schwinge <thomas@codesourcery.com>
27939 * Makefile.in (site.exp): Remove "set ISLVER".
27941 2017-02-15 Jakub Jelinek <jakub@redhat.com>
27944 * real.c (real_from_integer): Call real_convert even for decimal.
27946 2017-02-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
27949 * config/s390/s390.c: define TARGET_CUSTOM_FUNCTION_DESCRIPTORS.
27951 2017-02-14 Andrew Pinski <apinski@cavium.com>
27953 * config/aarch64/aarch64-cores.def (thunderx2t99): Move to under 'C"
27954 cores and change the partno/implementer to be correct.
27955 (thunderx2t99p1): New core which replaces thunderx2t99 and still has
27956 the 'B" as the implementer.
27957 * config/aarch64/aarch64-tune.md: Regenerate.
27959 2017-02-14 Carl Love <cel@us.ibm.com>
27961 * config/rs6000/rs6000.c: Add case statement entry to make the
27962 xvcvuxdsp built-in argument unsigned.
27963 * config/rs6000/vsx.md: Fix the source and return operand types so they
27964 match the instruction definitions from the ISA document. Fix typo
27965 in the instruction generation for the (define_insn "vsx_xvcvuxdsp"
27968 2017-02-14 Vladimir Makarov <vmakarov@redhat.com>
27971 * lra-int.h (struct lra_operand_data, struct lra_insn_reg): Add
27972 member early_clobber_alts.
27973 * lra-lives.c (reg_early_clobber_p): New.
27974 (process_bb_lives): Use it.
27975 * lra.c (new_insn_reg): New arg early_clobber_alts. Use it.
27976 (debug_operand_data): Initialize early_clobber_alts.
27977 (setup_operand_alternative): Set up early_clobber_alts.
27978 (collect_non_operand_hard_regs): Ditto. Pass early clobber
27979 alternatives to new_insn_reg.
27980 (add_regs_to_insn_regno_info): Add arg early_clobber_alts. Use
27982 (lra_update_insn_regno_info): Pass the new arg.
27984 2017-02-14 Jakub Jelinek <jakub@redhat.com>
27986 PR middle-end/79505
27987 * omp-offload.c (free_oacc_loop): Release loop->ifns vector.
27988 (new_oacc_loop_raw): Don't clear already cleared fields.
27991 * config/i386/avx512pfintrin.h (_mm512_prefetch_i32gather_pd,
27992 _mm512_prefetch_i32gather_ps, _mm512_prefetch_i64gather_pd,
27993 _mm512_prefetch_i64gather_ps): New inline functions and macros.
27995 2017-02-14 Uros Bizjak <ubizjak@gmail.com>
27998 * config/i386/i386.md (*movxf_internal): Add (o,rC) alternative.
28000 2017-02-14 H.J. Lu <hongjiu.lu@intel.com>
28003 * config/i386/i386.c (timode_scalar_chain::convert_insn): Insert
28004 the extra instruction to the right place to store 128-bit constant
28007 2017-02-14 Martin Sebor <msebor@redhat.com>
28009 PR middle-end/79448
28010 * gimple-ssa-sprintf.c (format_directive): Avoid issuing INT_MAX
28011 warning for strings of unknown length.
28013 2017-02-13 Segher Boessenkool <segher@kernel.crashing.org>
28015 * config.gcc (supported_defaults) [powerpc*-*-*]: Update.
28017 2017-02-14 Jeff Law <law@redhat.com>
28020 * ira-costs.c (scan_one_insn): Initialize register move costs
28021 for pseudos seen in USE/CLOBBER insns.
28023 PR tree-optimization/79095
28024 * tree-vrp.c (extract_range_from_binary_expr_1): For EXACT_DIV_EXPR,
28025 if the numerator has the range ~[0,0] make the resultant range ~[0,0].
28026 (extract_range_from_binary_expr): For MINUS_EXPR with no derived range,
28027 if the operands are known to be not equal, then the resulting range
28029 (intersect_ranges): If the new range is ~[0,0] and the old range is
28030 wide, then prefer ~[0,0].
28031 * tree-vrp.c (overflow_comparison_p_1): New function.
28032 (overflow_comparison_p): New function.
28033 * tree-vrp.c (register_edge_assert_for_2): Register additional asserts
28034 if NAME is used in an overflow test.
28035 (vrp_evaluate_conditional_warnv_with_ops): If the ops represent an
28036 overflow check that can be expressed as an equality test, then adjust
28037 ops to be that equality test.
28039 2017-02-14 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28041 * config/s390/s390-builtin-types.def: Remove flags argument.
28042 * config/s390/s390.c (s390_init_builtins): Likewise.
28044 2017-02-14 Martin Liska <mliska@suse.cz>
28046 * tree-ssa-loop-unswitch.c (hoist_guard): Release get_loop_body
28047 vector. Fix trailing white spaces.
28049 2017-02-14 James Greenhalgh <james.greenhalgh@arm.com>
28051 * config/aarch64/aarch64.c (aarch64_simd_container_mode): Handle
28054 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28056 PR rtl-optimization/68664
28057 * config/arm/arm.c (arm_sched_can_speculate_insn):
28058 New function. Declare prototype.
28059 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
28061 2017-02-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28063 PR rtl-optimization/68664
28064 * config/aarch64/aarch64.c (aarch64_sched_can_speculate_insn):
28066 (TARGET_SCHED_CAN_SPECULATE_INSN): Define.
28068 2017-02-14 Amit Pawar <amit.pawar@amd.com>
28070 * config/i386/i386.c (znver1_cost): Fix the alignment for function and
28071 max skip bytes for function, loop and jump.
28073 2017-02-14 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
28075 * gimple-pretty-print.c (dump_unary_rhs): Adjust dump format for
28076 ABS_EXPR for gimple dump.
28078 2017-02-14 Jakub Jelinek <jakub@redhat.com>
28081 * config/sh/sh.c (expand_cbranchdi4): Don't clear operands[4].
28083 PR tree-optimization/79408
28084 * tree-vrp.c (simplify_div_or_mod_using_ranges): Handle also the
28085 case when on TRUNC_MOD_EXPR op0 is INTEGER_CST.
28086 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
28087 also if rhs1 is INTEGER_CST.
28089 2017-02-14 Richard Biener <rguenther@suse.de>
28091 PR middle-end/79432
28092 * tree-into-ssa.c (insert_phi_nodes): When the function can
28093 have abnormal edges rewrite SSA names with broken use-def
28094 dominance out of SSA and register them for PHI insertion.
28096 2017-02-13 Martin Sebor <msebor@redhat.com>
28098 PR middle-end/79496
28099 * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call): Avoid
28100 clearing info.nowrite flag when snprintf size argument is a range.
28102 2017-02-13 Jakub Jelinek <jakub@redhat.com>
28104 * cprop.c (cprop_jump): Add missing space in string literal.
28105 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
28106 (get_constraint_for_component_ref): Likewise.
28107 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
28108 * tree-outof-ssa.c (insert_partition_copy_on_edge): Likewise.
28109 * lra-constraints.c (process_alt_operands): Likewise.
28110 * ipa-inline.c (inline_small_functions): Likewise.
28111 * tree-ssa-sccvn.c (visit_reference_op_store): Likewise.
28112 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
28113 * trans-mem.c (diagnose_tm_1_op): Likewise.
28114 * omp-grid.c (grid_find_single_omp_among_assignments): Likewise.
28115 (grid_parallel_clauses_gridifiable): Likewise.
28117 * config/nvptx/mkoffload.c (process): Add space in between
28120 * config/i386/i386.h (REG_CLASS_NAMES): Add , in between
28121 "MOD4_SSE_REGS" and "ALL_REGS".
28123 * spellcheck.c (test_data): Add , in between "foo" and "food".
28125 2017-02-13 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
28128 * config/rs6000/rs6000.c (expand_block_compare): Make sure runtime
28129 boundary crossing check and subsequent code generation agree.
28131 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28133 * config/aarch64/aarch64.c (has_memory_op): Delete.
28134 (aarch64_madd_needs_nop): Use contains_mem_rtx_p instead of
28137 2017-02-13 Jakub Jelinek <jakub@redhat.com>
28139 PR rtl-optimization/79388
28140 PR rtl-optimization/79450
28141 * combine.c (distribute_notes): When removing TEM_INSN for which
28142 corresponding dest has last value recorded, invalidate that last
28145 2017-02-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28147 * config/arm/arm.c (arm_print_tune_info): Use ASM_COMMENT_START instead
28148 of explicit '@'. Add missing assembly comment marker on branch costs
28151 2017-02-13 Nathan Sidwell <nathan@acm.org>
28153 * gengtype-lex.l (<in_struct>): Add '/'.
28155 2017-02-13 Martin Liska <mliska@suse.cz>
28158 * calls.c (expand_call): Replace XALLOCAVEC with XCNEWVEC.
28160 2017-02-13 Richard Biener <rguenther@suse.de>
28162 * configure.ac (HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS):
28164 * configure: Re-generate.
28165 * config.in: Likewise.
28166 * graphite-dependences.c: Simplify as if
28167 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS was defined.
28168 * graphite-isl-ast-to-gimple.c: Likewise.
28169 * graphite-optimize-isl.c: Likewise.
28170 * graphite-poly.c: Likewise.
28171 * graphite-sese-to-poly.c: Likewise.
28172 * graphite.h: Likewise.
28173 * toplev.c: Include isl/version.h and use isl_version () for
28174 printing the ISL version.
28175 * doc/install.texi: Update ISL requirement.
28177 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
28179 * doc/standards.texi (Standards): Update reference to
28182 2017-02-12 Gerald Pfeifer <gerald@pfeifer.com>
28184 * doc/extend.texi (Named Address Spaces): sourceware.org now
28186 * doc/install.texi (Binaries): Ditto.
28189 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
28191 * doc/cpp.texi: Replace "stringify"/"stringification" with C
28192 standard terminology "stringize"/"stringizing" throughout.
28193 * doc/cppinternals.texi: Likewise.
28195 2017-02-11 Sandra Loosemore <sandra@codesourcery.com>
28197 * doc/extend.texi: Fix some spelling mistakes and typos.
28198 * doc/invoke.texi: Likewise.
28200 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
28203 * params.def (inline-min-speedup) Change from 10 to 8.
28205 2017-02-11 Jakub Jelinek <jakub@redhat.com>
28207 * doc/invoke.texi (fopenmp): Bump OpenMP version from 4.0 to
28210 2017-02-11 Jan Hubicka <hubicka@ucw.cz>
28213 * ipa-inline-analysis.c (get_minimal_bb): New function.
28214 (record_modified): Use it.
28215 (remap_edge_change_prob): Handle also ancestor functions.
28217 2017-02-11 Gerald Pfeifer <gerald@pfeifer.com>
28219 * doc/contrib.texi (Contributors): Remove broken link into
28220 the Mauve CVS repository.
28222 2017-02-11 Jakub Jelinek <jakub@redhat.com>
28224 PR middle-end/79454
28225 * internal-fn.c (expand_vector_ubsan_overflow): Use piece-wise
28226 result computation whenever lhs doesn't have vector mode, not
28227 just when it has BLKmode.
28229 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
28231 * doc/makefile.texi (profiledbootstrap): Refer to the
28232 installation instructions only in textual form.
28234 2017-02-10 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
28237 * config/rs6000/altivec.md (bcd<bcd_add_sub>): Fix constraints.
28239 2017-02-10 Gerald Pfeifer <gerald@pfeifer.com>
28241 * doc/install.texi (Specific): Use https for blackfin.uclinux.org.
28242 (Specific): Update mingw-w64 reference.
28244 (Specific): Remove broken link to Renesas RX processor.
28246 2017-02-10 Richard Biener <rguenther@suse.de>
28248 * toplev.c (process_options): Do not mention obsolete graphite
28249 options when printing sorry message about missing graphite support.
28250 Mention -floop-nest-optimize.
28252 2017-02-10 Christophe Lyon <christophe.lyon@linaro.org>
28254 * config/aarch64/arm_neon.h (vtst_p8): Rewrite without asm.
28255 (vtst_p16): Likewise.
28256 (vtstq_p8): Likewise.
28257 (vtstq_p16): Likewise.
28259 (vtstq_p64): Likewise.
28260 * config/arm/arm_neon.h (vgetq_lane_p64): New.
28261 (vset_lane_p64): New.
28262 (vsetq_lane_p64): New.
28264 2017-02-10 Jakub Jelinek <jakub@redhat.com>
28266 PR tree-optimization/79411
28267 * tree-ssa-reassoc.c (is_reassociable_op): Return false if
28268 stmt operands are SSA_NAMEs used in abnormal phis.
28269 (can_reassociate_p): Return false if op is SSA_NAME used in abnormal
28272 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
28275 * cgraphunit.c (cgraph_node::add_new_function): Set externally_visible
28278 2017-02-09 Jan Hubicka <hubicka@ucw.cz>
28280 * tree-ssa-loop-unswitch.c (hoist_guard): Update profile.
28282 2017-02-09 Jakub Jelinek <jakub@redhat.com>
28284 * omp-offload.c (oacc_loop_auto_partitions): Use || instead of |
28288 * gimplify.h (is_gimple_sizepos): Only test for INTEGER_CST constants,
28289 not arbitrary TREE_CONSTANT.
28292 * gimplify.c (gimplify_adjust_omp_clauses): Ignore
28293 "omp declare target link" attribute unless is_global_var.
28294 * omp-offload.c (find_link_var_op): Likewise.
28296 2017-02-09 Nathan Sidwell <nathan@codesourcery.com>
28297 Chung-Lin Tang <cltang@codesourcery.com>
28299 * gimplify.c (gimplify_scan_omp_clauses): No special handling for
28301 (gimplify_adjust_omp_clauses): Don't delete TILE.
28302 (gimplify_omp_for): Deal with TILE.
28303 * internal-fn.c (expand_GOACC_TILE): New function.
28304 * internal-fn.def (GOACC_DIM_POS): Comment may be overly conservative.
28306 * omp-expand.c (struct oacc_collapse): Add tile and outer fields.
28307 (expand_oacc_collapse_init): Add LOC paramter. Initialize tile
28309 (expand_oacc_collapse_vars): Add INNER parm, adjust for tiling,
28310 avoid DIV for outermost collapse var.
28311 (expand_oacc_for): Insert tile element loop as needed. Adjust.
28312 Remove out of date comments, fix whitespace.
28313 * omp-general.c (omp_extract_for_data): Deal with tiling.
28314 * omp-general.h (enum oacc_loop_flags): Add OLF_TILE flag,
28315 adjust OLF_DIM_BASE value.
28316 (struct omp_for_data): Add tiling field.
28317 * omp-low.c (scan_sharing_clauses): Allow OMP_CLAUSE_TILE.
28318 (lower_oacc_head_mark): Add OLF_TILE as appropriate. Ensure 2 levels
28319 for auto loops. Remove default auto determining, moved to
28320 oacc_loop_fixed_partitions.
28321 * omp-offload.c (struct oacc_loop): Change 'ifns' to vector of call
28322 stmts, add e_mask field.
28323 (oacc_dim_call): New function, abstracted out from oacc_thread_numbers.
28324 (oacc_thread_numbers): Use oacc_dim_call.
28325 (oacc_xform_tile): New.
28326 (new_oacc_loop_raw): Initialize e_mask, adjust for ifns vector.
28327 (finish_oacc_loop): Adjust for ifns vector.
28328 (oacc_loop_discover_walk): Append loop abstraction sites to list,
28329 add case for GOACC_TILE fns.
28330 (oacc_loop_xform_loop): Delete.
28331 (oacc_loop_process): Iterate over call list directly, and add
28332 handling for GOACC_TILE fns.
28333 (oacc_loop_fixed_partitions): Determine default auto, deal with TILE,
28335 (oacc_loop_auto_partitions): Add outer_assign parm. Assign all but
28336 vector partitioning to outer loops. Assign 2 partitions to loops
28337 when available. Add TILE handling.
28338 (oacc_loop_partition): Adjust oacc_loop_auto_partitions call.
28339 (execite_oacc_device_lower): Process GOACC_TILE fns,
28340 ignore unknown specs.
28341 * tree-nested.c (convert_nonlocal_omp_clauses): Allow OMP_CLAUSE_TILE.
28342 * tree.c (omp_clause_num_ops): Adjust TILE ops.
28343 * tree.h (OMP_CLAUSE_TILE_ITERVAR, OMP_CLAUSE_TILE_COUNT): New.
28345 2017-02-09 Gerald Pfeifer <gerald@pfeifer.com>
28347 * configure.ac (ACX_BUGURL): Update.
28348 * configure: Regenerate.
28350 2017-02-09 Richard Biener <rguenther@suse.de>
28352 PR tree-optimization/69823
28353 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
28354 Properly enumerate all BBs in the region. Use auto_vec/auto_bitmap.
28356 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
28358 * config/arc/arc-c.def: Add __NPS400__ definition.
28359 * config/arc/arc.h (CPP_SPEC): Don't define __NPS400__ here.
28360 (TARGET_NPS400): Define.
28362 2017-02-09 Andrew Burgess <andrew.burgess@embecosm.com>
28364 * config/arc/arc-arch.h (arc_arch_t): Move unchanged to earlier in
28366 (arc_cpu_t): Change base_architecture field, arch, to a arc_arc_t
28367 pointer, arch_info.
28368 (arc_cpu_types): Fill the arch_info field with a pointer into the
28369 arc_arch_types table.
28370 (arc_selected_cpu): Declare.
28371 * config/arc/arc.c (arc_selected_cpu): Make global.
28372 (arc_selected_arch): Delete.
28373 (arc_base_cpu): Delete.
28374 (arc_override_options): Remove references to deleted variables,
28375 update access to arch information.
28376 (ARC_OPT): Update access to arch information.
28377 (ARC_OPTX): Likewise.
28378 * config/arc/arc.h (arc_base_cpu): Remove declaration.
28379 (TARGET_ARC600): Update access to arch information.
28380 (TARGET_ARC601): Likewise.
28381 (TARGET_ARC700): Likewise.
28382 (TARGET_EM): Likewise.
28383 (TARGET_HS): Likewise.
28384 * config/arc/driver-arc.c (arc_cpu_to_as): Update access to arch
28387 2017-02-08 Pat Haugen <pthaugen@us.ibm.com>
28390 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Invert
28391 condition/operands for integer GE/LE/GEU/LEU operations.
28393 2017-02-08 Segher Boessenkool <segher@kernel.crashing.org>
28395 PR translation/79397
28396 * config/rs6000/rs6000.opt (maltivec=le, maltivec=be): Fix spelling
28399 2017-02-08 Martin Jambor <mjambor@suse.cz>
28402 * ipa-prop.c (ipa_alloc_node_params): Make static, return bool
28403 whether allocation happened.
28404 (ipa_initialize_node_params): Do not call ipa_alloc_node_params if
28405 nothing was allocated.
28407 2017-02-08 Jakub Jelinek <jakub@redhat.com>
28409 PR tree-optimization/79408
28410 * tree-vrp.c (simplify_div_or_mod_using_ranges): If op1 is not
28411 constant, but SSA_NAME with a known integer range, use the minimum
28412 of that range instead of op1 to determine if modulo can be replaced
28413 with its first operand.
28415 2016-02-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28417 * config/riscv/riscv.c (riscv_build_integer_1): Avoid use of INT16_MAX.
28419 2017-02-08 Richard Biener <rguenther@suse.de>
28421 PR tree-optimization/71824
28422 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
28423 Check all loops contained in the merged region.
28425 2017-02-07 Andrew Pinski <apinski@cavium.com>
28427 * config/aarch64/aarch64.md (popcount<mode>2): New pattern.
28429 2017-02-07 Andrew Pinski <apinski@cavium.com>
28431 * config/aarch64/aarch64-cores.def (thunderx): Disable LSE.
28432 (thunderxt88): Likewise.
28433 (thunderxt81): Disable LSE and change v8.1 to v8.
28434 (thunderxt83): Likewise.
28436 2017-02-07 Jakub Jelinek <jakub@redhat.com>
28437 Richard Biener <rguenther@suse.de>
28439 PR middle-end/79399
28440 * ira-int.h (struct target_ira_int): Change x_max_struct_costs_size
28441 type from int to size_t.
28442 * ira-costs.c (struct_costs_size): Change type from int to size_t.
28444 2017-02-07 Jakub Jelinek <jakub@redhat.com>
28446 PR rtl-optimization/79386
28447 * cprop.c (bypass_conditional_jumps): Initialize
28448 bypass_last_basic_block already before splitting bbs after
28449 unconditional traps...
28450 (bypass_conditional_jumps): ... rather than here.
28453 * config/i386/sse.md (xtg_mode, gatherq_mode): New mode attrs.
28454 (*avx512f_gathersi<mode>, *avx512f_gathersi<mode>_2,
28455 *avx512f_gatherdi<mode>, *avx512f_gatherdi<mode>_2): Use them,
28456 fix -masm=intel patterns.
28458 2017-02-07 Richard Biener <rguenther@suse.de>
28460 PR tree-optimization/79256
28461 PR middle-end/79278
28462 * builtins.c (get_object_alignment_2): Use min_align_of_type
28463 to extract alignment for MEM_REFs to honor BIGGEST_FIELD_ALIGNMENT
28464 and ADJUST_FIELD_ALIGN.
28466 * doc/tm.texi.in (ADJUST_FIELD_ALIGN): Adjust to take additional
28468 * doc/tm.texi: Regenerate.
28469 * stor-layout.c (layout_decl): Adjust.
28470 (update_alignment_for_field): Likewise.
28471 (place_field): Likewise.
28472 (min_align_of_type): Likewise.
28473 * config/arc/arc.h (ADJUST_FIELD_ALIGN): Adjust.
28474 * config/epiphany/epiphany.h (ADJUST_FIELD_ALIGN): Likewise.
28475 * config/epiphany/epiphany.c (epiphany_adjust_field_align): Likewise.
28476 * config/frv/frv.h (ADJUST_FIELD_ALIGN): Likewise.
28477 * config/frv/frv.c (frv_adjust_field_align): Likewise.
28478 * config/i386/i386.h (ADJUST_FIELD_ALIGN): Likewise.
28479 * config/i386/i386.c (x86_field_alignment): Likewise.
28480 * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Likewise.
28481 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Likewise.
28482 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
28483 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
28484 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Likewise.
28485 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p):
28489 2017-01-30 Richard Biener <rguenther@suse.de>
28491 PR tree-optimization/79256
28492 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
28493 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
28496 2017-02-07 Toma Tabacu <toma.tabacu@imgtec.com>
28498 * config/mips/mips.c (mips_expand_builtin_insn): Convert the QImode
28499 argument of the pshufh, psllh, psllw, psrah, psraw, psrlh, psrlw
28500 builtins to SImode and emit a zero-extend, if necessary.
28502 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
28504 * docs/invoke.texi (RISC-V Options): Alphabetize.
28506 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
28508 * doc/invoke.texi (RISC-V Options): Use two spaces to separate
28511 2017-02-06 Palmer Dabbelt <palmer@dabbelt.com>
28513 * config/riscv/riscv.c: New file.
28514 * common/config/riscv/riscv-common.c: Likewise.
28515 * config.gcc: Likewise.
28516 * config/riscv/constraints.md: Likewise.
28517 * config/riscv/elf.h: Likewise.
28518 * config/riscv/generic.md: Likewise.
28519 * config/riscv/linux.h: Likewise.
28520 * config/riscv/multilib-generator: Likewise.
28521 * config/riscv/peephole.md: Likewise.
28522 * config/riscv/pic.md: Likewise.
28523 * config/riscv/predicates.md: Likewise.
28524 * config/riscv/riscv-builtins.c: Likewise.
28525 * config/riscv/riscv-c.c: Likewise.
28526 * config/riscv/riscv-ftypes.def: Likewise.
28527 * config/riscv/riscv-modes.def: Likewise.
28528 * config/riscv/riscv-opts.h: Likewise.
28529 * config/riscv/riscv-protos.h: Likewise.
28530 * config/riscv/riscv.h: Likewise.
28531 * config/riscv/riscv.md: Likewise.
28532 * config/riscv/riscv.opt: Likewise.
28533 * config/riscv/sync.md: Likewise.
28534 * config/riscv/t-elf-multilib: Likewise.
28535 * config/riscv/t-linux: Likewise.
28536 * config/riscv/t-linux-multilib: Likewise.
28537 * config/riscv/t-riscv: Likewise.
28538 * configure.ac: Likewise.
28539 * doc/contrib.texi: Add Kito Cheng, Palmer Dabbelt, and Andrew
28540 Waterman as RISC-V maintainers.
28541 * doc/install.texi: Add RISC-V entries.
28542 * doc/invoke.texi: Add RISC-V options section.
28543 * doc/md.texi: Add RISC-V constraints section.
28544 * configure: Regenerated.
28546 2017-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
28549 * config/rs6000/vector.md (vcond<mode><mode>): Allow the true and
28550 false values to be constant vectors with all 0 or all 1 bits set.
28551 (vcondu<mode><mode>): Likewise.
28552 * config/rs6000/predicates.md (vector_int_reg_or_same_bit): New
28554 (fpmask_comparison_operator): Update comment.
28555 (vecint_comparison_operator): New predicate.
28556 * config/rs6000/rs6000.c (rs6000_emit_vector_cond_expr): Optimize
28557 vector conditionals when the true and false values are constant
28558 vectors with all 0 bits or all 1 bits set.
28560 2017-02-06 Martin Sebor <msebor@redhat.com>
28562 PR tree-optimization/79376
28563 * gimple-fold.c (get_range_strlen): Set the minimum length to zero.
28565 2017-02-06 Uros Bizjak <ubizjak@gmail.com>
28567 * config/i386/sse.md (vector modes -> vec_extract* splitter): Use
28568 explicit subreg RTX with operand 1. Use VECTOR_MODE_P predicate
28569 to simplify split condition.
28571 2017-02-06 Jakub Jelinek <jakub@redhat.com>
28573 * omp-expand.c (oxpand_omp_atomic_fetch_op,
28574 expand_omp_atomic_pipeline): Return false if can_atomic_load_p is
28577 2017-02-06 Segher Boessenkool <segher@kernel.crashing.org>
28579 PR rtl-optimization/68664
28580 * target.def (can_speculate_insn): New hook.
28581 * doc/tm.texi.in (TARGET_SCHED_CAN_SPECULATE_INSN): New hook.
28582 * doc/tm.texi: Regenerate.
28583 * sched-rgn.c (can_schedule_ready_p): Use the new hook.
28584 * config/rs6000/rs6000.c (TARGET_SCHED_CAN_SPECULATE_INSN): New macro.
28585 (rs6000_sched_can_speculate_insn): New function.
28587 2017-02-06 Jakub Jelinek <jakub@redhat.com>
28589 PR tree-optimization/79284
28590 * tree-vectorizer.h (VECT_SCALAR_BOOLEAN_TYPE_P): Define.
28591 * tree-vect-stmts.c (vect_get_vec_def_for_operand,
28592 vectorizable_mask_load_store, vectorizable_operation,
28593 vect_is_simple_cond, get_same_sized_vectype): Use it instead
28594 of comparing TREE_CODE of a type against BOOLEAN_TYPE.
28595 * tree-vect-patterns.c (check_bool_pattern, search_type_for_mask_1,
28596 vect_recog_bool_pattern, vect_recog_mask_conversion_pattern): Likewise.
28597 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
28598 * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
28599 Remove redundant gimple_code (stmt) == GIMPLE_ASSIGN test after
28600 is_gimple_assign (stmt). Replace another such test with
28601 is_gimple_assign (stmt).
28603 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
28606 * config/avr/avr.c (rtl-iter.h): Include it.
28607 (TARGET_LEGITIMATE_COMBINED_INSN): New hook define...
28608 (avr_legitimate_combined_insn): ...and implementation.
28610 2017-02-06 Dominik Vogt <vogt@linux.vnet.ibm.com>
28612 * config/s390/predicates.md ("larl_operand"): Use macros from hwint.h.
28613 * config/s390/s390.c (s390_const_operand_ok)
28614 (s390_canonicalize_comparison, s390_extract_part)
28615 (s390_single_part, s390_contiguous_bitmask_nowrap_p)
28616 (s390_contiguous_bitmask_p, s390_rtx_costs)
28617 (legitimize_pic_address): Likewise.
28618 * config/s390/s390.md ("clzdi2", "clztidi2"): Likewise.
28619 * config/s390/vx-builtins.md ("vec_genbytemaskv16qi")
28620 ("vec_permi<mode>", "vfae<mode>", "*vfaes<mode>", "vstrc<mode>")
28621 ("*vstrcs<mode>"): Use UINTVAL() to set unsigned HOST_WIDE_INT.
28622 * config/s390/vector.md ("vec_vfenes<mode>"): Likewise.
28624 2017-02-06 Georg-Johann Lay <avr@gjlay.de>
28626 * config/avr/avr.md (*addhi3_zero_extend): Add alternative where
28627 REGNO($0) == REGNO($1).
28629 2017-02-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28631 * config/s390/linux.h(SIZE_TYPE): Add comment.
28633 2017-02-06 Julian Brown <julian@codesourcery.com>
28634 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
28635 Virendra Pathak <virendra.pathak@broadcom.com>
28637 * config/aarch64/aarch64-cores.def: Change the scheduler
28639 * config/aarch64/aarch64.md: Include thunderx2t99.md.
28640 * config/aarch64/thunderx2t99.md: New file.
28642 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
28644 * doc/standards.texi (Go Language): Update link to language
28647 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
28649 * tree-eh.c (lower_resx): Sanitize profile.
28650 (cleanup_empty_eh_move_lp): Likewise.
28652 2017-02-05 Jan Hubicka <hubicka@ucw.cz>
28655 * cfgloopmanip.c (lv_adjust_loop_entry_edge, loop_version): Add
28657 * cfgloopmanip.h (loop_version): Update prototype.
28658 * modulo-sched.c (sms_schedule): Update call of loop_version.
28659 * tree-if-conv.c(version_loop_for_if_conversion): Likewise.
28660 * tree-parloops.c (gen_parallel_loop): Likewise.
28661 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Likewise.
28662 * tree-ssa-loop-split.c (split_loop): Likewise.
28663 * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Likewise.
28664 * tree-vect-loop-manip.c (vect_loop_versioning): Likewise.
28666 2017-02-05 Martin Liska <mliska@suse.cz>
28669 * config/s390/s390.c (s390_gimplify_va_arg): Initialize local
28671 (print_operand_address): Initialize a struct to zero.
28673 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
28675 * doc/contrib.texi (Contributors): Refer to Hans Boehm's
28676 garbage collector only in textual form.
28678 2017-02-05 Gerald Pfeifer <gerald@pfeifer.com>
28680 * doc/extend.texi (x86 specific memory model extensions for
28681 transactional memory): Simplify a phrase.
28683 2017-02-05 Eric Botcazou <ebotcazou@adacore.com>
28686 * config/sparc/sync.md (atomic_loaddi_1): Replace 'U' constraint with
28687 'r', 'm' constraint with 'T' and !TARGET_ARCH64 with TARGET_ARCH32.
28688 (atomic_storedi_1): Likewise.
28690 2017-02-04 Jakub Jelinek <jakub@redhat.com>
28692 PR tree-optimization/79338
28693 * tree-parloops.c (gather_scalar_reductions): Don't call
28694 vect_analyze_loop_form for loop->inner before destroying loop's
28697 2017-02-03 Martin Sebor <msebor@redhat.com>
28699 PR tree-optimization/79327
28700 * gimple-ssa-sprintf.c (tree_digits): Avoid adding the base prefix
28701 when precision has resulted in leading zeros.
28702 (format_integer): Adjust the likely counter to assume an unknown
28703 argument that may be zero is non-zero.
28705 2017-02-03 Jason Merrill <jason@redhat.com>
28708 * tree-inline.c (copy_tree_body_r) [COND_EXPR]: Revert change to
28709 avoid copying non-taken branch.
28711 2017-02-03 Jakub Jelinek <jakub@redhat.com>
28713 PR tree-optimization/79340
28714 * tree-vect-loop.c (vectorizable_reduction): Release
28715 vec_defs elements after safe_splicing them into other vectors.
28718 PR tree-optimization/79327
28719 * gimple-ssa-sprintf.c (adjust_range_for_overflow): If returning
28720 true, always set *argmin and *argmax to TYPE_{MIN,MAX}_VALUE of
28722 (format_integer): Use wide_int_to_tree instead of build_int_cst
28723 + to_?hwi. If argmin is NULL, just set argmin and argmax to
28724 TYPE_{MIN,MAX}_VALUE of argtype. Simplify and fix computation
28725 of shortest and longest sequence.
28727 2017-02-03 Uros Bizjak <ubizjak@gmail.com>
28729 * config/i386/i386.c (dimode_scalar_chain::convert_reg):
28730 Use pextrd for TARGET_SSE4_1 when creating scalar copy.
28732 2017-02-03 Walter Lee <walt@tilera.com>
28735 * config/tilegx/tilegx.md (tilegx_expand_prologue): Add blockage
28736 after initial stackframe link reg save.
28737 * config/tilepro/tilepro.md (tilepro_expand_prologue): Likewise.
28739 2017-02-03 Jakub Jelinek <jakub@redhat.com>
28742 * config/rs6000/rs6000.md (movsi_from_sf): Use wb constraint instead of
28743 wu for stxssp alternative.
28745 2017-02-03 Martin Sebor <msebor@redhat.com>
28747 PR tree-optimization/79352
28748 * gimple-fold.c (get_range_strlen): Add argument.
28749 (get_range_strlen): Change return type to bool.
28750 (get_maxval_strlen): Pass in a dummy argument.
28751 * gimple-fold.h (get_range_strlen): Change return type to bool.
28752 * gimple-ssa-sprintf.c (get_string_length): Set unlikely counter.
28753 * tree.h (array_at_struct_end_p): Add argument.
28754 * tree.c (array_at_struct_end_p): Handle it.
28756 2017-02-03 Martin Liska <mliska@suse.cz>
28759 * multiple_target.c (create_dispatcher_calls): Redirect edge
28760 from a caller of a dispatcher.
28761 (expand_target_clones): Make the clones local.
28762 (ipa_target_clone): Do both target clones and resolvers.
28763 (ipa_dispatcher_calls): Remove the pass.
28764 (pass_dispatcher_calls::gate): Likewise.
28765 (make_pass_dispatcher_calls): Likewise.
28766 * passes.def (pass_target_clone): Put as very first IPA early
28769 2017-02-03 Martin Liska <mliska@suse.cz>
28771 * symtab.c (symtab_node::binds_to_current_def_p): Bail out
28772 in case of a function with ifunc attribute.
28774 2017-02-03 Martin Liska <mliska@suse.cz>
28776 * cgraph.c (cgraph_node::dump): Dump function version info.
28777 * symtab.c (symtab_node::dump_base): Add missing new line.
28779 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
28781 * tree-ssa-ifcombine.c (update_profile_after_ifcombine): New function.
28782 (ifcombine_ifandif): Use it.
28784 2017-02-03 Martin Liska <mliska@suse.cz>
28786 * doc/invoke.texi: Document default value for
28787 use-after-scope-direct-emission-threshold.
28789 2017-02-03 Martin Liska <mliska@suse.cz>
28791 PR tree-optimization/79339
28792 * gimple-ssa-sprintf.c (format_floating_max): Call mpfr_clear.
28793 (format_floating): Likewise.
28795 2017-02-03 Martin Liska <mliska@suse.cz>
28798 * ipa-prop.c (ipa_node_params_t::insert): Remove current
28800 (ipa_node_params_t::remove): Likewise.
28801 * ipa-prop.h (ipa_node_params::ipa_node_params): Make default
28802 initialization from removed ipa_node_params_t::insert.
28803 (ipa_node_params::~ipa_node_params): Move from removed
28804 ipa_node_params_t::release.
28805 * symbol-summary.h (symbol_summary::m_released): New member.
28806 Do not release a summary twice. Do not allow to call finalizer
28807 for types of a summary that live in GGC memory.
28809 2017-02-02 Naveen H.S <Naveen.Hurugalawadi@cavium.com>
28811 * config/aarch64/aarch64.c (thunderx2t99_tunings): Enable AES and
28814 2017-02-02 Martin Sebor <msebor@redhat.com>
28816 PR middle-end/79275
28817 * gimple-ssa-sprintf.c (get_string_length): Set lower bound to zero.
28818 (format_string): Tighten up the range of output for non-constant
28819 strings and correct the expected range for wide non-constant strings.
28821 2017-02-02 Martin Sebor <msebor@redhat.com>
28823 * doc/invoke.texi (-maccumulate-args): Fix bad grammar.
28825 PR middle-end/32003
28826 * doc/invoke.texi (-fdump-tree-): Remove pass-specific options from
28828 (-fdump-tree-@var): Add to index and document how to come up
28829 with pass-specific option and dump file names.
28830 (-fdump-passes): Clarify where to look for output.
28832 2017-02-02 Jan Hubicka <hubicka@ucw.cz>
28834 PR middle-end/77445
28835 * tree-ssa-threadbackward.c (profitable_jump_thread_path): Dump
28836 statistics of the analyzed path; allow threading for speed when
28837 any of BBs along the path are optimized for speed.
28839 2017-02-02 Eric Botcazou <ebotcazou@adacore.com>
28841 PR middle-end/78468
28842 * emit-rtl.c (init_emit): Add ??? comment for problematic alignment
28843 settings of the virtual registers.
28846 2016-08-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
28848 * explow.c (get_dynamic_stack_size): Take known alignment of stack
28849 pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
28852 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28854 * config/s390/vx-builtins.md ("vec_ceil", "vec_floor")
28855 ("vec_trunc", "vec_roundc", "vec_round"): Remove expanders.
28857 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28859 * config/s390/s390.md: Add missing comments with the expanded
28861 * config/s390/vector.md: Likewise.
28862 * config/s390/vx-builtins.md: Likewise.
28864 2017-02-02 Jakub Jelinek <jakub@redhat.com>
28867 * config/rs6000/rs6000.md (*fixuns_trunc<mode>di2_fctiduz): Rename to ...
28868 (fixuns_trunc<mode>di2): ... this, remove previous expander. Put all
28869 conditions on a single line.
28871 2017-02-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
28873 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
28874 __S390_VX__ to __VX__.
28876 2017-02-01 Andrew Pinski <apinski@cavium.com>
28878 * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost): Pass
28879 stmt_info to record_stmt_cost.
28880 (vect_get_known_peeling_cost): Pass stmt_info if known to
28882 * config/aarch64/aarch64-protos.h (cpu_vector_cost): Split
28883 cpu_vector_cost field into
28884 scalar_int_stmt_cost and scalar_fp_stmt_cost. Split vec_stmt_cost
28885 field into vec_int_stmt_cost and vec_fp_stmt_cost.
28886 * config/aarch64/aarch64.c (generic_vector_cost): Update for the
28887 splitting of scalar_stmt_cost and vec_stmt_cost.
28888 (thunderx_vector_cost): Likewise.
28889 (cortexa57_vector_cost): LIkewise.
28890 (exynosm1_vector_cost): Likewise.
28891 (xgene1_vector_cost): Likewise.
28892 (thunderx2t99_vector_cost): Improve after the splitting of the two
28894 (aarch64_builtin_vectorization_cost): Update for the splitting of
28895 scalar_stmt_cost and vec_stmt_cost.
28897 2017-02-01 Torvald Riegel <triegel@redhat.com>
28898 Richard Henderson <rth@redhat.com>
28900 * builtins.c (fold_builtin_atomic_always_lock_free): Make "lock-free"
28901 conditional on existance of a fast atomic load.
28902 * optabs-query.c (can_atomic_load_p): New function.
28903 * optabs-query.h (can_atomic_load_p): Declare it.
28904 * optabs.c (expand_atomic_exchange): Always delegate to libatomic if
28905 no fast atomic load is available for the particular size of access.
28906 (expand_atomic_compare_and_swap): Likewise.
28907 (expand_atomic_load): Likewise.
28908 (expand_atomic_store): Likewise.
28909 (expand_atomic_fetch_op): Likewise.
28910 * testsuite/lib/target-supports.exp
28911 (check_effective_target_sync_int_128): Remove x86 because it provides
28912 no fast atomic load.
28913 (check_effective_target_sync_int_128_runtime): Likewise.
28915 2017-02-01 Richard Biener <rguenther@suse.de>
28917 * graphite.c: Include tree-vectorizer.h for find_loop_location.
28918 (graphite_transform_loops): Provide opt-info for optimized nests.
28919 * tree-parloop.c (parallelize_loops): Provide opt-info for
28920 parallelized loops.
28922 2017-02-01 Richard Biener <rguenther@suse.de>
28924 PR middle-end/79315
28925 * tree-cfg.c (move_stmt_op): Never set TREE_BLOCK when it
28926 was not set before.
28928 2017-02-01 Richard Biener <rguenther@suse.de>
28930 PR tree-optimization/71824
28931 * graphite-scop-detection.c (scop_detection::build_scop_breadth):
28932 Verify the loops are valid in the merged SESE region.
28933 (scop_detection::can_represent_loop_1): Check analyzing the
28934 evolution of the number of iterations in the region succeeds.
28936 2017-01-31 Ian Lance Taylor <iant@golang.org>
28938 * config/i386/i386.c (ix86_expand_split_stack_prologue): Add
28939 REG_ARGS_SIZE note to 32-bit push insns and call insn.
28941 2017-01-31 David Malcolm <dmalcolm@redhat.com>
28943 PR preprocessor/79210
28944 * input.c (get_substring_ranges_for_loc): Replace line_width
28945 assertion with error-handling.
28947 2017-01-31 Richard Biener <rguenther@suse.de>
28949 PR tree-optimization/77318
28950 * graphite-sese-to-poly.c (extract_affine): Fix assert.
28951 (create_pw_aff_from_tree): Take loop parameter.
28952 (add_condition_to_pbb): Pass loop of the condition to
28953 create_pw_aff_from_tree.
28955 2017-01-31 Jakub Jelinek <jakub@redhat.com>
28957 * config/s390/s390.c (s390_asan_shadow_offset): New function.
28958 (TARGET_ASAN_SHADOW_OFFSET): Redefine.
28960 2017-01-31 Michael Meissner <meissner@linux.vnet.ibm.com>
28964 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Delete,
28966 (convert_int_to_float128): Likewise.
28967 * config/rs6000/rs6000.c (convert_float128_to_int): Likewise.
28968 (convert_int_to_float128): Likewise.
28969 * config/rs6000/rs6000.md (UNSPEC_IEEE128_MOVE): Likewise.
28970 (UNSPEC_IEEE128_CONVERT): Likewise.
28971 (floatsi<mode>2, FLOAT128 iterator): Bypass calling
28972 rs6000_expand_float128_convert if we have IEEE 128-bit hardware.
28973 Use local variables for IBM extended format.
28974 (fix_trunc<mode>si2, FLOAT128 iterator): Likewise.
28975 (fix_trunc<mode>si2_fprs): Likewise.
28976 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
28977 (floatuns<IEEE128:mode>2, IEEE128 iterator): Likewise.
28978 (fix<uns>_<mode>si2_hw): Rework the IEEE 128-bt hardware support
28979 to know that we can now have integers of all sizes in vector
28981 (fix<uns>_<mode>di2_hw): Likewise.
28982 (float<uns>_<mode>si2_hw): Likewise.
28983 (fix_<mode>si2_hw): Likewise.
28984 (fixuns_<mode>si2_hw): Likewise.
28985 (float<uns>_<mode>di2_hw): Likewise.
28986 (float_<mode>di2_hw): Likewise.
28987 (float_<mode>si2_hw): Likewise.
28988 (floatuns_<mode>di2_hw): Likewise.
28989 (floatuns_<mode>si2_hw): Likewise.
28990 (xscvqp<su>wz_<mode>): Delete, no longer used.
28991 (xscvqp<su>dz_<mode>): Likewise.
28992 (xscv<su>dqp_<mode>): Likewise.
28993 (ieee128_mfvsrd_64bit): Likewise.
28994 (ieee128_mfvsrd_32bit): Likewise.
28995 (ieee128_mfvsrwz): Likewise.
28996 (ieee128_mtvsrw): Likewise.
28997 (ieee128_mtvsrd_64bit): Likewise.
28998 (ieee128_mtvsrd_32bit): Likewise.
29000 2017-01-31 Martin Liska <mliska@suse.cz>
29003 * ipa-prop.c (ipa_free_all_node_params): Call release method
29004 instead of ~sumbol_summary to not to trigger double times
29007 2017-01-31 Aldy Hernandez <aldyh@redhat.com>
29009 PR tree-optimization/71691
29010 * bitmap.h (class auto_bitmap): New.
29011 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): Call
29012 is_maybe_undefined instead of ssa_undefined_value_p.
29014 2017-01-31 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29016 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Rename
29017 __S390_ARCH_LEVEL__ to __ARCH__.
29019 2017-01-31 Jakub Jelinek <jakub@redhat.com>
29021 PR tree-optimization/79267
29022 * value-prof.c (gimple_ic): Only drop lhs for noreturn calls
29023 if should_remove_lhs_p is true.
29025 2017-01-30 Alexandre Oliva <aoliva@redhat.com>
29028 * dwarf2out.c (clone_as_declaration): Drop DW_AT_alignment.
29029 (add_alignment_attribute): New.
29030 (base_type_die): Add alignment attribute.
29031 (subrange_type_die): Likewise.
29032 (modified_type_die): Likewise.
29033 (gen_array_type_die): Likewise.
29034 (gen_descr_array_type_die: Likewise.
29035 (gen_enumeration_type_die): Likewise.
29036 (gen_subprogram_die): Likewise.
29037 (gen_variable_die): Likewise.
29038 (gen_field_die): Likewise.
29039 (gen_ptr_to_mbr_type_die): Likewise.
29040 (gen_struct_or_union_type_die): Likewise.
29041 (gen_subroutine_type_die): Likewise.
29042 (gen_typedef_die): Likewise.
29043 (base_type_cmp): Compare alignment attribute.
29045 2017-01-30 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
29048 * config/rs6000/altivec.md (*setb_internal): Rename to setb_signed.
29049 (setb_unsigned) New pattern for setb with CCUNS.
29050 * config/rs6000/rs6000.c (expand_block_compare): Use a different
29051 subfc./subfe sequence to avoid overflow problems. Generate a
29052 shorter sequence with cmpld/setb for power9.
29053 * config/rs6000/rs6000.md (subf<mode>3_carry_dot2): Add a new pattern
29054 for generating subfc. instruction.
29055 (cmpstrsi): Add TARGET_POPCNTD predicate as the generate sequence
29056 now uses this instruction.
29058 2017-01-30 Ian Lance Taylor <iant@google.com>
29061 * dwarf2out.c (gen_type_die_with_usage): When picking a variant
29062 for FUNCTION_TYPE/METHOD_TYPE, use the first matching one.
29064 2017-01-30 Martin Sebor <msebor@redhat.com>
29066 * gimple-ssa-sprintf.c (fmtresult::adjust_for_width_or_precision):
29067 Move constant to the right of a relational operator.
29068 (get_mpfr_format_length, format_character, format_string): Ditto.
29069 (should_warn_p, maybe_warn): Same.
29071 * doc/invoke.texi (-Wformat-truncation=1): Fix typo.
29073 2017-01-30 Maxim Ostapenko <m.ostapenko@samsung.com>
29076 * asan.c (get_translation_unit_decl): Remove function.
29077 (asan_add_global): Force has_dynamic_init to zero in LTO mode.
29079 2017-01-30 Martin Liska <mliska@suse.cz>
29081 PR gcov-profile/79259
29082 * opts.c (common_handle_option): Enable flag_ipa_bit_cp w/
29083 -fprofile-generate.
29085 2017-01-30 Martin Liska <mliska@suse.cz>
29088 * config/aarch64/cortex-a57-fma-steering.c (func_fma_steering::analyze):
29089 Initialize variables with NULL value.
29091 2017-01-30 Richard Earnshaw <rearnsh@arm.com>
29094 * config.gcc (arm*-*-*): Add arm/arm-flags.h and arm/arm-isa.h to
29096 * arm/arm-protos.h: Don't directly include arm-flags.h and arm-isa.h.
29098 2017-01-30 Richard Biener <rguenther@suse.de>
29100 PR tree-optimization/79276
29101 * tree-vrp.c (process_assert_insertions): Properly adjust common
29102 when removing a duplicate.
29104 * gcc.dg/torture/pr79276.c: New testcase.
29106 2017-01-30 Richard Biener <rguenther@suse.de>
29108 PR tree-optimization/79256
29109 * targhooks.c (default_builtin_vector_alignment_reachable): Honor
29110 BIGGEST_FIELD_ALIGNMENT and ADJUST_FIELD_ALIGN to fix up bogus
29112 * tree.c (build_aligned_type): Set TYPE_USER_ALIGN.
29114 2017-01-30 Dominik Vogt <vogt@linux.vnet.ibm.com>
29117 * config/s390/s390.md ("*r<noxa>sbg_<mode>_srl_bitmask")
29118 ("*r<noxa>sbg_<mode>_sll_bitmask")
29119 ("*extzv_<mode>_srl<clobbercc_or_nocc>")
29120 ("*extzv_<mode>_sll<clobbercc_or_nocc>"):
29121 Use contiguous_bitmask_nowrap_operand.
29123 2017-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29126 * config/rs6000/altivec.h (vec_xl): Revise #define.
29127 (vec_xst): Likewise.
29129 2017-01-27 Uros Bizjak <ubizjak@gmail.com>
29131 * config/i386/i386.c (print_reg): Use REGNO instead of true_regnum.
29133 2017-01-27 Bernd Schmidt <bschmidt@redhat.com>
29135 PR rtl-optimization/79194
29136 * cprop.c (one_cprop_pass): Move deletion of code after unconditional
29137 traps before call to bypass_conditional_jumps.
29139 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
29141 PR tree-optimization/71374
29142 * lra-constraints.c (check_conflict_input_operands): New.
29143 (match_reload): Use it.
29145 2017-01-27 Vladimir Makarov <vmakarov@redhat.com>
29148 * lra-assigns.c (find_hard_regno_for_1): Take endianess for into
29149 account to calculate conflict_set.
29151 2017-01-27 Bin Cheng <bin.cheng@arm.com>
29153 PR rtl-optimization/78559
29154 * combine.c (try_combine): Discard REG_EQUAL and REG_EQUIV for
29155 other_insn in combine.
29157 2017-01-27 Pekka Jääskeläinen <pekka.jaaskelainen@parmance.com>
29159 * builtin-types.def: Use unsigned_char_type_node for BT_UINT8. Use
29160 uint16_type_node for BT_UINT16.
29162 2017-01-27 David Malcolm <dmalcolm@redhat.com>
29164 * doc/sourcebuild.texi (Testsuites): Add "GIMPLE Tests" and
29165 "RTL Tests" to menu.
29166 (GIMPLE Tests): New node.
29167 (RTL Tests): New node.
29169 2017-01-27 Richard Biener <rguenther@suse.de>
29171 PR tree-optimization/79245
29172 * tree-loop-distribution.c (distribute_loop): Apply cost
29173 modeling also to detected patterns.
29175 2017-01-27 Richard Biener <rguenther@suse.de>
29177 PR tree-optimization/71433
29178 * tree-vrp.c (register_new_assert_for): Revert earlier changes.
29179 (compare_assert_loc): New function.
29180 (process_assert_insertions): Sort and optimize assert locations
29181 to remove duplicates and push down identical assertions on
29182 edges to their destination block.
29184 2017-01-27 Richard Biener <rguenther@suse.de>
29186 PR tree-optimization/79244
29187 * tree-vrp.c (remove_range_assertions): Forcefully propagate
29188 out SSA names even if abnormal.
29190 2017-01-27 Jakub Jelinek <jakub@redhat.com>
29192 * realmpfr.h: Poison MPFR_RND{N,Z,U,D}.
29193 * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN
29194 instead of MPFR_RNDN.
29196 2017-01-27 Richard Earnshaw <rearnsha@arm.com>
29199 * arm.c (arm_option_override): Don't call build_target_option_node
29200 until after doing all option overrides.
29201 (arm_valid_target_attribute_tree): Likewise.
29203 2017-01-27 Martin Liska <mliska@suse.cz>
29205 * doc/invoke.texi (-fprofile-arcs): Document profiling support
29206 for {cd}tors and C++ {cd}tors.
29208 2017-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
29210 * config/s390/s390.md ("*setmem_long_and")
29211 ("*setmem_long_and_31z"): Use zero_extend instead of and.
29213 2017-01-26 Martin Sebor <msebor@redhat.com>
29215 * gimple-ssa-sprintf.c (format_floating): Simplify the computation
29218 2017-01-26 Martin Sebor <msebor@redhat.com>
29220 * gimple-ssa-sprintf.c (format_floating): Test HAVE_XFmode and
29221 HAVE_DFmode before using XFmode or DFmode.
29222 (parse_directive): Avoid using the z length modifier to avoid
29223 the ISO C++98 does not support the ‘z’ gnu_printf length modifier.
29225 PR middle-end/78703
29226 * gimple-ssa-sprintf.c (adjust_for_width_or_precision): Change
29227 to accept adjustment as an array.
29228 (get_int_range): New function.
29229 (struct directive): Make width and prec arrays.
29230 (directive::set_width, directive::set_precision): Call get_int_range.
29231 (format_integer, format_floating): Handle width and precision ranges.
29232 (format_string, parse_directive): Same.
29234 2017-01-26 Jakub Jelinek <jakub@redhat.com>
29237 * dwarf2out.c (generate_skeleton_bottom_up): For children with
29238 comdat_type_p set, just clone them, but keep the children in the
29242 * dwarf2out.c (prune_unused_types): Mark all functions with DIEs
29243 which have direct callers with -fvar-tracking-assignments enabled
29245 (resolve_addr): Avoid adding skeleton DIEs for DW_AT_call_origin
29246 inside of type units.
29248 2017-01-26 Martin Sebor <msebor@redhat.com>
29250 PR middle-end/78703
29251 * gimple-ssa-sprintf.c (struct result_range): Add likely and
29253 (struct format_result): Replace number_chars, number_chars_min,
29254 and number_chars_max with a single member of struct result_range.
29256 (format_result::operator+=): Adjust.
29257 (struct fmtresult): Remove bounded. Handle likely and unlikely
29259 (fmtresult::adjust_for_width_or_precision): New function.
29260 (fmtresult:type_max_digits): New function.
29261 (bytes_remaining): Handle likely and unlikely counters.
29262 (min_bytes_remaining): Remove.
29263 (format_percent): Simplify.
29264 (format_integer, format_floating): Set likely and unlikely counters.
29265 (get_string_length, format_character, format_string): Same.
29266 (format_plain, should_warn_p): New function.
29267 (maybe_warn): Call should_warn_p. Update diagnostic messages
29268 and handle those for all directives, including plain strings.
29269 (format_directive): Handle likely and unlikely counters.
29270 Remove unnecessary quoting from diagnostics. Add an informational
29272 (add_bytes): Remove.
29273 (pass_sprintf_length::compute_format_length): Simplify.
29274 (try_substitute_return_value): Handle likely and unlikely counters.
29276 2017-01-26 Carl Love <cel@us.ibm.com>
29278 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Remove
29279 bogus entries for the P8V_BUILTIN_VEC_VGBBD built-ins
29281 2017-01-26 Vladimir Makarov <vmakarov@redhat.com>
29284 * lra-assigns.c (setup_live_pseudos_and_spill_after_risky): Take
29285 endianess for subregs into account.
29286 * lra-constraints.c (lra_constraints): Do risky transformations
29287 always on the first iteration.
29288 * lra-lives.c (check_pseudos_live_through_calls): Add arg
29289 last_call_used_reg_set.
29290 (process_bb_lives): Define and use last_call_used_reg_set.
29291 * lra.c (lra): Always continue after lra_constraints on the first
29294 2017-01-26 Kirill Yukhin <kirill.yukhin@gmail.com>
29296 * gcc.target/i386/avx512bw-kshiftlq-2.c: Use unsigned long long
29298 * gcc.target/i386/avx512bw-kshiftrq-2.c: Ditto.
29300 2017-01-26 Jakub Jelinek <jakub@redhat.com>
29302 * config/i386/avx512fintrin.h (_ktest_mask16_u8,
29303 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): Move to ...
29304 * config/i386/avx512dqintrin.h (_ktest_mask16_u8,
29305 _ktestz_mask16_u8, _ktestc_mask16_u8, _kadd_mask16): ... here.
29306 * config/i386/i386-builtin.def (__builtin_ia32_ktestchi,
29307 __builtin_ia32_ktestzhi, __builtin_ia32_kaddhi): Use
29308 OPTION_MASK_ISA_AVX512DQ instead of OPTION_MASK_ISA_AVX512F.
29309 * config/i386/sse.md (SWI1248_AVX512BWDQ2): New mode iterator.
29310 (kadd<mode>, ktest<mode>): Use it instead of SWI1248_AVX512BWDQ.
29312 2017-01-26 Marek Polacek <polacek@redhat.com>
29315 * fold-const.c (operand_equal_p) [COND_EXPR]: Use OP_SAME_WITH_NULL
29316 for the third operand.
29318 2017-01-26 Jakub Jelinek <jakub@redhat.com>
29320 PR middle-end/79236
29321 * omp-low.c (struct omp_context): Add simt_stmt field.
29322 (scan_omp_for): Return omp_context *.
29323 (scan_omp_simd): Set simt_stmt on the non-_simt_ SIMD
29324 context to the _simt_ SIMD stmt.
29325 (lower_omp_for): For combined SIMD with sibling _simt_
29326 SIMD, make sure to use the same decls in _looptemp_
29327 clauses as in the sibling.
29329 2017-01-26 David Sherwood <david.sherwood@arm.com>
29331 PR middle-end/79212
29332 * gimplify.c (omp_notice_variable): Add GOVD_SEEN flag to variables in
29335 2017-01-26 Jakub Jelinek <jakub@redhat.com>
29338 * reg-stack.c (emit_swap_insn): Instead of fld a; fld b; fxchg %st(1);
29339 emit fld b; fld a; if possible.
29341 * brig-builtins.def: Update copyright years.
29342 * config/arm/arm_acle_builtins.def: Update copyright years.
29344 2017-01-25 Michael Meissner <meissner@linux.vnet.ibm.com>
29347 * config/rs6000/vsx.md (vsx_extract_<mode>_store): Use wY
29348 constraint instead of o for the stxsd instruction.
29350 2017-01-25 Carl Love <cel@us.ibm.com>
29352 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Fix order
29353 of entries for ALTIVEC_BUILTIN_VEC_PACKS and P8V_BUILTIN_VEC_VGBBD.
29355 2017-01-25 Jonathan Wakely <jwakely@redhat.com>
29357 * doc/invoke.texi (C++ Dialect Options): Fix typo.
29359 2017-01-25 Richard Biener <rguenther@suse.de>
29361 PR tree-optimization/69264
29362 * target.def (vector_alignment_reachable): Improve documentation.
29363 * doc/tm.texi: Regenerate.
29364 * targhooks.c (default_builtin_vector_alignment_reachable): Simplify
29366 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Revert
29367 earlier changes with respect to TYPE_USER_ALIGN.
29368 (vector_alignment_reachable_p): Likewise. Improve dumping.
29370 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29373 * config/arm/arm.md (xordi3): Force constant operand into a register
29376 2016-01-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29378 * doc/invoke.texi (-fstore-merging): Correct default optimization
29379 levels at which it is enabled.
29380 (-O): Move -fstore-merging from list to...
29383 2017-01-25 Richard Biener <rguenther@suse.de>
29386 * omp-expand.c: Include debug.h.
29387 (expand_omp_taskreg): Make sure to generate early debug before
29388 outlining anything from a function.
29389 (expand_omp_target): Likewise.
29390 (grid_expand_target_grid_body): Likewise.
29392 2017-01-25 Maxim Ostapenko <m.ostapenko@samsung.com>
29395 * asan.c (get_translation_unit_decl): New function.
29396 (asan_add_global): Extract modules file name from globals
29397 TRANSLATION_UNIT_DECL name.
29399 2017-01-24 Eric Botcazou <ebotcazou@adacore.com>
29402 * config/arm/arm.c (arm_function_ok_for_sibcall): Add back restriction
29403 for long calls with APCS frame and VFP.
29405 2017-01-24 David Malcolm <dmalcolm@redhat.com>
29407 * cfg.c (original_copy_tables_initialized_p): New function.
29408 * cfg.h (original_copy_tables_initialized_p): New decl.
29409 * cfgrtl.c (relink_block_chain): Guard the call to
29410 free_original_copy_tables with a call to
29411 original_copy_tables_initialized_p.
29412 * cgraph.h (symtab_node::native_rtl_p): New decl.
29413 * cgraphunit.c (symtab_node::native_rtl_p): New function.
29414 (symtab_node::needed_p): Don't assert for early assembly output
29415 for __RTL functions.
29416 (cgraph_node::finalize_function): Set "force_output" for __RTL
29418 (cgraph_node::analyze): Bail out early for __RTL functions.
29419 (analyze_functions): Update assertion to support __RTL functions.
29420 (cgraph_node::expand): Bail out early for __RTL functions.
29421 * final.c (rest_of_clean_state): Don't call delete_tree_ssa for
29423 * function.h (struct function): Update comment for field
29425 * gimple-expr.c: Include "tree-pass.h".
29426 (gimple_has_body_p): Return false for __RTL functions.
29427 * Makefile.in (OBJS): Add run-rtl-passes.o.
29428 * pass_manager.h (gcc::pass_manager::get_rest_of_compilation): New
29430 (gcc::pass_manager::get_clean_slate): New accessor.
29431 * passes.c: Include "insn-addr.h".
29432 (should_skip_pass_p): Add logging. Update logic for running
29433 "expand" to be compatible with both __GIMPLE and __RTL. Guard
29434 property-provider override so it is only done for gimple passes.
29436 (skip_pass): New function.
29437 (execute_one_pass): Call skip_pass when skipping passes.
29438 * read-md.c (md_reader::read_char): Support filtering
29439 the input to a subset of line numbers.
29440 (md_reader::md_reader): Initialize fields
29441 m_first_line and m_last_line.
29442 (md_reader::read_file_fragment): New function.
29443 * read-md.h (md_reader::read_file_fragment): New decl.
29444 (md_reader::m_first_line): New field.
29445 (md_reader::m_last_line): New field.
29446 * read-rtl-function.c (function_reader::create_function): Only
29447 create cfun if it doesn't already exist. Set PROP_rtl on cfun's
29448 curr_properties. Set DECL_INITIAL to a dummy block.
29449 (read_rtl_function_body_from_file_range): New function.
29450 * read-rtl-function.h (read_rtl_function_body_from_file_range):
29452 * run-rtl-passes.c: New file.
29453 * run-rtl-passes.h: New file.
29455 2017-01-24 Jeff Law <law@redhat.com>
29457 * config/microblaze/microblaze.h (ASM_FORMAT_PRIVATE_NAME): Increase
29460 2017-01-24 Bin Cheng <bin.cheng@arm.com>
29462 PR tree-optimization/79159
29463 * tree-ssa-loop-niter.c (get_cst_init_from_scev): New function.
29464 (record_nonwrapping_iv): Improve boundary using above function if no
29465 value range information.
29467 2017-01-24 Pekka Jääskeläinen <pekka@parmance.com>
29468 Martin Jambor <mjambor@suse.cz>
29470 * brig-builtins.def: New file.
29471 * builtins.def (DEF_HSAIL_BUILTIN): New macro.
29472 (DEF_HSAIL_ATOMIC_BUILTIN): Likewise.
29473 (DEF_HSAIL_SAT_BUILTIN): Likewise.
29474 (DEF_HSAIL_INTR_BUILTIN): Likewise.
29475 (DEF_HSAIL_CVT_ZEROI_SAT_BUILTIN): Likewise.
29476 * builtin-types.def (BT_INT8): New.
29477 (BT_INT16): Likewise.
29478 (BT_UINT8): Likewise.
29479 (BT_UINT16): Likewise.
29480 (BT_FN_ULONG): Likewise.
29481 (BT_FN_UINT_INT): Likewise.
29482 (BT_FN_UINT_ULONG): Likewise.
29483 (BT_FN_UINT_LONG): Likewise.
29484 (BT_FN_UINT_PTR): Likewise.
29485 (BT_FN_ULONG_PTR): Likewise.
29486 (BT_FN_INT8_FLOAT): Likewise.
29487 (BT_FN_INT16_FLOAT): Likewise.
29488 (BT_FN_UINT32_FLOAT): Likewise.
29489 (BT_FN_UINT16_FLOAT): Likewise.
29490 (BT_FN_UINT8_FLOAT): Likewise.
29491 (BT_FN_UINT64_FLOAT): Likewise.
29492 (BT_FN_UINT16_UINT32): Likewise.
29493 (BT_FN_UINT32_UINT16): Likewise.
29494 (BT_FN_UINT16_UINT16_UINT16): Likewise.
29495 (BT_FN_INT_PTR_INT): Likewise.
29496 (BT_FN_UINT_PTR_UINT): Likewise.
29497 (BT_FN_LONG_PTR_LONG): Likewise.
29498 (BT_FN_ULONG_PTR_ULONG): Likewise.
29499 (BT_FN_VOID_UINT64_UINT64): Likewise.
29500 (BT_FN_UINT8_UINT8_UINT8): Likewise.
29501 (BT_FN_INT8_INT8_INT8): Likewise.
29502 (BT_FN_INT16_INT16_INT16): Likewise.
29503 (BT_FN_INT_INT_INT): Likewise.
29504 (BT_FN_UINT_FLOAT_UINT): Likewise.
29505 (BT_FN_FLOAT_UINT_UINT): Likewise.
29506 (BT_FN_ULONG_UINT_UINT): Likewise.
29507 (BT_FN_ULONG_UINT_PTR): Likewise.
29508 (BT_FN_ULONG_ULONG_ULONG): Likewise.
29509 (BT_FN_UINT_UINT_UINT): Likewise.
29510 (BT_FN_VOID_UINT_PTR): Likewise.
29511 (BT_FN_UINT_UINT_PTR: Likewise.
29512 (BT_FN_UINT32_UINT64_PTR): Likewise.
29513 (BT_FN_INT_INT_UINT_UINT): Likewise.
29514 (BT_FN_UINT_UINT_UINT_UINT): Likewise.
29515 (BT_FN_UINT_UINT_UINT_PTR): Likewise.
29516 (BT_FN_UINT_ULONG_ULONG_UINT): Likewise.
29517 (BT_FN_ULONG_ULONG_ULONG_ULONG): Likewise.
29518 (BT_FN_LONG_LONG_UINT_UINT): Likewise.
29519 (BT_FN_ULONG_ULONG_UINT_UINT): Likewise.
29520 (BT_FN_VOID_UINT32_UINT64_PTR): Likewise.
29521 (BT_FN_VOID_UINT32_UINT32_PTR): Likewise.
29522 (BT_FN_UINT_UINT_UINT_UINT_UINT): Likewise.
29523 (BT_FN_UINT_FLOAT_FLOAT_FLOAT_FLOAT): Likewise.
29524 (BT_FN_ULONG_ULONG_ULONG_UINT_UINT): Likewise.
29525 * doc/frontends.texi: List BRIG FE.
29526 * doc/install.texi (Testing): Add BRIG tesring requirements.
29527 * doc/invoke.texi (Overall Options): Mention BRIG.
29528 * doc/standards.texi (Standards): Doucment BRIG HSA version.
29530 2017-01-24 Richard Biener <rguenther@suse.de>
29532 PR translation/79208
29533 * ipa-devirt.c (odr_types_equivalent_p): Fix typo in diagnostic.
29535 2017-01-24 Martin Jambor <mjambor@suse.cz>
29538 * ipa-prop.c (ipa_free_all_node_params): Call summary destructor.
29539 * ipa-prop.c (ipa_node_params_t::insert): Initialize fields known_csts
29540 and known_contexts.
29542 2017-01-24 Aldy Hernandez <aldyh@redhat.com>
29544 PR middle-end/79123
29545 * gimple-ssa-warn-alloca.c (alloca_call_type): Make sure
29546 casts from signed to unsigned really don't have a range.
29548 2017-01-24 Markus Trippelsdorf <markus@trippelsdorf.de>
29550 * gimple-ssa-sprintf.c (format_floating): Change MPFR_RNDx to
29551 GMP_RNDx for compatiblity.
29553 2017-01-24 Martin Liska <mliska@suse.cz>
29556 * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Insert assert
29557 that would prevent us to call alloca with -1 as argument.
29559 2017-01-24 Jakub Jelinek <jakub@redhat.com>
29561 * dwarf2out.c (output_compilation_unit_header, output_file_names):
29562 Avoid -Wformat-security warning.
29564 2017-01-23 Andrew Pinski <apinski@cavium.com>
29566 * config/aarch64/aarch64.c (thunderx2t99_addrcost_table): Improve
29569 2017-01-23 Martin Sebor <msebor@redhat.com>
29571 PR middle-end/78703
29572 * gimple-ssa-sprintf.c (warn_level): New global.
29573 (format_integer): Use it here and throughout the rest of the file.
29574 Use the same switch to compute sign as base.
29575 (maybe_warn): New function.
29576 (format_directive): Factor out warnings into maybe_warn.
29577 Add debugging output. Use warn_level.
29578 (add_bytes): Use warn_level.
29579 (pass_sprintf_length::compute_format_length): Add debugging output.
29580 (try_substitute_return_value): Same.
29581 (pass_sprintf_length::handle_gimple_call): Set and use warn_level.
29583 PR middle-end/78703
29584 * gimple-ssa-sprintf.c (struct format_result): Remove constant member.
29585 (struct fmtresult, format_integer, format_floating): Adjust.
29586 (fmtresult::fmtresult): Set max correctly in two argument ctor.
29587 (get_string_length, format_string,format_directive): Same.
29588 (pass_sprintf_length::compute_format_length): Same.
29589 (try_substitute_return_value): Simplify slightly.
29591 PR middle-end/78703
29592 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust formatting.
29593 (fmtresult::operator+=): Outlined.
29594 (struct fmtresult): Add ctors.
29595 (struct conversion_spec): Rename...
29596 (struct directive): ...to this. Add and remove data members.
29597 (directive::set_width, directive::set_precision): New functions.
29598 (format_percent): Use fmtresult ctor.
29599 (get_width_and_precision): Remove.
29600 (format_integer): Make naming changes. Avoid computing width and
29602 (format_floating): Same. Adjust indentation.
29603 (format_character, format_none): New functions.
29604 (format_string): Moved character handling to format_character.
29605 (format_directive): Remove arguments, change return type.
29606 (parse_directive): New function.
29607 (pass_sprintf_length::compute_format_length): Move directive
29608 parsing to parse_directive.
29610 2017-01-23 Jakub Jelinek <jakub@redhat.com>
29612 * tree.h (assign_assembler_name_if_neeeded): Rename to ...
29613 (assign_assembler_name_if_needed): ... this.
29614 * tree.c (assign_assembler_name_if_neeeded): Rename to ...
29615 (assign_assembler_name_if_needed): ... this.
29616 (free_lang_data_in_cgraph): Adjust callers.
29617 * cgraphunit.c (cgraph_node::analyze): Likewise.
29618 * omp-expand.c (expand_omp_taskreg, expand_omp_target):
29621 2017-01-23 Richard Biener <rguenther@suse.de>
29623 PR tree-optimization/79088
29624 PR tree-optimization/79188
29625 * tree-ssa-threadupdate.c (mark_threaded_blocks): Move code
29626 resetting loop bounds after last path deletion. Reset loop
29627 bounds of the target loop, make code match the comments.
29628 * tree-ssa-threadbackwards.c (pass_early_thread_jumps::execute):
29629 Make sure loops need no fixups.
29631 2017-01-23 Kelvin Nilsen <kelvin@gcc.gnu.org>
29633 * config/rs6000/rs6000-builtin.def (VSIEDPF): Add scalar insert
29634 exponent support with double type for first argument.
29635 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Changed
29636 type returned by __builtin_vec_extract_sig,
29637 __builtin_vec_extract_sig_sp, and __builtin_vec_extract_sig_dp
29638 functions from "vector int" to "vector unsigned int" or from
29639 "vector long long int" to "vector unsigned long long int".
29640 Changed type returned by __builtin_vec_extract_exp,
29641 __builtin_vec_extract_exp_sp, and __builtin_vec_extract_exp_dp
29642 functions from "vector int" to "vector unsigned int" or from
29643 "vector long long int" to "vector unsigned long long int".
29644 Changed return type of __builtin_vec_test_data_class,
29645 __builtin_vec_test_data_class_sp, and
29646 __builtin_vec_test_data_class_dp from "vector int" to
29647 "vector bool int" or from "vector long long int" to "vector bool
29648 long long int" and changed second argument type from "unsigned
29649 int" to "int". Added new overloaded function forms "vector float
29650 __builtin_vec_insert_exp (vector float, vector unsigned int)" and
29651 "vector float __builtin_vec_insert_exp_sp (vector float, vector
29652 unsigned int)" and "vector double __builtin_vec_insert_exp (vector
29653 double, vector unsigned long long int)" and "vector double
29654 __builtin_vec_insert_exp_dp (vector double, vector unsigned long
29655 long int)". Changed return type of
29656 __builtin_scalar_test_data_class and
29657 __builtin_scalar_test_data_class_sp and
29658 __builtin_scalar_test_data_class_dp from "unsigned int" to "bool
29659 int" and changed second argument from "unsigned int" to "int".
29660 Changed type returned by __builtin_scalar_test_neg,
29661 __builtin_scalar_test_neg_sp, and __builtin_scalar_test_neg_dp
29662 from "int" to "bool int". Added new overloaded function form
29663 "double __builtin_scalar_insert_exp (double, unsigned long long int)".
29664 * config/rs6000/vsx.md (xsiexpdpf): New insn for scalar insert
29665 exponent double-precision with floating point first argument.
29666 * doc/extend.texi (PowerPC AltiVec Built-in Functions): Adjust
29667 documentation of scalar_test_data_class, scalar_test_neg,
29668 scalar_extract_sig, scalar_extract_exp, scalar_insert_exp,
29669 vector_extract_exp, vec_extract_sig, vec_insert_exp, and
29670 vec_test_data_class built-in functions to reflect refinements in
29671 their type signatures.
29673 2017-01-23 Andreas Tobler <andreast@gcc.gnu.org>
29675 * config/aarch64/aarch64.c (aarch64_elf_asm_constructor): Increase
29677 (aarch64_elf_asm_destructor): Likewise.
29679 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
29681 PR rtl-optimization/78634
29682 * config/i386/i386.c (ix86_max_noce_ifcvt_seq_cost): New function.
29683 (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Define.
29684 * ifcvt.c (noce_try_cmove): Add missing cost check.
29686 PR rtl-optimization/71724
29687 * combine.c (if_then_else_cond): Look for situations where it is
29688 beneficial to undo the work of one of the recursive calls.
29690 2017-01-23 Bin Cheng <bin.cheng@arm.com>
29692 PR tree-optimization/70754
29693 * tree-predcom.c (stmt_combining_refs): New parameter INSERT_BEFORE.
29694 (reassociate_to_the_same_stmt): New parameter INSERT_BEFORE. Insert
29695 combined stmt before it if not NULL.
29696 (combine_chains): Process refs reversely and compute dominance point
29699 2017-01-23 Martin Liska <mliska@suse.cz>
29701 PR tree-optimization/79196
29702 * tree-ssa-strlen.c (fold_strstr_to_memcmp): Rename to ...
29703 (fold_strstr_to_strncmp): ... this. Fold the pattern to strncmp
29705 (strlen_optimize_stmt): Call the renamed function.
29707 2017-01-23 Michael Matz <matz@suse.de>
29709 PR tree-optimization/78384
29710 * tree-ssa-loop-split.c (patch_loop_exit): Use correct edge.
29712 2017-01-23 Richard Biener <rguenther@suse.de>
29714 PR tree-optimization/79186
29715 * tree-vrp.c (register_new_assert_for): Make sure we've seen
29716 both incoming edges before moving an assert.
29718 2017-01-23 Martin Jambor <mjambor@suse.cz>
29720 * ipa-prop.c (load_from_param_1): Removed.
29721 (load_from_unmodified_param): Bits from load_from_param_1 put back
29723 (load_from_param): Removed.
29724 (compute_complex_assign_jump_func): Removed stmt2 and just replaced it
29725 with stmt. Reverted back to use of load_from_unmodified_param.
29727 2017-01-23 Martin Jambor <mjambor@suse.cz>
29730 * ipa-prop.h (ipa_param_descriptor): Anotate with with GTY(()).
29731 (ipa_node_params): Annotate with GTY((for_user)). Make descriptors
29732 field a pointer to garbage collected vector, mark lattices and
29733 ipcp_orig_node with GTY((skip)).
29734 (ipa_get_param_count): Adjust to descriptors being a pointer.
29735 (ipa_get_param): Likewise.
29736 (ipa_get_type): Likewise.
29737 (ipa_get_param_move_cost): Likewise.
29738 (ipa_set_param_used): Likewise.
29739 (ipa_get_controlled_uses): Likewise.
29740 (ipa_set_controlled_uses): Likewise.
29741 (ipa_is_param_used): Likewise.
29742 (ipa_node_params_t): Move into garbage collector. New methods insert
29744 (ipa_node_params_sum): Annotate wth GTY(()).
29745 (ipa_check_create_node_params): Adjust to ipa_node_params_sum being
29747 (ipa_load_from_parm_agg): Adjust declaration.
29748 * ipa-icf.c (param_used_p): Adjust to descriptors being a pointer.
29749 * ipa-profile.c (ipa_profile): Likewise.
29750 * ipa-prop.c (ipa_get_param_decl_index_1): Likewise.
29751 (ipa_populate_param_decls): Make descriptors parameter garbage
29753 (ipa_dump_param): Adjust to descriptors being a pointer.
29754 (ipa_alloc_node_params): Likewise.
29755 (ipa_initialize_node_params): Likewise.
29756 (load_from_param_1): Make descriptors parameter garbage collected.
29757 (load_from_unmodified_param): Likewise.
29758 (load_from_param): Likewise.
29759 (ipa_load_from_parm_agg): Likewise.
29760 (ipa_node_params::~ipa_node_params): Removed.
29761 (ipa_free_all_node_params): Remove call to delete operator.
29762 (ipa_node_params_t::insert): New.
29763 (ipa_node_params_t::remove): Likewise.
29764 (ipa_node_params_t::duplicate): Adjust to descriptors being a pointer,
29765 copy known_csts and known_contexts vectors.
29766 (ipa_read_node_info): Adjust to descriptors being a pointer.
29767 (ipcp_modif_dom_walker): Make m_descriptors field garbage
29769 (ipcp_transform_function): Make descriptors variable garbage
29772 2017-01-23 Andrew Senkevich <andrew.senkevich@intel.com>
29774 * config/i386/avx512bwintrin.h: Add k-mask test, kortest intrinsics.
29775 * config/i386/avx512dqintrin.h: Ditto.
29776 * config/i386/avx512fintrin.h: Ditto.
29777 * config/i386/i386.c: Handle new builtins.
29778 * config/i386/i386-builtin.def: Add new builtins.
29779 * config/i386/sse.md (ktest<mode>, kortest<mode>): New.
29780 (UNSPEC_KORTEST, UNSPEC_KTEST): New.
29782 2017-01-23 Jakub Jelinek <jakub@redhat.com>
29783 Martin Liska <mliska@suse.cz>
29785 * asan.h: Define ASAN_USE_AFTER_SCOPE_ATTRIBUTE.
29786 * asan.c (asan_expand_poison_ifn): Support stores and use
29787 appropriate ASAN report function.
29788 * internal-fn.c (expand_ASAN_POISON_USE): New function.
29789 * internal-fn.def (ASAN_POISON_USE): Declare.
29790 * tree-into-ssa.c (maybe_add_asan_poison_write): New function.
29791 (maybe_register_def): Create ASAN_POISON_USE when sanitizing.
29792 * tree-ssa-dce.c (eliminate_unnecessary_stmts): Remove
29793 ASAN_POISON calls w/o LHS.
29794 * tree-ssa.c (execute_update_addresses_taken): Create clobber
29795 for ASAN_MARK (UNPOISON, &x, ...) in order to prevent usage of a LHS
29796 from ASAN_MARK (POISON, &x, ...) coming to a PHI node.
29797 * gimplify.c (asan_poison_variables): Add attribute
29798 use_after_scope_memory to variables that really needs to live
29800 * tree-ssa.c (is_asan_mark_p): Do not rewrite into SSA when
29801 having the attribute.
29803 2017-01-23 Martin Liska <mliska@suse.cz>
29805 * asan.c (create_asan_shadow_var): New function.
29806 (asan_expand_poison_ifn): Likewise.
29807 * asan.h (asan_expand_poison_ifn): New declaration.
29808 * internal-fn.c (expand_ASAN_POISON): Likewise.
29809 * internal-fn.def (ASAN_POISON): New builtin.
29810 * sanopt.c (pass_sanopt::execute): Expand
29811 asan_expand_poison_ifn.
29812 * tree-inline.c (copy_decl_for_dup_finish): Make function
29814 * tree-inline.h (copy_decl_for_dup_finish): Likewise.
29815 * tree-ssa.c (is_asan_mark_p): New function.
29816 (execute_update_addresses_taken): Rewrite local variables
29817 (identified just by use-after-scope as addressable) into SSA.
29819 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
29821 * doc/install.texi (Specific): opensource.apple.com uses https
29822 now. Remove trailing slash.
29824 2017-01-22 Gerald Pfeifer <gerald@pfeifer.com>
29826 * README.Portability: Remove note on an Irix compatibility issue.
29828 2017-01-22 Dimitry Andric <dim@FreeBSD.org>
29830 * gcov.c (INCLUDE_ALGORITHM): Define.
29831 (INCLUDE_VECTOR): Define.
29832 No longer include <vector> and <algorithm> directly.
29834 2017-01-21 Gerald Pfeifer <gerald@pfeifer.com>
29836 * doc/extend.texi (Thread-Local): Change www.akkadia.org reference
29838 * doc/invoke.texi (Code Gen Options): Ditto.
29840 2017-01-21 Jan Hubicka <hubicka@ucw.cz>
29843 * cfg.c (update_bb_profile_for_threading): Fix updating of probablity.
29845 2017-01-21 Bernd Schmidt <bschmidt@redhat.com>
29847 rtl-optimization/79125
29848 * cprop.c (local_cprop_pass): Handle cases where we make an
29849 unconditional trap.
29851 2017-01-20 Segher Boessenkool <segher@kernel.crashing.org>
29855 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Adjust address to
29856 read from, for big endian.
29858 2017-01-20 Jiong Wang <jiong.wang@arm.com>
29860 * config/aarch64/aarch64-builtins.c (aarch64_init_builtins): Register
29861 register pauth builtins for LP64 only.
29863 2017-01-20 Marek Polacek <polacek@redhat.com>
29866 * gimplify.c (should_warn_for_implicit_fallthrough): Handle consecutive
29869 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
29871 * omp-expand.c (expand_omp_simd): Clear PROP_gimple_lomp_dev regardless
29873 * omp-offload.c (pass_omp_device_lower::gate): Use PROP_gimple_lomp_dev.
29874 * passes.c (dump_properties): Handle PROP_gimple_lomp_dev.
29875 * tree-inline.c (expand_call_inline): Propagate PROP_gimple_lomp_dev.
29877 2017-01-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29880 * config/arm/arm.c (neon_valid_immediate): Reject vector constants
29881 in big-endian mode when they are not a single duplicated value.
29883 2017-01-20 Richard Biener <rguenther@suse.de>
29885 * BASE-VER: Bump to 7.0.1.
29887 2017-01-20 Alexander Monakov <amonakov@ispras.ru>
29889 * omp-low.c (omplow_simd_context): New struct. Use it...
29890 (lower_rec_simd_input_clauses): ...here and...
29891 (lower_rec_input_clauses): ...here to hold common data. Adjust all
29892 references to idx, lane, max_vf, is_simt.
29894 2017-01-20 Graham Markall <graham.markall@embecosm.com>
29896 * config/arc/arc.h (LINK_SPEC): Use arclinux_nps emulation when
29899 2017-01-20 Martin Jambor <mjambor@suse.cz>
29901 * hsa.h: Renaed to hsa-common.h. Adjusted a comment.
29902 * hsa.c: Renaed to hsa-common.c. Change include of gt-hsa.h to
29904 * Makefile.in (OBJS): Rename hsa.o to hsa-common.o.
29905 (GTFILES): Rename hsa.c to hsa-common.c.
29906 * hsa-brig.c: Change include of hsa.h to hsa-common.h.
29907 * hsa-dump.c: Likewise.
29908 * hsa-gen.c: Likewise.
29909 * hsa-regalloc.c: Likewise.
29910 * ipa-hsa.c: Likewise.
29911 * omp-expand.c: Likewise.
29912 * omp-low.c: Likewise.
29913 * toplev.c: Likewise.
29915 2017-01-20 Marek Polacek <polacek@redhat.com>
29918 * doc/invoke.texi: Document -Wduplicated-branches.
29919 * fold-const.c (operand_equal_p): Handle MODIFY_EXPR, INIT_EXPR,
29920 COMPOUND_EXPR, PREDECREMENT_EXPR, PREINCREMENT_EXPR,
29921 POSTDECREMENT_EXPR, POSTINCREMENT_EXPR, CLEANUP_POINT_EXPR, EXPR_STMT,
29922 STATEMENT_LIST, and RETURN_EXPR. For non-pure non-const functions
29923 return 0 only when not OEP_LEXICOGRAPHIC.
29924 (fold_build_cleanup_point_expr): Use the expression
29925 location when building CLEANUP_POINT_EXPR.
29926 * tree-core.h (enum operand_equal_flag): Add OEP_LEXICOGRAPHIC.
29927 * tree.c (add_expr): Handle error_mark_node.
29929 2017-01-20 Martin Liska <mliska@suse.cz>
29932 * tree-profile.c (init_ic_make_global_vars): Do not call
29934 (gimple_init_gcov_profiler): Likewise.
29936 2017-01-20 Martin Liska <mliska@suse.cz>
29939 * cgraph.h (maybe_create_reference): Remove argument and
29941 * cgraphclones.c (cgraph_node::create_virtual_clone): Remove one
29943 * ipa-cp.c (create_specialized_node): Likewise.
29944 * symtab.c (symtab_node::maybe_create_reference): Handle
29945 VAR_DECLs and ADDR_EXPRs and select ipa_ref_use type.
29947 2017-01-20 Martin Liska <mliska@suse.cz>
29949 * read-rtl-function.c (function_reader::create_function): Use
29950 build_decl instread of build_decl_stat.
29952 2017-01-20 Andrew Senkevich <andrew.senkevich@intel.com>
29954 * config/i386/avx512bwintrin.h: Add k-mask registers shift intrinsics.
29955 * config/i386/avx512dqintrin.h: Ditto.
29956 * config/i386/avx512fintrin.h: Ditto.
29957 * config/i386/i386-builtin-types.def: Add new types.
29958 * config/i386/i386.c: Handle new types.
29959 * config/i386/i386-builtin.def (__builtin_ia32_kshiftliqi)
29960 (__builtin_ia32_kshiftlihi, __builtin_ia32_kshiftlisi)
29961 (__builtin_ia32_kshiftlidi, __builtin_ia32_kshiftriqi)
29962 (__builtin_ia32_kshiftrihi, __builtin_ia32_kshiftrisi)
29963 (__builtin_ia32_kshiftridi): New.
29964 * config/i386/sse.md (k<code><mode>): Rename *k<code><mode>.
29966 2017-01-19 Segher Boessenkool <segher@kernel.crashing.org>
29970 * config/rs6000/rs6000.c (TARGET_STACK_PROTECT_GUARD): Unconditionally
29971 define to rs6000_init_stack_protect_guard.
29972 (rs6000_init_stack_protect_guard): New function.
29974 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
29975 Yunqiang Su <yunqiang.su@imgtec.com>
29977 * config.gcc (supported_defaults): Add madd4.
29978 (with_madd4): Add validation.
29979 (all_defaults): Add madd4.
29980 * config/mips/mips.opt (mmadd4): New option.
29981 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
29983 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
29985 (ISA_HAS_UNFUSED_MADD4): Gate with mips_madd4.
29986 (ISA_HAS_FUSED_MADD4): Likewise.
29987 * doc/invoke.texi (-mmadd4): Document the new option.
29988 * doc/install.texi (--with-madd4): Document the new option.
29990 2017-01-19 Jiong Wang <jiong.wang@arm.com>
29992 * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): New
29993 entries for AARCH64_PAUTH_BUILTIN_XPACLRI,
29994 AARCH64_PAUTH_BUILTIN_PACIA1716, AARCH64_PAUTH_BUILTIN_AUTIA1716.
29995 (aarch64_init_pauth_hint_builtins): New.
29996 (aarch64_init_builtins): Call aarch64_init_pauth_hint_builtins.
29997 (aarch64_expand_builtin): Expand new builtins.
29999 2017-01-19 Jiong Wang <jiong.wang@arm.com>
30001 * reg-notes.def (CFA_TOGGLE_RA_MANGLE): New reg-note.
30002 * combine-stack-adj.c (no_unhandled_cfa): Handle
30003 REG_CFA_TOGGLE_RA_MANGLE.
30004 * dwarf2cfi.c (dwarf2out_frame_debug): Handle REG_CFA_TOGGLE_RA_MANGLE.
30005 * config/aarch64/aarch64.c (aarch64_expand_prologue): Generates DWARF
30006 info for return address signing.
30007 (aarch64_expand_epilogue): Likewise.
30009 2017-01-19 Jiong Wang <jiong.wang@arm.com>
30011 * config/aarch64/aarch64-opts.h (aarch64_function_type): New enum.
30012 * config/aarch64/aarch64-protos.h
30013 (aarch64_return_address_signing_enabled): New declaration.
30014 * config/aarch64/aarch64.c (aarch64_return_address_signing_enabled):
30016 (aarch64_expand_prologue): Sign return address before it's pushed onto
30018 (aarch64_expand_epilogue): Authenticate return address fetched from
30020 (aarch64_override_options): Sanity check for ILP32 and ISA level.
30021 (aarch64_attributes): New function attributes for "sign-return-address".
30022 * config/aarch64/aarch64.md (UNSPEC_AUTI1716, UNSPEC_AUTISP,
30023 UNSPEC_PACI1716, UNSPEC_PACISP, UNSPEC_XPACLRI): New unspecs.
30024 ("*do_return"): Generate combined instructions according to key index.
30025 ("<pauth_mnem_prefix>sp", "<pauth_mnem_prefix1716", "xpaclri"): New.
30026 * config/aarch64/iterators.md (PAUTH_LR_SP, PAUTH_17_16): New integer
30028 (pauth_mnem_prefix, pauth_hint_num_a): New integer attributes.
30029 * config/aarch64/aarch64.opt (msign-return-address=): New.
30030 * doc/extend.texi (AArch64 Function Attributes): Documents
30031 "sign-return-address=".
30032 * doc/invoke.texi (AArch64 Options): Documents "-msign-return-address=".
30034 2017-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
30036 * doc/invoke.texi: Add missing -mlxc1-sxc1 options to
30037 overall option summary.
30039 2017-01-19 Jiong Wang <jiong.wang@arm.com>
30041 * config/aarch64/aarch64-arches.def: New entry for "armv8.3-a".
30042 * config/aarch64/aarch64.h (AARCH64_FL_V8_3, AARCH64_FL_FOR_ARCH8_3,
30043 AARCH64_ISA_V8_3, TARGET_ARMV8_3): New.
30044 * doc/invoke.texi (AArch64 Options): Document "armv8.3-a".
30046 2017-01-19 Michael Meissner <meissner@linux.vnet.ibm.com>
30048 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Enable
30049 -mpower9-minmax by default for -mcpu=power9.
30050 (ISA_3_MASKS_IEEE): Require -mvsx-small-integer to enable IEEE
30051 128-bit floating point.
30053 2017-01-20 Alan Modra <amodra@gmail.com>
30055 * config/rs6000/rs6000.md (cmpstrnsi, cmpstrsi): Fail if
30056 optimizing for size.
30058 2017-01-20 Alan Modra <amodra@gmail.com>
30061 * config/rs6000/rs6000.c (expand_strn_compare): Get the asm name
30062 for strcmp and strncmp from corresponding builtin decl.
30064 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
30066 * config.gcc (x86_64-*-rtems*): Use i386/rtemself.h
30067 instead of i386/rtems-64.h.
30068 * config/i386/rtems-64.h: Remove.
30070 2017-01-19 Uros Bizjak <ubizjak@gmail.com>
30074 2013-11-05 Uros Bizjak <ubizjak@gmail.com>
30076 * config/i386/rtemself.h (LONG_DOUBLE_TYPE_SIZE): New define.
30078 2017-01-19 Tamar Christina <tamar.christina@arm.com>
30080 * config/aarch64/aarch64.c (aarch64_simd_gen_const_vector_dup):
30081 Change int to HOST_WIDE_INT.
30082 * config/aarch64/aarch64-protos.h
30083 (aarch64_simd_gen_const_vector_dup): Likewise.
30084 * config/aarch64/aarch64-simd.md: Add copysign<mode>3.
30086 2017-01-19 David Malcolm <dmalcolm@redhat.com>
30088 * langhooks-def.h (lhd_type_for_size): New decl.
30089 (LANG_HOOKS_TYPE_FOR_SIZE): Define as lhd_type_for_size.
30090 * langhooks.c (lhd_type_for_size): New function, taken from
30093 2017-01-19 Pat Haugen <pthaugen@us.ibm.com>
30095 * config/rs6000/power9.md (power9-alu): Remove 'cmp' type and add
30096 define_bypass for CR latency.
30097 (power9-cracked-alu): Update bypass latency and remove power9-branch.
30098 (power9-alu2): Add define_bypass for CR latency.
30100 (power9-mul): Update insn latency.
30101 (power9-mul-compare): Update insn latency, bypass latency and remove
30104 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30106 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
30108 * config/aarch64/aarch64.md
30109 (aarch64_reload_movcp<GPF_TF:mode><P:mode>): Delete reference to
30110 aarch64_nopcrelative_literal_loads.
30111 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
30113 2017-01-19 Chenghua Xu <paul.hua.gm@gmail.com>
30115 * config/mips/mips.h (ISA_HAS_FUSED_MADD4): Enable for
30116 TARGET_LOONGSON_3A.
30117 (ISA_HAS_UNFUSED_MADD4): Exclude TARGET_LOONGSON_3A.
30119 2017-01-19 Doug Gilmore <doug.gilmore@imgtec.com>
30122 * config.gcc (supported_defaults): Add lxc1-sxc1.
30123 (with_lxc1_sxc1): Add validation.
30124 (all_defaults): Add lxc1-sxc1.
30125 * config/mips/mips.opt (mlxc1-sxc1): New option.
30126 * config/mips/mips.h (OPTION_DEFAULT_SPECS): Add a default for
30128 (TARGET_CPU_CPP_BUILTINS): Add builtin_define for
30129 __mips_no_lxc1_sxc1.
30130 (ISA_HAS_LXC1_SXC1): Gate with mips_lxc1_sxc1.
30131 * doc/invoke.texi (-mlxc1-sxc1): Document the new option.
30132 * doc/install.texi (--with-lxc1-sxc1): Document the new option.
30134 2017-01-19 Richard Biener <rguenther@suse.de>
30136 PR tree-optimization/72488
30137 * tree-ssa-sccvn.c (run_scc_vn): When we abort the VN make
30138 sure to restore SSA info.
30139 * tree-ssa.c (verify_ssa): Verify SSA info is not shared.
30141 2017-01-19 Richard Earnshaw <rearnsha@arm.com>
30143 PR rtl-optimization/79121
30144 * expr.c (expand_expr_real_2, case LSHIFT_EXPR): Look at the signedness
30145 of the inner type when shifting an extended value.
30147 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
30150 * symtab.c (symtab_node::equal_address_to): Fix comparing of
30151 interposable aliases.
30153 2017-01-18 Peter Bergner <bergner@vnet.ibm.com>
30156 * config/rs6000/spe.md (mov_si<mode>_e500_subreg0): Fix constraints.
30157 Use the evmergelohi instruction.
30158 (mov_si<mode>_e500_subreg4_2_le): Likewise.
30159 (mov_sitf_e500_subreg8_2_be): Likewise.
30160 (mov_sitf_e500_subreg12_2_le): Likewise.
30161 (mov_si<mode>_e500_subreg0_2_le): Fix constraints.
30162 (mov_si<mode>_e500_subreg4_2_be): Likewise.
30163 (mov_sitf_e500_subreg8_2_le): Likewise.
30164 (mov_sitf_e500_subreg12_2_be): Likewise.
30166 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30168 * config/rs6000/altivec.md (altivec_vbpermq): Change "type"
30169 attribute from vecsimple to vecperm.
30170 (altivec_vbpermq2): Likewise.
30172 2017-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30175 * config/rs6000/altivec.h: Fix typo of vec_cntlz to vec_cnttz.
30177 2017-01-18 Aaron Sawdey <acsawdey@linux.vnet.ibm.com>
30178 * config/rs6000/rs6000-protos.h (expand_strn_compare): Add arg.
30179 * config/rs6000/rs6000.c (expand_strn_compare): Add ability to expand
30180 strcmp. Fix bug where comparison didn't stop with zero byte. Fix
30181 case where N arg is SIZE_MAX.
30182 * config/rs6000/rs6000.md (cmpstrnsi): Args to expand_strn_compare.
30183 (cmpstrsi): Add pattern.
30185 2017-01-18 Michael Meissner <meissner@linux.vnet.ibm.com>
30187 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
30188 __builtin_vec_revb builtins.
30189 * config/rs6000/rs6000-builtins.def (P9V_BUILTIN_XXBRQ_V16QI): Add
30190 built-in functions to support generation of the ISA 3.0 XXBR<x>
30191 vector byte reverse instructions.
30192 (P9V_BUILTIN_XXBRQ_V1TI): Likewise.
30193 (P9V_BUILTIN_XXBRD_V2DI): Likewise.
30194 (P9V_BUILTIN_XXBRD_V2DF): Likewise.
30195 (P9V_BUILTIN_XXBGW_V4SI): Likewise.
30196 (P9V_BUILTIN_XXBGW_V4SF): Likewise.
30197 (P9V_BUILTIN_XXBGH_V8HI): Likewise.
30198 (P9V_BUILTIN_VEC_REVB): Likewise.
30199 * config/rs6000/vsx.md (p9_xxbrq_v1ti): New insns/expanders to
30200 generate the ISA 3.0 XXBR<x> vector byte reverse instructions.
30201 (p9_xxbrq_v16qi): Likewise.
30202 (p9_xxbrd_<mode>, VSX_D iterator): Likewise.
30203 (p9_xxbrw_<mode>, VSX_W iterator): Likewise.
30204 (p9_xxbrh_v8hi): Likewise.
30205 * config/rs6000/altivec.h (vec_revb): Define if ISA 3.0.
30206 * doc/extend.texi (RS/6000 Altivec Built-ins): Document the
30207 vec_revb built-in functions.
30209 2017-01-18 Uros Bizjak <ubizjak@gmail.com>
30211 PR rtl-optimization/78952
30212 * config/i386/i386.md (any_extract): New code iterator.
30213 (*insvqi_2): Use any_extract for source operand.
30214 (*insvqi_3): Use any_shiftrt for source operand.
30216 2017-01-18 Wilco Dijkstra <wdijkstr@arm.com>
30218 * config/aarch64/aarch64.c (aarch64_sched_adjust_priority)
30220 (TARGET_SCHED_ADJUST_PRIORITY): Define target hook.
30222 2017-01-18 Matthias Klose <doko@ubuntu.com>
30224 * doc/install.texi: Allow default for --with-target-bdw-gc-include.
30226 2016-01-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30228 * config/rs6000/altivec.h (vec_bperm): Change #define.
30229 * config/rs6000/altivec.md (UNSPEC_VBPERMD): New enum constant.
30230 (altivec_vbpermq2): New define_insn.
30231 (altivec_vbpermd): Likewise.
30232 * config/rs6000/rs6000-builtin.def (VBPERMQ2): New monomorphic
30233 function interface.
30234 (VBPERMD): Likewise.
30235 (VBPERM): New polymorphic function interface.
30236 * config/rs6000/r6000-c.c (altivec_overloaded_builtins_table):
30237 Add entries for P9V_BUILTIN_VEC_VBPERM.
30238 * doc/extend.texi: Add interfaces for vec_bperm.
30240 2017-01-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30242 * config/s390/s390-c.c (s390_expand_overloaded_builtin): Downcase
30243 first letter of error messages.
30244 (s390_resolve_overloaded_builtin): Likewise.
30245 * config/s390/s390.c (s390_expand_builtin): Likewise.
30246 (s390_invalid_arg_for_unprototyped_fn): Likewise.
30247 (s390_valid_target_attribute_inner_p): Likewise.
30248 * config/s390/s390.md ("tabort"): Likewise.
30250 2017-01-18 Toma Tabacu <toma.tabacu@imgtec.com>
30252 * config/mips/mips.h (ISA_HAS_DIV3): Remove unused macro.
30253 (ISA_AVOID_DIV_HILO): New macro.
30254 (ISA_HAS_DIV): Use new ISA_AVOID_DIV_HILO macro.
30255 (ISA_HAS_DDIV): Likewise.
30257 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
30259 * doc/invoke.texi (fabi-version): Correct number of occurrences.
30261 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
30263 * doc/invoke.texi (fabi-version): Spelling fix.
30265 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
30268 * doc/invoke.texi (fabi-version): Mention mangling fix for
30271 2017-01-18 Markus Trippelsdorf <markus@trippelsdorf.de>
30274 * doc/invoke.texi (fabi-version): Document discriminator mangling.
30276 2017-01-17 Segher Boessenkool <segher@kernel.crashing.org>
30279 * config/rs6000/rs6000-opts.h (stack_protector_guard): New enum.
30280 * config/rs6000/rs6000.c (rs6000_option_override_internal): Handle
30282 * config/rs6000/rs6000.md (stack_protect_set): Handle the new more
30284 (stack_protect_test): Ditto.
30285 * config/rs6000/rs6000.opt (mstack-protector-guard=,
30286 mstack-protector-guard-reg=, mstack-protector-guard-offset=): New
30288 * doc/invoke.texi (Option Summary) [RS/6000 and PowerPC Options]:
30289 Add -mstack-protector-guard=, -mstack-protector-guard-reg=, and
30290 -mstack-protector-guard-offset=.
30291 (RS/6000 and PowerPC Options): Ditto.
30293 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
30295 * config/i386/i386.h (MASK_CLASS_P): New define.
30296 * config/i386/i386.c (inline_secondary_memory_needed): Ensure that
30297 there are no registers from different register sets also when
30298 mask registers are used. Update function comment.
30299 * config/i386/i386.md (*movsi_internal): Split (*k/*krm) alternative
30300 to (*k/*r) and (*k/*km) alternatives.
30302 2017-01-17 Wilco Dijkstra <wdijkstr@arm.com>
30304 * config/aarch64/aarch64.md (eh_return): Remove pattern and splitter.
30305 * config/aarch64/aarch64.h (AARCH64_EH_STACKADJ_REGNUM): Remove.
30306 (EH_RETURN_HANDLER_RTX): New define.
30307 * config/aarch64/aarch64.c (aarch64_frame_pointer_required):
30308 Force frame pointer in EH return functions.
30309 (aarch64_expand_epilogue): Add barrier for eh_return.
30310 (aarch64_final_eh_return_addr): Remove.
30311 (aarch64_eh_return_handler_rtx): New function.
30312 * config/aarch64/aarch64-protos.h (aarch64_final_eh_return_addr):
30314 (aarch64_eh_return_handler_rtx): New prototype.
30316 2017-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30318 * config/rs6000/altivec.h (vec_rlmi): New #define.
30319 (vec_vrlnm): Likewise.
30320 (vec_rlnm): Likewise.
30321 * config/rs6000/altivec.md (UNSPEC_VRLMI): New UNSPEC enum value.
30322 (UNSPEC_VRLNM): Likewise.
30323 (VIlong): New mode iterator.
30324 (altivec_vrl<VI_char>mi): New define_insn.
30325 (altivec_vrl<VI_char>nm): Likewise.
30326 * config/rs6000/rs6000-builtin.def (VRLWNM): New monomorphic
30328 (VRLDNM): Likewise.
30329 (RLNM): New polymorphic function entry.
30330 (VRLWMI): New monomorphic function entry.
30331 (VRLDMI): Likewise.
30332 (RLMI): New polymorphic function entry.
30333 * config/rs6000/r6000-c.c (altivec_overloaded_builtin_table): Add
30334 new entries for P9V_BUILTIN_VEC_RLMI and P9V_BUILTIN_VEC_RLNM.
30335 * doc/extend.texi: Add description of vec_rlmi, vec_rlnm, and
30338 2017-01-17 Jakub Jelinek <jakub@redhat.com>
30341 * dwarf2out.c (field_byte_offset): Restore the
30342 PCC_BITFIELD_TYPE_MATTERS behavior for INTEGER_CST DECL_FIELD_OFFSET
30343 and DECL_FIELD_BIT_OFFSET. Use fold_build2 instead of build2 + fold.
30344 (analyze_variants_discr, gen_variant_part): Use fold_build2 instead
30347 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
30350 * config/aarch64/aarch64.c (TARGET_CUSTOM_FUNCTION_DESCRIPTORS): Define
30352 2017-01-17 Jakub Jelinek <jakub@redhat.com>
30355 * dwarf2out.c (add_data_member_location_attribute): For constant
30356 offset bitfield emit for -gdwarf-5 DW_AT_data_bit_offset attribute
30357 instead of DW_AT_data_member_location, DW_AT_bit_offset and
30358 DW_AT_byte_size attributes.
30360 2017-01-17 Eric Botcazou <ebotcazou@adacore.com>
30362 * config/rs6000/rs6000.c (rs6000_emit_move): Also use a TOC reference
30363 after forcing to constant memory when the code model is medium.
30365 2017-01-17 Julia Koval <julia.koval@intel.com>
30368 * config/i386/avx512fintrin.h
30369 (_mm512_i32gather_ps): Change __addr type to void const*.
30370 (_mm512_mask_i32gather_ps): Ditto.
30371 (_mm512_i32gather_pd): Ditto.
30372 (_mm512_mask_i32gather_pd): Ditto.
30373 (_mm512_i64gather_ps): Ditto.
30374 (_mm512_mask_i64gather_ps): Ditto.
30375 (_mm512_i64gather_pd): Ditto.
30376 (_mm512_mask_i64gather_pd): Ditto.
30377 (_mm512_i32gather_epi32): Ditto.
30378 (_mm512_mask_i32gather_epi32): Ditto.
30379 (_mm512_i32gather_epi64): Ditto.
30380 (_mm512_mask_i32gather_epi64): Ditto.
30381 (_mm512_i64gather_epi32): Ditto.
30382 (_mm512_mask_i64gather_epi32): Ditto.
30383 (_mm512_i64gather_epi64): Ditto.
30384 (_mm512_mask_i64gather_epi64): Ditto.
30385 (_mm512_i32scatter_ps): Change __addr type to void*.
30386 (_mm512_mask_i32scatter_ps): Ditto.
30387 (_mm512_i32scatter_pd): Ditto.
30388 (_mm512_mask_i32scatter_pd): Ditto.
30389 (_mm512_i64scatter_ps): Ditto.
30390 (_mm512_mask_i64scatter_ps): Ditto.
30391 (_mm512_i64scatter_pd): Ditto.
30392 (_mm512_mask_i64scatter_pd): Ditto.
30393 (_mm512_i32scatter_epi32): Ditto.
30394 (_mm512_mask_i32scatter_epi32): Ditto.
30395 (_mm512_i32scatter_epi64): Ditto.
30396 (_mm512_mask_i32scatter_epi64): Ditto.
30397 (_mm512_i64scatter_epi32): Ditto.
30398 (_mm512_mask_i64scatter_epi32): Ditto.
30399 (_mm512_i64scatter_epi64): Ditto.
30400 (_mm512_mask_i64scatter_epi64): Ditto.
30401 * config/i386/avx512pfintrin.h
30402 (_mm512_mask_prefetch_i32gather_pd): Change __addr type to void const*.
30403 (_mm512_mask_prefetch_i32gather_ps): Ditto.
30404 (_mm512_mask_prefetch_i64gather_pd): Ditto.
30405 (_mm512_mask_prefetch_i64gather_ps): Ditto.
30406 (_mm512_prefetch_i32scatter_pd): Change __addr type to void*.
30407 (_mm512_prefetch_i32scatter_ps): Ditto.
30408 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
30409 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
30410 (_mm512_prefetch_i64scatter_pd): Ditto.
30411 (_mm512_prefetch_i64scatter_ps): Ditto.
30412 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
30413 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
30414 * config/i386/avx512vlintrin.h
30415 (_mm256_mmask_i32gather_ps): Change __addr type to void const*.
30416 (_mm_mmask_i32gather_ps): Ditto.
30417 (_mm256_mmask_i32gather_pd): Ditto.
30418 (_mm_mmask_i32gather_pd): Ditto.
30419 (_mm256_mmask_i64gather_ps): Ditto.
30420 (_mm_mmask_i64gather_ps): Ditto.
30421 (_mm256_mmask_i64gather_pd): Ditto.
30422 (_mm_mmask_i64gather_pd): Ditto.
30423 (_mm256_mmask_i32gather_epi32): Ditto.
30424 (_mm_mmask_i32gather_epi32): Ditto.
30425 (_mm256_mmask_i32gather_epi64): Ditto.
30426 (_mm_mmask_i32gather_epi64): Ditto.
30427 (_mm256_mmask_i64gather_epi32): Ditto.
30428 (_mm_mmask_i64gather_epi32): Ditto.
30429 (_mm256_mmask_i64gather_epi64): Ditto.
30430 (_mm_mmask_i64gather_epi64): Ditto.
30431 (_mm256_i32scatter_ps): Change __addr type to void*.
30432 (_mm256_mask_i32scatter_ps): Ditto.
30433 (_mm_i32scatter_ps): Ditto.
30434 (_mm_mask_i32scatter_ps): Ditto.
30435 (_mm256_i32scatter_pd): Ditto.
30436 (_mm256_mask_i32scatter_pd): Ditto.
30437 (_mm_i32scatter_pd): Ditto.
30438 (_mm_mask_i32scatter_pd): Ditto.
30439 (_mm256_i64scatter_ps): Ditto.
30440 (_mm256_mask_i64scatter_ps): Ditto.
30441 (_mm_i64scatter_ps): Ditto.
30442 (_mm_mask_i64scatter_ps): Ditto.
30443 (_mm256_i64scatter_pd): Ditto.
30444 (_mm256_mask_i64scatter_pd): Ditto.
30445 (_mm_i64scatter_pd): Ditto.
30446 (_mm_mask_i64scatter_pd): Ditto.
30447 (_mm256_i32scatter_epi32): Ditto.
30448 (_mm256_mask_i32scatter_epi32): Ditto.
30449 (_mm_i32scatter_epi32): Ditto.
30450 (_mm_mask_i32scatter_epi32): Ditto.
30451 (_mm256_i32scatter_epi64): Ditto.
30452 (_mm256_mask_i32scatter_epi64): Ditto.
30453 (_mm_i32scatter_epi64): Ditto.
30454 (_mm_mask_i32scatter_epi64): Ditto.
30455 (_mm256_i64scatter_epi32): Ditto.
30456 (_mm256_mask_i64scatter_epi32): Ditto.
30457 (_mm_i64scatter_epi32): Ditto.
30458 (_mm_mask_i64scatter_epi32): Ditto.
30459 (_mm256_i64scatter_epi64): Ditto.
30460 (_mm256_mask_i64scatter_epi64): Ditto.
30461 (_mm_i64scatter_epi64): Ditto.
30462 (_mm_mask_i64scatter_epi64): Ditto.
30463 * config/i386/i386-builtin-types.def (V16SF_V16SF_PCFLOAT_V16SI_HI_INT)
30464 (V8DF_V8DF_PCDOUBLE_V8SI_QI_INT, V8SF_V8SF_PCFLOAT_V8DI_QI_INT)
30465 (V8DF_V8DF_PCDOUBLE_V8DI_QI_INT, V16SI_V16SI_PCINT_V16SI_HI_INT)
30466 (V8DI_V8DI_PCINT64_V8SI_QI_INT, V8SI_V8SI_PCINT_V8DI_QI_INT)
30467 (V8DI_V8DI_PCINT64_V8DI_QI_INT, V2DF_V2DF_PCDOUBLE_V4SI_QI_INT)
30468 (V4DF_V4DF_PCDOUBLE_V4SI_QI_INT, V2DF_V2DF_PCDOUBLE_V2DI_QI_INT)
30469 (V4DF_V4DF_PCDOUBLE_V4DI_QI_INT, V4SF_V4SF_PCFLOAT_V4SI_QI_INT)
30470 (V8SF_V8SF_PCFLOAT_V8SI_QI_INT, V4SF_V4SF_PCFLOAT_V2DI_QI_INT)
30471 (V4SF_V4SF_PCFLOAT_V4DI_QI_INT, V2DI_V2DI_PCINT64_V4SI_QI_INT)
30472 (V4DI_V4DI_PCINT64_V4SI_QI_INT, V2DI_V2DI_PCINT64_V2DI_QI_INT)
30473 (V4DI_V4DI_PCINT64_V4DI_QI_INT, V4SI_V4SI_PCINT_V4SI_QI_INT)
30474 (V8SI_V8SI_PCINT_V8SI_QI_INT, V4SI_V4SI_PCINT_V2DI_QI_INT)
30475 (V4SI_V4SI_PCINT_V4DI_QI_INT, VOID_PFLOAT_HI_V16SI_V16SF_INT)
30476 (VOID_PFLOAT_QI_V8SI_V8SF_INT, VOID_PFLOAT_QI_V4SI_V4SF_INT)
30477 (VOID_PDOUBLE_QI_V8SI_V8DF_INT, VOID_PDOUBLE_QI_V4SI_V4DF_INT)
30478 (VOID_PDOUBLE_QI_V4SI_V2DF_INT, VOID_PFLOAT_QI_V8DI_V8SF_INT)
30479 (VOID_PFLOAT_QI_V4DI_V4SF_INT, VOID_PFLOAT_QI_V2DI_V4SF_INT)
30480 (VOID_PDOUBLE_QI_V8DI_V8DF_INT, VOID_PDOUBLE_QI_V4DI_V4DF_INT)
30481 (VOID_PDOUBLE_QI_V2DI_V2DF_INT, VOID_PINT_HI_V16SI_V16SI_INT)
30482 (VOID_PINT_QI_V8SI_V8SI_INT, VOID_PINT_QI_V4SI_V4SI_INT)
30483 (VOID_PLONGLONG_QI_V8SI_V8DI_INT, VOID_PLONGLONG_QI_V4SI_V4DI_INT)
30484 (VOID_PLONGLONG_QI_V4SI_V2DI_INT, VOID_PINT_QI_V8DI_V8SI_INT)
30485 (VOID_PINT_QI_V4DI_V4SI_INT, VOID_PINT_QI_V2DI_V4SI_INT)
30486 (VOID_PLONGLONG_QI_V8DI_V8DI_INT, VOID_QI_V8SI_PCINT64_INT_INT)
30487 (VOID_PLONGLONG_QI_V4DI_V4DI_INT, VOID_PLONGLONG_QI_V2DI_V2DI_INT)
30488 (VOID_HI_V16SI_PCINT_INT_INT, VOID_QI_V8DI_PCINT64_INT_INT)
30489 (VOID_QI_V8DI_PCINT_INT_INT): Remove.
30490 (V16SF_V16SF_PCVOID_V16SI_HI_INT, V8DF_V8DF_PCVOID_V8SI_QI_INT)
30491 (V8SF_V8SF_PCVOID_V8DI_QI_INT, V8DF_V8DF_PCVOID_V8DI_QI_INT)
30492 (V16SI_V16SI_PCVOID_V16SI_HI_INT, V8DI_V8DI_PCVOID_V8SI_QI_INT)
30493 (V8SI_V8SI_PCVOID_V8DI_QI_INT, V8DI_V8DI_PCVOID_V8DI_QI_INT)
30494 (VOID_PVOID_HI_V16SI_V16SF_INT, VOID_PVOID_QI_V8SI_V8DF_INT)
30495 (VOID_PVOID_QI_V8DI_V8SF_INT, VOID_PVOID_QI_V8DI_V8DF_INT)
30496 (VOID_PVOID_HI_V16SI_V16SI_INT, VOID_PVOID_QI_V8SI_V8DI_INT)
30497 (VOID_PVOID_QI_V8DI_V8SI_INT, VOID_PVOID_QI_V8DI_V8DI_INT)
30498 (V2DF_V2DF_PCVOID_V4SI_QI_INT, V4DF_V4DF_PCVOID_V4SI_QI_INT)
30499 (V2DF_V2DF_PCVOID_V2DI_QI_INT, V4DF_V4DF_PCVOID_V4DI_QI_INT
30500 (V4SF_V4SF_PCVOID_V4SI_QI_INT, V8SF_V8SF_PCVOID_V8SI_QI_INT)
30501 (V4SF_V4SF_PCVOID_V2DI_QI_INT, V4SF_V4SF_PCVOID_V4DI_QI_INT)
30502 (V2DI_V2DI_PCVOID_V4SI_QI_INT, V4DI_V4DI_PCVOID_V4SI_QI_INT)
30503 (V2DI_V2DI_PCVOID_V2DI_QI_INT, V4DI_V4DI_PCVOID_V4DI_QI_INT)
30504 (V4SI_V4SI_PCVOID_V4SI_QI_INT, V8SI_V8SI_PCVOID_V8SI_QI_INT)
30505 (V4SI_V4SI_PCVOID_V2DI_QI_INT, V4SI_V4SI_PCVOID_V4DI_QI_INT)
30506 (VOID_PVOID_QI_V8SI_V8SF_INT, VOID_PVOID_QI_V4SI_V4SF_INT)
30507 (VOID_PVOID_QI_V4SI_V4DF_INT, VOID_PVOID_QI_V4SI_V2DF_INT)
30508 (VOID_PVOID_QI_V4DI_V4SF_INT, VOID_PVOID_QI_V2DI_V4SF_INT)
30509 (VOID_PVOID_QI_V4DI_V4DF_INT, VOID_PVOID_QI_V2DI_V2DF_INT)
30510 (VOID_PVOID_QI_V8SI_V8SI_INT, VOID_PVOID_QI_V4SI_V4SI_INT)
30511 (VOID_PVOID_QI_V4SI_V4DI_INT, VOID_PVOID_QI_V4SI_V2DI_INT)
30512 (VOID_PVOID_QI_V4DI_V4SI_INT, VOID_PVOID_QI_V2DI_V4SI_INT)
30513 (VOID_PVOID_QI_V4DI_V4DI_INT, VOID_PVOID_QI_V2DI_V2DI_INT)
30514 (VOID_QI_V8SI_PCVOID_INT_INT, VOID_HI_V16SI_PCVOID_INT_INT)
30515 (VOID_QI_V8DI_PCVOID_INT_INT): Add.
30516 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Adjust builtin
30517 definitions accordingly.
30519 2017-01-17 Kito Cheng <kito.cheng@gmail.com>
30520 Kuan-Lin Chen <kuanlinchentw@gmail.com>
30523 * internal-fn.c (expand_mul_overflow): Use convert_modes instead of
30526 2017-01-17 Vladimir Makarov <vmakarov@redhat.com>
30529 * ira-conflicts.c (ira_build_conflicts): Update total conflict
30530 hard regs for inner regno.
30532 2017-01-17 Martin Liska <mliska@suse.cz>
30535 * ipa-polymorphic-call.c (contains_type_p): Fix wrong
30536 assumption and add comment.
30538 2017-01-17 Nathan Sidwell <nathan@acm.org>
30540 * ipa-visibility.c (localize_node): New function, broken out of ...
30541 (function_and_variable_visibility): ... here. Call it.
30543 2017-01-17 Jan Hubicka <hubicka@ucw.cz>
30545 PR middle-end/77445
30546 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
30547 correctly set frequency of oudgoing edge.
30548 (duplicate_thread_path): Fix profile updating.
30550 2017-01-17 Jakub Jelinek <jakub@redhat.com>
30553 * configure.ac: Add GCC_BASE_VER.
30554 * Makefile.in (version): Use @get_gcc_base_ver@ instead of cat to get
30555 version from BASE-VER file.
30556 (CFLAGS-gcc.o): Add -DBASEVER=$(BASEVER_s).
30557 (gcc.o): Depend on $(BASEVER).
30558 * common.opt (dumpfullversion): New option.
30559 * gcc.c (driver_handle_option): Handle OPT_dumpfullversion.
30560 * doc/invoke.texi: Document -dumpfullversion.
30561 * doc/install.texi: Document --with-gcc-major-version-only.
30562 * configure: Regenerated.
30564 2017-01-17 Richard Biener <rguenther@suse.de>
30566 PR tree-optimization/71433
30567 * tree-vrp.c (register_new_assert_for): Merge same asserts
30568 on all incoming edges.
30569 (process_assert_insertions_for): Handle insertions at the
30572 2017-01-17 Gerald Pfeifer <gerald@pfeifer.com>
30574 * config/i386/cygwin.h (LIBGCJ_SONAME): Remove.
30575 * config/i386/mingw32.h (LIBGCJ_SONAME): Remove.
30577 2017-01-17 Kaz Kojima <kkojima@gcc.gnu.org>
30580 * config/sh/sh.md (cmpeqsi_t+1): Call copy_rtx to avoid invalid
30583 2017-01-17 Alan Modra <amodra@gmail.com>
30586 * config/rs6000/rs6000.md (elf_high, elf_low): Disable when pic.
30587 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Don't allow
30588 symbolic stack limit when pic.
30590 2017-01-16 Martin Sebor <msebor@redhat.com>
30592 PR tree-optimization/78608
30593 * gimple-ssa-sprintf.c (tree_digits): Avoid negating TYPE_MIN.
30595 2017-01-16 Jeff Law <law@redhat.com>
30598 2016-12-02 Tadek Kijkowski <tkijkowski@gmail.com>
30599 * Makefile.in (PREPROCESSOR_DEFINES): Add a level of indirection
30600 for several include directories that may be relative to sysroot.
30601 * config/i386/x-mingw32 (gplus_includedir): Define.
30602 (gplus_tool_includedir, gplus_backward_include_dir): Likewise.
30603 (native_system_includedir): Likewise.
30604 * config/i386/mingw32.h (STANDARD_STARTFILE_PREFIX_1): Do not
30605 override if TARGET_SYSTEM_ROOT is defined.
30606 (NATIVE_SYSTEM_HEADER_DIR): Likewise.
30608 PR tree-optimization/79090
30609 PR tree-optimization/33562
30610 PR tree-optimization/61912
30611 PR tree-optimization/77485
30612 * tree-ssa-dse.c (compute_trims): Accept STMT argument. Dump STMT
30613 and computed trims into the dump file.
30615 2017-01-17 Uros Bizjak <ubizjak@gmail.com>
30617 * config/i386/i386.h (LIMIT_RELOAD_CLASS): Remove.
30619 2017-01-16 Jakub Jelinek <jakub@redhat.com>
30622 * gimplify.c (gimplify_init_constructor): If want_value and
30623 object == lhs, unshare lhs to avoid invalid tree sharing. Formatting
30627 * loop-doloop.c (doloop_modify): Call unshare_all_rtl_in_chain on
30628 sequence. Formatting fixes.
30629 (doloop_optimize): Formatting fixes.
30632 * gcc.c (debug_level_greater_than_spec_func): New function.
30633 (static_spec_functions): Add debug-level-gt spec function.
30634 (ASM_DEBUG_SPEC, cpp_options): Use %:debug-level-gt(0) instead of
30636 * config/darwin.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
30637 * config/darwin9.h (DSYMUTIL_SPEC, ASM_DEBUG_SPEC): Likewise.
30638 * common.opt (g, gcoff, gdwarf, gdwarf-, ggdb, gno-pubnames,
30639 gpubnames, ggnu-pubnames, gno-record-gcc-switches,
30640 grecord-gcc-switches, gno-strict-dwarf, gstrict-dwarf, gstabs,
30641 gstabs+, gtoggle, gvms, gxcoff, gxcoff+): Add Driver flag.
30643 2017-01-16 Uros Bizjak <ubizjak@gmail.com>
30645 * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Apply HImode and
30646 QImode fixups to general and mask registers only.
30648 2017-01-16 Carl Love <cel@us.ibm.com>
30650 * config/rs6000/rs6000-c (altivec_overloaded_builtins): Add support
30651 for built-in functions
30652 vector signed char vec_nabs (vector signed char)
30653 vector signed short vec_nabs (vector signed short)
30654 vector signed int vec_nabs (vector signed int)
30655 vector signed long long vec_nabs (vector signed long long)
30656 vector float vec_nabs (vector float)
30657 vector double vec_nabs (vector double)
30658 * config/rs6000/rs6000-builtin.def: Add definitions for NABS functions
30660 * config/rs6000/altivec.md: New define_expand nabs<mode>2 types
30661 * config/rs6000/altivec.h: New define for vec_nabs built-in function.
30662 * doc/extend.texi: Update the documentation file for the new built-in
30665 2017-01-16 Martin Sebor <msebor@redhat.com>
30667 * gimple-ssa-sprintf.c (format_directive): Correct a typo in a warning
30670 2017-01-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30672 * config/rs6000/rs6000.c (rtx_is_swappable_p): Change
30673 UNSPEC_VSX__XXSPLTD to require special splat handling.
30675 2017-01-16 David Malcolm <dmalcolm@redhat.com>
30678 * system.h: Poison strndup.
30680 2017-01-16 Alan Modra <amodra@gmail.com>
30683 * config/rs6000/rs6000.c (rs6000_legitimate_combined_insn): Don't
30686 2017-01-16 Georg-Johann Lay <avr@gjlay.de>
30688 * config/avr/avr.h (BRANCH_COST) [reload_completed]: Increase by 4.
30690 2017-01-15 Uros Bizjak <ubizjak@gmail.com>
30692 * config/i386/i386.c (ix86_legitimate_combined_insn): Do not
30693 call recog here. Assert that INSN_CODE (insn) is non-negative.
30695 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
30698 * cfgrtl.c (rtl_split_edge): Also patch jump insns that jump to the
30700 * haifa-sched.c (dump_insn_stream): Don't crash if there is a label
30701 in the currently scheduled RTL fragment.
30703 2017-01-15 Segher Boessenkool <segher@kernel.crashing.org>
30705 PR rtl-optimization/78751
30706 * ifcvt.c (find_cond_trap): If we generated a non-existing insn,
30709 2017-01-14 Jeff Law <law@redhat.com>
30711 PR tree-optimization/79090
30712 * tree-ssa-dse.c (valid_ao_ref_for_dse): Reject zero length and
30713 variable length stores.
30714 (compute_trims): Delete dead assignment to *trim_tail.
30715 (dse_dom_walker::dse_optimize_stmt): Optimize mem* calls with
30718 2017-01-14 Bernd Schmidt <bschmidt@redhat.com>
30720 PR rtl-optimization/78626
30721 PR rtl-optimization/78727
30722 * cprop.c (one_cprop_pass): Collect unconditional traps in the middle
30723 of a block, and split such blocks after everything else is finished.
30725 2017-01-14 Alan Modra <amodra@gmail.com>
30728 * combine.c (recog_for_combine_1): Set INSN_CODE before calling
30729 target legitimate_combined_insn.
30730 * config/rs6000/rs6000.c (TARGET_LEGITIMATE_COMBINED_INSN): Define.
30731 (rs6000_legitimate_combined_insn): New function.
30732 * config/rs6000/rs6000.md (UNSPEC_DOLOOP): Delete, and remove
30734 (ctr<mode>_internal3): Rename from *ctr<mode>_internal5.
30735 (ctr<mode>_internal4): Rename from *ctr<mode>_internal6.
30736 (ctr<mode>_internal1, ctr<mode>_internal2): Remove '*' from name.
30738 2017-01-14 Gerald Pfeifer <gerald@pfeifer.com>
30740 * doc/frontends.texi (G++ and GCC): Remove references to Java.
30742 2017-01-13 Jeff Law <law@redhat.com>
30744 PR tree-optimization/33562
30745 PR tree-optimization/61912
30746 PR tree-optimization/77485
30747 * tree-ssa-dse.c (delete_dead_call): Accept gsi rather than
30749 (delete_dead_assignment): Likewise.
30750 (dse_dom_walker::dse_optimize_stmt): Pass in the gsi rather than
30751 statement to delete_dead_call and delete_dead_assignment.
30753 2017-01-13 David Malcolm <dmalcolm@redhat.com>
30756 * substring-locations.c (format_warning_va): Strengthen case 1 so
30757 that both endpoints of the substring must be within the format
30758 range for just the substring to be printed.
30760 2017-01-13 Uros Bizjak <ubizjak@gmail.com>
30762 * config/i386/i386.opt (msgx): Use ix86_isa_flags2 variable.
30763 * config/i386/i386.c (ix86_target_string): Add missing options
30764 to isa_opts and reorder options by implied ISAs. Rename isa_opts2 to
30765 isa2_opts, ix86_flag_opts to flag2_opts, ix86_target_other to
30766 flags_other and ix86_target_other to flags2_other. Display unknown
30768 (ix86_valid_target_attribute_inner_p): Add missing options and
30769 reorder options by implied ISAs, as in ix86_target_string.
30771 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
30773 * hash-table.h (hash_table::too_empty_p): New function.
30774 (hash_table::expand): Use it.
30775 (hash_table::traverse): Likewise.
30776 (hash_table::empty_slot): Use sizeof (value_type) instead of
30777 sizeof (PTR) to convert bytes to elements. Shrink the table
30778 if the current size is excessive for the current number of
30781 2017-01-13 Richard Sandiford <richard.sandiford@arm.com>
30783 * ira-costs.c (record_reg_classes): Break from the inner loop
30784 early once alt_fail is known to be true. Update outer loop
30785 handling accordingly.
30787 2017-01-13 Jeff Law <law@redhat.com>
30789 * tree-ssa-dse.c (decrement_count): New function.
30790 (increment_start_addr, maybe_trim_memstar_call): Likewise.
30791 (dse_dom_walker::optimize_stmt): Call maybe_trim_memstar_call directly
30792 when we know the partially dead statement is a mem* function.
30794 PR tree-optimization/61912
30795 PR tree-optimization/77485
30796 * tree-ssa-dse.c: Include expr.h.
30797 (maybe_trim_constructor_store): New function.
30798 (maybe_trim_partially_dead_store): Call maybe_trim_constructor_store.
30800 PR tree-optimization/33562
30801 PR tree-optimization/61912
30802 PR tree-optimization/77485
30803 * doc/invoke.texi: Document new dse-max-object-size param.
30804 * params.def (PARM_DSE_MAX_OBJECT_SIZE): New PARAM.
30805 * tree-ssa-dse.c: Include params.h.
30806 (dse_store_status): New enum.
30807 (initialize_ao_ref_for_dse): New, partially extracted from
30809 (valid_ao_ref_for_dse, normalize_ref): New.
30810 (setup_live_bytes_from_ref, compute_trims): Likewise.
30811 (clear_bytes_written_by, maybe_trim_complex_store): Likewise.
30812 (maybe_trim_partially_dead_store): Likewise.
30813 (maybe_trim_complex_store): Likewise.
30814 (dse_classify_store): Renamed from dse_possibly_dead_store_p.
30815 Track what bytes live from the original store. Return tri-state
30816 for dead, partially dead or live.
30817 (dse_dom_walker): Add constructor, destructor and new private members.
30818 (delete_dead_call, delete_dead_assignment): New extracted from
30820 (dse_optimize_stmt): Make a member of dse_dom_walker.
30821 Use initialize_ao_ref_for_dse.
30823 PR tree-optimization/33562
30824 PR tree-optimization/61912
30825 PR tree-optimization/77485
30826 * sbitmap.h (bitmap_count_bits): Prototype.
30827 (bitmap_clear_range, bitmap_set_range): Likewise.
30828 * sbitmap.c (bitmap_clear_range): New function.
30829 (bitmap_set_range, sbitmap_popcount, bitmap_count_bits): Likewise.
30831 2017-01-13 Martin Liska <mliska@suse.cz>
30834 * function.c (set_cfun): Add new argument force.
30835 * function.h (set_cfun): Likewise.
30836 * ipa-inline-transform.c (inline_call): Use the function when
30837 strict alising from is dropped for function we inline to.
30839 2017-01-13 Richard Biener <rguenther@suse.de>
30841 * tree-pretty-print.c (dump_generic_node): Fix inverted condition
30842 for dumping GIMPLE INTEGER_CSTs.
30844 2017-01-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30846 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define __STDC_VERSION__
30847 to 201112L since C++17.
30849 2017-01-13 Maxim Ostapenko <m.ostapenko@samsung.com>
30852 * asan.c (asan_needs_odr_indicator_p): Don't emit ODR indicators
30853 if -fsanitize=kernel-address is present.
30855 2017-01-13 Richard Biener <rguenther@suse.de>
30857 * tree-pretty-print.c (dump_generic_node): Dump INTEGER_CSTs
30858 as _Literal ( type ) number in case usual suffixes do not
30859 preserve all information.
30861 2017-01-13 Richard Biener <rguenther@suse.de>
30863 PR tree-optimization/77283
30864 * gimple-ssa-split-paths.c: Include gimple-ssa.h, tree-phinodes.h
30865 and ssa-iterators.h.
30866 (is_feasible_trace): Implement a cost model based on joiner
30869 2017-01-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30872 * config/rs6000/rs6000.md (FP_ISA3): Do not optimize converting
30873 char or short to __float128/_Float128 directly.
30875 2017-01-12 Martin Sebor <msebor@redhat.com>
30877 to -Wformat-overflow.
30878 * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Adjust.
30879 (min_bytes_remaining): Same.
30880 (get_string_length): Same.
30881 (format_string): Same.
30882 (format_directive): Same.
30884 (pass_sprintf_length::handle_gimple_call): Same.
30886 2017-01-12 Jakub Jelinek <jakub@redhat.com>
30888 * gimple-ssa-sprintf.c (try_substitute_return_value): Remove
30889 info.nowrite calls with no lhs that can't throw. Return bool
30890 whether gsi_remove has been called or not.
30891 (pass_sprintf_length::handle_gimple_call): Return bool whether
30892 try_substitute_return_value called gsi_remove. Formatting fix.
30893 (pass_sprintf_length::execute): Don't use gsi_remove if
30894 handle_gimple_call returned true.
30897 * cfgrtl.c (rtl_tidy_fallthru_edge): For any_uncondjump_p that can't
30898 be removed due to side-effects, don't remove following barrier nor
30899 turn the successor edge into fallthru edge.
30901 2017-01-12 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30904 * config/rs6000/rs6000.c (insn_is_swappable_p): Mark
30905 element-reversing loads and stores as not swappable.
30907 2017-01-12 Nathan Sidwell <nathan@acm.org>
30908 Nicolai Stange <nicstange@gmail.com>
30910 * combine.c (try_combine): Don't ignore result of overlap checking
30911 loop. Combine overlap & asm check into single loop.
30913 2017-01-12 Richard Biener <rguenther@suse.de>
30915 * tree-pretty-print.c (dump_generic_node): Provide -gimple
30916 variant for MEM_REF. Sanitize INTEGER_CST for -gimple.
30918 2017-01-12 Richard Biener <rguenther@suse.de>
30920 * tree.c (initialize_tree_contains_struct): Make TS_OPTIMIZATION
30921 and TS_TARGET_OPTION directly derive from TS_BASE.
30922 * tree-core.h (tree_optimization_option): Derive from tree_base.
30923 (tree_target_option): Likewise.
30925 2017-01-11 Uros Bizjak <ubizjak@gmail.com>
30927 * config/i386/i386.c (memory_address_length): Increase len
30928 only when rip_relative_addr_p returns false.
30930 2017-01-11 Julia Koval <julia.koval@intel.com>
30932 * common/config/i386/i386-common.c (OPTION_MASK_ISA_SGX_UNSET): New.
30933 (OPTION_MASK_ISA_SGX_SET): New.
30934 (ix86_handle_option): Handle OPT_msgx.
30935 * config.gcc: Added sgxintrin.h.
30936 * config/i386/driver-i386.c (host_detect_local_cpu): Detect sgx.
30937 * config/i386/i386-c.c (ix86_target_macros_internal): Define __SGX__.
30938 * config/i386/i386.c (ix86_target_string): Add -msgx.
30940 (ix86_option_override_internal): Handle new options.
30941 (ix86_valid_target_attribute_inner_p): Add sgx.
30942 * config/i386/i386.h (TARGET_SGX, TARGET_SGX_P): New.
30943 * config/i386/i386.opt: Add msgx.
30944 * config/i386/sgxintrin.h: New file.
30945 * config/i386/x86intrin.h: Add sgxintrin.h.
30947 2017-01-11 Jakub Jelinek <jakub@redhat.com>
30950 * fold-const.c (maybe_nonzero_address): Return 1 for function
30952 (tree_single_nonzero_warnv_p): Don't handle function local objects
30956 * gcc.c (default_compilers): Don't add -o %g.s for -S -save-temps
30959 2017-01-11 David Malcolm <dmalcolm@redhat.com>
30962 * opts.c: Include "spellcheck.h"
30963 (struct string_fragment): New struct.
30964 (struct edit_distance_traits<const string_fragment &>): New
30966 (get_closest_sanitizer_option): New function.
30967 (parse_sanitizer_options): Offer suggestions for unrecognized arguments.
30969 2017-01-11 Jakub Jelinek <jakub@redhat.com>
30971 * dwarf2out.c (DWARF_COMPILE_UNIT_HEADER_SIZE): For DWARF5 decrease
30973 (DWARF_COMDAT_TYPE_UNIT_HEADER_SIZE): Always
30974 DWARF_COMPILE_UNIT_HEADER_SIZE plus 12.
30975 (DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE): Define.
30976 (calc_base_type_die_sizes): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE
30977 for initial die_offset if dwarf_split_debug_info.
30978 (output_comp_unit): Use DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE for
30979 initial next_die_offset if dwo_id is non-NULL. Don't emit padding
30981 (output_skeleton_debug_sections): Formatting fix. Use
30982 DWARF_COMPILE_UNIT_SKELETON_HEADER_SIZE instead of
30983 DWARF_COMPILE_UNIT_HEADER_SIZE. Don't emit padding.
30985 2017-01-11 Wilco Dijkstra <wdijkstr@arm.com>
30987 * config/arm/cortex-a53.md: Add bypasses for
30988 cortex_a53_r2f_cvt.
30989 (cortex_a53_r2f): Only use for transfers.
30990 (cortex_a53_f2r): Likewise.
30991 (cortex_a53_r2f_cvt): Add reservation for conversions.
30992 (cortex_a53_f2r_cvt): Likewise.
30994 2017-01-11 Tamar Christina <tamar.christina@arm.com>
30996 * config/arm/arm_neon.h: Add __artificial__ and gnu_inline
30997 to all inlined functions, change static to extern.
30999 2017-01-11 Christophe Lyon <christophe.lyon@linaro.org>
31002 * config/arm/arm.c (legitimize_pic_address): Handle reference to
31004 (arm_assemble_integer): Likewise.
31006 2017-01-11 Richard Earnshaw <rearnsha@arm.com>
31008 * config.gcc: Use new awk script to check CPU, FPU and architecture
31009 parameters for --with-... options.
31010 * config/arm/parsecpu.awk: New file
31011 * config/arm/arm-cpus.in: New file.
31012 * config/arm/arm-opts.h: Include arm-cpu.h instead of processing .def
31014 * config/arm/arm.c: Include arm-cpu-data.h instead of processing .def
31016 * config/arm/t-arm: Update dependency rules.
31017 * common/config/arm/arm-common.c: Include arm-cpu-cdata.h instead
31018 of processing .def files.
31019 * config/arm/genopt.sh: Deleted.
31020 * config/arm/gentune.sh: Deleted.
31021 * config/arm/arm-cores.def: Deleted.
31022 * config/arm/arm-arches.def: Deleted.
31023 * config/arm/arm-fpus.def: Deleted.
31024 * config/arm/arm-tune.md: Regenerated.
31025 * config/arm/arm-tables.opt: Regenerated.
31026 * config/arm/arm-cpu.h: New generated file.
31027 * config/arm/arm-cpu-data.h: New generated file.
31028 * config/arm/arm-cpu-cdata.h: New generated file.
31030 2017-01-11 Maxim Ostapenko <m.ostapenko@samsung.com>
31033 * lto-cgraph.c (lto_output_varpool_node): Pack dynamically_initialized
31035 (input_varpool_node): Unpack dynamically_initialized bit.
31037 2017-01-11 Eric Botcazou <ebotcazou@adacore.com>
31039 PR rtl-optimization/79032
31040 * lra-constraints.c (simplify_operand_subreg): In the MEM case, test
31041 the alignment of the adjusted memory reference against that of MODE,
31042 instead of the alignment of the original memory reference.
31044 2017-01-11 Martin Jambor <mjambor@suse.cz>
31046 * hsa.c (hsa_callable_function_p): Revert addition of DECL_ARTIFICIAL
31048 * ipa-hsa.c (process_hsa_functions): Only duplicate non-artificial
31049 decorated functions.
31051 2017-01-11 Richard Biener <rguenther@suse.de>
31053 * tree-vrp.c (evrp_dom_walker::before_dom_children): Also
31054 set range/nonnull info for PHI results. Do not set it on
31055 stmts marked for removal.
31057 2017-01-10 Eric Botcazou <ebotcazou@adacore.com>
31059 * expr.c (store_field): In the bitfield case, fetch the return value
31060 from the registers before applying a single big-endian adjustment.
31061 Always do a final load for a BLKmode value not larger than a word.
31063 2017-01-10 David Malcolm <dmalcolm@redhat.com>
31066 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
31067 that we correctly handle column numbers greater than
31068 LINE_MAP_MAX_COLUMN_NUMBER.
31070 2017-01-10 Martin Sebor <msebor@redhat.com>
31072 PR middle-end/78245
31073 * gimple-ssa-sprintf.c (get_destination_size): Call
31074 {init,fini}object_sizes.
31075 * tree-object-size.c (addr_object_size): Adjust.
31076 (pass_through_call): Adjust.
31077 (pass_object_sizes::execute): Adjust.
31078 * tree-object-size.h (fini_object_sizes): Declare.
31080 2017-01-10 Martin Sebor <msebor@redhat.com>
31082 PR tree-optimization/78775
31083 * builtins.c (get_size_range): Move...
31084 * calls.c: ...to here.
31085 (alloc_max_size): Accept zero argument.
31086 (operand_signed_p): Remove.
31087 (maybe_warn_alloc_args_overflow): Call get_size_range.
31088 * calls.h (get_size_range): Declare.
31090 2017-01-10 Joe Seymour <joe.s@somniumtech.com>
31092 * config/msp430/driver-msp430.c (msp430_mcu_data): Sync with data
31093 from TI's devices.csv file as of September 2016.
31094 * config/msp430/msp430.c (msp430_mcu_data): Likewise.
31096 2017-01-10 Sandra Loosemore <sandra@codesourcery.com>
31098 * doc/extend.texi: Tweak formatting to fix overfull hbox warnings.
31099 * doc/invoke.texi: Likewise.
31100 * doc/md.texi: Likewise.
31101 * doc/objc.texi: Likewise.
31103 2017-01-10 Joshua Conner <joshconner@google.com>
31105 * config/arm/fuchsia-elf.h: New file.
31106 * config/fuchsia.h: New file.
31107 * config.gcc (*-*-fuchsia*): Set native_system_header_dir.
31108 (aarch64*-*-fuchsia*, arm*-*-fuchsia*, x86_64-*-fuchsia*): Add to
31110 * config.host: (aarch64*-*-fuchsia*, arm*-*-fuchsia*): Add to hosts.
31112 2016-01-10 Richard Biener <rguenther@suse.de>
31114 PR tree-optimization/79034
31115 * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds):
31116 Propagate out degenerate PHIs in the joiner.
31118 2017-01-10 Martin Liska <mliska@suse.cz>
31120 * ipa-icf.c (sort_sem_items_by_decl_uid): New function.
31121 (sort_congruence_classes_by_decl_uid): Likewise.
31122 (sort_congruence_class_groups_by_decl_uid): Likewise.
31123 (sem_item_optimizer::merge_classes): Sort class, groups in these
31124 classes and members in the groups by DECL_UID of declarations.
31125 This would make merge operations stable.
31127 2017-01-10 Martin Liska <mliska@suse.cz>
31129 * ipa-icf.c (sem_item_optimizer::sem_item_optimizer): Remove
31130 usage of m_classes_vec.
31131 (sem_item_optimizer::~sem_item_optimizer): Likewise.
31132 (sem_item_optimizer::get_group_by_hash): Likewise.
31133 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
31134 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): Likewise.
31135 (sem_item_optimizer::verify_classes): Likewise.
31136 (sem_item_optimizer::process_cong_reduction): Likewise.
31137 (sem_item_optimizer::dump_cong_classes): Likewise.
31138 (sem_item_optimizer::merge_classes): Likewise.
31139 * ipa-icf.h (congruence_class_hash): Rename from
31140 congruence_class_group_hash. Remove declaration of m_classes_vec.
31142 2017-01-10 Andrew Senkevich <andrew.senkevich@intel.com>
31144 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VPOPCNTDQ_SET,
31145 OPTION_MASK_ISA_AVX512VPOPCNTDQ_UNSET): New.
31146 * config.gcc: Add avx512vpopcntdqintrin.h.
31147 * config/i386/avx512vpopcntdqintrin.h: New.
31148 * config/i386/cpuid.h (bit_AVX512VPOPCNTDQ): New.
31149 * config/i386/i386-builtin-types.def: Add new types.
31150 * config/i386/i386-builtin.def (__builtin_ia32_vpopcountd_v16si,
31151 __builtin_ia32_vpopcountd_v16si_mask, __builtin_ia32_vpopcountq_v8di,
31152 __builtin_ia32_vpopcountq_v8di_mask): New.
31153 * config/i386/i386-c.c (ix86_target_macros_internal): Define
31154 __AVX512VPOPCNTDQ__.
31155 * config/i386/i386.c (ix86_target_string): Add -mavx512vpopcntdq.
31156 (PTA_AVX512VPOPCNTDQ): Define.
31157 * config/i386/i386.h (TARGET_AVX512VPOPCNTDQ,
31158 TARGET_AVX512VPOPCNTDQ_P): Define.
31159 * config/i386/i386.opt: Add mavx512vpopcntdq.
31160 * config/i386/immintrin.h: Include avx512vpopcntdqintrin.h.
31161 * config/i386/sse.md (define_insn "vpopcount<mode><mask_name>"): New.
31163 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
31165 PR middle-end/77484
31166 * predict.def (PRED_CALL): Set to 67.
31168 2017-01-09 Eric Botcazou <ebotcazou@adacore.com>
31170 * expr.c (store_field): In the bitfield case, if the value comes from
31171 a function call and is of an aggregate type returned in registers, do
31172 not modify the field mode; extract the value in all cases if the mode
31173 is BLKmode and the size is not larger than a word.
31175 2017-01-09 Dominique d'Humieres <dominiq@lps.ens.fr>
31178 * config/i386/cpuid.h: Fix undefined behavior.
31180 2017-01-04 Jeff Law <law@redhat.com>
31182 PR tree-optimization/79007
31183 PR tree-optimization/67955
31184 * tree-ssa-alias.c (same_addr_size_stores_p): Only need to be
31185 conservative for pt.null when flag_non_call_exceptions is on.
31187 2017-01-09 Jakub Jelinek <jakub@redhat.com>
31189 PR translation/79019
31190 PR translation/79020
31191 * params.def (PARAM_INLINE_MIN_SPEEDUP,
31192 PARAM_IPA_CP_SINGLE_CALL_PENALTY,
31193 PARAM_USE_AFTER_SCOPE_DIRECT_EMISSION_THRESHOLD): Fix typos
31195 * config/avr/avr.opt (maccumulate-args): Likewise.
31196 * config/msp430/msp430.opt (mwarn-mcu): Likewise.
31197 * common.opt (freport-bug): Likewise.
31198 * cif-code.def (CIF_FINAL_ERROR): Likewise.
31199 * doc/invoke.texi (ipa-cp-single-call-penalty): Likewise.
31200 * config/s390/s390.c (s390_invalid_binary_op): Fix spelling in
31201 translatable string.
31202 * config/i386/i386.c (function_value_32): Likewise.
31203 * config/nios2/nios2.c (nios2_valid_target_attribute_rec): Likewise.
31204 * config/msp430/msp430.c (msp430_option_override, msp430_attr):
31206 * config/msp430/driver-msp430.c (msp430_select_hwmult_lib): Likewise.
31207 * common/config/msp430/msp430-common.c (msp430_handle_option):
31209 * symtab.c (symtab_node::verify_base): Likewise.
31210 * opts.c (set_debug_level): Likewise.
31211 * tree.c (verify_type_variant): Likewise. Fix typo in comment.
31212 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
31213 missing whitespace to translatable strings.
31214 * config/avr/avr.md (bswapsi2): Fix typo in comment.
31215 * config/sh/superh.h: Likewise.
31216 * config/i386/xopintrin.h: Likewise.
31217 * config/i386/znver1.md: Likewise.
31218 * config/rs6000/rs6000.c (struct rs6000_opt_mask): Likewise.
31219 * ipa-inline-analysis.c (compute_inline_parameters): Likewise.
31220 * double-int.h (struct double_int): Likewise.
31221 * double-int.c (div_and_round_double): Likewise.
31222 * wide-int.cc: Likewise.
31223 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
31224 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
31225 * cfgcleanup.c (crossjumps_occured): Renamed to ...
31226 (crossjumps_occurred): ... this.
31227 (try_crossjump_bb, try_head_merge_bb, try_optimize_cfg, cleanup_cfg):
31230 PR tree-optimization/78899
31231 * tree-if-conv.c (version_loop_for_if_conversion): Instead of
31232 returning bool return struct loop *, NULL for failure and the new
31234 (versionable_outer_loop_p): Don't version outer loop if it has
31235 dont_vectorized bit set.
31236 (tree_if_conversion): When versioning outer loop, ensure
31237 tree_if_conversion is performed also on the inner loop of the
31238 non-vectorizable outer loop copy.
31239 * tree-vectorizer.c (set_uid_loop_bbs): Formatting fix. Fold
31240 LOOP_VECTORIZED in inner loop of the scalar outer loop and
31241 prevent vectorization of it.
31242 (vectorize_loops): For outer + inner LOOP_VECTORIZED, ensure
31243 the outer loop vectorization of the non-scalar version is attempted
31244 before vectorization of the inner loop in scalar version. If
31245 outer LOOP_VECTORIZED guarded loop is not vectorized, prevent
31246 vectorization of its inner loop.
31247 * tree-vect-loop-manip.c (rename_variables_in_bb): If outer_loop
31248 has 2 inner loops, rename also on edges from bb whose single pred
31249 is outer_loop->header. Fix typo in function comment.
31251 2017-01-09 Martin Sebor <msebor@redhat.com>
31254 * asan.c (asan_emit_stack_protection): Increase local buffer size
31255 to avoid snprintf truncation warning.
31257 2017-01-09 Andrew Pinski <apinski@cavium.com>
31259 * config/aarch64/aarch64-cores.def: Add thunderx2t99. Change vulcan
31260 to reference thunderx2t99 for the tuning structure
31261 * config/aarch64/aarch64-cost-tables.h (vulcan_extra_costs):
31263 (thunderx2t99_extra_costs): This.
31264 * config/aarch64/aarch64-tune.md: Regenerate.
31265 * config/aarch64/aarch64.c (vulcan_addrcost_table): Rename to ...
31266 (vulcan_addrcost_table): This.
31267 (vulcan_regmove_cost): Rename to ...
31268 (thunderx2t99_regmove_cost): This.
31269 (vulcan_vector_cost): Rename to ...
31270 (thunderx2t99_vector_cost): this.
31271 (vulcan_branch_cost): Rename to ...
31272 (thunderx2t99_branch_cost): This.
31273 (vulcan_tunings): Rename to ...
31274 (thunderx2t99_tunings): This and s/vulcan/thunderx2t99 .
31275 * doc/invoke.texi (AARCH64/mtune): Add thunderx2t99.
31277 2017-01-09 Martin Jambor <mjambor@suse.cz>
31281 * ipa-prop.h (ipa_jump_func): Swap positions of vr_known and m_vr.
31282 * ipa-cp.c (ipa_vr_operation_and_type_effects): New function.
31283 (propagate_vr_accross_jump_function): Use the above function for all
31284 value range computations for pass-through jump functions and type
31285 converasion from explicit value range values.
31286 (ipcp_propagate_stage): Do not attempt to deduce types of formal
31287 parameters from TYPE_ARG_TYPES.
31288 * ipa-prop.c (ipa_write_jump_function): Remove trailing whitespace.
31289 (ipa_write_node_info): Stream type of the actual argument.
31290 (ipa_read_node_info): Likewise. Also remove trailing whitespace.
31292 2017-01-09 Martin Liska <mliska@suse.cz>
31295 * gcc.c (driver_handle_option): Handle OPT_E and set have_E.
31296 (lookup_compiler): Do not show error message with have_E.
31298 2017-01-09 Jakub Jelinek <jakub@redhat.com>
31300 PR tree-optimization/78938
31301 * tree-vect-stmts.c (vectorizable_condition): For non-masked COND_EXPR
31302 where comp_vectype is VECTOR_BOOLEAN_TYPE_P, use
31303 BIT_{NOT,XOR,AND,IOR}_EXPR on the comparison operands instead of
31304 {EQ,NE,GE,GT,LE,LT}_EXPR directly inside of VEC_COND_EXPR. Formatting
31307 2017-01-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31309 * tree-ssa-address.c (gen_addr_rtx): Don't handle index if it
31312 2017-01-09 Richard Biener <rguenther@suse.de>
31314 PR tree-optimization/78997
31315 * tree-vect-slp.c (vect_mask_constant_operand_p): Handle SSA
31316 name condition properly.
31318 2017-01-09 Richard Biener <rguenther@suse.de>
31321 * dwarf2out.c (is_cxx): New overload with context.
31322 (is_naming_typedef_decl): Use it.
31324 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
31326 * invoke.texi (Option Summary): Correct spacing in option lists
31327 and add line breaks to fix over-long lines.
31329 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
31331 PR middle-end/17660
31333 * extend.texi (Common Variable Attributes): Add xref to GCC
31334 Internals manual to explain mode attribute keywords.
31336 2017-01-08 Sandra Loosemore <sandra@codesourcery.com>
31339 * doc/invoke.texi (Option Summary): Move -pthread to Linker Options
31340 and Preprocessor Options.
31341 (Options for Linking): Document -pthread here....
31342 (RS/6000 and PowerPC Options): ...not here.
31343 (Solaris 2 Options): ...or here.
31344 * doc/cppopts.texi: Document -pthread.
31346 2017-01-08 Martin Sebor <msebor@redhat.com>
31348 PR middle-end/77708
31349 * doc/invoke.texi (Warning Options): Document -Wformat-truncation.
31350 * gimple-ssa-sprintf.c (call_info::reval_used, call_info::warnopt):
31351 New member functions.
31352 (format_directive): Used them.
31354 (pass_sprintf_length::handle_gimple_call): Same.
31355 * graphite-sese-to-poly.c (tree_int_to_gmp): Increase buffer size
31356 to avoid truncation for any argument.
31357 (extract_affine_mul): Same.
31358 * tree.c (get_file_function_name): Same.
31360 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
31362 PR middle-end/77484
31363 * predict.def (PRED_INDIR_CALL): Set to 86.
31365 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
31367 PR preprocessor/54124
31368 * doc/cppopts.texi: Reformat -d subtable to list the full name
31369 of the options. Add cross-reference to the docs for the general
31370 compiler -d options.
31371 * doc/invoke.texi (Developer Options): Add cross-reference to the
31372 preprocessor-specific -d option documentation.
31374 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
31376 PR preprocessor/13498
31377 * doc/cpp.texi (Search Path): Rewrite to remove obsolete and
31378 redudant material, and reflect new command-line options.
31379 (System Headers): Likewise.
31381 2017-01-07 Sandra Loosemore <sandra@codesourcery.com>
31383 * doc/cppdiropts.texi: Merge documentation of -I, -iquote,
31384 -isystem, and -idirafter. Copy-edit.
31385 * doc/cppopts.texi: Copy-edit. Remove contradiction about
31386 default for -ftrack-macro-expansion. Delete obsolete and
31387 badly-formatted implementation details about -fdebug-cpp output.
31388 * doc/cppwarnopts.texi: Copy-edit.
31390 2017-01-07 David Malcolm <dmalcolm@redhat.com>
31393 * input.c (selftest::test_accessing_ordinary_linemaps): Verify
31394 that the transition from a max line width >= 1<<10 to narrower
31395 lines works correctly.
31397 2017-01-07 Alexandre Oliva <aoliva@redhat.com>
31399 * doc/options.texi (PerFunction): New.
31400 * opt-functions.awk (switch_flags): Map both Optimization and
31401 PerFunction to CL_OPTIMIZATION.
31402 * opth-gen.awk: Test for PerFunction flag along with
31404 * optc-save-gen.awk: Likewise. Introduce var_opt_hash and set
31405 it only when the latter is present. Skip those that don't in
31406 the hash function generator.
31407 * common.opt (fvar-tracking): Mark as PerFunction instead of
31409 (fvar-tracking-assignments): Likewise.
31410 (fvar-tracking-assignments-toggle): Likewise.
31411 (fvar-tracking-uninit): Likewise.
31413 2017-01-07 Jakub Jelinek <jakub@redhat.com>
31415 PR translation/79018
31416 * params.def (PARAM_MAX_STORES_TO_MERGE): Add missing space between
31419 2017-01-06 Mikael Pettersson <mikpelinux@gmail.com>
31422 * config/m68k/m68k.opt (LONG_JUMP_TABLE_OFFSETS): New option.
31423 * config/m68k/linux.h (ASM_RETURN_CASE_JUMP): Handle
31424 TARGET_LONG_JUMP_TABLE_OFFSETS.
31425 * config/m68k/m68kelf.h (ASM_RETURN_CASE_JUMP): Likewise.
31426 * config/m68k/netbsd-elf.h (ASM_RETURN_CASE_JUMP): Likewise.
31427 * config/m68k/m68k.h (CASE_VECTOR_MODE): Likewise.
31428 (ASM_OUTPUT_ADDR_DIFF_ELF): Likewise.
31429 * config/m68k/m68k.md (tablejump expander): Likewise.
31430 (*tablejump_pcrel_hi): Renamed from unnamed insn, reject
31431 TARGET_LONG_JUMP_TABLE_OFFSETS.
31432 (*tablejump_pcrel_si): New insn, handle TARGET_LONG_JUMP_TABLE_OFFSETS.
31433 * doc/invoke.texi (M68K options): Add -mlong-jump-table-offsets.
31435 2017-01-06 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
31436 David Holsgrove <david.holsgrove@xilinx.com>
31438 * common/config/microblaze/microblaze-common.c
31439 (TARGET_EXCEPT_UNWIND_INFO): Remove.
31440 * config/microblaze/microblaze-protos.h (microblaze_eh_return):
31442 * config/microblaze/microblaze.c (microblaze_must_save_register)
31443 (microblaze_expand_epilogue, microblaze_return_addr): Handle
31445 (microblaze_eh_return): New function.
31446 * config/microblaze/microblaze.h (RETURN_ADDR_OFFSET)
31447 (EH_RETURN_DATA_REGNO, MB_EH_STACKADJ_REGNUM)
31448 (EH_RETURN_STACKADJ_RTX, ASM_PREFERRED_EH_DATA_FORMAT): New macros.
31449 * config/microblaze/microblaze.md (eh_return): New pattern.
31451 2017-01-06 Jakub Jelinek <jakub@redhat.com>
31453 * system.h (GCC_DIAGNOSTIC_PUSH_IGNORED, GCC_DIAGNOSTIC_POP,
31454 GCC_DIAGNOSTIC_STRINGIFY): Define.
31456 * read-rtl.c (rtx_reader::read_rtx_code): Avoid -Wsign-compare warning.
31458 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
31460 * config/arm/arm.md (<mcrr>): New.
31462 * config/arm/arm.c (arm_arch5te): New.
31463 (arm_option_override): Set arm_arch5te.
31464 (arm_coproc_builtin_available): Add support for mcrr, mcrr2, mrrc
31466 * config/arm/arm-builtins.c (MCRR_QUALIFIERS): Define to...
31467 (arm_mcrr_qualifiers): ... this. New.
31468 (MRRC_QUALIFIERS): Define to...
31469 (arm_mrrc_qualifiers): ... this. New.
31470 * config/arm/arm_acle.h (__arm_mcrr, __arm_mcrr2, __arm_mrrc,
31472 * config/arm/arm_acle_builtins.def (mcrr, mcrr2, mrrc, mrrc2): New.
31473 * config/arm/iterators.md (MCRRI, mcrr, MCRR): New.
31474 (MRRCI, mrrc, MRRC): New.
31475 * config/arm/unspecs.md (VUNSPEC_MCRR, VUNSPEC_MCRR2, VUNSPEC_MRRC,
31476 VUNSPEC_MRRC2): New.
31478 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
31480 * config/arm/arm.md (<mcr>): New.
31482 * config/arm/arm.c (arm_coproc_builtin_available): Add
31483 support for mcr, mrc, mcr2 and mrc2.
31484 * config/arm/arm-builtins.c (MCR_QUALIFIERS): Define to...
31485 (arm_mcr_qualifiers): ... this. New.
31486 (MRC_QUALIFIERS): Define to ...
31487 (arm_mrc_qualifiers): ... this. New.
31488 (MCR_QUALIFIERS): Define to ...
31489 (arm_mcr_qualifiers): ... this. New.
31490 * config/arm/arm_acle.h (__arm_mcr, __arm_mrc, __arm_mcr2,
31492 * config/arm/arm_acle_builtins.def (mcr, mcr2, mrc, mrc2): New.
31493 * config/arm/iterators.md (MCRI, mcr, MCR, MRCI, mrc, MRC): New.
31494 * config/arm/unspecs.md (VUNSPEC_MCR, VUNSPEC_MCR2, VUNSPEC_MRC,
31495 VUNSPEC_MRC2): New.
31497 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
31499 * config/arm/arm.md (*ldc): New.
31503 * config/arm/arm.c (arm_coproc_builtin_available): Add
31504 support for ldc,ldcl,stc,stcl,ldc2,ldc2l,stc2 and stc2l.
31505 (arm_coproc_ldc_stc_legitimate_address): New.
31506 * config/arm/arm-builtins.c (arm_type_qualifiers): Add
31507 'qualifier_const_pointer'.
31508 (LDC_QUALIFIERS): Define to...
31509 (arm_ldc_qualifiers): ... this. New.
31510 (STC_QUALIFIERS): Define to...
31511 (arm_stc_qualifiers): ... this. New.
31512 * config/arm/arm-protos.h
31513 (arm_coproc_ldc_stc_legitimate_address): New.
31514 * config/arm/arm_acle.h (__arm_ldc, __arm_ldcl, __arm_stc,
31515 __arm_stcl, __arm_ldc2, __arm_ldc2l, __arm_stc2, __arm_stc2l): New.
31516 * config/arm/arm_acle_builtins.def (ldc, ldc2, ldcl, ldc2l, stc,
31517 stc2, stcl, stc2l): New.
31518 * config/arm/constraints.md (Uz): New.
31519 * config/arm/iterators.md (LDCI, STCI, ldc, stc, LDC STC): New.
31520 * config/arm/unspecs.md (VUNSPEC_LDC, VUNSPEC_LDC2, VUNSPEC_LDCL,
31521 VUNSPEC_LDC2L, VUNSPEC_STC, VUNSPEC_STC2, VUNSPEC_STCL,
31522 VUNSPEC_STC2L): New.
31524 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
31526 * config/arm/arm.md (<cdp>): New.
31527 * config/arm/arm.c (neon_const_bounds): Rename this ...
31528 (arm_const_bounds): ... this.
31529 (arm_coproc_builtin_available): New.
31530 * config/arm/arm-builtins.c (SIMD_MAX_BUILTIN_ARGS): Increase.
31531 (arm_type_qualifiers): Add 'qualifier_unsigned_immediate'.
31532 (CDP_QUALIFIERS): Define to...
31533 (arm_cdp_qualifiers): ... this. New.
31535 (arm_expand_builtin_args): Add case for 6 arguments.
31536 * config/arm/arm-protos.h (neon_const_bounds): Rename this ...
31537 (arm_const_bounds): ... this.
31538 (arm_coproc_builtin_available): New.
31539 * config/arm/arm_acle.h (__arm_cdp): New.
31541 * config/arm/arm_acle_builtins.def (cdp): New.
31543 * config/arm/iterators.md (CDPI,CDP,cdp): New.
31544 * config/arm/neon.md: Rename all 'neon_const_bounds' to
31545 'arm_const_bounds'.
31546 * config/arm/types.md (coproc): New.
31547 * config/arm/unspecs.md (VUNSPEC_CDP, VUNSPEC_CDP2): New.
31548 * doc/extend.texi (ACLE): Add a mention of Coprocessor intrinsics.
31549 * doc/sourcebuild.texi (arm_coproc1_ok, arm_coproc2_ok,
31550 arm_coproc3_ok, arm_coproc4_ok): Document new effective targets.
31552 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
31554 * config/arm/arm-builtins.c (arm_unsigned_binop_qualifiers): New.
31555 (UBINOP_QUALIFIERS): New.
31557 (acle_builtin_data): New. Change comment.
31558 (arm_builtins): Remove ARM_BUILTIN_CRC32B, ARM_BUILTIN_CRC32H,
31559 ARM_BUILTIN_CRC32W, ARM_BUILTIN_CRC32CB, ARM_BUILTIN_CRC32CH,
31560 ARM_BUILTIN_CRC32CW. Add ARM_BUILTIN_ACLE_BASE and include
31561 arm_acle_builtins.def.
31562 (ARM_BUILTIN_ACLE_PATTERN_START): Define.
31563 (arm_init_acle_builtins): New.
31564 (CRC32_BUILTIN): Remove.
31565 (bdesc_2arg): Remove entries for crc32b, crc32h, crc32w,
31566 crc32cb, crc32ch and crc32cw.
31567 (arm_init_crc32_builtins): Remove.
31568 (arm_init_builtins): Use arm_init_acle_builtins rather
31569 than arm_init_crc32_builtins.
31570 (arm_expand_acle_builtin): New.
31571 (arm_expand_builtin): Use 'arm_expand_acle_builtin'.
31572 * config/arm/arm_acle_builtins.def: New.
31574 2017-01-06 Andre Vieira <andre.simoesdiasvieira@arm.com>
31576 * config/arm/arm-builtins.c (neon_builtin_datum): Rename to ..
31577 (arm_builtin_datum): ... this.
31578 (arm_init_neon_builtin): Rename to ...
31579 (arm_init_builtin): ... this. Add a new parameters PREFIX
31580 and USE_SIG_IN_NAME.
31581 (arm_init_neon_builtins): Replace 'arm_init_neon_builtin' with
31582 'arm_init_builtin'. Replace type 'neon_builtin_datum' with
31583 'arm_builtin_datum'.
31584 (arm_init_vfp_builtins): Likewise.
31585 (builtin_arg): Rename enum's replacing 'NEON_ARG' with
31586 'ARG_BUILTIN' and add a 'ARG_BUILTIN_NEON_MEMORY.
31587 (arm_expand_neon_args): Rename to ...
31588 (arm_expand_builtin_args): ... this. Rename builtin_arg
31589 enum values and differentiate between ARG_BUILTIN_MEMORY
31590 and ARG_BUILTIN_NEON_MEMORY.
31591 (arm_expand_neon_builtin_1): Rename to ...
31592 (arm_expand_builtin_1): ... this. Rename builtin_arg enum
31593 values, arm_expand_builtin_args and add bool parameter NEON.
31594 (arm_expand_neon_builtin): Use arm_expand_builtin_1.
31595 (arm_expand_vfp_builtin): Likewise.
31596 (NEON_MAX_BUILTIN_ARGS): Remove, it was unused.
31598 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
31600 PR middle-end/77484
31601 * predict.def (PRED_POLYMORPHIC_CALL): Set to 59.
31602 * predict.c (tree_estimate_probability_bb): Reverse direction of
31603 polymorphic call predictor.
31605 2017-01-06 David Malcolm <dmalcolm@redhat.com>
31607 * passes.c (execute_one_pass): Split out pass-skipping logic into...
31608 (determine_pass_name_match): ...this new function and...
31609 (should_skip_pass_p): ...this new function.
31611 2017-01-06 Nathan Sidwell <nathan@acm.org>
31613 * ipa-visibility.c (function_and_variable_visibility): Reformat
31614 comments and long lines. Remove extrneous if.
31615 * symtab.c (symtab_node::make_decl_local): Fix code format.
31616 (symtab_node::set_section_for_node): Fix comment typo.
31618 2017-01-06 Martin Liska <mliska@suse.cz>
31621 * lra-constraints.c: Rename invariant to lra_invariant.
31622 * predict.c (set_even_probabilities): Initialize e to NULL.
31624 2017-01-05 Martin Sebor <msebor@redhat.com>
31626 PR tree-optimization/78910
31627 * gimple-ssa-sprintf.c (tree_digits): Add an argument.
31628 (format_integer): Correct off-by-one error in the handling
31629 of precision with negative numbers in signed conversions..
31631 2017-01-05 Eric Botcazou <ebotcazou@adacore.com>
31633 * doc/invoke.texi (C Dialect Options): Adjust -fsso-struct entry.
31635 2017-01-05 Jakub Jelinek <jakub@redhat.com>
31637 PR tree-optimization/71016
31638 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Pass cond_stmt to
31639 factor_out_conditional_conversion. Formatting fix.
31640 (factor_out_conditional_conversion): Add cond_stmt argument.
31641 If arg1 is INTEGER_CST, punt if new_arg0 is not any operand of
31642 cond_stmt and if arg0_def_stmt is not the only stmt in its bb.
31645 2017-01-05 David Malcolm <dmalcolm@redhat.com>
31647 * Makefile.in (OBJS): Add read-md.o, read-rtl.o,
31648 read-rtl-function.o, and selftest-rtl.o.
31649 * config/aarch64/aarch64.c: Include selftest.h and selftest-rtl.h.
31650 (selftest::aarch64_test_loading_full_dump): New function.
31651 (selftest::aarch64_run_selftests): New function.
31652 (TARGET_RUN_TARGET_SELFTESTS): Wire it up to
31653 selftest::aarch64_run_selftests.
31654 * config/i386/i386.c
31655 (selftest::ix86_test_loading_dump_fragment_1): New function.
31656 (selftest::ix86_test_loading_call_insn): New function.
31657 (selftest::ix86_test_loading_full_dump): New function.
31658 (selftest::ix86_test_loading_unspec): New function.
31659 (selftest::ix86_run_selftests): Call the new functions.
31660 * emit-rtl.c (maybe_set_max_label_num): New function.
31661 * emit-rtl.h (maybe_set_max_label_num): New decl.
31662 * function.c (instantiate_decls): Guard call to
31663 instantiate_decls_1 with if (DECL_INITIAL (fndecl)).
31664 * function-tests.c (selftest::verify_three_block_rtl_cfg): Remove
31666 * gensupport.c (gen_reader::gen_reader): Pass "false"
31667 for new "compact" param of rtx_reader.
31668 * print-rtl.c (rtx_writer::print_rtx_operand): Print "(nil)"
31669 rather than an empty string for NULL strings.
31670 * read-md.c: Potentially include config.h rather than bconfig.h.
31671 Wrap include of errors.h with #ifdef GENERATOR_FILE.
31672 (have_error): New global, copied from errors.c.
31673 (md_reader::read_name): Rename to...
31674 (md_reader::read_name_1): ...this, adding "out_loc" param,
31675 and converting "missing name or number" to returning false, rather
31677 (md_reader::read_name): Reimplement in terms of read_name_1.
31678 (md_reader::read_name_or_nil): New function.
31679 (md_reader::read_string): Handle "(nil)" by returning NULL.
31680 (md_reader::md_reader): Add new param "compact".
31681 (md_reader::read_md_files): Wrap with #ifdef GENERATOR_FILE.
31682 (md_reader::read_file): New method.
31683 * read-md.h (md_reader::md_reader): Add new param "compact".
31684 (md_reader::read_file): New method.
31685 (md_reader::is_compact): New accessor.
31686 (md_reader::read_name): Convert return type from void to file_location.
31687 (md_reader::read_name_or_nil): New decl.
31688 (md_reader::read_name_1): New decl.
31689 (md_reader::m_compact): New field.
31690 (noop_reader::noop_reader): Pass "false" for new "compact" param
31692 (rtx_reader::rtx_reader): Add new "compact" param.
31693 (rtx_reader::read_rtx_operand): Make virtual and convert return
31694 type from void to rtx.
31695 (rtx_reader::read_until): New decl.
31696 (rtx_reader::handle_any_trailing_information): New virtual function.
31697 (rtx_reader::postprocess): New virtual function.
31698 (rtx_reader::finalize_string): New virtual function.
31699 (rtx_reader::m_in_call_function_usage): New field.
31700 (rtx_reader::m_reuse_rtx_by_id): New field.
31701 * read-rtl-function.c: New file.
31702 * selftest-rtl.c (selftest::assert_rtx_ptr_eq_at): New function.
31703 * selftest-rtl.h (ASSERT_RTX_PTR_EQ): New macro.
31704 (selftest::verify_three_block_rtl_cfg): New decl.
31705 * read-rtl-function.h: New file.
31706 * read-rtl.c: Potentially include config.h rather than bconfig.h.
31707 For host, include function.h, memmodel.h, and emit-rtl.h.
31708 (one_time_initialization): New function.
31709 (struct compact_insn_name): New struct.
31710 (compact_insn_names): New array.
31711 (find_code): Handle insn codes in compact dumps.
31712 (apply_subst_iterator): Wrap with #ifdef GENERATOR_FILE.
31713 (bind_subst_iter_and_attr): Likewise.
31714 (add_condition_to_string): Likewise.
31715 (add_condition_to_rtx): Likewise.
31716 (apply_attribute_uses): Likewise.
31717 (add_current_iterators): Likewise.
31718 (apply_iterators): Likewise.
31719 (initialize_iterators): Guard usage of apply_subst_iterator with
31720 #ifdef GENERATOR_FILE.
31721 (read_conditions): Wrap with #ifdef GENERATOR_FILE.
31722 (md_reader::read_mapping): Likewise.
31723 (add_define_attr_for_define_subst): Likewise.
31724 (add_define_subst_attr): Likewise.
31725 (read_subst_mapping): Likewise.
31726 (check_code_iterator): Likewise.
31727 (rtx_reader::read_rtx): Likewise. Move one-time initialization
31729 (one_time_initialization): New function.
31730 (rtx_reader::read_until): New method.
31731 (read_flags): New function.
31732 (parse_reg_note_name): New function.
31733 (rtx_reader::read_rtx_code): Initialize "iterator" to NULL.
31734 Handle reuse_rtx ids.
31735 Wrap iterator lookup within #ifdef GENERATOR_FILE.
31736 Add parsing support for RTL dumps, mirroring the special-cases in
31737 print_rtx, by calling read_flags, reading REG_NOTE names, INSN_UID
31738 values, and calling handle_any_trailing_information.
31739 (rtx_reader::read_rtx_operand): Convert return type from void
31740 to rtx, returning return_rtx. Handle case 'e'. Call
31741 finalize_string on XSTR and XTMPL fields.
31742 (rtx_reader::read_nested_rtx): Handle dumps in which trailing
31743 "(nil)" values were omitted. Call the postprocess vfunc on the
31745 (rtx_reader::rtx_reader): Add new "compact" param and pass to base
31746 class ctor. Initialize m_in_call_function_usage. Call
31747 one_time_initialization.
31748 * rtl-tests.c (selftest::test_uncond_jump): Call
31749 set_new_first_and_last_insn.
31750 * rtl.h (read_rtx): Wrap decl with #ifdef GENERATOR_FILE.
31751 * selftest-rtl.c: New file.
31752 * selftest-rtl.h (class selftest::rtl_dump_test): New class.
31753 (selftest::get_insn_by_uid): New decl.
31754 * selftest-run-tests.c (selftest::run_tests): Call
31755 read_rtl_function_c_tests.
31756 * selftest.h (selftest::read_rtl_function_c_tests): New decl.
31757 * tree-dfa.c (ssa_default_def): Return NULL_TREE for rtl function
31760 2017-01-05 Uros Bizjak <ubizjak@gmail.com>
31762 * config/i386/i386.md (*testqi_ext_3): No need to handle memory
31763 operands in a special way. Assert that pos+len <= mode precision.
31765 2017-01-05 Jakub Jelinek <jakub@redhat.com>
31767 * common.opt (fvect-cost-model): Remove RejectNegative flag, use
31768 3 argument Alias with unlimited for the negative form.
31769 (fno-vect-cost-model): Removed.
31771 2017-01-05 Martin Liska <mliska@suse.cz>
31773 * hsa-gen.c (gen_hsa_divmod): New function.
31774 (gen_hsa_insn_for_internal_fn_call): Use the function for IFN_DIVMOD.
31776 2017-01-05 Martin Liska <mliska@suse.cz>
31779 * gcc.c (lookup_compiler): Reject '-' filename for a precompiled
31782 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31784 * config/s390/s390.c (s390_expand_setmem): Unroll the loop for
31785 small constant length operands.
31787 2017-01-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31789 * config/s390/s390.c (s390_expand_setmem): Avoid overlapping bytes
31790 between loop iterations.
31792 2017-01-05 Martin Liska <mliska@suse.cz>
31795 * gimplify.c (gimplify_decl_expr): Compare to
31796 asan_poisoned_variables instread of checking flags.
31797 (gimplify_target_expr): Likewise.
31798 (gimplify_expr): Likewise.
31799 (gimplify_function_tree): Conditionally initialize
31800 asan_poisoned_variables.
31802 2017-01-04 Jeff Law <law@redhat.com>
31804 PR tree-optimizatin/78812
31805 * rtl.h (contains_mem_rtx_p): Prototype.
31806 * ifcvt.c (containts_mem_rtx_p): Move from here to...
31807 * rtlanal.c (contains_mem_rtx_p): Here and remove static linkage.
31808 * gcse.c (prune_expressions): Use contains_mem_rtx_p to discover
31809 and prune MEMs that are not at the toplevel of a SET_SRC rtx. Look
31810 through ZERO_EXTEND and SIGN_EXTEND when trying to avoid pruning MEMs.
31812 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
31814 * input.c (assert_char_at_range): Default-initialize actual_range.
31816 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
31818 * df-scan.c (df_ref_create_structure): Make regno unsigned,
31819 to match the caller.
31821 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
31823 * cfgexpand.c (expand_gimple_basic_block): Disregard debug
31824 insns after final jump in test to emit dummy move.
31826 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
31828 * gimple-iterator.h (gsi_one_nondebug_before_end_p): New.
31829 * tree-eh.c (cleanup_empty_eh): Skip more debug stmts.
31831 2017-01-04 Alexandre Oliva <aoliva@redhat.com>
31833 * multiple_target.c (create_dispatcher_calls): Init e_next.
31834 * tree-ssa-loop-split.c (split_loop): Init border.
31835 * tree-vect-loop.c (vect_determine_vectorization_factor): Init
31838 2017-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
31843 * config/rs6000/predicates.md (sf_subreg_operand): New predicate.
31844 (altivec_register_operand): Do not return true if the operand
31845 contains a SUBREG mixing SImode and SFmode.
31846 (vsx_register_operand): Likewise.
31847 (vsx_reg_sfsubreg_ok): New predicate.
31848 (vfloat_operand): Do not return true if the operand contains a
31849 SUBREG mixing SImode and SFmode.
31850 (vint_operand): Likewise.
31851 (vlogical_operand): Likewise.
31852 (gpc_reg_operand): Likewise.
31853 (int_reg_operand): Likewise.
31854 * config/rs6000/rs6000-protos.h (valid_sf_si_move): Add declaration.
31855 * config/rs6000/rs6000.c (valid_sf_si_move): New function to
31856 determine if a MOVSI or MOVSF operation contains SUBREGs that mix
31858 (rs6000_emit_move_si_sf_subreg): New helper function.
31859 (rs6000_emit_move): Call rs6000_emit_move_si_sf_subreg to possbily
31860 fixup SUBREGs involving SImode and SFmode.
31861 * config/rs6000/vsx.md (SFBOOL_*): New constants that are operand
31862 numbers for the new peephole2 optimization.
31863 (peephole2 for SFmode unions): New peephole2 to optimize cases in
31864 the GLIBC math library that do AND/IOR/XOR operations on single
31865 precision floating point.
31866 * config/rs6000/rs6000.h (TARGET_NO_SF_SUBREG): New internal
31867 target macros to say whether we need to avoid SUBREGs mixing
31869 (TARGET_ALLOW_SF_SUBREG): Likewise.
31870 * config/rs6000/rs6000.md (UNSPEC_SF_FROM_SI): New unspecs.
31871 (UNSPEC_SI_FROM_SF): Likewise.
31872 (iorxor): Change spacing.
31873 (and_ior_xor): New iterator for AND, IOR, and XOR.
31874 (movsi_from_sf): New insns for SImode/SFmode SUBREG support.
31875 (movdi_from_sf_zero_ext): Likewise.
31876 (mov<mode>_hardfloat, FMOVE32 iterator): Use register_operand
31877 instead of gpc_reg_operand. Add SImode/SFmode SUBREG support.
31878 (movsf_from_si): New insn for SImode/SFmode SUBREG support.
31879 (fma<mode>4): Use gpc_reg_operand instead of register_operand.
31880 (fms<mode>4): Likewise.
31881 (fnma<mode>4): Likewise.
31882 (fnms<mode>4): Likewise.
31883 (nfma<mode>4): Likewise.
31884 (nfms<mode>4): Likewise.
31886 2017-01-04 Marek Polacek <polacek@redhat.com>
31889 * doc/invoke.texi: Document -Wpointer-compare.
31891 2017-01-04 Jakub Jelinek <jakub@redhat.com>
31893 * optc-gen.awk: Emit #error for -W*/-f*/-m* Enum without
31896 * dwarf2out.c (output_loc_list): Don't throw away 64K+ location
31897 descriptions for -gdwarf-5 and emit them as uleb128 instead of
31900 2017-01-04 Kelvin Nilsen <kelvin@gcc.gnu.org>
31903 * doc/sourcebuild.texi (PowerPC-specific attributes): Add
31904 documentation of the powerpc_popcntb_ok attribute.
31905 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
31906 code to issue warning messages if a requested CPU configuration is
31907 not supported by the binary (assembler and loader) toolchain.
31908 (spe_init_builtins): Add two assertions to prevent ICE if attempt is
31909 made to define a built-in function that has been disabled.
31910 (paired_init_builtins): Add assertion to prevent ICE if attempt is
31911 made to define a built-in function that has been disabled.
31912 (altivec_init_builtins): Add comment explaining why definition
31913 of the DST built-in functions is not preceded by an assertion
31914 check. Add assertions to prevent ICE if attempts are made to
31915 define an altivec predicate or an abs* built-in function that has
31917 (htm_init_builtins): Add comment explaining why definition of the
31918 htm built-in functions is not preceded by an assertion check.
31920 2017-01-04 Jeff Law <law@redhat.com>
31922 PR tree-optimizatin/67955
31923 * tree-ssa-alias.c (same_addr_size_stores_p): Check offsets first.
31924 Allow any SSA_VAR_P as the base objects. Use integer_zerop. Verify
31925 the points-to solution does not include pt_null. Use DECL_PT_UID
31928 2017-01-04 Uros Bizjak <ubizjak@gmail.com>
31930 * config/i386/i386.md (HI/SImode test with imm to QImode splitters):
31931 Use gen_int_mode instead of gen_lopwart for const_int operands.
31933 2017-01-04 Jakub Jelinek <jakub@redhat.com>
31935 PR tree-optimization/71563
31936 * match.pd: Simplify X << Y into X if Y is known to be 0 or
31937 out of range value - has low bits known to be zero.
31939 2017-01-04 Alan Modra <amodra@gmail.com>
31941 * Makefile.in (aclocal_deps): Update and order as per aclocal.m4.
31942 * configure: Regenerate.
31943 * config.in: Regenerate.
31945 2017-01-04 Jakub Jelinek <jakub@redhat.com>
31948 * input.c (ebcdic_execution_charset::on_error): Don't use strstr for
31949 a substring of the message, but strcmp with the whole message. Ifdef
31950 ENABLE_NLS, translate the message first using dgettext.
31952 2017-01-03 Jeff Law <law@redhat.com>
31954 PR tree-optimizatin/78856
31955 * tree-ssa-threadupdate.c: Include tree-vectorizer.h.
31956 (mark_threaded_blocks): Remove code to truncate thread paths that
31957 cross multiple loop headers. Instead invalidate the cached loop
31958 iteration information and handle case of a thread path walking
31959 into an irreducible region.
31961 2017-01-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31964 * config/rs6000/rs6000.c (rs6000_split_signbit): Change some
31965 assertions. Add support for doing the signbit if the IEEE 128-bit
31966 floating point value is in a GPR.
31967 * config/rs6000/rs6000.md (Fsignbit): Delete.
31968 (signbit<mode>2_dm): Delete using <Fsignbit> and just use "wa".
31969 Update the length attribute if the value is in a GPR.
31970 (signbit<mode>2_dm_<su>ext): Add combiner pattern to eliminate
31971 the sign or zero extension instruction, since the value is always 0/1.
31972 (signbit<mode>2_dm2): Delete using <Fsignbit>.
31975 * config/rs6000/vsx.md (vsx_extract_<mode>_store_p9): If we are
31976 extracting SImode to a GPR register so that we can generate a
31977 store, limit the vector to be in a traditional Altivec register
31978 for the vextuwrx instruction.
31980 2017-01-03 Ian Lance Taylor <iant@google.com>
31982 * godump.c (go_format_type): Treat ENUMERAL_TYPE like INTEGER_TYPE.
31984 2017-01-03 Martin Sebor <msebor@redhat.com>
31986 PR tree-optimization/78696
31987 * gimple-ssa-sprintf.c (format_floating): Correct handling of
31988 precision. Use MPFR for %f for greater fidelity. Correct handling
31990 (pass_sprintf_length::compute_format_length): Set width and precision
31991 specified by asrerisk to void_node for vararg functions.
31992 (try_substitute_return_value): Adjust dump output.
31994 2017-01-03 David Edelsohn <dje.gcc@gmail.com>
31996 * doc/invoke.texi (RS6000 options): LRA is enabled by default.
31998 2017-01-03 Eric Botcazou <ebotcazou@adacore.com>
32000 * doc/invoke.texi (SPARC options): Document -mlra as the default.
32001 * config/sparc/sparc.c (sparc_option_override): Force LRA unless
32002 -mlra/-mno-lra was passed to the compiler.
32004 2017-01-03 James Cowgill <James.Cowgill@imgtec.com>
32006 PR rtl-optimization/65618
32007 * emit-rtl.c (try_split): Move initialization of "before" and
32008 "after" to just before the call to emit_insn_after_setloc.
32010 2017-01-03 Gerald Pfeifer <gerald@pfeifer.com>
32012 * doc/md.texi (Standard Names): Remove reference to Java frontend.
32014 2017-01-03 Pierre-Marie de Rodat <derodat@adacore.com>
32016 * dwarf2out.c (gen_enumeration_type_die): When
32017 -gno-strict-dwarf, add a DW_AT_encoding attribute.
32019 2017-01-03 Jakub Jelinek <jakub@redhat.com>
32021 PR tree-optimization/78965
32022 * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
32023 Change first argument from const call_info & to call_info &. For %n
32024 set info.nowrite to false.
32026 PR middle-end/78901
32027 * gimple-ssa-sprintf.c (try_substitute_return_value): Don't change
32028 possibly throwing calls.
32030 * genmatch.c (dt_node::gen_kids_1): If generic_exprs include SSA_NAME
32031 and exprs_len || fns_len, emit the code for SSA_NAME next to the exprs
32032 and fns handling, rather than in a separate case SSA_NAME.
32034 2017-01-02 Jeff Law <law@redhat.com>
32036 * config/darwin-driver.c (darwin_driver_init): Const-correctness
32037 fixes for first_period and second_period variables.
32039 2017-01-02 Uros Bizjak <ubizjak@gmail.com>
32042 * config/i386/i386.md (UNSPEC_NOREX_MEM): New unspec.
32043 (*insvqi_1): New insn pattern.
32044 (*insvqi_1_mem_rex64): Ditto.
32045 (*insvqi_2): Ditto.
32046 (*insvqi_3): Rename from *insvqi.
32048 (*extzvqi_mem_rex64): Add UNSPEC_NOREX_MEM tag.
32050 2017-01-02 Gerald Pfeifer <gerald@pfeifer.com>
32052 * doc/cfg.texi (Edges): Remove reference to Java.
32053 (Maintaining the CFG): Ditto.
32055 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
32057 PR middle-end/77674
32058 * symtab.c (symtab_node::binds_to_current_def_p): Fix handling of
32059 transparent aliases.
32061 2017-01-01 Jan Hubicka <hubicka@ucw.cz>
32063 PR middle-end/77484
32064 * predict.def (PRED_CALL): Update hitrate.
32065 (PRED_INDIR_CALL, PRED_POLYMORPHIC_CALL): New predictors.
32066 * predict.c (tree_estimate_probability_bb): Split CALL predictor
32067 into direct/indirect/polymorphic variants.
32069 2017-01-01 Jakub Jelinek <jakub@redhat.com>
32071 Update copyright years.
32073 * gcc.c (process_command): Update copyright notice dates.
32074 * gcov-dump.c (print_version): Ditto.
32075 * gcov.c (print_version): Ditto.
32076 * gcov-tool.c (print_version): Ditto.
32077 * gengtype.c (create_file): Ditto.
32078 * doc/cpp.texi: Bump @copying's copyright year.
32079 * doc/cppinternals.texi: Ditto.
32080 * doc/gcc.texi: Ditto.
32081 * doc/gccint.texi: Ditto.
32082 * doc/gcov.texi: Ditto.
32083 * doc/install.texi: Ditto.
32084 * doc/invoke.texi: Ditto.
32086 Copyright (C) 2017 Free Software Foundation, Inc.
32088 Copying and distribution of this file, with or without modification,
32089 are permitted in any medium without royalty provided the copyright
32090 notice and this notice are preserved.