From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12524 invoked by alias); 15 Jun 2010 16:46:26 -0000 Received: (qmail 12322 invoked by uid 48); 15 Jun 2010 16:45:51 -0000 Date: Tue, 15 Jun 2010 16:46:00 -0000 Message-ID: <20100615164551.12321.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug target/44542] expand_one_stack_var_at may set DECL_ALIGN to a too high value In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" 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: 2010-06/txt/msg01618.txt.bz2 ------- Comment #9 from jakub at gcc dot gnu dot org 2010-06-15 16:45 ------- Re: #c4 - !really_expand never occur when !optimize and for optimize they are called IMHO way too early (during inlining etc.). Re: #c8 - the testcases were meant for the given range of svn revs of trunk to show the issue where expand_one_var is called twice and that forces useless realignment. If you want just see too high DECL_ALIGN setting, try: void f (long x) { long a, b, c, d; asm ("" : : "r" (&a), "r" (&b), "r" (&c), "r" (&d)); __builtin_alloca (1); } at any optimization level on x86_64-linux on the trunk. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44542