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


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

Re: [Bug]: non-static arrays stored in object file


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

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