From dce227684ad97255b344b17e5673ee688ae8b464 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 28 Oct 2012 17:35:48 -0400 Subject: [PATCH] Fix mangling on GCC 4.7, msg927. --- Changes | 2 ++ include/verilated.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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;