From 02ccad8fbccc3b4033edcab6eb8ea4fb7699ebf8 Mon Sep 17 00:00:00 2001 From: Tom Henderson Date: Tue, 7 Aug 2007 20:37:52 -0700 Subject: [PATCH] add unreachable statement to solve gcc-4.0.x compiler bug for optimized builds on os x --- src/simulator/high-precision-128.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/simulator/high-precision-128.h b/src/simulator/high-precision-128.h index 8ede96ec8..775f59ea0 100644 --- a/src/simulator/high-precision-128.h +++ b/src/simulator/high-precision-128.h @@ -222,7 +222,9 @@ HighPrecision::Compare (HighPrecision const &o) const HP128INC (m_nslowcmps); return SlowCompare (o); } - + // The below statement is unreachable but necessary for optimized + // builds with gcc-4.0.x due to a compiler bug. + return 0; } HighPrecision HighPrecision::Zero (void)