This is the mail archive of the gcc-bugs@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]

Re: MIPS problem with structures/varargs


>>>>> "Gavin" == Gavin Romig-Koch <gavin@cygnus.com> writes:

    Gavin> I assume we'er talking about SGI's original MIPS abi,
    Gavin> sometimes called -32 or o32.  Jim certianly understands
    Gavin> this stuff better than I, but I'm trying to become the
    Gavin> expert here, so I'll throw in what I think I know, and let
    Gavin> Jim correct me if necessary.

Thanks for the help.  And welcome to the MIPS fray.  I just noticed
that you're now officially in charge of the MIPS backend.
Congratulations!

    Gavin> I think you are correct, that the stack arguments are not
    Gavin> being correctly shifted, or, equivalantly, are not being
    Gavin> stored into the correct places on the stack.

Good.

    Gavin> If you go hunting this, note that there are 5 different
    Gavin> abi's to deal with here (o32, n32, n64, Cygnus' EABI, and
    Gavin> Cygnus' o64).  Cygnus' abis don't left align the aguments.

Yup.  Hacking on the IRIX6 binutils and the MIPS back-end in GCC a
little have made me keenly aware of this.  I'll let you know when I
come up with a patch, unless Jim contradicts us before then. :-)

--
Mark Mitchell                   mark@codesourcery.com
CodeSourcery, LLC               http://www.codesourcery.com


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