From 1944f372c59d009b1f49f6c783ec193722d1e1dc Mon Sep 17 00:00:00 2001 From: Cary R Date: Mon, 1 Sep 2008 14:30:09 -0700 Subject: [PATCH] Fix a couple uninitialized value problems found with tgt-vhdl. This patch fixes two uninitialized variable problems found with valgrind when testing the VHDL code generator. --- t-dll.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/t-dll.cc b/t-dll.cc index 98ade6c15..8cec7bac7 100644 --- a/t-dll.cc +++ b/t-dll.cc @@ -1921,6 +1921,7 @@ void dll_target::lpm_mult(const NetMult*net) unsigned wid = net->width_r(); obj->width = wid; + obj->u_.arith.signed_flag = 0; const Nexus*nex; @@ -2204,6 +2205,7 @@ bool dll_target::net_const(const NetConst*net) assert(net->pin_count() == 1); obj->width_ = net->width(); + obj->signed_ = 0; if (obj->width_ <= sizeof(obj->b.bit_)) { bits = obj->b.bit_;