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.28.9000-97-gc3ab211


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  c3ab211099d304542a0ccfd8f5b743c12ac5bad9 (commit)
      from  99ea93ca31795469d2a1f1570f17a5c39c2eb7e2 (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=c3ab211099d304542a0ccfd8f5b743c12ac5bad9

commit c3ab211099d304542a0ccfd8f5b743c12ac5bad9
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Mon Aug 27 18:52:41 2018 +0000

    Move EXCEPTION_SET_FORCES_TRAP out of math-tests.h.
    
    Completing the move of macros out of math-tests.h to smaller headers
    following typo-proof conventions instead of using #ifndef, this patch
    moves the EXCEPTION_SET_FORCES_TRAP macro out to its own
    math-tests-trap-force.h header.
    
    Tested with build-many-glibcs.py.
    
    	* sysdeps/generic/math-tests-trap-force.h: New file.
    	* sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
    	(EXCEPTION_SET_FORCES_TRAP): Do not define here.
    	* sysdeps/powerpc/math-tests.h: Remove file.
    	* sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.

diff --git a/ChangeLog b/ChangeLog
index 9fc0060..157689f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2018-08-27  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/generic/math-tests-trap-force.h: New file.
+	* sysdeps/generic/math-tests.h: Include <math-tests-trap-force.h>.
+	(EXCEPTION_SET_FORCES_TRAP): Do not define here.
+	* sysdeps/powerpc/math-tests.h: Remove file.
+	* sysdeps/powerpc/fpu/math-tests-trap-force.h: New file.
+
 2018-08-27 Martin Kuchta  <martin.kuchta@netapp.com>
 	   Torvald Riegel  <triegel@redhat.com>
 
diff --git a/sysdeps/powerpc/math-tests.h b/sysdeps/generic/math-tests-trap-force.h
similarity index 54%
copy from sysdeps/powerpc/math-tests.h
copy to sysdeps/generic/math-tests-trap-force.h
index f95428a..5a9f36c 100644
--- a/sysdeps/powerpc/math-tests.h
+++ b/sysdeps/generic/math-tests-trap-force.h
@@ -1,5 +1,6 @@
-/* Configuration for math tests.  PowerPC version.
-   Copyright (C) 2013-2018 Free Software Foundation, Inc.
+/* Configuration for math tests: support for setting exception flags
+   without causing enabled traps.  Generic version.
+   Copyright (C) 2016-2018 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -16,10 +17,14 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef __NO_FPRS__
-/* Setting exception flags in FPSCR results in enabled traps for those
-   exceptions being taken.  */
-# define EXCEPTION_SET_FORCES_TRAP 1
-#endif
+#ifndef _MATH_TESTS_TRAP_FORCE_H
+#define _MATH_TESTS_TRAP_FORCE_H 1
 
-#include_next <math-tests.h>
+/* Indicate whether exception traps, if enabled, occur whenever an
+   exception flag is set explicitly, so it is not possible to set flag
+   bits with traps enabled without causing traps to be taken.  If
+   traps cannot be enabled, the value of this macro does not
+   matter.  */
+#define EXCEPTION_SET_FORCES_TRAP 0
+
+#endif /* math-tests-trap-force.h.  */
diff --git a/sysdeps/generic/math-tests.h b/sysdeps/generic/math-tests.h
index 53502ff..ce348c9 100644
--- a/sysdeps/generic/math-tests.h
+++ b/sysdeps/generic/math-tests.h
@@ -41,18 +41,10 @@
 
 #define EXCEPTION_TESTS(TYPE) MATH_TESTS_TG (EXCEPTION_TESTS_, , TYPE)
 
-/* Indicate whether exception traps, if enabled, occur whenever an
-   exception flag is set explicitly, so it is not possible to set flag
-   bits with traps enabled without causing traps to be taken.  If
-   traps cannot be enabled, the value of this macro does not
-   matter.  */
-#ifndef EXCEPTION_SET_FORCES_TRAP
-# define EXCEPTION_SET_FORCES_TRAP 0
-#endif
-
 #include <math-tests-exceptions.h>
 #include <math-tests-rounding.h>
 #include <math-tests-snan.h>
 #include <math-tests-snan-cast.h>
 #include <math-tests-snan-payload.h>
 #include <math-tests-trap.h>
+#include <math-tests-trap-force.h>
diff --git a/sysdeps/powerpc/math-tests.h b/sysdeps/powerpc/fpu/math-tests-trap-force.h
similarity index 70%
rename from sysdeps/powerpc/math-tests.h
rename to sysdeps/powerpc/fpu/math-tests-trap-force.h
index f95428a..e9d4001 100644
--- a/sysdeps/powerpc/math-tests.h
+++ b/sysdeps/powerpc/fpu/math-tests-trap-force.h
@@ -1,5 +1,6 @@
-/* Configuration for math tests.  PowerPC version.
-   Copyright (C) 2013-2018 Free Software Foundation, Inc.
+/* Configuration for math tests: support for setting exception flags
+   without causing enabled traps.  PowerPC version.
+   Copyright (C) 2016-2018 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -16,10 +17,11 @@
    License along with the GNU C Library; if not, see
    <http://www.gnu.org/licenses/>.  */
 
-#ifndef __NO_FPRS__
+#ifndef POWERPC_FPU_MATH_TESTS_TRAP_FORCE_H
+#define POWERPC_FPU_MATH_TESTS_TRAP_FORCE_H 1
+
 /* Setting exception flags in FPSCR results in enabled traps for those
    exceptions being taken.  */
-# define EXCEPTION_SET_FORCES_TRAP 1
-#endif
+#define EXCEPTION_SET_FORCES_TRAP 1
 
-#include_next <math-tests.h>
+#endif /* math-tests-trap-force.h.  */

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

Summary of changes:
 ChangeLog                                          |    8 ++++++++
 ...t-compare-invalid.h => math-tests-trap-force.h} |   19 +++++++++++--------
 sysdeps/generic/math-tests.h                       |   10 +---------
 .../{math-tests.h => fpu/math-tests-trap-force.h}  |   14 ++++++++------
 4 files changed, 28 insertions(+), 23 deletions(-)
 copy sysdeps/generic/{fix-fp-int-compare-invalid.h => math-tests-trap-force.h} (61%)
 rename sysdeps/powerpc/{math-tests.h => fpu/math-tests-trap-force.h} (70%)


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]