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: = {0} in bss?


> 
> I hate to even bring this up, but...  should things like:
> 
>    int m[1 << 27] = {0};
> 
> be put in .bss?   I'm tempted to say no, if you want that, you have to  
> remove {0}.

Yes if -fzero-initialized-in-bss is on which it is by default since at least 3.4.0.

-- Pinski


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