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: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- To: gcc-patches at gcc dot gnu dot org
- Cc: watson dot ibm dot com at hiauly1 dot hia dot nrc dot ca, aldyh at redhat dot com, geoffk at redhat dot com, law at redhat dot com
- Date: Fri, 26 Apr 2002 22:41:26 -0400 (EDT)
- Subject: Re: small struct bugs for ppc sysv4
> 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.
Passing small structs (5-7 bytes) has been broken for years under
HP-UX (32bit). FUNCTION_ARG_PADDING only works for structs whose size
is less than or equal to the sizeof a HOST_WIDE_INT. However,
in the HP-UX ABI structs up to 2*sizeof(FUNCTION_ARG_PADDING)
need padding. That's where most of the current testsuite fails
occur under HP-UX.
Gcc is internally consistent with itself but inconsistent with respect
to the code generated by the HP compiler.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)