diff options
author | Gaius Mulley <gaiusmod2@gmail.com> | 2025-06-06 10:46:48 +0100 |
---|---|---|
committer | Gaius Mulley <gaiusmod2@gmail.com> | 2025-06-06 10:46:48 +0100 |
commit | 16ab791531ec16fd4596a25efbe6b42e6c16171f (patch) | |
tree | 52ffe4f5db37ad5bf83b07e0de19a55b43f0e4b0 /libgcc/config/t-libunwind | |
parent | 61b014f614be523174f6a9df6e1fbac11de11abd (diff) | |
download | gcc-master.zip gcc-master.tar.gz gcc-master.tar.bz2 |
The patch checks whether a return statement is allowed. It also checks
to see that a return expression is allowed.
gcc/m2/ChangeLog:
PR modula2/120542
* gm2-compiler/M2Quads.mod (BuildReturnLower): New procedure.
(BuildReturn): Allow return without an expression from
module initialization blocks. Generate an error if an
expression is provided. Call BuildReturnLower if no error
was seen.
gcc/testsuite/ChangeLog:
PR modula2/120542
* gm2/iso/fail/badreturn.mod: New test.
* gm2/iso/fail/badreturn2.mod: New test.
* gm2/iso/pass/modulereturn.mod: New test.
* gm2/iso/pass/modulereturn2.mod: New test.
Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
Diffstat (limited to 'libgcc/config/t-libunwind')
0 files changed, 0 insertions, 0 deletions