DATA_ALIGNMENT vs. DECL_USER_ALIGNMENT
Robert Dewar
dewar@gnat.com
Sun Apr 20 21:28:00 GMT 2003
> You might. It depends on what you're doing with that object.
> Perhaps it's been put into a special section and so smooshed
> into an array created at link time. Indeed, that's *exactly*
> the case that caused us to respect USER_ALIGN in varasm.c at
> all costs.
In that case, you would specify an explicit alignment *for the
object*, which a compiler would take as a clear indication that
the alignment should not be increased. This shows why it is important
to know if the alignment from an object was explicitly specified
for the object.
We specify the alignment of a type to determine the treatment within
composites, but we do not necessarily expect that to not be increased
for stand alone objects.
More information about the Gcc
mailing list