PR modula2/110126 variables are reported as unused when referenced by ASM fix
commitbf470895905e9152424076d1630a9d2c60de023b
authorGaius Mulley <gaiusmod2@gmail.com>
Mon, 12 Jun 2023 14:25:39 +0000 (12 15:25 +0100)
committerGaius Mulley <gaiusmod2@gmail.com>
Mon, 12 Jun 2023 14:25:39 +0000 (12 15:25 +0100)
treea0f749a7fb752092a2c93a32fbbe33a630a34473
parent7a4794af9aa2d7621b67ea026f29a771590f61a1
PR modula2/110126 variables are reported as unused when referenced by ASM fix

This patch fixes the trash list of the asm statement.  It introduces a
separate build procedure for trashed elements.

gcc/m2/ChangeLog:

PR modula2/110126
* gm2-compiler/M2Quads.def (BuildAsmElement): Remove
trash parameter.
(BuildAsmTrash): New procedure.
* gm2-compiler/M2Quads.mod (BuildAsmTrash): New procedure.
(BuildAsmElement): Remove trash parameter.
* gm2-compiler/P3Build.bnf (AsmTrashList): Rewrite.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
gcc/m2/gm2-compiler/M2Quads.def
gcc/m2/gm2-compiler/M2Quads.mod
gcc/m2/gm2-compiler/P3Build.bnf