This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Add more thorough generated tgmath.h test [committed]


On Wed, 28 Jun 2017, H.J. Lu wrote:

> With GCC 7.1.1 on i686, I got
> 
> /export/build/gnu/glibc-32bit-test/build-i686-linux/math/test-tgmath3.c:130745:21:
> error: ‘FLT128_MANT_DIG’ undeclared (first use in this function); did
> you mean ‘FLT_MANT_DIG’?

Thanks for the report.  I've applied this patch to fix this.

Fix gen-tgmath-tests.py output for GCC 7 <float.h>.

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.

diff --git a/math/gen-tgmath-tests.py b/math/gen-tgmath-tests.py
index 04492cd..0c548ef 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'

-- 
Joseph S. Myers
joseph@codesourcery.com

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]