Commit 798d7d9d by Paul Brook Committed by Paul Brook

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
parent b1e8be10
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> 2005-09-17 Richard Henderson <rth@redhat.com>
* tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change. * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
......
...@@ -121,7 +121,7 @@ __floatsidf (long a1) ...@@ -121,7 +121,7 @@ __floatsidf (long a1)
if (a1 < 0) if (a1 < 0)
{ {
sign = SIGNBIT; sign = SIGNBIT;
a1 = -a1; a1 = (long)-(unsigned long)a1;
if (a1 < 0) if (a1 < 0)
{ {
dl.l.upper = SIGNBIT | ((32 + EXCESSD) << 20L); dl.l.upper = SIGNBIT | ((32 + EXCESSD) << 20L);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment