This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: bss section not getting zero-initialised vars
- To: etienne dot lorrain at ibm dot net
- Subject: Re: bss section not getting zero-initialised vars
- From: Jamie Lokier <jamie dot lokier at cern dot ch>
- Date: Tue, 18 Jan 2000 12:57:02 +0100
- Cc: gcc at gcc dot gnu dot org
- References: <20000118104511.3571.qmail@web1604.mail.yahoo.com>
Etienne LORRAIN wrote:
> unsigned global_variable;
>
> void fct (void)
> {
> if (global_variable == 0)
> global_variable = init_global_variable();
> }
<ahem>, I write that sort of thing all the time :-)
-- Jamie