This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


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

Re: [Itai Nahshon <nahshon@actcom.co.il>] RedHat-6.0 fails to compile with -ansi -pedantic


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

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