From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17809 invoked by alias); 13 Oct 2011 11:18:59 -0000 Received: (qmail 17800 invoked by uid 22791); 13 Oct 2011 11:18:58 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO gcc.gnu.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 13 Oct 2011 11:18:45 +0000 From: "vries at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/50527] inconsistent vla align Date: Thu, 13 Oct 2011 11:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: vries at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: vries at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2011-10/txt/msg01232.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50527 --- Comment #13 from vries at gcc dot gnu.org 2011-10-13 11:18:14 UTC --- Author: vries Revision: 179655 Modified property: svn:log Modified: svn:log at Thu Oct 13 11:18:09 2011 ------------------------------------------------------------------------------ --- svn:log (original) +++ svn:log Thu Oct 13 11:18:09 2011 @@ -2,16 +2,33 @@ 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.