This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: small struct bugs for ppc sysv4
- From: David Edelsohn <dje at watson dot ibm dot com>
- To: Aldy Hernandez <aldyh at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org, geoffk at redhat dot com, Jeffrey Law <law at redhat dot com>
- Date: Fri, 26 Apr 2002 16:56:35 -0400
- Subject: Re: small struct bugs for ppc sysv4
The comment for FUNCTION_ARG_REG_LITTLE_ENDIAN says that applies
to structure arguments and return values, but I cannot find where the
macro is used in function argument passing, only in functions which refer
to return values. If anything, it looks like this macro is safe because
it currently does not have any effect on function arguments. If the
implementation ever followed the macro's documentation, it would cause
problems.
The FUNCTION_ARG_PADDING macro seems to have control over the
alignment and padding of function arguments, and it returns "upward"
direction for both AIX and HP/UX.
Not only do we need to be careful about matching the ABI, but if
GCC changes its alignment behavior, we need to be careful about GCC
varargs functionality matching that behavior. This probably would break
AIX ppc64 Linux and HP/UX and pa-linux.
David