This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Deal with GCC bug on 64-bit SPARC
- From: Mark Kettenis <kettenis at chello dot nl>
- To: mec dot gnu at mindspring dot com
- Cc: gdb-patches at sources dot redhat dot com
- Date: Sun, 4 Jan 2004 00:00:09 +0100 (CET)
- Subject: Re: [PATCH] Deal with GCC bug on 64-bit SPARC
- References: <20040103224717.CBDD04B35A@berman.michael-chastain.com>
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