From fbd72a2108d1c05ef7f50acd71d518e769abcced Mon Sep 17 00:00:00 2001 From: Gaius Mulley Date: Mon, 11 Sep 2023 22:28:01 +0100 Subject: [PATCH] PR modula2/111330 Bootstrap failure building SeqFile.lo cc1gm2 issues a runtime case statement error and terminates when building SeqFile.lo on Fedora mock. There are four missing labels from the largest case statement in M2SymInit.mod. This patch adds the case labels and appropriate actions. gcc/m2/ChangeLog: PR modula2/111330 * gm2-compiler/M2SymInit.mod (CheckReadBeforeInitQuad): Add case labels LogicalDiffOp, DummyOp, OptParamOp and InitAddressOp. Signed-off-by: Gaius Mulley --- gcc/m2/gm2-compiler/M2SymInit.mod | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gcc/m2/gm2-compiler/M2SymInit.mod b/gcc/m2/gm2-compiler/M2SymInit.mod index b629ed87ed7..18a854b5bba 100644 --- a/gcc/m2/gm2-compiler/M2SymInit.mod +++ b/gcc/m2/gm2-compiler/M2SymInit.mod @@ -1318,6 +1318,7 @@ BEGIN LogicalOrOp, LogicalAndOp, LogicalXorOp, + LogicalDiffOp, CoerceOp, ConvertOp, CastOp, @@ -1368,7 +1369,10 @@ BEGIN RestorePriorityOp, RangeCheckOp, ModuleScopeOp, - ErrorOp : | + ErrorOp, + DummyOp, + OptParamOp, + InitAddressOp : | END ; RETURN FALSE