From 48047d523ab0ce02597e504887020b3eaede2fd0 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Wed, 3 Nov 2010 12:38:26 -0400 Subject: [PATCH] Remove dead code ifdef, bug299 --- include/verilated.h | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/include/verilated.h b/include/verilated.h index 9c79fbd7d..2d4b9851a 100644 --- a/include/verilated.h +++ b/include/verilated.h @@ -942,14 +942,11 @@ static inline WDataOutP VL_SUB_W(int words, WDataOutP owp,WDataInP lwp,WDataInP return(owp); } -// Optimization bug in GCC 2.96 and presumably all-pre GCC 3 versions need this workaround -#if 1 //defined(__GNUC__) && __GNUC__ < 3 +// Optimization bug in GCC 2.96 and presumably all-pre GCC 3 versions need this workaround, +// we can't just +//# define VL_UNARYMIN_I(data) (-(data)) static inline IData VL_UNARYMIN_I(IData data) { return -data; } static inline QData VL_UNARYMIN_Q(QData data) { return -data; } -#else -# define VL_UNARYMIN_I(IData data) (-(data)) -# define VL_UNARYMIN_Q(QData data) (-(data)) -#endif static inline WDataOutP VL_UNARYMIN_W(int words, WDataOutP owp,WDataInP lwp){ QData carry = 0;