This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: egcs 19990629 (arm/aout) static member vars end up in common
- To: Luke Diamand <lgd at virata dot com>
- Subject: Re: egcs 19990629 (arm/aout) static member vars end up in common
- From: Jeffrey A Law <law at cygnus dot com>
- Date: Thu, 08 Jul 1999 12:37:36 -0600
- cc: egcs-bugs at egcs dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <37835AB0.3DD0C389@virata.com>you write:
> I'm using gcc-2.95 19990629 (prerelease) and I find that, compared to
> the last version I used (egcs1.1b) it has started to put some symbols
> into common (.comm) that it never used to.
>
> The sort of code that provokes this looks like the following:
>
> class Foo
> {
> static int x;
> };
>
> int Foo::x;
>
>
> I get the following:
>
> .comm __3Foo.x, 4 @ 4
>
> Sadly, my assembler and linker (non-gnu) do not understand .comm.
That sounds like a bug in your gcc configuration files. The configuration
files should define ASM_OUTPUT_COMMON or ASM_OUTPUT_ALIGNED_COMMON to emit
suitable assembly code for commons.
jeff