summaryrefslogtreecommitdiff
path: root/gcc/real.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/real.c')
-rw-r--r--gcc/real.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/real.c b/gcc/real.c
index 7609d996152..87246807f2f 100644
--- a/gcc/real.c
+++ b/gcc/real.c
@@ -858,6 +858,8 @@ do_divide (REAL_VALUE_TYPE *r, const REAL_VALUE_TYPE *a,
else
rr = r;
+ /* Make sure all fields in the result are initialized. */
+ get_zero (rr, 0);
rr->class = rvc_normal;
rr->sign = sign;