summaryrefslogtreecommitdiffstats
path: root/gcc/real.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/gcc/real.c b/gcc/real.c
index b5e29859658..3ebf8f32e7a 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -2663,8 +2663,15 @@ eadd1 (a, b, c)
{
if (bi[j] != 0)
{
- /* This could overflow, but let emovo take care of that. */
ltb += 1;
+ if (ltb >= 0x7fff)
+ {
+ eclear (c);
+ if (ai[0] != 0)
+ eneg (c);
+ einfin (c);
+ return;
+ }
break;
}
}
OpenPOWER on IntegriCloud