Subject: Re: Weird alignment bug on gcc/powerpc
To: None <>
From: Christos Zoulas <>
List: tech-toolchain
Date: 04/09/2003 13:03:29
In article <>,
Christos Zoulas <> wrote:
>In article <>,
>Steve Woodford <> wrote:
>Hi Steve,
>This is the first time I see an aligned attribute applied to a typedef.
>This is usually applied to a variable instance. I can understand what
>the intent is, i.e. to make all imask_t instances appropriately aligned,
>but I would not be surprised, if the compiler just saw this as a request
>to align all u_int32_t's. If that is the case, it should be fixed to do
>the former.

And shouldn't the typedef be:

typedef struct {
	__uint32_t __bits[4];
} imask_t __attribute__((__aligned__(16));

It seems cleaner to me.