Fix mangling on GCC 4.7, msg927.

This commit is contained in:
Wilson Snyder 2012-10-28 17:35:48 -04:00
parent 158e112752
commit dce227684a
2 changed files with 3 additions and 1 deletions

View File

@ -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

View File

@ -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;