This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
glibc depends on gcc 3.2+ -> C99
- From: Ulrich Drepper <drepper at redhat dot com>
- To: libc-alpha at sources dot redhat dot com
- Date: Sun, 29 Sep 2002 18:05:31 -0700
- Subject: glibc depends on gcc 3.2+ -> C99
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
The problem with uninitialized local variables reminds me of something I
wanted to point out for some time. glibc now depends on gcc 3.2 which
as a side effect has that glibc functions can now be written in C99.
This excludes functions which are also used outside the project but all
others can use the new language features.
Among other nice additions this means variables can now defined anywhere
in a block. Just as in C++. This means there is no need to define a
variable until it is really needed and then the variable should be
initialized right away.
This has the potential or avoiding an entire class of bugs.
- --
- --------------. ,-. 444 Castro Street
Ulrich Drepper \ ,-----------------' \ Mountain View, CA 94041 USA
Red Hat `--' drepper at redhat.com `---------------------------
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQE9l6Nb2ijCOnn/RHQRAosOAJ4iPJdcHm0eVNhoXyu80ebS104mNgCcC/hi
J+lWF4WPYfpz1Bb/ORE/nWk=
=lR8U
-----END PGP SIGNATURE-----