Re: = {0} in bss?

2006-08-24 Thread Geoffrey Keating
Paul Brook [EMAIL PROTECTED] writes: 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?

= {0} in bss?

2006-08-22 Thread Mike Stump
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}.

Re: = {0} in bss?

2006-08-22 Thread Daniel Jacobowitz
On Tue, Aug 22, 2006 at 12:14:24PM -0700, 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}. Does this answer your question? `-fno-zero-initialized-in-bss'

Re: = {0} in bss?

2006-08-22 Thread Paul Brook
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

Re: = {0} in bss?

2006-08-22 Thread Andrew Pinski
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