This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the EGCS project.
Re: [Bug]: non-static arrays stored in object file
- To: law@cygnus.com
- Subject: Re: [Bug]: non-static arrays stored in object file
- From: Alexandre Oliva <oliva@dcc.unicamp.br>
- Date: 29 Jul 1999 15:56:18 -0300
- Cc: Steve McAndrewSmith <steve@finagle.org>, gcc-bugs@gcc.gnu.org
- References: <21363.933272860@upchuck.cygnus.com>
On Jul 29, 1999, Jeffrey A Law <law@cygnus.com> wrote:
> In message <37A07BFA.D49F9AB9@finagle.org>you write:
>> Yikes! It appears to be storing the entire *uninitialized* array in the
>> object file (this gets even more exciting if the array is a structure,
>> and padding makes the array even larger).
> This is a side effect of the C++ standard not allowing common variables.
BTW, does anybody disagree that it would be a useful extension to obey
this standard requirement only when compiling with -ansi and/or
-pedantic?
--
Alexandre Oliva http://www.dcc.unicamp.br/~oliva IC-Unicamp, Bra[sz]il
oliva@{dcc.unicamp.br,guarana.{org,com}} aoliva@{acm.org,computer.org}
oliva@{gnu.org,kaffe.org,{egcs,sourceware}.cygnus.com,samba.org}
** I may forward mail about projects to mailing lists; please use them