From c4361cd7417148ffe64478e46ee1da3a7cb00ae8 Mon Sep 17 00:00:00 2001 From: Hans-Peter Nilsson Date: Wed, 29 Oct 2003 22:33:54 +0000 Subject: [PATCH] * real.c (do_divide): Initialize result with a 0. From-SVN: r73066 --- gcc/ChangeLog | 2 ++ gcc/real.c | 2 ++ 2 files changed, 4 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 063add20495..7613d75eb33 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,7 @@ 2003-10-29 Hans-Peter Nilsson + * real.c (do_divide): Initialize result with a 0. + * configure.in : Look for first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H if it exists. 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;