attribute aligned problem with MIPS cross compiler
Richard Sandiford
rsandifo@redhat.com
Tue Mar 9 08:15:00 GMT 2004
Eric Christopher <echristo@redhat.com> writes:
>> Is this a bug or a known limitation? Any help would be appreciated.
>
> Well, appears to work in the 3.4 branch:
>
> .file 1 "foo.i"
> .section .mdebug.eabi64
> .previous
>
> .comm aligned_int,4,256
>
> [echristo@dzur ~]$ cat foo.i
> __attribute__ ((__aligned__(256))) int aligned_int;
>
> I can't remember the 3.2 sources off hand, but I know that some changes
> have gone in to object declaration in 3.4. Some in 3.3 too.
Yeah, this was fixed only recently:
http://gcc.gnu.org/ml/gcc-patches/2004-02/msg01155.html
Patch is in 3.4 but not 3.3.x.
As a workaround for older compilers, you could try compiling
with -fno-common.
Richard
More information about the Gcc
mailing list