about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-06-28 19:42:14 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-06-28 19:42:14 +0000
commitfa562680ced07441f3edaf986f35d12516d8b081 (patch)
treebe85a5c29093eb096b319bb053cbe7e935b587af
parent614d15f9324a871cc742a8952a3117c57831a3c5 (diff)
downloadglibc-fa562680ced07441f3edaf986f35d12516d8b081.tar.gz
glibc-fa562680ced07441f3edaf986f35d12516d8b081.tar.xz
glibc-fa562680ced07441f3edaf986f35d12516d8b081.zip
Fix gen-tgmath-tests.py output for GCC 7 <float.h>.
	* math/gen-tgmath-tests.py (Tests.__init__): Define
	__STDC_WANT_IEC_60559_TYPES_EXT__ at start of generated file.
-rw-r--r--ChangeLog3
-rwxr-xr-xmath/gen-tgmath-tests.py3
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 8334e48c13..56794708e7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2017-06-28  Joseph Myers  <joseph@codesourcery.com>
 
+	* math/gen-tgmath-tests.py (Tests.__init__): Define
+	__STDC_WANT_IEC_60559_TYPES_EXT__ at start of generated file.
+
 	* math/tgmath.h: Include <bits/libc-header-start.h> and
 	<bits/floatn.h>.
 	(__TGMATH_F128): New macro.
diff --git a/math/gen-tgmath-tests.py b/math/gen-tgmath-tests.py
index 04492cd3d5..0c548ef9f9 100755
--- a/math/gen-tgmath-tests.py
+++ b/math/gen-tgmath-tests.py
@@ -293,7 +293,8 @@ class Tests(object):
 
     def __init__(self):
         """Initialize a Tests object."""
-        self.header_list = ['#include <float.h>\n'
+        self.header_list = ['#define __STDC_WANT_IEC_60559_TYPES_EXT__\n'
+                            '#include <float.h>\n'
                             '#include <stdbool.h>\n'
                             '#include <stdint.h>\n'
                             '#include <stdio.h>\n'