This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Patch for undefined behaviour in gcc


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]