fpgnuib.c (__floatsidf): Don't rely on signed overflow.

2005-09-18  Paul Brook  <paul@codesourcery.com>

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

From-SVN: r104383
This commit is contained in:
Paul Brook 2005-09-18 00:11:30 +00:00 committed by Paul Brook
parent b1e8be1060
commit 798d7d9d13
2 changed files with 5 additions and 1 deletions

View 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.

View 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);