This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: static alignment and hash sync
>>>>> "Andrew" == Andrew Haley <aph@cambridge.redhat.com> writes:
Andrew> I may be wrong, but AFAICR alignment is a type attribute, and
Andrew> __attribute__((aligned)) when applied to a decl doesn't create
Andrew> a new type. For clarity and compatibility it's best to create
Andrew> a new aligned type via a typedef and use that.
According to the manual this attribute can also be applied to a
variable. See the `Variable Attributes' node. Maybe it doesn't work
though.
Another choice would be to simply put the attribute on the Class class
itself. Why not do it there?
Tom