gcc/libgm2
Gaius Mulley 3af2af1579 modula2: -Wcase-enum detect singular/plural and use switch during build
This patch generates a singular or plural message relating to the
number of enums missing.  Use -Wcase-enum when building of the
modula-2 libraries and m2/stage2/cc1gm2.

gcc/m2/ChangeLog:

	* Make-lang.in (GM2_FLAGS): Add -Wcase-enum.
	(GM2_ISO_FLAGS): Add -Wcase-enum.
	* gm2-compiler/M2CaseList.mod (EnumerateErrors): Issue
	singular or plural start text prior to the enum list.
	Remove unused parameter tokenno.
	(EmitMissingRangeErrors): New procedure.
	(MissingCaseBounds): Call EmitMissingRangeErrors.
	(MissingCaseStatementBounds): Call EmitMissingRangeErrors.
	* gm2-libs-iso/TextIO.mod: Fix spacing.

libgm2/ChangeLog:

	* libm2cor/Makefile.am (libm2cor_la_M2FLAGS): Add
	-Wcase-enum.
	* libm2cor/Makefile.in: Regenerate.
	* libm2iso/Makefile.am (libm2iso_la_M2FLAGS): Add
	-Wcase-enum.
	* libm2iso/Makefile.in: Regenerate.
	* libm2log/Makefile.am (libm2log_la_M2FLAGS): Add
	-Wcase-enum.
	* libm2log/Makefile.in: Regenerate.
	* libm2pim/Makefile.am (libm2pim_la_M2FLAGS): Add
	-Wcase-enum.
	* libm2pim/Makefile.in: Regenerate.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2023-09-13 15:51:59 +01:00
..
libm2cor modula2: -Wcase-enum detect singular/plural and use switch during build 2023-09-13 15:51:59 +01:00
libm2iso modula2: -Wcase-enum detect singular/plural and use switch during build 2023-09-13 15:51:59 +01:00
libm2log modula2: -Wcase-enum detect singular/plural and use switch during build 2023-09-13 15:51:59 +01:00
libm2min Remove stale Autoconf checks for Perl 2023-06-02 09:51:14 +02:00
libm2pim modula2: -Wcase-enum detect singular/plural and use switch during build 2023-09-13 15:51:59 +01:00
aclocal.m4 PR modula2/109879 WholeIO.ReadCard and ReadInt should consume leading space 2023-05-17 00:18:56 +01:00
ChangeLog Daily bump. 2023-08-13 00:16:46 +00:00
config.h.in PR modula2/110779: libgm2 fix solaris bootstrap check for tm_gmtoff 2023-08-09 09:35:13 +01:00
configure PR modula2/110779 SysClock can not read the clock (Darwin portability fixes) 2023-08-12 18:17:41 +01:00
configure.ac PR modula2/110779 SysClock can not read the clock (Darwin portability fixes) 2023-08-12 18:17:41 +01:00
Makefile.am libgm2: Adjust 'autogen.sh' to 'ACLOCAL_AMFLAGS', and simplify 2023-05-08 15:51:59 +02:00
Makefile.in Remove stale Autoconf checks for Perl 2023-06-02 09:51:14 +02:00