mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Less verbosity for IEEE warnings in earlier commit this rev.
This commit is contained in:
+6
-1
@@ -139,7 +139,12 @@ V3Number::V3Number (FileLine* fileline, const char* sourcep) {
|
||||
this->opAdd(product,addend);
|
||||
if (product.bitsValue(width(), 4)) { // Overflowed
|
||||
m_fileline->v3error("Too many digits for "<<width()<<" bit number: "<<sourcep);
|
||||
if (!m_sized) m_fileline->v3error("As that number was unsized ('d...) it is limited to 32 bits (IEEE 2012 5.7.1)");
|
||||
if (!m_sized) {
|
||||
static int warned = false;
|
||||
if (!warned++) {
|
||||
m_fileline->v3error("As that number was unsized ('d...) it is limited to 32 bits (IEEE 2012 5.7.1)");
|
||||
}
|
||||
}
|
||||
while (*(cp+1)) cp++; // Skip ahead so don't get multiple warnings
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user