This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Pushing Inferior Function Arguments onto Stack on PowerPC64 machines
Mark Kettenis <mark.kettenis@xs4all.nl> writes:
> Indeed. GCC has been getting things wrong in this area before. And
> on top of that, some versions of GCC get it right while other versions
> get it wrong. If there are indeed versions of GCC in widespread use
> that do not follow the ABI, we should probably try to add a workaround
> in GCC. But if there are also versions of GCC that do follow the ABI,
> adding such a workaround might be impossible.
AFAICS, GCC on AIX follows the ABI here, but ppc64-linux deviates from it.
This is controlled by AGGREGATES_PAD_UPWARD_ALWAYS in
rs6000.c:function_arg_padding in the gcc source.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."