This is the mail archive of the
gdb-patches@sourceware.cygnus.com
mailing list for the GDB project.
Re: RFA: USE_STRUCT_CONVENTION for NetBSD/i386
>>>>> "Mark" == Mark Kettenis <kettenis@wins.uva.nl> writes:
Mark> Problems remain with functions returning structs of these two forms:
Mark>
Mark> struct one_float_t {
Mark> float x;
Mark> };
Mark>
Mark> struct one_double_t {
Mark> double x;
Mark> };
Mark>
Mark> Could you elaborate on that? What is the convention used by NetBSD
Mark> for returning those structs and why does GDB fail?
Gcc, at least gcc-2.95.2, returns the above structs in floating point
registers instead of integer registers.
I don't think NetBSD's gcc config does anything special except for
setting DEFAULT_PPC_STRUCT_RETURN to 0.
--jtc
--
J.T. Conklin
RedBack Networks