diff options
author | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-29 22:33:54 +0000 |
---|---|---|
committer | hp <hp@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-10-29 22:33:54 +0000 |
commit | 50a7e636f1cc080d106d5d6e63f1a3faa3bd5bbe (patch) | |
tree | c87a27a52f2336944aff783882406e031522f74a | |
parent | a519c4d3595ef641cf4a7f5e9f3f122c8906375f (diff) | |
download | gcc-50a7e636f1cc080d106d5d6e63f1a3faa3bd5bbe.tar.gz |
* real.c (do_divide): Initialize result with a 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@73066 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 2 | ||||
-rw-r--r-- | gcc/real.c | 2 |
2 files changed, 4 insertions, 0 deletions
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 <hp@axis.com> + * real.c (do_divide): Initialize result with a 0. + * configure.in <enable-checking for valgrind>: Look for <valgrind/memcheck.h> 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; |