-
- Downloads
re PR middle-end/50527 (inconsistent vla align)
2011-10-07 Tom de Vries <tom@codesourcery.com> PR middle-end/50527 * tree.c (build_common_builtin_nodes): Add local_define_builtin for BUILT_IN_ALLOCA_WITH_ALIGN. Mark that BUILT_IN_ALLOCA_WITH_ALIGN can throw. * builtins.c (expand_builtin_alloca): Handle BUILT_IN_ALLOCA_WITH_ALIGN arglist. Set align for BUILT_IN_ALLOCA_WITH_ALIGN. (expand_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN. (is_inexpensive_builtin): Handle BUILT_IN_ALLOCA_WITH_ALIGN. * tree-ssa-ccp.c (evaluate_stmt): Set align for BUILT_IN_ALLOCA_WITH_ALIGN. (fold_builtin_alloca_for_var): Rename to ... (fold_builtin_alloca_with_align): Set DECL_ALIGN from 2nd BUILT_IN_ALLOCA_WITH_ALIGN argument. (ccp_fold_stmt): Try folding BUILT_IN_ALLOCA_WITH_ALIGN using fold_builtin_alloca_with_align. (optimize_stack_restore): Handle BUILT_IN_ALLOCA_WITH_ALIGN. * builtins.def (BUILT_IN_ALLOCA_WITH_ALIGN): Declare using DEF_BUILTIN_STUB. * ipa-pure-const.c (special_builtin_state): Handle BUILT_IN_ALLOCA_WITH_ALIGN. * tree-ssa-alias.c (ref_maybe_used_by_call_p_1) (call_may_clobber_ref_p_1): Same. * function.c (gimplify_parameters): Lower vla to BUILT_IN_ALLOCA_WITH_ALIGN. * gimplify.c (gimplify_vla_decl): Same. * cfgexpand.c (expand_call_stmt): Handle BUILT_IN_ALLOCA_WITH_ALIGN. * tree-mudflap.c (mf_xform_statements): Same. * tree-ssa-dce.c (mark_stmt_if_obviously_necessary) (mark_all_reaching_defs_necessary_1, propagate_necessity): Same. * varasm.c (incorporeal_function_p): Same. * tree-object-size.c (alloc_object_size): Same. * gimple.c (gimple_build_call_from_tree): Same. From-SVN: r179655
Showing
- gcc/ChangeLog 18 additions, 0 deletionsgcc/ChangeLog
- gcc/builtins.c 19 additions, 3 deletionsgcc/builtins.c
- gcc/builtins.def 1 addition, 0 deletionsgcc/builtins.def
- gcc/cfgexpand.c 2 additions, 1 deletiongcc/cfgexpand.c
- gcc/function.c 4 additions, 2 deletionsgcc/function.c
- gcc/gimple.c 2 additions, 1 deletiongcc/gimple.c
- gcc/gimplify.c 3 additions, 2 deletionsgcc/gimplify.c
- gcc/ipa-pure-const.c 1 addition, 0 deletionsgcc/ipa-pure-const.c
- gcc/tree-mudflap.c 3 additions, 1 deletiongcc/tree-mudflap.c
- gcc/tree-object-size.c 1 addition, 0 deletionsgcc/tree-object-size.c
- gcc/tree-ssa-alias.c 2 additions, 0 deletionsgcc/tree-ssa-alias.c
- gcc/tree-ssa-ccp.c 21 additions, 18 deletionsgcc/tree-ssa-ccp.c
- gcc/tree-ssa-dce.c 4 additions, 0 deletionsgcc/tree-ssa-dce.c
- gcc/tree.c 10 additions, 1 deletiongcc/tree.c
- gcc/varasm.c 2 additions, 1 deletiongcc/varasm.c
Loading
Please register or sign in to comment