Issue with small struct return values

Kevin B. Hendricks khendricks at ivey.uwo.ca
Sun Jan 21 11:16:56 EST 2001


Hi,

> 	GCC 3.0 (whose major number implies breaking backward
> compatibility) seems like a good opportunity to correct this mistake.

>From what I understand, GCC 3.0 would only have broken things for C++ based
items and not for everything.

So what you are proposing is a very major change!

I think during such a change, one other issue really should be addressed
(and I am sure there are others)

Given the ppc sys v abi uniqueness in handling varargs, there is no
cross-platform solution for passing the address of a va_list or dereferencing
that same beast.  Right now real programs do this (the JDK for example) and
there are no macros (like VA_COPY) that hide the differences.  This
introduces bugs that are very hard to track down.

Can you push something (a MACRO of some sort) like that through during the
GCC change David?

Kevin

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc-dev mailing list