This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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: 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


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