aboutsummaryrefslogtreecommitdiffstats
path: root/passes
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2021-11-05 10:51:58 +0100
committerMiodrag Milanovic <mmicko@gmail.com>2021-11-05 10:51:58 +0100
commitd5de2a0cdb3dcfe553a841db24f273e074d8f49d (patch)
treedcd2d709ccf9330e2c605ea14c7b1d17944bb252 /passes
parentcbb6887ac846dbbaa420253a9f3656bd3b6bd92d (diff)
downloadyosys-d5de2a0cdb3dcfe553a841db24f273e074d8f49d.tar.gz
yosys-d5de2a0cdb3dcfe553a841db24f273e074d8f49d.tar.bz2
yosys-d5de2a0cdb3dcfe553a841db24f273e074d8f49d.zip
Make it work on all
Diffstat (limited to 'passes')
-rw-r--r--passes/pmgen/pmgen.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/passes/pmgen/pmgen.py b/passes/pmgen/pmgen.py
index c599d31a6..6e2fabeeb 100644
--- a/passes/pmgen/pmgen.py
+++ b/passes/pmgen/pmgen.py
@@ -679,14 +679,16 @@ with open(outfile, "w") as f:
print("#undef subpattern", file=f)
print("", file=f)
- print("YS_MAYBE_UNUSED rollback_label:;", file=f)
+ print("rollback_label:", file=f)
+ print(" YS_MAYBE_UNUSED;", file=f)
if len(block["fcode"]):
print("#define accept do { accept_cnt++; on_accept(); } while(0)", file=f)
print("#define finish do { rollback = -1; goto finish_label; } while(0)", file=f)
for line in block["fcode"]:
print(" " + line, file=f)
- print("YS_MAYBE_UNUSED finish_label:;", file=f)
+ print("finish_label:", file=f)
+ print(" YS_MAYBE_UNUSED;", file=f)
print("#undef accept", file=f)
print("#undef finish", file=f)