Add missing __attribute_used__.

Generic IEEE 754 file has been changed in commit
b575c52b86.
This commit is contained in:
Thomas Schwinge 2013-02-19 12:49:12 +01:00
parent 2636ffe654
commit 72f0ffdcbe
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
2013-02-20 Thomas Schwinge <thomas@codesourcery.com>
* sysdeps/mips/bits/nan.h [!__GNUC__] (__nan_union): Add
__attribute_used__.
* sysdeps/mips/bits/nan.h: Align to generic IEEE 754 file.
2013-02-19 Joseph Myers <joseph@codesourcery.com>

View File

@ -49,7 +49,8 @@
# define __nan_bytes { 0xff, 0xff, 0xbf, 0x7f }
# endif
static union { unsigned char __c[4]; float __d; } __nan_union = { __nan_bytes };
static union { unsigned char __c[4]; float __d; } __nan_union
__attribute_used__ = { __nan_bytes };
# define NAN (__nan_union.__d)
#endif /* GCC. */