]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
* libgcc2.c (__floatdisf): Properly cure double rounding.
authorAlan Modra <amodra@bigpond.net.au>
Wed, 9 Oct 2002 00:33:12 +0000 (00:33 +0000)
committerAlan Modra <amodra@gcc.gnu.org>
Wed, 9 Oct 2002 00:33:12 +0000 (10:03 +0930)
From-SVN: r57967

gcc/ChangeLog
gcc/libgcc2.c

index 7508be747dada2e59a565a8cf1eaeca87c8d297d..e0331a12456e4443404d28f5282ac9fc443fae10 100644 (file)
@@ -1,3 +1,7 @@
+2002-10-09  Alan Modra  <amodra@bigpond.net.au>
+
+       * libgcc2.c (__floatdisf): Properly cure double rounding.
+
 2002-10-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
 
        PR doc/7484
index 4effc46e56e010b9b6a5fc1645cbf2f679db85b9..dd5eee7dbb520617a4ef19e99297be4332501e8f 100644 (file)
@@ -1,7 +1,7 @@
 /* More subroutines needed by GCC output code on some machines.  */
 /* Compile this one with gcc.  */
 /* Copyright (C) 1989, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
-   2000, 2001  Free Software Foundation, Inc.
+   2000, 2001, 2002  Free Software Foundation, Inc.
 
 This file is part of GCC.
 
@@ -1115,7 +1115,10 @@ __floatdisf (DWtype u)
             && u < ((DWtype) 1 << DF_SIZE)))
        {
          if ((UDWtype) u & (REP_BIT - 1))
-           u |= REP_BIT;
+           {
+             u &= ~ (REP_BIT - 1);
+             u |= REP_BIT;
+           }
        }
     }
   f = (Wtype) (u >> WORD_SIZE);