Subject: Re: `__attribute__ ((__aligned__))' has gotta go
To: Eduardo Horvath <eeh@netbsd.org>
From: Todd Whitesel <toddpw@best.com>
List: tech-kern
Date: 10/24/1999 22:49:11
>      "Whenever you leave out the alignment factor in an `aligned'
>      attribute specification, the compiler automatically sets the
>      alignment for the declared variable or field to the largest
>      alignment which is ever used for any data type on the target
>      machine you are compiling for."
> 
> The largest alignment which is ever used would be page alignment, and
> the SPARC V9 ELF ABI specifies that pages have a maximum 1MB alignment.
> So this %$#%%$#% directive is causing my BSS segment to be 1MB aligned,
> which I don't think is the desired effect.

But that's not 2**16 which is what your dump of the object file reported.
... um ... never mind.

Anyway:

If we're going to use alignment attributes at all, we should be doing it
with MD controlled macros so the minimum necessary alignment is used on
each architecture.

Todd Whitesel
toddpw @ best.com