This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: egcs 19990629 (arm/aout) static member vars end up in common



  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



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]