ALT Linux Team development discussions
 help / color / mirror / Atom feed
* [devel] [drepper@redhat.com: glibc depends on gcc 3.2+ -> C99]
@ 2002-09-30 11:02 Dmitry V. Levin
  0 siblings, 0 replies; only message in thread
From: Dmitry V. Levin @ 2002-09-30 11:02 UTC (permalink / raw)
  To: ALT Devel discussion list

[-- Attachment #1: Type: text/plain, Size: 1121 bytes --]

FYI

----- Forwarded message from Ulrich Drepper <drepper@redhat.com> -----

Date: Sun, 29 Sep 2002 18:05:31 -0700
From: Ulrich Drepper <drepper@redhat.com>
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

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-09-30 11:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-09-30 11:02 [devel] [drepper@redhat.com: glibc depends on gcc 3.2+ -> C99] Dmitry V. Levin

ALT Linux Team development discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \
		devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru
	public-inbox-index devel

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.devel


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git