toplev.c and HZ (was: gcc-2.8.0 released)
John Carr
jfc@mit.edu
Fri Jan 23 14:48:00 GMT 1998
> Hmmm...C compilers should initialize statics to a 'zero' value
> by default, no? That was my understanding of the specs the
> last time I read 'em, anyways...
>
> Perhaps there are compilers that don't implement things that
> way?
I've never seen one. Metaware High C version 1 used to warn about
uninitialized static variables, but still set them to zero. ANSI C
standardized this common practice.
However, a zero initializer may be useful documentation even though it
is redundant.
More information about the Gcc
mailing list