Remove extra warning newlines

This commit is contained in:
Wilson Snyder 2010-01-15 20:07:16 -05:00
parent 057e1a1aff
commit ab2702070b
7 changed files with 14 additions and 14 deletions

View File

@ -112,7 +112,7 @@ private:
virtual void visit(AstPslClocked* nodep, AstNUser*) { virtual void visit(AstPslClocked* nodep, AstNUser*) {
nodep->iterateChildren(*this); nodep->iterateChildren(*this);
if (m_senip) { if (m_senip) {
nodep->v3error("Unsupported: Only one PSL clock allowed per assertion\n"); nodep->v3error("Unsupported: Only one PSL clock allowed per assertion");
} }
// Block is the new expression to evaluate // Block is the new expression to evaluate
AstNode* blockp = nodep->propp()->unlinkFrBack(); AstNode* blockp = nodep->propp()->unlinkFrBack();

View File

@ -68,7 +68,7 @@ private:
virtual void visit(AstNodeCase* nodep, AstNUser*) { virtual void visit(AstNodeCase* nodep, AstNUser*) {
if (nodep->castCase() && nodep->castCase()->casex()) { if (nodep->castCase() && nodep->castCase()->casex()) {
nodep->v3warn(CASEX,"Suggest casez (with ?'s) in place of casex (with X's)\n"); nodep->v3warn(CASEX,"Suggest casez (with ?'s) in place of casex (with X's)");
} }
// Detect multiple defaults // Detect multiple defaults
bool hitDefault = false; bool hitDefault = false;

View File

@ -394,13 +394,13 @@ private:
void replaceNumSigned(AstNodeBiop* nodep, uint32_t val) { void replaceNumSigned(AstNodeBiop* nodep, uint32_t val) {
// We allow both sides to be constant, as one may have come from parameter propagation, etc. // We allow both sides to be constant, as one may have come from parameter propagation, etc.
if (m_warn && !(nodep->lhsp()->castConst() && nodep->rhsp()->castConst())) { if (m_warn && !(nodep->lhsp()->castConst() && nodep->rhsp()->castConst())) {
nodep->v3warn(UNSIGNED,"Comparison is constant due to unsigned arithmetic\n"); nodep->v3warn(UNSIGNED,"Comparison is constant due to unsigned arithmetic");
} }
replaceNum(nodep, val); nodep=NULL; replaceNum(nodep, val); nodep=NULL;
} }
void replaceNumLimited(AstNodeBiop* nodep, uint32_t val) { void replaceNumLimited(AstNodeBiop* nodep, uint32_t val) {
// Avoids gcc warning about same // Avoids gcc warning about same
if (m_warn) nodep->v3warn(CMPCONST,"Comparison is constant due to limited range\n"); if (m_warn) nodep->v3warn(CMPCONST,"Comparison is constant due to limited range");
replaceNum(nodep, val); nodep=NULL; replaceNum(nodep, val); nodep=NULL;
} }
void replaceZero(AstNode* nodep) { void replaceZero(AstNode* nodep) {

View File

@ -282,7 +282,7 @@ public:
void checkMaxWords(AstNode* nodep) { void checkMaxWords(AstNode* nodep) {
if (nodep->widthWords() > VL_TO_STRING_MAX_WORDS) { if (nodep->widthWords() > VL_TO_STRING_MAX_WORDS) {
nodep->v3error("String of "<<nodep->width()<<" bits exceeds hardcoded limit VL_TO_STRING_MAX_WORDS in verilatedos.h\n"); nodep->v3error("String of "<<nodep->width()<<" bits exceeds hardcoded limit VL_TO_STRING_MAX_WORDS in verilatedos.h");
} }
} }
virtual void visit(AstFOpen* nodep, AstNUser*) { virtual void visit(AstFOpen* nodep, AstNUser*) {
@ -455,7 +455,7 @@ public:
} }
virtual void visit(AstMulS* nodep, AstNUser* vup) { virtual void visit(AstMulS* nodep, AstNUser* vup) {
if (nodep->widthWords() > VL_MULS_MAX_WORDS) { if (nodep->widthWords() > VL_MULS_MAX_WORDS) {
nodep->v3error("Unsupported: Signed multiply of "<<nodep->width()<<" bits exceeds hardcoded limit VL_MULS_MAX_WORDS in verilatedos.h\n"); nodep->v3error("Unsupported: Signed multiply of "<<nodep->width()<<" bits exceeds hardcoded limit VL_MULS_MAX_WORDS in verilatedos.h");
} }
visit(nodep->castNodeBiop(), vup); visit(nodep->castNodeBiop(), vup);
} }
@ -1205,7 +1205,7 @@ void EmitCStmts::displayNode(AstNode* nodep, const string& vformat, AstNode* exp
} }
if (elistp != NULL) { if (elistp != NULL) {
// expectFormat also checks this, and should have found it first, so internal // expectFormat also checks this, and should have found it first, so internal
elistp->v3error("Internal: Extra arguments for $display format\n"); elistp->v3error("Internal: Extra arguments for $display format");
} }
displayEmit(nodep, isScan); displayEmit(nodep, isScan);
} }

View File

@ -267,7 +267,7 @@ private:
} }
} }
if (argp) { if (argp) {
argp->v3error("Extra arguments for $display format\n"); argp->v3error("Extra arguments for $display format");
} }
} }

View File

@ -534,7 +534,7 @@ private:
if (nodep->initp()->widthSized()) { if (nodep->initp()->widthSized()) {
width = mwidth = nodep->initp()->width(); width = mwidth = nodep->initp()->width();
} else { } else {
if (nodep->initp()->width()>32) nodep->initp()->v3warn(WIDTH,"Assigning >32 bit to unranged parameter (defaults to 32 bits)\n"); if (nodep->initp()->width()>32) nodep->initp()->v3warn(WIDTH,"Assigning >32 bit to unranged parameter (defaults to 32 bits)");
width = 32; width = 32;
mwidth = nodep->initp()->widthMin(); mwidth = nodep->initp()->widthMin();
} }
@ -928,7 +928,7 @@ private:
if (!nodep->taskp()) nodep->v3fatalSrc("Unlinked"); if (!nodep->taskp()) nodep->v3fatalSrc("Unlinked");
if (nodep->taskp()->width()==0) { if (nodep->taskp()->width()==0) {
if (m_taskDepth > 100) { if (m_taskDepth > 100) {
nodep->v3error("Unsupported: Recursive function or task call\n"); nodep->v3error("Unsupported: Recursive function or task call");
nodep->width(1,1); nodep->width(1,1);
nodep->taskp()->width(1,1); nodep->taskp()->width(1,1);
return; return;

View File

@ -1842,7 +1842,7 @@ statement_item<nodep>: // IEEE: statement_item
// //
//UNSUP par_block { $$ = $1; } //UNSUP par_block { $$ = $1; }
// // IEEE: procedural_timing_control_statement + procedural_timing_control // // IEEE: procedural_timing_control_statement + procedural_timing_control
| delay_control stmtBlock { $$ = $2; $1->v3warn(STMTDLY,"Ignoring delay on this delayed statement.\n"); } | delay_control stmtBlock { $$ = $2; $1->v3warn(STMTDLY,"Ignoring delay on this delayed statement."); }
//UNSUP event_control stmtBlock { UNSUP } //UNSUP event_control stmtBlock { UNSUP }
//UNSUP cycle_delay stmtBlock { UNSUP } //UNSUP cycle_delay stmtBlock { UNSUP }
// //
@ -2008,7 +2008,7 @@ system_t_call<nodep>: // IEEE: system_tf_call (as task)
// //
| yD_C '(' cStrList ')' { $$ = (v3Global.opt.ignc() ? NULL : new AstUCStmt($1,$3)); } | yD_C '(' cStrList ')' { $$ = (v3Global.opt.ignc() ? NULL : new AstUCStmt($1,$3)); }
| yD_FCLOSE '(' idClassSel ')' { $$ = new AstFClose($1, $3); } | yD_FCLOSE '(' idClassSel ')' { $$ = new AstFClose($1, $3); }
| yD_FFLUSH parenE { $1->v3error("Unsupported: $fflush of all handles does not map to C++.\n"); } | yD_FFLUSH parenE { $1->v3error("Unsupported: $fflush of all handles does not map to C++."); }
| yD_FFLUSH '(' idClassSel ')' { $$ = new AstFClose($1, $3); } | yD_FFLUSH '(' idClassSel ')' { $$ = new AstFClose($1, $3); }
| yD_FINISH parenE { $$ = new AstFinish($1); } | yD_FINISH parenE { $$ = new AstFinish($1); }
| yD_FINISH '(' expr ')' { $$ = new AstFinish($1); } | yD_FINISH '(' expr ')' { $$ = new AstFinish($1); }
@ -2062,7 +2062,7 @@ system_f_call<nodep>: // IEEE: system_tf_call (as func)
| yD_ISUNKNOWN '(' expr ')' { $$ = new AstIsUnknown($1,$3); } | yD_ISUNKNOWN '(' expr ')' { $$ = new AstIsUnknown($1,$3); }
| yD_ONEHOT '(' expr ')' { $$ = new AstOneHot($1,$3); } | yD_ONEHOT '(' expr ')' { $$ = new AstOneHot($1,$3); }
| yD_ONEHOT0 '(' expr ')' { $$ = new AstOneHot0($1,$3); } | yD_ONEHOT0 '(' expr ')' { $$ = new AstOneHot0($1,$3); }
| yD_RANDOM '(' expr ')' { $1->v3error("Unsupported: Seeding $random doesn't map to C++, use $c(\"srand\")\n"); } | yD_RANDOM '(' expr ')' { $1->v3error("Unsupported: Seeding $random doesn't map to C++, use $c(\"srand\")"); }
| yD_RANDOM parenE { $$ = new AstRand($1); } | yD_RANDOM parenE { $$ = new AstRand($1); }
| yD_SIGNED '(' expr ')' { $$ = new AstSigned($1,$3); } | yD_SIGNED '(' expr ')' { $$ = new AstSigned($1,$3); }
| yD_STIME parenE { $$ = new AstSel($1,new AstTime($1),0,32); } | yD_STIME parenE { $$ = new AstSel($1,new AstTime($1),0,32); }
@ -2109,7 +2109,7 @@ lifetimeE: // IEEE: [lifetime]
lifetime: // ==IEEE: lifetime lifetime: // ==IEEE: lifetime
// // Note lifetime used by members is instead under memberQual // // Note lifetime used by members is instead under memberQual
ySTATIC { $1->v3error("Unsupported: Static in this context\n"); } ySTATIC { $1->v3error("Unsupported: Static in this context"); }
| yAUTOMATIC { } | yAUTOMATIC { }
; ;