Patch for undefined behaviour in gcc

Ulrich Drepper drepper@redhat.com
Thu Oct 26 16:49:00 GMT 2000


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


More information about the Libc-alpha mailing list