This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: leaf functions are broken on SPARC
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Dan Nicolaescu <dann at godzilla dot ICS dot UCI dot EDU>
- Cc: gcc at gcc dot gnu dot org
- Date: Sun, 10 Mar 2002 20:46:32 +0100
- Subject: Re: leaf functions are broken on SPARC
- References: <200203100840.aa28789@gremlin-relay.ics.uci.edu>
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
On Sun, Mar 10, 2002 at 08:40:35AM -0800, Dan Nicolaescu wrote:
> GCC CVS does not generate leaf functions anymore on SPARC
> (sparc-sun-solaris2.7):
>
>
> void foo (void)
> {
> }
>
>
> compiles to (with -O2):
>
> .file "p.c"
> .section ".text"
> .align 4
> .global foo
> .type foo,#function
> .proc 020
> foo:
> !#PROLOGUE# 0
> save %sp, -112, %sp <=== ???
> !#PROLOGUE# 1
> ret
> restore
>
> This is a regression from 3.0.x
> Is this a SPARC specific problem?
I'll check this out.
Jakub