This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

leaf functions are broken on SPARC


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? 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]