[PATCH] Deal with GCC bug on 64-bit SPARC
Mark Kettenis
kettenis@chello.nl
Sat Jan 3 23:00:00 GMT 2004
Date: Sat, 3 Jan 2004 17:47:17 -0500 (EST)
From: mec.gnu@mindspring.com (Michael Elizabeth Chastain)
> GCC generates code that doesn't conform to the ABI.
I hate it when that happens.
Well, it's a corner case. Only if you define a structure that
consists of a single `float' member and pass it by value and you're
mixing code from two compiler you'll get hit. Any sensible person
would not use a struct here and simply pass the float around.
Can you enhance your comment to say which version of gcc?
gcc 3.4 has a different default ABI than gcc 3.3.
I've seen this with GCC 3.3.2, GCC 3.3.3-ish and GCC 3.4. But I bet
older versions have this problem too. Anyway, I'm talking about plain
old C here, not C++. Oh, and it's SPARC only of course.
Anyway, it's nothing we should be too worried about. GDB handles it
without problems now :-).
Mark
More information about the Gdb-patches
mailing list