[PATCH] Fix tst-getpid{1,2} on ia64

Jakub Jelinek jakub@redhat.com
Tue Mar 8 16:27:00 GMT 2005


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?
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.

	Jakub



More information about the Libc-hacker mailing list