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
Neil Booth <NeilB@earthling.net> writes:
> Other parts of GCC warn about undefined behaviour, and behaviour that
> varies across compilers. Not everyone wants to commit themselves to
> using GCC 100%, and they want to know what might break portability.
>
> You might not care, but others do. If you don't want the warning,
> don't use the undefined behaviour. I think this is quite fair.
You are breaking once more existing practice. It definitely should be
possible to disable these warnings or even better, enable them if
wanted. Again, we are using GNU C and not ISO C.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------