This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB 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]

Re: [PATCH] Deal with GCC bug on 64-bit SPARC


   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


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