This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: = {0} in bss?
- From: Paul Brook <paul at codesourcery dot com>
- To: gcc at gcc dot gnu dot org
- Cc: Mike Stump <mrs at apple dot com>
- Date: Tue, 22 Aug 2006 21:04:08 +0100
- Subject: Re: = {0} in bss?
- References: <EEE7B14F-A8EA-46E3-985B-DFB87564B7DA@apple.com>
On Tuesday 22 August 2006 20:14, Mike Stump wrote:
> 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}.
What makes you say this?
Given that C requires global variables without explicit initialisers be zero
initialised I would find it surprising if adding explicit zero initialisation
effected my program in any way.
Paul