mirror of
https://github.com/verilator/verilator.git
synced 2025-04-21 12:06:55 +00:00
Fix ENDLABEL warnings on escaped identifiers.
This commit is contained in:
parent
f62bc6a2e5
commit
5f262a8f11
2
Changes
2
Changes
@ -9,6 +9,8 @@ indicates the contributor was also the author of the fix; Thanks!
|
|||||||
|
|
||||||
**** Fix huge shifts to zero with -Wno-WIDTH, bug765. [Clifford Wolf]
|
**** Fix huge shifts to zero with -Wno-WIDTH, bug765. [Clifford Wolf]
|
||||||
|
|
||||||
|
**** Fix ENDLABEL warnings on escaped identifiers.
|
||||||
|
|
||||||
|
|
||||||
* Verilator 3.860 2014-05-11
|
* Verilator 3.860 2014-05-11
|
||||||
|
|
||||||
|
@ -100,7 +100,8 @@ public:
|
|||||||
}
|
}
|
||||||
void endLabel(FileLine* fl, AstNode* nodep, string* endnamep) { endLabel(fl, nodep->prettyName(), endnamep); }
|
void endLabel(FileLine* fl, AstNode* nodep, string* endnamep) { endLabel(fl, nodep->prettyName(), endnamep); }
|
||||||
void endLabel(FileLine* fl, string name, string* endnamep) {
|
void endLabel(FileLine* fl, string name, string* endnamep) {
|
||||||
if (fl && endnamep && *endnamep != "" && name != *endnamep) {
|
if (fl && endnamep && *endnamep != "" && name != *endnamep
|
||||||
|
&& name != AstNode::prettyName(*endnamep)) {
|
||||||
fl->v3warn(ENDLABEL,"End label '"<<*endnamep<<"' does not match begin label '"<<name<<"'");
|
fl->v3warn(ENDLABEL,"End label '"<<*endnamep<<"' does not match begin label '"<<name<<"'");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -27,10 +27,10 @@ module t (/*AUTOARG*/
|
|||||||
|
|
||||||
// finish report
|
// finish report
|
||||||
always @ (posedge clk)
|
always @ (posedge clk)
|
||||||
if (cnt==SIZE) begin : if_cnt_finish
|
if (cnt==SIZE) begin : \0escaped___name
|
||||||
$write("*-* All Finished *-*\n");
|
$write("*-* All Finished *-*\n");
|
||||||
$finish;
|
$finish;
|
||||||
end : if_cnt_finish
|
end : \0escaped___name
|
||||||
|
|
||||||
generate
|
generate
|
||||||
for (i=0; i<SIZE; i=i+1) begin : generate_for
|
for (i=0; i<SIZE; i=i+1) begin : generate_for
|
||||||
|
Loading…
Reference in New Issue
Block a user