56ec5f3245
This patch moves more of the C support files in the modula-2 library into C++ files with a dynamic scaffold signature. It also tidied up the interface to UnixArgs and required a rebuild of the bootstrap tool mc. 2022-06-29 Gaius Mulley <gaius.mulley@southwales.ac.uk> gcc/m2/ChangeLog: * bnf/gm2l.bnf (BlockInfoPtr): Capitalized comment starts. * gm2-libs-ch/UnixArgs.cc: Rewritten from UnixArgs.c in C++ with ctor scaffold. * gm2-libs-ch/dtoa.cc (M2_dtoa_init): Added correct argc, argv, envp parameters. (M2_dtoa_finish) Added correct argc, argv, envp parameters. (M2_dtoa_dep) New function. (M2_dtoa_ctor) New function. * gm2-libs-ch/ldtoa.cc (M2_ldtoa_init): Added correct argc, argv, envp parameters. (M2_ldtoa_finish) Added correct argc, argv, envp parameters. (M2_ldtoa_dep) New function. (M2_ldtoa_ctor) New function. * gm2-libs-iso/ProgramArgs.mod: Changed to use GetArgC and GetArgV. * gm2-libs/Args.def: Renamed parameter name from i to n. * gm2-libs/Args.mod: Changed to use GetArgC and GetArgV. * gm2-libs/SArgs.def: Renamed parameter name from i to n. * gm2-libs/SArgs.mod: Changed to use GetArgC and GetArgV. * gm2-libs/UnixArgs.def: Rewritten to export GetArgC, GetArgV and GetEnvV. * init/mcinit: Commented out M2Dependent. * mc-boot-ch/GM2LINK.c: Include cstddef.h and declare ForcedModuleInitOrder. * mc-boot-ch/GUnixArgs.cc: Rewritten in C++ from GUnixArgs.c. * mc-boot/GArgs.c: Rebuilt. * mc-boot/GArgs.h: Rebuilt. * mc-boot/GM2RTS.c: Rebuilt. * mc-boot/GM2RTS.h: Rebuilt. * mc-boot/GSArgs.c: Rebuilt. * mc-boot/GSArgs.h: Rebuilt. * mc-boot/GUnixArgs.h: Rebuilt. * mc-boot/Gdecl.c: Rebuilt. * mc/mc.flex: Rebuilt. libgm2/ChangeLog: * libm2pim/Makefile.am (libm2pim_la_SOURCES): UnixArgs.c removed UnixArgs.cc added. (libm2pim_la_SOURCES) sckt.c removed sckt.cc added. (libm2pim_la_SOURCES) dtoa.c removed dtoa.cc added. (libm2pim_la_SOURCES) ldtoa.c removed ldtoa.cc added. (libm2pim_la_SOURCES) Selective.c removed Selective.cc added. * libm2pim/UnixArgs.cc: Rewritten in C++. * libm2pim/dtoa.cc: Rewritten in C++. * libm2pim/ldtoa.cc: Rewritten in C++. * libm2pim/sckt.cc: Rewritten in C++. Signed-off-by: Gaius Mulley <gaius.mulley@southwales.ac.uk> |
||
---|---|---|
c++tools | ||
config | ||
contrib | ||
fixincludes | ||
gcc | ||
gm2tools | ||
gnattools | ||
gotools | ||
include | ||
INSTALL | ||
intl | ||
libada | ||
libatomic | ||
libbacktrace | ||
libcc1 | ||
libcody | ||
libcpp | ||
libdecnumber | ||
libffi | ||
libgcc | ||
libgfortran | ||
libgm2 | ||
libgo | ||
libgomp | ||
libiberty | ||
libitm | ||
libobjc | ||
liboffloadmic | ||
libphobos | ||
libquadmath | ||
libsanitizer | ||
libssp | ||
libstdc++-v3 | ||
libvtv | ||
lto-plugin | ||
maintainer-scripts | ||
zlib | ||
.dir-locals.el | ||
.gitattributes | ||
.gitignore | ||
ABOUT-NLS | ||
ar-lib | ||
ChangeLog | ||
ChangeLog.jit | ||
ChangeLog.tree-ssa | ||
compile | ||
config-ml.in | ||
config.guess | ||
config.rpath | ||
config.sub | ||
configure | ||
configure.ac | ||
COPYING | ||
COPYING3 | ||
COPYING3.LIB | ||
COPYING.LIB | ||
COPYING.RUNTIME | ||
depcomp | ||
install-sh | ||
libtool-ldflags | ||
libtool.m4 | ||
lt~obsolete.m4 | ||
ltgcc.m4 | ||
ltmain.sh | ||
ltoptions.m4 | ||
ltsugar.m4 | ||
ltversion.m4 | ||
MAINTAINERS | ||
Makefile.def | ||
Makefile.in | ||
Makefile.tpl | ||
missing | ||
mkdep | ||
mkinstalldirs | ||
move-if-change | ||
multilib.am | ||
README | ||
symlink-tree | ||
test-driver | ||
ylwrap |
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.