toplev.c and HZ (was: gcc-2.8.0 released)

Andreas Schwab schwab@issan.informatik.uni-dortmund.de
Mon Jan 26 01:53:00 GMT 1998


John Carr <jfc@mit.edu> writes:

|>> 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.

Except that it slightly increases the size on disk (.data vs. .bss).

-- 
Andreas Schwab                                      "And now for something
schwab@issan.informatik.uni-dortmund.de              completely different"
schwab@gnu.org



More information about the Gcc mailing list