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 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)


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