DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
Richard Kenner
kenner@vlsi1.ultra.nyu.edu
Mon Apr 21 17:25:00 GMT 2003
So if you turn:
T i __attribute__((align(2)));
T j __attribute__((align(2)));
into
typedef T T2 __attribute__((align(2)));
T2 i, j;
you say we could get different code?
I say so, yes.
And the reason is as I said: you specify alignment for a type both for
interface and efficiency reasons, but for an object only for the latter.
So there is a difference in meaning between these two constructs.
More information about the Gcc
mailing list