mirror of
https://github.com/verilator/verilator.git
synced 2026-10-06 01:54:01 +02:00
Error continuation lines no longer have %Error prefix.
This commit is contained in:
+8
-8
@@ -150,14 +150,14 @@ void V3Number::V3NumberCreate(AstNode* nodep, const char* sourcep, FileLine* fl)
|
||||
product.opMul(*this, ten);
|
||||
this->opAdd(product, addend);
|
||||
if (product.bitsValue(width(), 4)) { // Overflowed
|
||||
v3error("Too many digits for "<<width()<<" bit number: "<<sourcep);
|
||||
if (!m_sized) {
|
||||
static int warned = false;
|
||||
if (!warned++) {
|
||||
v3error("As that number was unsized ('d...)"
|
||||
" it is limited to 32 bits (IEEE 2017 5.7.1)");
|
||||
}
|
||||
}
|
||||
static int warned = 0;
|
||||
v3error("Too many digits for "<<width()<<" bit number: "<<sourcep
|
||||
<<std::endl
|
||||
<<((!m_sized && !warned++)
|
||||
? (V3Error::warnMore()+"... As that number was unsized"
|
||||
+" ('d...) it is limited to 32 bits (IEEE 2017 5.7.1)\n"
|
||||
+ V3Error::warnMore()+"... Suggest adding a size to it.")
|
||||
: ""));
|
||||
while (*(cp+1)) cp++; // Skip ahead so don't get multiple warnings
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user