OSDN Git Service

2005-09-18 Paul Brook <paul@codesourcery.com>
authorpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Sep 2005 00:11:30 +0000 (00:11 +0000)
committerpbrook <pbrook@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 18 Sep 2005 00:11:30 +0000 (00:11 +0000)
* config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@104383 138bc75d-0d04-0410-961f-82ee72b054a4

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

index 20db797..131c3b7 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 5368559..f63c2be 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);