From 41b230609eb4aa8d70ba94f7ece6132716eccb68 Mon Sep 17 00:00:00 2001 From: drepper Date: Sun, 13 Jun 1999 11:22:17 +0000 Subject: [PATCH] Add __extension__ to signbit definitions to calm down gcc. --- sysdeps/i386/fpu/bits/mathinline.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/sysdeps/i386/fpu/bits/mathinline.h b/sysdeps/i386/fpu/bits/mathinline.h index 463d481ce7..ac840bffed 100644 --- a/sysdeps/i386/fpu/bits/mathinline.h +++ b/sysdeps/i386/fpu/bits/mathinline.h @@ -1,5 +1,5 @@ /* Inline math functions for i387. - Copyright (C) 1995, 1996, 1997, 1998 Free Software Foundation, Inc. + Copyright (C) 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by John C. Bowman , 1995. @@ -114,17 +114,19 @@ __MATH_INLINE int __signbitf (float __x) { - union { float __f; int __i; } __u = { __f: __x }; return __u.__i < 0; + __extension__ union { float __f; int __i; } __u = { __f: __x }; + return __u.__i < 0; } __MATH_INLINE int __signbit (double __x) { - union { double __d; int __i[2]; } __u = { __d: __x }; return __u.__i[1] < 0; + __extension__ union { double __d; int __i[2]; } __u = { __d: __x }; + return __u.__i[1] < 0; } __MATH_INLINE int __signbitl (long double __x) { - union { long double __l; int __i[3]; } __u = { __l: __x }; + __extension__ union { long double __l; int __i[3]; } __u = { __l: __x }; return (__u.__i[2] & 0x8000) != 0; } #endif -- 2.11.0