about summary refs log tree commit diff
diff options
context:
space:
mode:
authorThomas Schwinge <thomas@codesourcery.com>2013-02-19 12:49:12 +0100
committerThomas Schwinge <thomas@codesourcery.com>2013-02-20 16:48:56 +0100
commit72f0ffdcbeb8135d04cf2dc73f8a5f5c7783a283 (patch)
tree60bbfe34353f7cb643446ad9100fee9100536d91
parent2636ffe65438af689e12b7977fe8609a6ca07c90 (diff)
downloadglibc-72f0ffdcbeb8135d04cf2dc73f8a5f5c7783a283.tar.gz
glibc-72f0ffdcbeb8135d04cf2dc73f8a5f5c7783a283.tar.xz
glibc-72f0ffdcbeb8135d04cf2dc73f8a5f5c7783a283.zip
Add missing __attribute_used__.
Generic IEEE 754 file has been changed in commit
b575c52b86fe0c00adec925e356eb72cf95b23a7.
-rw-r--r--ports/ChangeLog.mips3
-rw-r--r--ports/sysdeps/mips/bits/nan.h3
2 files changed, 5 insertions, 1 deletions
diff --git a/ports/ChangeLog.mips b/ports/ChangeLog.mips
index e7f65d72ac..936ab170b8 100644
--- a/ports/ChangeLog.mips
+++ b/ports/ChangeLog.mips
@@ -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>
diff --git a/ports/sysdeps/mips/bits/nan.h b/ports/sysdeps/mips/bits/nan.h
index af168cee19..71f372d642 100644
--- a/ports/sysdeps/mips/bits/nan.h
+++ b/ports/sysdeps/mips/bits/nan.h
@@ -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.  */