summaryrefslogtreecommitdiff
path: root/libquadmath
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-20 21:59:28 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2011-02-20 21:59:28 +0000
commit36f499f4dabcb4dacf84236ccebdfa72977278c5 (patch)
tree6485e6a7262aa62081bd33ec4dfbb1f28cc4ca65 /libquadmath
parent86ea82487017347ef718988d168a41b713546143 (diff)
downloadgcc-36f499f4dabcb4dacf84236ccebdfa72977278c5.tar.gz
PR bootstrap/47827
* printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf (""). git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@170346 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libquadmath')
-rw-r--r--libquadmath/ChangeLog5
-rw-r--r--libquadmath/printf/quadmath-printf.h3
2 files changed, 8 insertions, 0 deletions
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog
index fe1dfed0daa..71fbc2f547b 100644
--- a/libquadmath/ChangeLog
+++ b/libquadmath/ChangeLog
@@ -1,3 +1,8 @@
+2011-02-20 Jakub Jelinek <jakub@redhat.com>
+
+ PR bootstrap/47827
+ * printf/quadmath-printf.h (NAN): Redefine to __builtin_nanf ("").
+
2011-02-17 Jakub Jelinek <jakub@redhat.com>
* libquadmath.texi (FLT128_DIG, FLT128_MIN_10_EXP,
diff --git a/libquadmath/printf/quadmath-printf.h b/libquadmath/printf/quadmath-printf.h
index 9e574c1eccc..32ebcec928c 100644
--- a/libquadmath/printf/quadmath-printf.h
+++ b/libquadmath/printf/quadmath-printf.h
@@ -181,3 +181,6 @@ __quadmath_do_putc (struct __quadmath_printf_file *fp, int wide,
#undef _itoa
#define _itoa __quadmath_itoa
+
+#undef NAN
+#define NAN __builtin_nanf ("")