[PATCH] Fix tst-getpid{1,2} on ia64
Andreas Schwab
schwab@suse.de
Tue Mar 8 16:40:00 GMT 2005
Jakub Jelinek <jakub@redhat.com> writes:
> On Tue, Mar 08, 2005 at 05:20:54PM +0100, Andreas Schwab wrote:
>> Jakub Jelinek <jakub@redhat.com> writes:
>>
>> > Now, either we require direct clone/__clone2 users to make sure
>> > the stack passed to it is sufficiently aligned
>>
>> Would __attribute__((aligned)) work here?
>
> On IA-64 yes, but is __attribute__((aligned)) on all architectures
> equal to the needed stack alignment?
It can't be worse than the current situation.
> If it is bigger than stack alignment, GCC disregards it (or just aligns
> to stack alignment?), if it is on some arch smaller than needed stack
> alignment, then it will not help.
IMHO it should be ok for now. GCC already needs to know how to keep the
stack aligned anyway.
Andreas.
--
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, MaxfeldstraÃe 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
More information about the Libc-hacker
mailing list