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.26.9000-639-g91c3985


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  91c3985c237ba6b2ab2ba20c6d29a38542378864 (commit)
      from  aa95a2414e4f664ca740ad5f4a72d9145abbd426 (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=91c3985c237ba6b2ab2ba20c6d29a38542378864

commit 91c3985c237ba6b2ab2ba20c6d29a38542378864
Author: Joseph Myers <joseph@codesourcery.com>
Date:   Tue Oct 24 00:33:08 2017 +0000

    Update x86 fix-fp-int-compare-invalid.h for GCC 8.
    
    The glibc implementation of iseqsig relies on ordered comparison
    operators raising the "invalid" exception for quiet NaN operands, with
    a workaround on platforms where a GCC bug means that exception is not
    raised.  For x86, that bug has now been fixed for GCC 8, so this patch
    disables the workaround in that case.  If and when the corresponding
    bugs for powerpc and s390 are fixed, the headers for those platforms
    should of course be updated similarly.
    
    Tested for x86_64 and x86, including with GCC mainline.  Note that
    other failures appear with GCC mainline because of spurious use of
    ordered comparison instructions for unordered operations
    <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=82692>.
    
    	* sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
    	(FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].

diff --git a/ChangeLog b/ChangeLog
index 4448c3d..265524f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2017-10-24  Joseph Myers  <joseph@codesourcery.com>
+
+	* sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
+	(FIX_COMPARE_INVALID): Define to 0 if [__GNUC_PREREQ (8, 0)].
+
 2017-10-23  Adhemerval Zanella  <adhemerval.zanella@linaro.org>
 
 	* sysdeps/unix/sysv/linux/spawni.c (__spawnix): Use 0 instead of
diff --git a/sysdeps/x86/fpu/fix-fp-int-compare-invalid.h b/sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
index bda247d..842c945 100644
--- a/sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
+++ b/sysdeps/x86/fpu/fix-fp-int-compare-invalid.h
@@ -20,9 +20,13 @@
 #ifndef FIX_FP_INT_COMPARE_INVALID_H
 #define FIX_FP_INT_COMPARE_INVALID_H	1
 
-/* As of GCC 5, both x87 and SSE comparisons use unordered comparison
+/* Before GCC 8, both x87 and SSE comparisons use unordered comparison
    instructions when they should use ordered comparisons
    <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=52451>.  */
-#define FIX_COMPARE_INVALID 1
+#if __GNUC_PREREQ (8, 0)
+# define FIX_COMPARE_INVALID 0
+#else
+# define FIX_COMPARE_INVALID 1
+#endif
 
 #endif /* fix-fp-int-compare-invalid.h */

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

Summary of changes:
 ChangeLog                                    |    5 +++++
 sysdeps/x86/fpu/fix-fp-int-compare-invalid.h |    8 ++++++--
 2 files changed, 11 insertions(+), 2 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]