about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-06-28 14:20:21 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-06-28 14:20:21 +0000
commit2dd0aec531ad03e8e1642f8642930451b23fe2ba (patch)
tree269fb8bbec8b2830f52aba1e5065b43740fd82cb /ChangeLog
parent073e8fa7739ed453d6854b834f290c263a6cdb9f (diff)
downloadglibc-2dd0aec531ad03e8e1642f8642930451b23fe2ba.tar.gz
glibc-2dd0aec531ad03e8e1642f8642930451b23fe2ba.tar.xz
glibc-2dd0aec531ad03e8e1642f8642930451b23fe2ba.zip
Add more thorough generated tgmath.h test.
This patch adds a more thorough test of tgmath.h macros, verifying
both the return type and the function called for all the cases of
valid argument types.  (Cases with current problems - I've just filed
four bugs - are disabled or omitted pending fixing those problems.)
The test uses a Python generator (works with both Python 2 and 3) to
generate a C file which is then built and run as a test in the usual
way (and that C file includes its own dummy definitions of libm
functions similar to existing tgmath.h tests).  The motivation is to
make it easier to add tests of tgmath.h for _Float128 when adding
tgmath.h support for that type; the _FloatN / _FloatNx support is
present in the script, but disabled until the tgmath.h support is
written.

Tested for x86_64, and for arm to check things in the long double =
double case.  (In that case, it's OK to call either double or long
double functions when the selected type is double or long double, as
long as the return type of the macro is exactly correct.)

	* math/gen-tgmath-tests.py: New file.
	* math/Makefile [PYTHON] (tests): Add test-tgmath3.
	[PYTHON] (generated): Add test-tgmath3.c.
	[PYTHON] (CFLAGS-test-tgmath3.c): New variable.
	[PYTHON] ($(objpfx)test-tgmath3.c): New rule.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog6
1 files changed, 6 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index a1558d5bc5..b5a6a7a9d1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2017-06-28  Joseph Myers  <joseph@codesourcery.com>
 
+	* math/gen-tgmath-tests.py: New file.
+	* math/Makefile [PYTHON] (tests): Add test-tgmath3.
+	[PYTHON] (generated): Add test-tgmath3.c.
+	[PYTHON] (CFLAGS-test-tgmath3.c): New variable.
+	[PYTHON] ($(objpfx)test-tgmath3.c): New rule.
+
 	* configure.ac (AS): Require binutils 2.25 or later.
 	(LD): Likewise.
 	* configure: Regenerated.