This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix PR target/12503
- From: Eric Botcazou <ebotcazou at libertysurf dot fr>
- To: "John David Anglin" <dave at hiauly1 dot hia dot nrc dot ca>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Nov 2003 08:02:25 +0100
- Subject: Re: [PATCH] Fix PR target/12503
- References: <200311271924.hARJOhei016438@hiauly1.hia.nrc.ca>
> > size = sizeof(char *) + 3 * sizeof(double) + sizeof(int);
> >
> > arguments = __builtin_apply_args();
> >
> > __builtin_apply(foo, arguments, size);
>
> Because of the alignment padding needed for the double following
> the char *, size needs to be larger by 4 to copy all the args.
> There probably is a problem on hppa64 as well because the last
> int goes in a 64-bit stack slot.
Ok. I think it would be silly to try to find a generic formula. What about
__builtin_apply(foo, arguments, 64);
instead?
--
Eric Botcazou