about summary refs log tree commit diff
path: root/ChangeLog
diff options
context:
space:
mode:
authorJoseph Myers <joseph@codesourcery.com>2017-02-06 18:20:15 +0000
committerJoseph Myers <joseph@codesourcery.com>2017-02-06 18:21:06 +0000
commit7e1e68b45c4f2e048213cffa8ccd42a1e5c4fec6 (patch)
treedceee261b2661a361f8a96920c0adb4354e3ab53 /ChangeLog
parentc7a37ad352c90d798d138b9f83e0333c78d08410 (diff)
downloadglibc-7e1e68b45c4f2e048213cffa8ccd42a1e5c4fec6.tar.gz
glibc-7e1e68b45c4f2e048213cffa8ccd42a1e5c4fec6.tar.xz
glibc-7e1e68b45c4f2e048213cffa8ccd42a1e5c4fec6.zip
Rework gen-libm-test.pl input/output handling.
This patch reworks how input and output files are specified for
gen-libm-test.pl.

Previously, the script had names of various inputs and outputs
hardcoded, with a -o option to specify an output directory.  This
patch replaces this with all inputs and outputs being specified
explicitly as the arguments of options passed to the script.  Outputs
are only generated if the relevant option is passed, and only the
processing required for the indicated outputs is done.  The Makefile
is made to pass options for generating libm-test-ulps.h in a separate
invocation of gen-libm-test.pl from that generating libm-test.c.

This is all in preparation for splitting up libm-test.inc and
auto-libm-test-out and running tests separately for each function,
when gen-libm-test.pl will be run separately for each function to
generate the .c file but only once to generate libm-test-ulps.h (and
those runs will be able to be in parallel).

Tested for x86_64.  The generated libm-test.c and libm-test-ulps.h are
identical before and after the patch.  Also tested the "make
regen-ulps" case.

	* math/gen-libm-test.pl ($output_dir): Remove variable.
	($srcdir): Likewise.
	($opt_a): New variable.
	($opt_c): Likewise.
	($opt_C): Likewise.
	($opt_H): Likewise.
	(-n): Make option take argument and use it as NewUlps output.
	(-a): New option.  Use its argument for auto-libm-test-out input.
	(-c): New option.  Use its argument for libm-test.inc input.
	(-C): New option.  Use its argument for libm-test.c output.
	(-H): New option.  Use its argument for libm-test-ulps.h output.
	(top level): Only process inputs needed to generate outputs
	specified by command-line options.  Only generate outputs
	specified by command-line options.
	* math/README.libm-test: Update example gen-libm-test.pl command.
	* math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
	commands.
	(regen-ulps): Likewise.
Diffstat (limited to 'ChangeLog')
-rw-r--r--ChangeLog21
1 files changed, 21 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index d058211edb..d5516f0e79 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,24 @@
+2017-02-06  Joseph Myers  <joseph@codesourcery.com>
+
+	* math/gen-libm-test.pl ($output_dir): Remove variable.
+	($srcdir): Likewise.
+	($opt_a): New variable.
+	($opt_c): Likewise.
+	($opt_C): Likewise.
+	($opt_H): Likewise.
+	(-n): Make option take argument and use it as NewUlps output.
+	(-a): New option.  Use its argument for auto-libm-test-out input.
+	(-c): New option.  Use its argument for libm-test.inc input.
+	(-C): New option.  Use its argument for libm-test.c output.
+	(-H): New option.  Use its argument for libm-test-ulps.h output.
+	(top level): Only process inputs needed to generate outputs
+	specified by command-line options.  Only generate outputs
+	specified by command-line options.
+	* math/README.libm-test: Update example gen-libm-test.pl command.
+	* math/Makefile ($(objpfx)libm-test.stmp): Update gen-libm-test.pl
+	commands.
+	(regen-ulps): Likewise.
+
 2017-02-06  Wilco Dijkstra  <wdijkstr@arm.com>
 
 	* hurd/path-lookup.c (file_name_path_scan): Rename index to strchr.