static alignment and hash sync

Tom Tromey tromey@redhat.com
Fri Jun 8 10:38:00 GMT 2001


>>>>> "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



More information about the Java mailing list