summaryrefslogtreecommitdiff
path: root/gcc/libgcc2.c
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-05 15:49:05 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2007-01-05 15:49:05 +0000
commit31a6671190792117aa156a750179c709e3180d04 (patch)
treed22bdbbd927716ab77625c5086c5bc05222af12c /gcc/libgcc2.c
parent1bfea7e8f3c85545c73e4395bc593e176c556690 (diff)
downloadgcc-31a6671190792117aa156a750179c709e3180d04.tar.gz
PR c/30360
* libgcc2.c (__divdc3): Compare c and d against 0.0 instead of denom against 0.0. * gcc.dg/pr30360.c: New test. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@120486 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/libgcc2.c')
-rw-r--r--gcc/libgcc2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/libgcc2.c b/gcc/libgcc2.c
index b78b8f6a387..8c0c9d1122d 100644
--- a/gcc/libgcc2.c
+++ b/gcc/libgcc2.c
@@ -1909,7 +1909,7 @@ CONCAT3(__div,MODE,3) (MTYPE a, MTYPE b, MTYPE c, MTYPE d)
are nonzero/zero, infinite/finite, and finite/infinite. */
if (isnan (x) && isnan (y))
{
- if (denom == 0.0 && (!isnan (a) || !isnan (b)))
+ if (c == 0.0 && d == 0.0 && (!isnan (a) || !isnan (b)))
{
x = COPYSIGN (INFINITY, c) * a;
y = COPYSIGN (INFINITY, c) * b;