[Itai Nahshon <nahshon@actcom.co.il>] RedHat-6.0 fails to compile with -ansi -pedantic
Ulrich Drepper
drepper@cygnus.com
Sun Jun 13 10:46:00 GMT 1999
Andreas Jaeger <aj@arthur.rhein-neckar.de> writes:
> Here's again the problematic definition - and a patch to silent
> -ansi -pedantic -O2 (but gcc produces worse code with this):
> __MATH_INLINE int
> __signbitf (float __x)
> {
> - union { float __f; int __i; } __u = { __f: __x }; return __u.__i < 0;
> + union { float __f; int __i; } __u; __u.__f = __x; return __u.__i < 0;
> }
__extension__ works for me. Maybe it's a gcc version thing. But then
I don't care. If people want to use pedantic they have to use the
right gcc version.
--
---------------. drepper at gnu.org ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Cygnus Solutions `--' drepper at cygnus.com `------------------------
More information about the Libc-hacker
mailing list