]> gcc.gnu.org Git - gcc.git/commitdiff
fpgnuib.c (__floatsidf): Don't rely on signed overflow.
authorPaul Brook <paul@codesourcery.com>
Sun, 18 Sep 2005 00:11:30 +0000 (00:11 +0000)
committerPaul Brook <pbrook@gcc.gnu.org>
Sun, 18 Sep 2005 00:11:30 +0000 (00:11 +0000)
2005-09-18  Paul Brook  <paul@codesourcery.com>

* config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.

From-SVN: r104383

gcc/ChangeLog
gcc/config/m68k/fpgnulib.c

index 20db797d9e01d3e71b56d5b7c38501d1368d9117..131c3b7934bbb4b55b61cea596fe7d54b6062158 100644 (file)
@@ -1,3 +1,7 @@
+2005-09-18  Paul Brook  <paul@codesourcery.com>
+
+       * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
+
 2005-09-17  Richard Henderson  <rth@redhat.com>
 
        * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
index 5368559d4dde64c9a7256147b18bedde72084d2f..f63c2be9b51cb0451a4e9931c3c467bb078c2a10 100644 (file)
@@ -121,7 +121,7 @@ __floatsidf (long a1)
   if (a1 < 0)
     {
       sign = SIGNBIT;
-      a1 = -a1;
+      a1 = (long)-(unsigned long)a1;
       if (a1 < 0)
        {
          dl.l.upper = SIGNBIT | ((32 + EXCESSD) << 20L);
This page took 0.081523 seconds and 5 git commands to generate.