modula-2, libm2min: Declare abort and exit as expected.
commit2d2edf108026b7e2591900f995bc558ce8d45c6d
authorIain Sandoe <iain@sandoe.co.uk>
Sat, 7 Jan 2023 15:27:01 +0000 (7 15:27 +0000)
committerIain Sandoe <iain@sandoe.co.uk>
Sat, 7 Jan 2023 19:39:59 +0000 (7 19:39 +0000)
treed06fde30a8918e43db8dcbd99c5fdbf1741a3350
parent727bd5d478ff8035e4f26e939d690fd3752d4133
modula-2, libm2min: Declare abort and exit as expected.

The build is currently emitting a warning that abort() is declared differently
from the built-in.  This updates the declaration to match expectations.

Signed-off-by: Iain Sandoe <iain@sandoe.co.uk>
gcc/m2/ChangeLog:

* gm2-libs-min/libc.c (abort): Update declaration to match the
expected form, add no-return attribute.
(exit): Add no-return attribute.
gcc/m2/gm2-libs-min/libc.c