This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Patch for undefined behaviour in gcc
- To: Andreas Jaeger <aj at suse dot de>
- Subject: Re: Patch for undefined behaviour in gcc
- From: Ulrich Drepper <drepper at redhat dot com>
- Date: 26 Oct 2000 16:45:02 -0700
- Cc: libc-alpha Mailinglist <libc-alpha at sourceware dot cygnus dot com>, Neil Booth <NeilB at earthling dot net>
- References: <holmvcq6ha.fsf@gee.suse.de>
- Reply-To: drepper at cygnus dot com (Ulrich Drepper)
Andreas Jaeger <aj@suse.de> writes:
> Neil has implemented a new cpp which warns about (see gcc-patches, the
> patch is not in yet, I'm just testing it):
> o A new diagnostic: the "defined" operator resulting from a macro
> expansion in a preprocessor conditional (undefined behaviour according
> to the standard).
>
> Here's a patch to get rid of these warnings. Ok, to commit?
I don't like this a bit. They are once more removing very useful and
currently well supported functionality. If I'm not asking about
warnings for standard compliance I don't want to see warnings like
this. Glibc cannot compiled without gcc so it is perfectly fine to
use gcc features. And we already do.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------