Fix compile error when using bison 3.6.1 (#2320)
Workaround issue: bison 3.6.1 generated unexpected nested-comment Closes: https://github.com/verilator/verilator/issues/2320 Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
parent
f005b7fd87
commit
68d7596adf
|
|
@ -14,6 +14,7 @@ Garrett Smith
|
||||||
Geza Lore
|
Geza Lore
|
||||||
Gianfranco Costamagna
|
Gianfranco Costamagna
|
||||||
Howard Su
|
Howard Su
|
||||||
|
Huang Rui
|
||||||
Iztok Jeras
|
Iztok Jeras
|
||||||
James Hanlon
|
James Hanlon
|
||||||
Jeremy Bennett
|
Jeremy Bennett
|
||||||
|
|
|
||||||
|
|
@ -212,6 +212,8 @@ sub clean_output {
|
||||||
$line =~ s!\(YY_\("!(YY_((char*)"!g;
|
$line =~ s!\(YY_\("!(YY_((char*)"!g;
|
||||||
# Fix bison 2.3 glr-parser warning about yyerrorloc.YYTYPE::yydummy uninit
|
# Fix bison 2.3 glr-parser warning about yyerrorloc.YYTYPE::yydummy uninit
|
||||||
$line =~ s!(YYLTYPE yyerrloc;)!$1 yyerrloc.yydummy=0;/*bisonpre*/!g;
|
$line =~ s!(YYLTYPE yyerrloc;)!$1 yyerrloc.yydummy=0;/*bisonpre*/!g;
|
||||||
|
# Fix bison 3.6.1 unexpected nested-comment
|
||||||
|
$line =~ s!/\* "/\*.*\*/" \*/!!g;
|
||||||
$fh->write($line);
|
$fh->write($line);
|
||||||
}
|
}
|
||||||
$fh->close;
|
$fh->close;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue