This is the mail archive of the gcc@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]
Other format: [Raw text]

Re: -fzero-initialized-in-bss again


    ... this is *not* the case in C or C++.

    The only way a variable should *ever* wind up in COMMON is if DECL_COMMON
    is set by the front end.  Otherwise it should go in .bss or .data.

Yes, but the question is when should DECL_COMMON be set by the front end.
Ada copies the code from c-decl.c, but does it from 2.8.1, where it's
essentially !flag_no_common.  But in GCC 3, it's also not set if the
variable is initialized.  Should Ada do that as well?  Would that
address this issue?


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