diff --git a/Changes b/Changes index 86cfdcfa9..0144a2f79 100644 --- a/Changes +++ b/Changes @@ -9,6 +9,8 @@ indicates the contributor was also the author of the fix; Thanks! **** Fix large shift error on large shift constants. [David Welch] +**** Fix $display mangling on GCC 4.7, msg927. [R Diez] + * Verilator 3.841 2012/09/03 diff --git a/include/verilated.cpp b/include/verilated.cpp index 058df100e..bb7f09496 100644 --- a/include/verilated.cpp +++ b/include/verilated.cpp @@ -353,9 +353,9 @@ void _vl_vsformat(string& output, const char* formatp, va_list ap) { // Deal with all read-and-print somethings const int lbits = va_arg(ap, int); QData ld = 0; + WData qlwp[2]; WDataInP lwp; if (lbits <= VL_QUADSIZE) { - WData qlwp[2]; ld = _VL_VA_ARG_Q(ap, lbits); VL_SET_WQ(qlwp,ld); lwp = qlwp;