Gaius Mulley e5f6a5ad7c PR modula2/111530: Build failure on BSD due to getopt_long_only GNU extension dependency
This patch uses the libiberty getopt long functions (wrapped up inside
libgm2/libm2pim/cgetopt.cc) and only enables this implementation if
libgm2/configure.ac detects no getopt_long and friends on the target.

gcc/m2/ChangeLog:

	PR modula2/111530
	* gm2-libs-ch/cgetopt.c (cgetopt_cgetopt_long): Re-format.
	(cgetopt_cgetopt_long_only): Re-format.
	(cgetopt_SetOption):  Re-format and assign flag to NULL
	if name is also NULL.
	* gm2-libs/GetOpt.def (AddLongOption): Add index parameter
	and change flag to be a VAR parameter rather than a pointer.
	(GetOptLong): Re-format.
	(GetOpt): Correct comment.
	* gm2-libs/GetOpt.mod: Re-write to rely on cgetopt rather
	than implement long option creation in GetOpt.
	* gm2-libs/cgetopt.def (SetOption): has_arg type is INTEGER.

libgm2/ChangeLog:

	PR modula2/111530
	* Makefile.in: Regenerate.
	* aclocal.m4: Regenerate.
	* config.h.in: Regenerate.
	* configure: Regenerate.
	* configure.ac (AC_CHECK_HEADERS): Include getopt.h.
	(GM2_CHECK_LIB): getopt_long check.
	(GM2_CHECK_LIB): getopt_long_only check.
	* libm2cor/Makefile.in: Regenerate.
	* libm2iso/Makefile.in: Regenerate.
	* libm2log/Makefile.in: Regenerate.
	* libm2min/Makefile.in: Regenerate.
	* libm2pim/Makefile.in: Regenerate.
	* libm2pim/cgetopt.cc: Re-write using conditional on configure
	and long function code from libiberty/getopt.c.

gcc/testsuite/ChangeLog:

	PR modula2/111530
	* gm2/pimlib/run/pass/testgetopt.mod: New test.

Signed-off-by: Gaius Mulley <gaiusmod2@gmail.com>
2023-10-27 15:54:48 +01:00
2023-06-23 00:16:38 +00:00
2023-09-16 00:17:55 +00:00
2023-10-06 00:17:37 +00:00
2023-08-18 00:16:52 +00:00
2023-04-26 00:17:46 +00:00
2023-10-26 00:17:43 +00:00
2023-08-08 00:17:37 +00:00
2023-08-08 00:17:37 +00:00
2023-10-27 00:17:12 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-06-16 00:17:18 +00:00
2023-10-24 00:17:34 +00:00
2023-06-16 00:17:18 +00:00
2023-10-27 00:17:12 +00:00
2023-10-25 00:19:04 +00:00
2023-10-23 00:16:43 +00:00
2023-10-26 00:17:43 +00:00
2023-08-23 00:17:59 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-10-24 00:17:34 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-10-27 00:17:12 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-07-08 00:16:53 +00:00
2023-10-23 00:16:43 +00:00
2023-10-23 00:16:43 +00:00
2023-10-15 22:40:42 +05:45
2023-10-15 22:40:42 +05:45
2023-10-05 12:00:39 -04:00

This directory contains the GNU Compiler Collection (GCC).

The GNU Compiler Collection is free software.  See the files whose
names start with COPYING for copying permission.  The manuals, and
some of the runtime libraries, are under different terms; see the
individual source files for details.

The directory INSTALL contains copies of the installation information
as HTML and plain text.  The source of this information is
gcc/doc/install.texi.  The installation information includes details
of what is included in the GCC sources and what files GCC installs.

See the file gcc/doc/gcc.texi (together with other files that it
includes) for usage and porting information.  An online readable
version of the manual is in the files gcc/doc/gcc.info*.

See http://gcc.gnu.org/bugs/ for how to report bugs usefully.

Copyright years on GCC source files may be listed using range
notation, e.g., 1987-2012, indicating that every year in the range,
inclusive, is a copyrightable year that could otherwise be listed
individually.
Description
No description provided
Readme 4.2 GiB
Languages
C++ 30.8%
C 30.2%
Ada 14.4%
D 6.1%
Go 5.7%
Other 12.3%