From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14918 invoked by alias); 15 Apr 2003 20:16:01 -0000 Mailing-List: contact gcc-prs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-prs-owner@gcc.gnu.org Received: (qmail 14849 invoked by uid 71); 15 Apr 2003 20:16:00 -0000 Date: Tue, 15 Apr 2003 20:16:00 -0000 Message-ID: <20030415201600.14848.qmail@sources.redhat.com> To: nobody@gcc.gnu.org Cc: gcc-prs@gcc.gnu.org, From: Wolfgang Bangerth Subject: Re: middle-end/10415: allocated stack space non optimimal Reply-To: Wolfgang Bangerth X-SW-Source: 2003-04/txt/msg00713.txt.bz2 List-Id: The following reply was made to PR middle-end/10415; it has been noted by GNATS. From: Wolfgang Bangerth To: gcc-gnats@gcc.gnu.org Cc: Subject: Re: middle-end/10415: allocated stack space non optimimal Date: Tue, 15 Apr 2003 15:12:46 -0500 (CDT) ---------- Forwarded message ---------- Date: Tue, 15 Apr 2003 21:59:33 +0200 From: GrzegorzB To: bangerth@dealii.org Subject: Re: middle-end/10415: allocated stack space non optimimal bangerth@dealii.org wrote: > Old Synopsis: problem with stack > New Synopsis: allocated stack space non optimimal > > State-Changed-From-To: open->feedback > State-Changed-By: bangerth > State-Changed-When: Tue Apr 15 18:27:24 2003 > State-Changed-Why: > Somehow the attachment got corrupted. Can you send the > program you used again? > > Thanks > Wolfgang > > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=10415 > Program test.c: void f() { char buf[3]; } main() { f(); } I compile this: gcc -S -o test test.c In test is: .file "test.c" .text .align 2 .globl f .type f,@function f: pushl %ebp movl %esp, %ebp subl $24, %esp <-- I thing its wrong leave ret .Lfe1: .size f,.Lfe1-f .align 2 .globl main .type main,@function main: pushl %ebp movl %esp, %ebp subl $8, %esp andl $-16, %esp movl $0, %eax subl %eax, %esp call f leave ret .Lfe2: .size main,.Lfe2-main .ident "GCC: (GNU) 3.2 20020903 (Red Hat Linux 8.0 3.2-7)" Sorry, I didn't explain that well. Grzegorz Bieda ---------------------------------------------------------------------- KLIKNIJ 2 razy TAK >>> http://link.interia.pl/f170d