summaryrefslogtreecommitdiff
path: root/src/arch/arm
diff options
context:
space:
mode:
authorMitch Hayenga <mitch.hayenga@arm.com>2014-03-07 15:56:23 -0500
committerMitch Hayenga <mitch.hayenga@arm.com>2014-03-07 15:56:23 -0500
commitb9a9d99b226768dc972f0c40488f332066396e69 (patch)
tree711545134b14d63a51c096da0f5a2e7811c7b4fc /src/arch/arm
parentbef2086f5bb1ef350181791c6dff14d0964a5680 (diff)
downloadgem5-b9a9d99b226768dc972f0c40488f332066396e69.tar.xz
scons: Fixes uninitialized warnings issued by clang
Small fixes to appease recent clang versions.
Diffstat (limited to 'src/arch/arm')
-rw-r--r--src/arch/arm/insts/fplib.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arch/arm/insts/fplib.cc b/src/arch/arm/insts/fplib.cc
index 1f44eed09..e6528358a 100644
--- a/src/arch/arm/insts/fplib.cc
+++ b/src/arch/arm/insts/fplib.cc
@@ -2509,7 +2509,7 @@ fplibRecipEstimate(uint32_t op, FPSCR &fpscr)
result = fp32_infinity(sgn);
flags |= FPLIB_DZC;
} else if (!((uint32_t)(op << 1) >> 22)) {
- bool overflow_to_inf;
+ bool overflow_to_inf = false;
switch (FPCRRounding(fpscr)) {
case FPRounding_TIEEVEN:
overflow_to_inf = true;
@@ -2570,7 +2570,7 @@ fplibRecipEstimate(uint64_t op, FPSCR &fpscr)
result = fp64_infinity(sgn);
flags |= FPLIB_DZC;
} else if (!((uint64_t)(op << 1) >> 51)) {
- bool overflow_to_inf;
+ bool overflow_to_inf = false;
switch (FPCRRounding(fpscr)) {
case FPRounding_TIEEVEN:
overflow_to_inf = true;