From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Date: Mon, 30 Sep 2002 15:02:06 +0400 From: "Dmitry V. Levin" To: ALT Devel discussion list Message-ID: <20020930110206.GC31635@basalt.office.altlinux.ru> Mail-Followup-To: ALT Devel discussion list Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+xNpyl7Qekk2NvDX" Content-Disposition: inline X-fingerprint: 9658 398D 181B 1200 8FC5 26B8 F6F8 846B C1E2 3429 Subject: [devel] [drepper@redhat.com: glibc depends on gcc 3.2+ -> C99] Sender: devel-admin@altlinux.ru Errors-To: devel-admin@altlinux.ru X-BeenThere: devel@altlinux.ru X-Mailman-Version: 2.0.13 Precedence: bulk Reply-To: devel@altlinux.ru List-Unsubscribe: , List-Id: List-Post: List-Help: List-Subscribe: , List-Archive: Archived-At: List-Archive: List-Post: --+xNpyl7Qekk2NvDX Content-Type: text/plain; charset=us-ascii Content-Disposition: inline FYI ----- Forwarded message from Ulrich Drepper ----- Date: Sun, 29 Sep 2002 18:05:31 -0700 From: Ulrich Drepper To: libc-alpha@sources.redhat.com Subject: glibc depends on gcc 3.2+ -> C99 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 `--------------------------- ----- End forwarded message ----- -- ldv --+xNpyl7Qekk2NvDX Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9mC8u9viEa8HiNCkRAnGfAJ4i44Z8JIlme16TBxeGj1RmQiuXFwCggOs5 VMvUoy6mSWnsuGHHmtzm/kU= =vi13 -----END PGP SIGNATURE----- --+xNpyl7Qekk2NvDX--