This is the mail archive of the glibc-cvs@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]

GNU C Library master sources branch master updated. glibc-2.25-38-gb4e4172


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  b4e4172da6d43ac47cdf6763b3531e5e23102ff9 (commit)
      from  b987917e6aa7ffe2fd74f0b6a989438e6edd0727 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=b4e4172da6d43ac47cdf6763b3531e5e23102ff9

commit b4e4172da6d43ac47cdf6763b3531e5e23102ff9
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Feb 14 00:15:48 2017 +0000

    Move INIT_ARCH_EXT call from libm-test-support to libm-test-driver.
    
    libmvec tests involve calling INIT_ARCH_EXT during initialization then
    CHECK_ARCH_EXT before testing each function to see if the processor
    being used for testing supports the required instruction set
    extensions.
    
    After my refactoring of libm-test infrastructure, the INIT_ARCH_EXT
    call is in libm-test-support.c, built only once per floating-point
    type.  Now, in fact all definitions of this macro are empty, but given
    that the definitions in sysdeps/x86_64/fpu/math-tests-arch.h are
    conditional on REQUIRE_* macros defined in particular vector tests, it
    seems more correct for the INIT_ARCH_EXT call to go instead in
    libm-test-driver.c which gets built separately with those REQUIRE_*
    macros properly defined.  This patch moves the call there.
    
    Tested for x86_64 and x86.
    
    	* math/libm-test-support.h: Do not include <math-tests-arch.h>
    	here.
    	* math/libm-test-support.c (libm_test_init): Do not call
    	INIT_ARCH_EXT here.
    	* math/libm-test-driver.c: Include <math-tests-arch.h>.
    	(main): Call INIT_ARCH_EXT.

diff --git a/ChangeLog b/ChangeLog
index 27f41f7..f83f37a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2017-02-14  Joseph Myers  <joseph@codesourcery.com>
+
+	* math/libm-test-support.h: Do not include <math-tests-arch.h>
+	here.
+	* math/libm-test-support.c (libm_test_init): Do not call
+	INIT_ARCH_EXT here.
+	* math/libm-test-driver.c: Include <math-tests-arch.h>.
+	(main): Call INIT_ARCH_EXT.
+
 2017-02-12  Gabriel F. T. Gomes  <gftg@linux.vnet.ibm.com>
 
 	[BZ #21130]
diff --git a/math/libm-test-driver.c b/math/libm-test-driver.c
index 1539cd7..d24c5aa 100644
--- a/math/libm-test-driver.c
+++ b/math/libm-test-driver.c
@@ -18,6 +18,8 @@
 
 #include "libm-test-support.h"
 
+#include <math-tests-arch.h>
+
 /* Flags set by the including file.  */
 const int flag_test_errno = TEST_ERRNO;
 const int flag_test_exceptions = TEST_EXCEPTIONS;
@@ -1010,6 +1012,7 @@ int
 main (int argc, char **argv)
 {
   libm_test_init (argc, argv);
+  INIT_ARCH_EXT;
   do_test ();
   return libm_test_finish ();
 }
diff --git a/math/libm-test-support.c b/math/libm-test-support.c
index d387f81..8890c1c 100644
--- a/math/libm-test-support.c
+++ b/math/libm-test-support.c
@@ -1182,8 +1182,6 @@ libm_test_init (int argc, char **argv)
   initialize ();
   fputs (test_msg, stdout);
 
-  INIT_ARCH_EXT;
-
   check_ulp ();
 }
 
diff --git a/math/libm-test-support.h b/math/libm-test-support.h
index 5c9af04..2b95497 100644
--- a/math/libm-test-support.h
+++ b/math/libm-test-support.h
@@ -30,7 +30,6 @@
 #include <stdio.h>
 #include <tininess.h>
 #include <math-tests.h>
-#include <math-tests-arch.h>
 #include <nan-high-order-bit.h>
 
 extern const int flag_test_errno;

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog                |    9 +++++++++
 math/libm-test-driver.c  |    3 +++
 math/libm-test-support.c |    2 --
 math/libm-test-support.h |    1 -
 4 files changed, 12 insertions(+), 3 deletions(-)


hooks/post-receive
-- 
GNU C Library master sources


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