[v4,1/19] modula2 front end: changes outside gcc/m2, libgm2 and gcc/testsuite.
Checks
Commit Message
While writing the ChangeLog entries git gcc-verify spotted an oversight
with v3 of this patch set. I had forgotten to post gm2.texi and also a
tiny patchlet in gcc/configure.ac (to detect Python). HAVE_PYTHON is
used within gcc/m2/Make-lang.in to avoid generating the library section
included by gm2.texi should Python not be available.
ok to commit? I've included gm2-lang.cc and lang.opt for reference.
regards,
Gaius
Comments
On Sat, Dec 10, 2022 at 1:49 AM Gaius Mulley via Gcc-patches
<gcc-patches@gcc.gnu.org> wrote:
>
>
> While writing the ChangeLog entries git gcc-verify spotted an oversight
> with v3 of this patch set. I had forgotten to post gm2.texi and also a
> tiny patchlet in gcc/configure.ac (to detect Python). HAVE_PYTHON is
> used within gcc/m2/Make-lang.in to avoid generating the library section
> included by gm2.texi should Python not be available.
The configure check doesn't verify the python version. Does
--enable-generated-files-in-srcdir (used when building release
tarballs) generate the required section so it's packed up in the
release tarball and avoid requiring python3 when building from the
release tarball?
Note these kind of dependences should be mentioned in
install.texi - for python also listing required modules would be nice.
Thanks,
Richard.
> ok to commit? I've included gm2-lang.cc and lang.opt for reference.
The python script would have been more informative, the generated
.texi fragment and the Make-lang.in part as well
> regards,
> Gaius
>
>
>
>
> diff -ruw gcc-git-master/gcc/configure.ac gcc-git-devel-modula2/gcc/configure.ac
> --- gcc-git-master/gcc/configure.ac 2022-12-07 20:16:24.571677189 +0000
> +++ gcc-git-devel-modula2/gcc/configure.ac 2022-12-07 19:46:20.036302786 +0000
> @@ -1263,6 +1263,10 @@
> # Bison?
> AC_CHECK_PROGS([BISON], bison, [$MISSING bison])
>
> +# Python3?
> +AM_PATH_PYTHON(,, [:])
> +AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
> +
> # Binutils are not build modules, unlike bison/flex/makeinfo. So we
> # check for build == host before using them.
>
> @@ -7651,4 +7655,3 @@
> ],
> [subdirs='$subdirs'])
> AC_OUTPUT
> -
> diff -ruw /dev/null gcc-git-devel-modula2/gcc/doc/gm2.texi
> --- /dev/null 2022-08-24 16:22:16.888000070 +0100
> +++ gcc-git-devel-modula2/gcc/doc/gm2.texi 2022-12-10 00:04:30.263603238 +0000
> @@ -0,0 +1,2944 @@
> +\input texinfo
> +@c -*-texinfo-*-
> +@c Copyright (C) 2001-2022 Free Software Foundation, Inc.
> +@c This is part of the GM2 manual.
> +
> +@c User level documentation for GNU Modula-2
> +@c
> +@c header
> +
> +@setfilename gm2.info
> +@settitle The GNU Modula-2 Compiler
> +
> +@set version-python 3.5
> +
> +@include gcc-common.texi
> +
> +@c Copyright years for this manual.
> +@set copyrights-gm2 1999-2022
> +
> +@copying
> +@c man begin COPYRIGHT
> +Copyright @copyright{} @value{copyrights-gm2} Free Software Foundation, Inc.
> +
> +Permission is granted to copy, distribute and/or modify this document
> +under the terms of the GNU Free Documentation License, Version 1.3 or
> +any later version published by the Free Software Foundation; with no
> +Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
> +A copy of the license is included in the
> +@c man end
> +section entitled ``GNU Free Documentation License''.
> +@ignore
> +@c man begin COPYRIGHT
> +man page gfdl(7).
> +@c man end
> +@end ignore
> +@end copying
> +
> +@ifinfo
> +@format
> +@dircategory Software development
> +@direntry
> +* gm2: (gm2). A GCC-based compiler for the Modula-2 language
> +@end direntry
> +@end format
> +
> +@insertcopying
> +@end ifinfo
> +
> +@titlepage
> +@title The GNU Modula-2 Compiler
> +@versionsubtitle
> +@author Gaius Mulley
> +
> +@page
> +@vskip 0pt plus 1filll
> +Published by the Free Software Foundation @*
> +51 Franklin Street, Fifth Floor@*
> +Boston, MA 02110-1301, USA@*
> +@sp 1
> +@insertcopying
> +@end titlepage
> +@contents
> +@page
> +
> +@c `Top' Node and Master Menu
> +
> +@node Top, Overview, (dir), (dir)
> +@top Introduction
> +
> +@menu
> +* Overview:: What is GNU Modula-2.
> +* Using:: Using GNU Modula-2.
> +* Licence:: Licence of GNU Modula-2
> +* Copying:: GNU Public Licence V3.
> +* Contributing:: Contributing to GNU Modula-2
> +* Internals:: GNU Modula-2 internals.
> +* EBNF:: EBNF of GNU Modula-2
> +* Libraries:: PIM and ISO library definitions.
> +* Indices:: Document and function indices.
> +@end menu
> +
> +@node Overview, Using, Top, Top
> +@chapter Overview of GNU Modula-2
> +
> +@menu
> +* What is GNU Modula-2:: Brief description of GNU Modula-2.
> +* Why use GNU Modula-2:: Advantages of GNU Modula-2.
> +* News:: Latest news about GNU Modula-2.
> +* Development:: How to get source code using git.
> +* Obtaining:: Where to get the source code using git.
> +* Features:: GNU Modula-2 Features
> +@end menu
> +
> +@node What is GNU Modula-2, Why use GNU Modula-2, , Using
> +@section What is GNU Modula-2
> +
> +GNU Modula-2 is a @uref{http://gcc.gnu.org/frontends.html, front end}
> +for the GNU Compiler Collection (@uref{http://gcc.gnu.org/, GCC}).
> +The GNU Modula-2 compiler is compliant with the PIM2, PIM3, PIM4 and
> +ISO dialects. Also implemented are a complete set of free ISO
> +libraries and PIM libraries.
> +
> +@footnote{The four Modula-2 dialects supported are defined in the following
> +references:
> +
> +PIM2: 'Programming in Modula-2', 2nd Edition, Springer Verlag, 1982,
> +1983 by Niklaus Wirth (PIM2).
> +
> +PIM3: 'Programming in Modula-2', 3rd Corrected Edition, Springer Verlag,
> +1985 (PIM3).
> +
> +PIM4: 'Programming in Modula-2', 4th Edition, Springer Verlag, 1988
> +(@uref{http://freepages.modula2.org/report4/modula-2.html, PIM4}).
> +
> +ISO: the ISO Modula-2 language as defined in 'ISO/IEC Information
> +technology - programming languages - part 1: Modula-2 Language,
> +ISO/IEC 10514-1 (1996)'
> +}
> +
> +@node Why use GNU Modula-2, Release map, What is GNU Modula-2, Using
> +@section Why use GNU Modula-2
> +
> +There are a number of advantages of using GNU Modula-2 rather than
> +translate an existing project into another language.
> +
> +The first advantage is of maintainability of the original sources
> +and the ability to debug the original project source code using a
> +combination of gm2 and gdb.
> +
> +The second advantage is that gcc runs on many processors and
> +platforms. gm2 builds and runs on powerpc64le, amd64, i386, aarch64
> +to name but a few processors.
> +
> +The compiler provides semantic analysis and runtime checking (full ISO
> +Modula-2 checking is implemented) and there is a plugin which can,
> +under certain conditions, detect runtime errors at compile time.
> +
> +gm2 can produce swig interface headers to allow access from Python and
> +other scripting languages. The compiler supports PIM2, PIM3, PIM4 and
> +ISO dialects of Modula-2, work is underway to implement M2R10. Many
> +of the GCC builtins are available and access to assembly programming
> +is achieved using the same syntax as that used by GCC.
> +
> +@node Release map, News, Why use GNU Modula-2, Using
> +@section Release map
> +
> +GNU Modula-2 is now part of GCC and therefore will adopt the GCC
> +release schedule with a git branches matching the various GCC release
> +numbers. It is intended that GNU Modula-2 implement more of the GCC
> +builtins (vararg access) and GCC features.
> +
> +There is an intention to implement the M2R10 dialect of Modula-2 and
> +any of the language changes. If you wish to see something different
> +please email @email{gm2@@nongnu.org} with your ideas.
> +
> +@node News, Features, Release map, Using
> +@section News
> +
> +@table @code
> +
> +@item gm2 release numbers
> +are now superceded by gcc branch numbers as gm2
> +is tracking the gcc release model.
> +
> +@item accuracy of error messages
> +has been improved and offending subexpressions are now highlighted.
> +
> +@item new type checker
> +has been implemented which will check
> +all data types, including recursive procedure parameter types.
> +
> +@item libraries
> +the gm2 driver program has been enhanced to allow third party
> +libraries to be installed alongside gm2 libraries. For example if the
> +user specifies library @code{foo} using @code{-flibs=foo} the driver
> +will check the standard GCC install directory for a subdirectory
> +@code{foo}.
> +
> +@item libpth
> +has been removed from gm2 and the coroutines are now implemented using
> +the gcc portable threading library.
> +
> +@item libulm
> +the Ulm libraries have been removed from the gm2 tree as they were not
> +GPL3.
> +
> +@item Talk given at The GNU Tools Cauldron 2018
> +here is a talk on GNU Modula-2 given at
> +@url{https://gcc.gnu.org/wiki/cauldron2018,The GNU Tools Cauldron},
> +Manchester on 8th September 2018.
> +The title is, ``GNU Modula-2 update, catching semantic errors post
> +code optimisation and improved debugging''
> +[@url{https://splendidisolation.ddns.net/Papers/paper23/talk.pdf,slides}
> +and @url{https://www.youtube.com/watch?v=6jf6weRuHjk,video}].
> +
> +@item gm2 1.8.2
> +was released on Aug 30th 2018. gm2-1.8.2 grafts onto gcc-8.2.0
> +and contains integer overflow detection for addition, subtraction,
> +negation and multiplication. It also detects and traps when
> +a floating point nan occurs. This is the first release with the
> +new semantic checking plugin which checks whether any exception
> +will occur post optimization (see -fsoft-check-all). The compiler
> +also works well with the automake tools.
> +
> +@item gm2 1.2.0
> +was released on May 11th 2017. gm2-1.2.0 grafts onto gcc-5.2.0 and
> +supports much better line number accuracy in debugging output.
> +Source to code relationship can be further improved by the new option
> +-fm2-g. -fm2-whole-program also provides whole program optimization.
> +@item Talk given at The GNU Tools Cauldron 2016
> +here is a talk on GNU Modula-2 given at
> +@url{https://gcc.gnu.org/wiki/cauldron2016,The GNU Tools Cauldron},
> +Hebden Bridge on 9th September 2016.
> +The title is, ``GNU Modula-2 status, whole
> +program optimisation and language interoperability''
> +[@url{https://splendidisolation.ddns.net/Papers/paper22/talk.pdf,slides}
> +and @url{https://www.youtube.com/watch?v=8GMyxwHdr1E,video}].
> +@item gm2 1.1.6
> +was released on February 22nd 2016. gm2-1.1.6 grafts onto gcc-4.7.4.
> +@item gm2 1.1.5
> +was released on September 3 2015, passes all regression tests and has
> +many bug fixes applied. Arrays and Records can be assigned to and from
> +WORD, LOC, BYTE providing sizes permit. Also a small number of fixes
> +to the library module MemStream.mod. Fixed a number of bugs shown by
> +valgrind.
> +@item gm2 1.1.3
> +was released on April 15 2015. gm2-1.1.3 passes all regression
> +tests on Debian Wheezy (x86_64) and (i686). Also passes all regression tests
> +under Debian Jessie (x86_64). It also builds on armv7l Ubuntu Trusty Tahr.
> +@item gm2 1.1.1
> +was released on January 26 2015. gm2-1.1.1 passes all regression
> +tests on Debian Wheezy (x86_64) and (i686). Also passes all regression tests
> +under Debian Jessie (x86_64).
> +@item gm2 1.1.0
> +was released on January 02 2015. gm2-1.1.0 passes all regression
> +tests on Debian Wheezy (x86_64) and (i686).
> +@item gm2 1.0.9
> +Beta was released on September 23 2014, all regressions passed on
> +x86_64 Debian Wheezy.
> +@item gm2 1.0.4
> +was released on September 30 2011. This is a bug fix release.
> +@item gm2 1.0
> +was released on December 11 2010.
> +@end table
> +
> +@node Development, Obtaining, News, Using
> +@section How to get source code using git
> +
> +GNU Modula-2 is in the process of migrating into the
> +@url{https://gcc.gnu.org/git.html, GCC git tree}. The development
> +branch is available via git:
> +
> +@example
> +$ git clone git://gcc.gnu.org/git/gcc.git gcc-git-devel-modula2
> +$ cd gcc-git-devel-modula2
> +$ git checkout devel/modula-2
> +$ cd ..
> +@end example
> +
> +@node Obtaining, Features, Development, Using
> +
> +GNU Modula-2 is in the process of migrating into the
> +@url{https://gcc.gnu.org/git.html, GCC git tree}.
> +@xref{Development, , ,gm2} section in this GM2 documentation for git
> +details and @xref{Downloading the source, , ,gcc} in the GCC
> +documentation.
> +
> +@node Features, Documentation, News, Using
> +@section GNU Modula-2 Features
> +
> +@itemize @bullet
> +
> +@item
> +the compiler currently complies with Programming in Modula-2 Edition
> +2, 3, 4 and ISO Modula-2. Users can switch on specific language
> +features by using: @samp{-fpim}, @samp{-fpim2}, @samp{-fpim3},
> +@samp{-fpim4} or @samp{-fiso}.
> +
> +@item
> +the option @samp{-fswig} will automatically create a swig interface
> +file which corresponds to the definition module of the file being
> +compiled.
> +
> +@item
> +exception handling is compatible with C++ and swig. Modula-2 code can
> +be used with C or C++ code.
> +
> +@item
> +Python can call GNU Modula-2 modules via swig.
> +
> +@item
> +shared libraries can be built.
> +
> +@item
> +fixed sized types are now available from @samp{SYSTEM}.
> +
> +@item
> +support for dynamic @code{ARRAY}s has been added into @samp{gdb}.
> +
> +@item
> +variables can be declared at addresses.
> +
> +@item
> +much better dwarf-2 debugging support and when used with
> +@samp{gdb} the programmer can display @code{RECORD}s,
> +@code{ARRAY}s, @code{SET}s, subranges and constant char literals
> +in Modula-2 syntax.
> +
> +@item
> +supports sets of any ordinal size (memory permitting).
> +
> +@item
> +easy interface to C, and varargs can be passed to C routines.
> +
> +@item
> +many Logitech libraries have been implemented and can be accessed via:
> +@samp{-flibs=m2log,m2pim,m2iso}.
> +
> +@item
> +coroutines have been implemented in the PIM style and these are
> +accessible from SYSTEM. A number of supporting libraries (executive
> +and file descriptor mapping to interrupt vector libraries are
> +available through the @samp{-flibs=m2iso,m2pim} switch).
> +
> +@item
> +can be built as a cross compiler (for embedded microprocessors
> +such as the AVR and the ARM).
> +
> +@end itemize
> +
> +@node Documentation, Regression tests, Features, Using
> +@section Documentation
> +
> +The GNU Modula-2 documentation is available on line
> +@url{https://www.nongnu.org/gm2/homepage.html,at the gm2 homepage}
> +or in the pdf, info, html file format.
> +
> +@node Regression tests, Limitations, Documentation, Using
> +@section Regression tests for gm2 in the repository
> +
> +The regression testsuite can be run from the gcc build directory:
> +
> +@example
> +$ cd build-gcc
> +$ make check -j 24
> +@end example
> +
> +which runs the complete testsuite for all compilers using 24 parallel
> +invocations of the compiler. Individual language testsuites can be
> +run by specifying the language, for example the Modula-2 testsuite can
> +be run using:
> +
> +@example
> +$ cd build-gcc
> +$ make check-m2 -j 24
> +@end example
> +
> +Finally the results of the testsuite can be emailed to the
> +@url{https://gcc.gnu.org/lists.html, gcc-testresults} list using the
> +script:
> +
> +@example
> +$ @file{gccsrcdir/contrib/test_summary}
> +@end example
> +
> +@node Limitations, Objectives, Regression tests, Using
> +@section Limitations
> +
> +Logitech compatibility library is incomplete. The principle modules
> +for this platform exist however for a comprehensive list of completed
> +modules please check the documentation
> +@url{gm2.html}.
> +
> +@node Objectives, FAQ, , Using
> +@section Objectives
> +
> +@itemize @bullet
> +
> +@item
> +The intention of GNU Modula-2 is to provide a production Modula-2
> +front end to GCC.
> +
> +@item
> +It should support all Niklaus Wirth PIM Dialects [234] and also ISO
> +Modula-2 including a reimplementation of all the ISO modules.
> +
> +@item
> +There should be an easy interface to C.
> +
> +@item
> +Exploit the features of GCC.
> +
> +@item
> +Listen to the requests of the users.
> +@end itemize
> +
> +@node FAQ, Community, Objectives, Using
> +@section FAQ
> +
> +@subsection Why use the C++ exception mechanism in GCC, rather than a bespoke Modula-2 mechanism?
> +
> +The C++ mechanism is tried and tested, it also provides GNU Modula-2
> +with the ability to link with C++ modules and via swig it can raise
> +Python exceptions.
> +
> +@node Community, Other languages, FAQ, Using
> +@section Community
> +
> +You can subscribe to the GNU Modula-2 mailing by sending an
> +email to:
> +@email{gm2-subscribe@@nongnu.org}
> +or by
> +@url{http://lists.nongnu.org/mailman/listinfo/gm2}.
> +The mailing list contents can be viewed
> +@url{http://lists.gnu.org/archive/html/gm2}.
> +
> +@node Other languages, , Community, Using
> +@section Other languages for GCC
> +
> +These exist and can be found on the frontends web page on the
> +@uref{http://gcc.gnu.org/frontends.html, gcc web site}.
> +
> +@node Using, , Community, Top
> +@chapter Using GNU Modula-2
> +
> +@menu
> +* Example usage:: Example compile and link.
> +* Compiler options:: GNU Modula-2 compiler options.
> +* Linking:: Linking options in more detail.
> +* Elementary data types:: Data types supported by GNU Modula-2.
> +* Standard procedures:: Permanently accessible base procedures.
> +* Dialect:: GNU Modula-2 supported dialects.
> +* Exceptions:: Exception implementation
> +* Semantic checking:: How to detect runtime problems at compile time.
> +* Extensions:: GNU Modula-2 language extensions.
> +* Type compatibility:: Data type compatibility.
> +* Unbounded by reference::Explanation of a language optimization.
> +* Building a shared library:: How to build a shared library.
> +* Interface for Python:: How to produce swig interface files.
> +* Producing a Python module:: How to produce a Python module.
> +* Interface to C:: Interfacing GNU Modula-2 to C.
> +* Assembly language:: Interface to assembly language.
> +* Alignment:: Data type alignment.
> +* Packed:: Packing data types.
> +* Built-ins:: Accessing GNU Modula-2 Built-ins.
> +* The PIM system module:: SYSTEM data types and procedures.
> +* The ISO system module:: SYSTEM data types, procedures and run time.
> +* Other languages:: Other languages for GCC.
> +* What is GNU Modula-2:: Brief description of GNU Modula-2.
> +* Why use GNU Modula-2:: Advantages of GNU Modula-2.
> +@ifnothtml
> +@c omit these nodes if generating gm2 webpage as these are hand written.
> +* Release map:: Release map.
> +* News:: News.
> +* Development:: Development.
> +* Obtaining:: How to Obtain GNU Modula-2.
> +* Features:: Features of the implementation.
> +* Documentation:: Placeholder for how to access the documentation online.
> +* Regression tests:: How to run the testsuite.
> +* Limitations:: Current limitations.
> +* Objectives:: Objectives of the implementation.
> +* FAQ:: Frequently asked questions.
> +* Community:: How to join the community.
> +@end ifnothtml
> +@end menu
> +
> +This document contains the user and design issues relevant to the
> +Modula-2 front end to gcc.
> +
> +@node Example usage, Compiler options, Using, Using
> +@section Example compile and link
> +
> +@ignore
> +@c man begin SYNOPSIS gm2
> +gm2 [@option{-c}|@option{-S}] [@option{-g}] [@option{-pg}]
> + [@option{-O}@var{level}] [@option{-W}@var{warn}@dots{}]
> + [@option{-I}@var{dir}@dots{}] [@option{-L}@var{dir}@dots{}]
> + [@option{-f}@var{option}@dots{}] [@option{-m}@var{machine-option}@dots{}]
> + [@option{-o} @var{outfile}] [@@@var{file}] @var{infile}@dots{}
> +
> +Only the most useful options are listed here; see below for the
> +remainder.
> +@c man end
> +@c man begin SEEALSO
> +gpl(7), gfdl(7), fsf-funding(7), gcc(1)
> +and the Info entries for @file{gm2} and @file{gcc}.
> +@c man end
> +@end ignore
> +
> +@c man begin DESCRIPTION gm2
> +
> +The @command{gm2} command is the GNU compiler for the Modula-2 language and
> +supports many of the same options as @command{gcc}. @xref{Option Summary, ,
> +Option Summary, gcc, Using the GNU Compiler Collection (GCC)}.
> +This manual only documents the options specific to @command{gm2}.
> +
> +@c man end
> +
> +This section describes how to compile and link a simple hello world
> +program. It provides a few examples of using the different options
> +mentioned in @pxref{Compiler options, , ,gm2}. Assuming that you have
> +a file called @file{hello.mod} in your current directory which
> +contains:
> +
> +@example
> +MODULE hello ;
> +
> +FROM StrIO IMPORT WriteString, WriteLn ;
> +
> +BEGIN
> + WriteString('hello world') ; WriteLn
> +END hello.
> +@end example
> +
> +You can compile and link it by: @samp{gm2 -g hello.mod}.
> +The result will be an @samp{a.out} file created in your directory.
> +
> +You can split this command into two steps if you prefer. The compile
> +step can be achieved by: @samp{gm2 -g -c -fscaffold-main hello.mod}
> +and the link via: @samp{gm2 -g hello.o}.
> +
> +@footnote{To see all the compile actions taken by @samp{gm2} users can also
> +add the @samp{-v} flag at the command line, for example:
> +
> +@samp{gm2 -v -g -I. hello.mod}
> +
> +This displays the subprocesses initiated by @samp{gm2} which can be useful
> +when trouble shooting.}
> +
> +@node Compiler options, Elementary data types, Example usage, Using
> +@section Compiler options
> +
> +This section describes the compiler options specific to GNU Modula-2
> +for generic flags details @xref{Invoking GCC, , ,gcc}.
> +
> +@c man begin OPTIONS
> +
> +For any given input file, the file name suffix determines what kind of
> +compilation is done. The following kinds of input file names are supported:
> +
> +@table @gcctabopt
> +@item @var{file}.mod
> +Modula-2 implementation or program source files. See the
> +@samp{-fmod=} option if you wish to compile a project which uses a
> +different source file extension.
> +@item @var{file}.def
> +Modula-2 definition module source files. Definition modules are not
> +compiled separately, in GNU Modula-2 definition modules are parsed as
> +required when program or implementation modules are compiled. See the
> +@samp{-fdef=} option if you wish to compile a project which uses a
> +different source file extension.
> +@end table
> +
> +You can specify more than one input file on the @command{gm2} command line,
> +
> +@table @code
> +
> +@item -g
> +create debugging information so that debuggers such as @file{gdb}
> +can inspect and control executables.
> +
> +@item -I
> +used to specify the search path for definition and implementation
> +modules. An example is: @code{gm2 -g -c -I.:../../libs foo.mod}.
> +If this option is not specified then the default path is added
> +which consists of the current directory followed by the appropriate
> +language dialect library directories.
> +
> +@c ordered list of options from here.
> +
> +@item -fauto-init
> +turns on auto initialization of pointers to NIL. Whenever a block is
> +created all pointers declarated within this scope will have their
> +addresses assigned to NIL.
> +
> +@item -fbounds
> +turns on runtime subrange, array index and indirection via @code{NIL}
> +pointer checking.
> +
> +@item -fcase
> +turns on compile time checking to check whether a @code{CASE}
> +statement requires an @code{ELSE} clause when on was not specified.
> +
> +@item -fcpp
> +preprocess the source with @samp{cpp -lang-asm -traditional-cpp}
> +For further details about these options @xref{Invocation, , ,cpp}.
> +If @samp{-fcpp} is supplied then all definition modules and
> +implementation modules which are parsed will be preprocessed by
> +@samp{cpp}.
> +
> +@c fcpp-end
> +@c Modula-2
> +@c passed to the preprocessor if -fcpp is used (internal switch)
> +
> +@c fcpp-begin
> +@c Modula-2
> +@c passed to the preprocessor if -fcpp is used (internal switch)
> +
> +@item -fdebug-builtins
> +call a real function, rather than the builtin equivalent. This can
> +be useful for debugging parameter values to a builtin function as
> +it allows users to single step code into a real function.
> +
> +@c fd
> +@c Modula-2
> +@c turn on internal debugging of the compiler (internal switch)
> +
> +@c fdebug-trace-quad
> +@c Modula-2
> +@c turn on quadruple tracing (internal switch)
> +
> +@c fdebug-trace-api
> +@c Modula-2
> +@c turn on the Modula-2 api tracing (internal switch)
> +
> +@c fdebug-function-line-numbers
> +@c Modula-2
> +@c turn on the Modula-2 function line number generation (internal switch)
> +
> +@item -fdef=
> +recognise the specified suffix as a definition module filename.
> +The default implmentation and module filename suffix is @file{.def}.
> +If this option is used GNU Modula-2 will still fall back to this
> +default if a requested definition module is not found.
> +
> +@item -fdump-system-exports
> +display all inbuilt system items.
> +This is an internal command line option.
> +
> +@item -fexceptions
> +turn on exception handling code. By default this option is on.
> +Exception handling can be disabled by @samp{-fno-exceptions}
> +and no references are made to the runtime exception libraries.
> +
> +@item -fextended-opaque
> +allows opaque types to be implemented as any type. This is a GNU
> +Modula-2 extension and it requires that the implementation module
> +defining the opaque type is available so that it can be resolved when
> +compiling the module which imports the opaque type.
> +
> +@item -ffloatvalue
> +turns on runtime checking to check whether a floating point number is
> +about to exceed range.
> +
> +@item -fgen-module-list=@file{filename}
> +attempt to find all modules when linking and generate a module list.
> +If the @file{filename} is @samp{-} then the contents are not written
> +and only used to force the linking of all module ctors.
> +This option cannot be used if @samp{-fuse-list=} is enabled.
> +
> +@item -findex
> +generate code to check whether array index values are out of bounds.
> +Array index checking can be disabled via @samp{-fno-index}.
> +
> +@item -fiso
> +turn on ISO standard features. Currently this enables the ISO
> +@code{SYSTEM} module and alters the default library search path so
> +that the ISO libraries are searched before the PIM libraries. It also
> +effects the behaviour of @code{DIV} and @code{MOD} operators.
> +@xref{Dialect, , ,gm2}.
> +
> +@item -flibs=
> +modifies the default library search path. The libraries supplied are:
> +m2pim, m2iso, m2min, m2log and m2cor. These map onto the
> +Programming in Modula-2 base libraries, ISO standard libraries, minimal
> +library support, Logitech compatible library and Programming in
> +Modula-2 with coroutines.
> +Multiple libraries can be specified and are comma separated with precidence
> +going to the first in the list. It is not necessary to use -flibs=m2pim or
> +-flibs=m2iso if you also specify -fpim, -fpim2, -fpim3, -fpim4 or
> +-fiso. Unless you are using -flibs=m2min you should include m2pim as
> +the they provide the base modules which all other dialects utilize.
> +The option @samp{-fno-libs=-} disables the @samp{gm2} driver from
> +modifying the search and library paths.
> +
> +@c flocation=
> +@c Modula-2 Joined
> +@c set all location values to a specific value (internal switch)
> +
> +@item -fm2-g
> +improve the debugging experience for new programmers at the expense
> +of generating @code{nop} instructions if necessary to ensure single
> +stepping precision over all code related keywords. An example
> +of this is in termination of a list of nested @code{IF} statements
> +where multiple @code{END} keywords are mapped onto a sequence of
> +@code{nop} instructions.
> +
> +@item -fm2-lower-case
> +render keywords in error messages using lower case.
> +
> +@item -fm2-plugin
> +insert plugin to identify runtime errors at compiletime (default on).
> +
> +@item -fm2-statistics
> +generates quadruple information: number of quadruples generated,
> +number of quadruples remaining after optimisation and number of source
> +lines compiled.
> +
> +@item -fm2-strict-type
> +experimental flag to turn on the new strict type checker.
> +
> +@item -fm2-whole-program
> +compile all implementation modules and program module at once. Notice
> +that you need to take care if you are compiling different dialect
> +modules (particularly with the negative operands to modulus). But
> +this option, when coupled together with @code{-O3}, can deliver huge
> +performance improvements.
> +
> +@item -fmod=
> +recognise the specified suffix as implementation and module filenames.
> +The default implmentation and module filename suffix is @file{.mod}.
> +If this option is used GNU Modula-2 will still fall back to this
> +default if it needs to read an implmentation module and the specified
> +suffixed filename does not exist.
> +
> +@item -fnil
> +generate code to detect accessing data through a @code{NIL} value
> +pointer. Dereferencing checking through a @code{NIL} pointer can be
> +disabled by @samp{-fno-nil}.
> +
> +@item -fpim
> +turn on PIM standard features. Currently this enables the PIM
> +@code{SYSTEM} module and determines which identifiers are pervasive
> +(declared in the base module). If no other @samp{-fpim[234]} switch is
> +used then division and modulus operators behave as defined in PIM4.
> +@xref{Dialect, , ,gm2}.
> +
> +@item -fpim2
> +turn on PIM-2 standard features. Currently this removes @code{SIZE}
> +from being a pervasive identifier (declared in the base module). It
> +places @code{SIZE} in the @code{SYSTEM} module. It also effects the
> +behaviour of @code{DIV} and @code{MOD} operators.
> +@xref{Dialect, , ,gm2}.
> +
> +@item -fpim3
> +turn on PIM-3 standard features. Currently this only effects the
> +behaviour of @code{DIV} and @code{MOD} operators.
> +@xref{Dialect, , ,gm2}.
> +
> +@item -fpim4
> +turn on PIM-4 standard features. Currently this only effects the
> +behaviour of @code{DIV} and @code{MOD} operators.
> +@xref{Dialect, , ,gm2}.
> +
> +@item -fpositive-mod-floor-div
> +forces the @code{DIV} and @code{MOD} operators to behave as defined by PIM4.
> +All modulus results are positive and the results from the division are
> +rounded to the floor.
> +@xref{Dialect, , ,gm2}.
> +
> +@item -fpthread
> +link against the pthread library. By default this option is on. It
> +can be disabled by @samp{-fno-pthread}. GNU Modula-2 uses the GCC
> +pthread libraries to implement coroutines (see the SYSTEM
> +implementation module).
> +
> +@c -fq
> +@c -Modula-2
> +@c -internal compiler debugging information, dump the list of quadruples
> +
> +@item -frange
> +generate code to check the assignment range, return value range
> +set range and constructor range. Range checking can be disabled
> +via @samp{-fno-range}.
> +
> +@item -freturn
> +generate code to check that functions always exit with a @code{RETURN}
> +and do not fall out at the end. Return checking can be disabled
> +via @samp{-fno-return}.
> +
> +@item -fruntime-modules=
> +specify, using a comma separated list, the runtime modules and their
> +order. These modules will initialized first before any other modules
> +in the application dependency. By default the runtime modules list is
> +set to @code{Storage,SYSTEM,M2RTS,RTExceptions,IOLink}. Note that
> +these modules will only be linked into your executable if they are
> +required. So adding a long list of dependant modules will not effect
> +the size of the executable it merely states the initialization order
> +should they be required.
> +
> +@item -fscaffold-dynamic
> +the option ensures that @samp{gm2} will generate a dynamic scaffold
> +infastructure when compiling implementation and program modules.
> +By default this option is on. Use @samp{-fno-scaffold-dynamic}
> +to turn it off or select @samp{-fno-scaffold-static}.
> +
> +@item -fscaffold-c
> +generate a C source scaffold for the current module being compiled.
> +
> +@item -fscaffold-c++
> +generate a C++ source scaffold for the current module being compiled.
> +
> +@item -fscaffold-main
> +force the generation of the @samp{main} function. This is not
> +necessary if the @samp{-c} is omitted.
> +
> +@item -fscaffold-static
> +the option ensures that @samp{gm2} will generate a static scaffold
> +within the program module. The static scaffold consists of sequences
> +of calls to all dependent module initialization and finalialization
> +procedures. The static scaffold is useful for debugging and single
> +stepping the initialization blocks of implementation modules.
> +
> +@item -fshared
> +generate a shared library from the module.
> +
> +@item -fsoft-check-all
> +turns on all runtime checks. This is the same as invoking
> +GNU Modula-2 using the command options
> +@code{-fnil} @code{-frange} @code{-findex}
> +@code{-fwholevalue}
> +@code{-fwholediv} @code{-fcase} @code{-freturn}.
> +
> +@item -fsources
> +displays the path to the source of each module. This option
> +can be used at compile time to check the correct definition module
> +is being used.
> +
> +@item -fswig
> +generate a swig interface file.
> +
> +@item -funbounded-by-reference
> +enable optimization of unbounded parameters by attempting to pass non
> +@code{VAR} unbounded parameters by reference. This optimization
> +avoids the implicit copy inside the callee procedure. GNU Modula-2
> +will only allow unbounded parameters to be passed by reference if,
> +inside the callee procedure, they are not written to, no address is
> +calculated on the array and it is not passed as a @code{VAR}
> +parameter. Note that it is possible to write code to break this
> +optimization, therefore this option should be used carefully.
> +For example it would be possible to take the address of an array, pass
> +the address and the array to a procedure, read from the array in
> +the procedure and write to the location using the address parameter.
> +
> +Due to the dangerous nature of this option it is not enabled
> +when the @samp{-O} option is specified.
> +
> +@item -fuse-list=@file{filename}
> +if @samp{-fscaffold-static} is enabled then use the file
> +@file{filename} for the initialization order of modules. Whereas if
> +@samp{-fscaffold-dynamic} is enabled then use this file to force
> +linking of all module ctors.
> +This option cannot be used if @samp{-fgen-module-list=} is enabled.
> +
> +@item -fwholediv
> +generate code to detect whole number division by zero or modulus by
> +zero.
> +
> +@item -fwholevalue
> +generate code to detect whole number overflow and underflow.
> +
> +@c the following warning options are complete but need to be
> +@c regression tested against all other front ends
> +@c to ensure the options do not conflict.
> +
> +@c @item -Wall
> +@c turn on all Modula-2 warnings.
> +
> +@c @item -Wpedantic
> +@c forces the compiler to reject nested @code{WITH} statements
> +@c referencing the same record type. Does not allow multiple imports of
> +@c the same item from a module. It also checks that: procedure variables
> +@c are written to before being read; variables are not only written to
> +@c but read from; variables are declared and used. If the compiler
> +@c encounters a variable being read before written it will terminate with
> +@c a message. It will check that @code{FOR} loop indices are not used
> +@c outside the end of this loop without being reset.
> +
> +@c @item -Wpedantic-cast
> +@c warns if the ISO system function is used and if the size of
> +@c the variable is different from that of the type. This is legal
> +@c in ISO Modula-2, however it can be dangerous. Some users may prefer
> +@c to use @code{VAL} instead in these situations and use @code{CAST}
> +@c exclusively for changes in type on objects which have the same size.
> +
> +@c @item -Wpedantic-param-names
> +@c procedure parameter names are checked in the definition module
> +@c against their implementation module counterpart. This is not
> +@c necessary in ISO or PIM versions of Modula-2.
> +
> +@c @item -Wstyle
> +@c checks for poor programming style. This option is aimed at new users of
> +@c Modula-2 in that it checks for situations which might cause confusion
> +@c and thus mistakes. It checks whether variables of the same name are
> +@c declared in different scopes and whether variables look like keywords.
> +@c Experienced users might find this option too aggressive.
> +
> +@c @item -Wunused-variable
> +@c warns if a variable has been declared and it not used.
> +
> +@c @item -Wunused-parameter
> +@c warns if a parameter has been declared and it not used.
> +
> +@c @item -Wverbose-unbounded
> +@c inform the user which non @code{VAR} unbounded parameters will be
> +@c passed by reference. This only produces output if the option
> +@c @samp{-funbounded-by-reference} is also supplied on the command line.
> +
> +@end table
> +
> +@c man end
> +
> +@node Elementary data types, Standard procedures, Compiler options, Using
> +@section Elementary data types
> +
> +This section describes the elementary data types supported by GNU
> +Modula-2. It also describes the relationship between these data types
> +and the equivalent C data types.
> +
> +The following data types are supported: @code{INTEGER},
> +@code{LONGINT}, @code{SHORTINT}, @code{CARDINAL}, @code{LONGCARD},
> +@code{SHORTCARD}, @code{BOOLEAN}, @code{REAL}, @code{LONGREAL},
> +@code{SHORTREAL}, @code{COMPLEX}, @code{LONGCOMPLEX},
> +@code{SHORTCOMPLEX} and @code{CHAR}.
> +
> +An equivalence table is given below:
> +
> +@example
> +GNU Modula-2 GNU C
> +======================================
> +INTEGER int
> +LONGINT long long int
> +SHORTINT short int
> +CARDINAL unsigned int
> +LONGCARD long long unsigned int
> +SHORTCARD short unsigned int
> +BOOLEAN int
> +REAL double
> +LONGREAL long double
> +SHORTREAL float
> +CHAR char
> +SHORTCOMPLEX complex float
> +COMPLEX complex double
> +LONGCOMPLEX complex long double
> +@end example
> +
> +Note that GNU Modula-2 also supports fixed sized data types which are
> +exported from the @code{SYSTEM} module.
> +@xref{The PIM system module, , ,gm2}.
> +@xref{The ISO system module, , ,gm2}.
> +
> +@node Standard procedures, Dialect, Elementary data types, Using
> +@section Permanently accessible base procedures.
> +
> +This section describes the procedures and functions which are
> +always visible.
> +
> +@subsection Standard procedures and functions common to PIM and ISO
> +
> +The following procedures are implemented and conform with Programming
> +in Modula-2 and ISO Modula-2: @code{NEW}, @code{DISPOSE}, @code{INC},
> +@code{DEC}, @code{INCL}, @code{EXCL} and @code{HALT}. The standard
> +functions are: @code{ABS}, @code{CAP}, @code{CHR}, @code{FLOAT},
> +@code{HIGH}, @code{LFLOAT}, @code{LTRUNC}, @code{MIN}, @code{MAX},
> +@code{ODD}, @code{SFLOAT}, @code{STRUNC} @code{TRUNC} and
> +@code{VAL}. All these functions and procedures (except @code{HALT},
> +@code{NEW}, @code{DISPOSE} and, under non constant conditions,
> +@code{LENGTH}) generate in-line code for efficiency.
> +
> +@example
> +
> +(*
> + ABS - returns the positive value of i.
> +*)
> +
> +@findex ABS
> +PROCEDURE ABS (i: <any signed type>) : <any signed type> ;
> +
> +@end example
> +
> +@example
> +
> +(*
> + CAP - returns the capital of character ch providing
> + ch lies within the range 'a'..'z'. Otherwise ch
> + is returned unaltered.
> +*)
> +
> +@findex CAP
> +PROCEDURE CAP (ch: CHAR) : CHAR ;
> +
> +@end example
> +
> +@example
> +
> +(*
> + CHR - converts a value of a <whole number type> into a CHAR.
> + CHR(x) is shorthand for VAL(CHAR, x).
> +*)
> +
> +@findex CHR
> +PROCEDURE CHR (x: <whole number type>) : CHAR ;
> +
> +@end example
> +
> +@example
> +
> +(*
> + DISPOSE - the procedure DISPOSE is replaced by:
> + DEALLOCATE(p, TSIZE(p^)) ;
> + The user is expected to import the procedure DEALLOCATE
> + (normally found in the module, Storage.)
> +
> + In: a variable p: of any pointer type which has been
> + initialized by a call to NEW.
> + Out: the area of memory
> + holding p^ is returned to the system.
> + Note that the underlying procedure DEALLOCATE
> + procedure in module Storage will assign p to NIL.
> +*)
> +
> +@findex DISPOSE
> +PROCEDURE DISPOSE (VAR p:<any pointer type>) ;
> +@end example
> +
> +@example
> +
> +(*
> + DEC - can either take one or two parameters. If supplied
> + with one parameter then on the completion of the call to
> + DEC, v will have its predecessor value. If two
> + parameters are supplied then the value v will have its
> + n'th predecessor. For these reasons the value of n
> + must be >=0.
> +*)
> +
> +@findex DEC
> +PROCEDURE DEC (VAR v: <any base type>; [n: <any base type> = 1]) ;
> +@end example
> +
> +@example
> +
> +(*
> + EXCL - excludes bit element e from a set type s.
> +*)
> +
> +@findex EXCL
> +PROCEDURE EXCL (VAR s: <any set type>; e: <element of set type s>) ;
> +@end example
> +
> +@example
> +
> +(*
> + FLOAT - will return a REAL number whose value is the same as o.
> +*)
> +
> +@findex FLOAT
> +PROCEDURE FLOAT (o: <any whole number type>) : REAL ;
> +@end example
> +
> +@example
> +
> +(*
> + FLOATS - will return a SHORTREAL number whose value is the same as o.
> +*)
> +
> +@findex FLOATS
> +PROCEDURE FLOATS (o: <any whole number type>) : REAL ;
> +@end example
> +
> +@example
> +
> +(*
> + FLOATL - will return a LONGREAL number whose value is the same as o.
> +*)
> +
> +@findex FLOATL
> +PROCEDURE FLOATL (o: <any whole number type>) : REAL ;
> +@end example
> +
> +@example
> +
> +(*
> + HALT - will call the HALT procedure inside the module M2RTS.
> + Users can replace M2RTS.
> +*)
> +
> +@findex HALT
> +PROCEDURE HALT ;
> +@end example
> +
> +@example
> +
> +(*
> + HIGH - returns the last accessible index of an parameter declared as
> + ARRAY OF CHAR. Thus
> +
> + PROCEDURE foo (a: ARRAY OF CHAR) ;
> + VAR
> + c: CARDINAL ;
> + BEGIN
> + c := HIGH(a)
> + END foo ;
> +
> + BEGIN
> + foo('hello')
> + END
> +
> + will cause the local variable c to contain the value 4
> +*)
> +
> +@findex HIGH
> +PROCEDURE HIGH (a: ARRAY OF CHAR) : CARDINAL ;
> +@end example
> +
> +@example
> +
> +(*
> + INC - can either take one or two parameters. If supplied
> + with one parameter then on the completion of the call to
> + INC, v will have its successor value. If two
> + parameters are supplied then the value v will have its
> + n'th successor. For these reasons the value of n
> + must be >=0.
> +*)
> +
> +@findex INC
> +PROCEDURE INC (VAR v: <any base type>; [n: <any base type> = 1]) ;
> +@end example
> +
> +@example
> +
> +(*
> + INCL - includes bit element e to a set type s.
> +*)
> +
> +@findex INCL
> +PROCEDURE INCL (VAR s: <any set type>; e: <element of set type s>) ;
> +@end example
> +
> +@example
> +
> +(*
> + LFLOAT - will return a LONGREAL number whose value is the same as o.
> +*)
> +
> +@findex LFLOAT
> +PROCEDURE LFLOAT (o: <any whole number type>) : LONGREAL ;
> +@end example
> +
> +@example
> +
> +(*
> + LTRUNC - will return a LONG<type> number whose value is the
> + same as o. PIM2, PIM3 and ISO Modula-2 will return
> + a LONGCARD whereas PIM4 returns LONGINT.
> +*)
> +
> +@findex LTRUNC
> +PROCEDURE LTRUNC (o: <any floating point type>) : LONG<type> ;
> +@end example
> +
> +@example
> +
> +(*
> + MIN - returns the lowest legal value of an ordinal type.
> +*)
> +
> +@findex MIN
> +PROCEDURE MIN (t: <ordinal type>) : <ordinal type> ;
> +
> +@end example
> +
> +@example
> +
> +(*
> + MAX - returns the largest legal value of an ordinal type.
> +*)
> +
> +@findex MAX
> +PROCEDURE MAX (t: <ordinal type>) : <ordinal type> ;
> +
> +@end example
> +
> +@example
> +
> +(*
> + NEW - the procedure NEW is replaced by:
> + ALLOCATE(p, TSIZE(p^)) ;
> + The user is expected to import the procedure ALLOCATE
> + (normally found in the module, Storage.)
> +
> + In: a variable p: of any pointer type.
> + Out: variable p is set to some allocated memory
> + which is large enough to hold all the contents of p^.
> +*)
> +
> +@findex NEW
> +PROCEDURE NEW (VAR p:<any pointer type>) ;
> +@end example
> +
> +@example
> +
> +(*
> + ODD - returns TRUE if the value is not divisible by 2.
> +*)
> +
> +@findex ODD
> +PROCEDURE ODD (x: <whole number type>) : BOOLEAN ;
> +
> +@end example
> +
> +@example
> +
> +(*
> + SFLOAT - will return a SHORTREAL number whose value is the same
> + as o.
> +*)
> +
> +@findex SFLOAT
> +PROCEDURE SFLOAT (o: <any whole number type>) : SHORTREAL ;
> +@end example
> +
> +@example
> +
> +(*
> + STRUNC - will return a SHORT<type> number whose value is the same
> + as o. PIM2, PIM3 and ISO Modula-2 will return a
> + SHORTCARD whereas PIM4 returns SHORTINT.
> +*)
> +
> +@findex STRUNC
> +PROCEDURE STRUNC (o: <any floating point type>) : SHORT<type> ;
> +@end example
> +
> +@example
> +
> +(*
> + TRUNC - will return a <type> number whose value is the same as o.
> + PIM2, PIM3 and ISO Modula-2 will return a CARDINAL
> + whereas PIM4 returns INTEGER.
> +*)
> +
> +@findex TRUNC
> +PROCEDURE TRUNC (o: <any floating point type>) : <type> ;
> +@end example
> +
> +@example
> +
> +(*
> + TRUNCS - will return a <type> number whose value is the same
> + as o. PIM2, PIM3 and ISO Modula-2 will return a
> + SHORTCARD whereas PIM4 returns SHORTINT.
> +*)
> +
> +@findex TRUNCS
> +PROCEDURE TRUNCS (o: <any floating point type>) : <type> ;
> +@end example
> +
> +@example
> +
> +(*
> + TRUNCL - will return a <type> number whose value is the same
> + as o. PIM2, PIM3 and ISO Modula-2 will return a
> + LONGCARD whereas PIM4 returns LONGINT.
> +*)
> +
> +@findex TRUNCL
> +PROCEDURE TRUNCL (o: <any floating point type>) : <type> ;
> +@end example
> +
> +@example
> +
> +(*
> + VAL - converts data i of <any simple data type 2> to
> + <any simple data type 1> and returns this value.
> + No range checking is performed during this conversion.
> +*)
> +
> +@findex VAL
> +PROCEDURE VAL (<any simple data type 1>,
> + i: <any simple data type 2>) : <any simple data type 1> ;
> +
> +@end example
> +
> +@subsection ISO specific standard procedures and functions
> +
> +The standard function @code{LENGTH} is specific to ISO Modula-2 and
> +is defined as:
> +
> +@example
> +
> +(*
> + IM - returns the imaginary component of a complex type.
> + The return value will the same type as the imaginary field
> + within the complex type.
> +*)
> +
> +@findex IM
> +PROCEDURE IM (c: <any complex type>) : <floating point type> ;
> +@end example
> +
> +@example
> +
> +(*
> + INT - returns an INTEGER value which has the same value as v.
> + This function is equivalent to: VAL(INTEGER, v).
> +*)
> +
> +@findex INT
> +PROCEDURE INT (v: <any ordinal type>) : INTEGER ;
> +@end example
> +
> +@example
> +
> +(*
> + LENGTH - returns the length of string a.
> +*)
> +
> +@findex LENGTH
> +PROCEDURE LENGTH (a: ARRAY OF CHAR) : CARDINAL ;
> +@end example
> +
> +This function is evaluated at compile time, providing that string
> +@code{a} is a constant. If @code{a} cannot be evaluated then a call is
> +made to @code{M2RTS.Length}.
> +
> +@example
> +
> +(*
> + ODD - returns a BOOLEAN indicating whether the whole number
> + value, v, is odd.
> +*)
> +
> +@findex ODD
> +PROCEDURE ODD (v: <any whole number type>) : BOOLEAN ;
> +@end example
> +
> +@example
> +
> +(*
> + RE - returns the real component of a complex type.
> + The return value will the same type as the real field
> + within the complex type.
> +*)
> +
> +@findex RE
> +PROCEDURE RE (c: <any complex type>) : <floating point type> ;
> +@end example
> +
> +@node Dialect, Exceptions, Standard procedures, Using
> +@section GNU Modula-2 supported dialects
> +
> +This section describes the dialects understood by GNU Modula-2.
> +It also describes the differences between the dialects and
> +any command line switches which determine dialect behaviour.
> +
> +The GNU Modula-2 compiler is compliant with four dialects of Modula-2.
> +The language as defined in 'Programming in Modula-2' 2nd Edition,
> +Springer Verlag, 1982, 1983 by Niklaus Wirth (PIM2), 'Programming in
> +Modula-2', 3rd Corrected Edition, Springer Verlag, 1985 (PIM3) and
> +'Programming in Modula-2', 4th Edition, Springer Verlag, 1988 (PIM4)
> +@uref{http://freepages.modula2.org/report4/modula-2.html} and the ISO
> +Modula-2 language as defined in ISO/IEC Information technology -
> +programming languages - part 1: Modula-2 Language, ISO/IEC 10514-1
> +(1996) (ISO).
> +
> +The command line switches @samp{-fpim2}, @samp{-fpim3}, @samp{-fpim4}
> +and @samp{-fiso} can be used to force mutually exclusive
> +features. However by default the compiler will not aggressively fail
> +if a non mutually exclusive feature is used from another dialect. For
> +example it is possible to specify @samp{-fpim2} and still utilise
> +@samp{DEFINITION} @samp{MODULES} which have no export list.
> +
> +Some dialect differences will force a compile time error, for example
> +in PIM2 the user must @code{IMPORT} @code{SIZE} from the module
> +@code{SYSTEM}, whereas in PIM3 and PIM4 @code{SIZE} is a pervasive
> +function. Thus compiling PIM4 source code with the @samp{-fpim2}
> +switch will cause a compile time error. This can be fixed quickly
> +with an additional @code{IMPORT} or alternatively by compiling with
> +the @samp{-fpim4} switch.
> +
> +However there are some very important differences between the dialects
> +which are mutually exclusive and therefore it is vital that users
> +choose the dialects with care when these language features are used.
> +
> +@subsection Integer division, remainder and modulus
> +
> +The most dangerous set of mutually exclusive features found in the
> +four dialects supported by GNU Modula-2 are the @code{INTEGER}
> +division, remainder and modulus arithmetic operators. It is important
> +to note that the same source code can be compiled to give different
> +runtime results depending upon these switches! The reference manual
> +for the various dialects of Modula-2 are quite clear about this
> +behaviour and sadly there are three distinct definitions.
> +
> +The table below illustrates the problem when a negative operand is
> +used.
> +
> +@example
> + Pim2/3 Pim4 ISO
> + ----------- ----------- ----------------------
> +lval rval DIV MOD DIV MOD DIV MOD / REM
> + 31 10 3 1 3 1 3 1 3 1
> +-31 10 -3 -1 -4 9 -4 9 -3 -1
> + 31 -10 -3 1 -3 1 Exception -3 1
> +-31 -10 3 -1 4 9 Exception 3 -1
> +@end example
> +
> +See also P24 of PIM2, P27 of PIM3, P29 of PIM4 and P201 of the ISO
> +Standard. At present all dialect division, remainder and modulus are
> +implemented as above, apart from the exception calling in the ISO
> +dialect. Instead of exception handling the results are the same as the
> +PIM4 dialect. This is a temporary implementation situation.
> +
> +@node Exceptions, Semantic checking, Dialect, Using
> +@section Exception implementation
> +
> +This section describes how exceptions are implemented in GNU Modula-2
> +and how command line switches affect their behaviour. The option
> +@samp{-fsoft-check-all} enables all software checking of nil
> +dereferences, division by zero etc. Additional code is produced to
> +check these conditions and exception handlers are invoked if the
> +conditions prevail.
> +
> +Without @samp{-fsoft-check-all} these exceptions will be caught by
> +hardware (assuming the hardware support exists) and a signal handler
> +is invoked. The signal handler will in turn @code{THROW} an exception
> +which will be caught by the appropriate Modula-2 handler. However the
> +action of throwing an exception from within a signal handler is
> +implementation defined (according to the C++ documentation). For
> +example on the x86_64 architecture this works whereas on the i686
> +architecture it does not. Therefore to ensure portability it is
> +recommended to use @samp{-fsoft-check-all}.
> +
> +@footnote{@samp{-fsoft-check-all} can be effectively combined with
> +@samp{-O2} to semantically analyse source code for possible runtime
> +errors at compile time.}
> +
> +@node Semantic checking, Extensions, Exceptions, Using
> +@section How to detect runtime problems at compile time
> +
> +Consider the following program:
> +
> +@example
> +MODULE assignvalue ; (*!m2iso+gm2*)
> +
> +PROCEDURE bad () : INTEGER ;
> +VAR
> + i: INTEGER ;
> +BEGIN
> + i := -1 ;
> + RETURN i
> +END bad ;
> +
> +VAR
> + foo: CARDINAL ;
> +BEGIN
> + (* the m2rte plugin will detect this as an error, post
> + optimization. *)
> + foo := bad ()
> +END assignvalue.
> +@end example
> +
> +here we see that the programmer has overlooked that the return value
> +from @samp{bad} will cause an overflow to @samp{foo}. If we compile
> +the code with the following options:
> +
> +@example
> +$ gm2 -g -fsoft-check-all -O2 -c assignvalue.mod
> +assignvalue.mod:16:0:inevitable that this error will occur at runtime,
> +assignment will result in an overflow
> +@end example
> +
> +The gm2 semantic plugin is automatically run and will generate a
> +warning message for every exception call which is known as reachable.
> +It is highly advised to run the optimizer (@samp{-O2} or @samp{-O3})
> +with @samp{-fsoft-check-all} so that the compiler is able to run the
> +optimizer and perform variable and flow analysis before the semantic
> +plugin is invoked.
> +
> +@node Extensions, Type compatibility, Semantic checking, Using
> +@section GNU Modula-2 language extensions
> +
> +This section introduces the GNU Modula-2 language extensions.
> +The GNU Modula-2 compiler allows abstract data types to be any type,
> +not just restricted to a pointer type providing the
> +@samp{-fextended-opaque} option is supplied
> +@xref{Compiler options, , ,gm2}.
> +
> +Declarations can be made in any order, whether they are
> +types, constants, procedures, nested modules or variables.
> +@c (@xref{Passes, , ,}.)
> +
> +GNU Modula-2 also allows programmers to interface to @code{C} and
> +assembly language.
> +
> +GNU Modula-2 provides support for the special tokens @code{__LINE__},
> +@code{__FILE__}, @code{__FUNCTION__} and @code{__DATE__}. Support for
> +these tokens will occur even if the @samp{-fcpp} option is not
> +supplied. A table of these identifiers and their data type and values
> +is given below:
> +
> +@example
> +Scope GNU Modula-2 token Data type and example value
> +
> +anywhere __LINE__ Constant Literal compatible
> + with CARDINAL, INTEGER and WORD.
> + Example 1234
> +
> +anywhere __FILE__ Constant string compatible
> + with parameter ARRAY OF CHAR or
> + an ARRAY whose SIZE is >= string
> + length. Example
> + "hello.mod"
> +
> +procedure __FUNCTION__ Constant string compatible
> + with parameter ARRAY OF CHAR or
> + an ARRAY whose SIZE is >= string
> + length. Example
> + "calc"
> +
> +module __FUNCTION__ Example
> + "module hello initialization"
> +
> +anywhere __DATE__ Constant string compatible
> + with parameter ARRAY OF CHAR or
> + an ARRAY whose SIZE is >= string
> + length. Example
> + "Thu Apr 29 10:07:16 BST 2004"
> +
> +anywhere __COLUMN__ Gives a contant literal number
> + determining the left hand column
> + where the first _ appears in
> + __COLUMN__. The left most column
> + is 1.
> +
> +@end example
> +
> +The preprocessor @samp{cpp} can be invoked via the @samp{-fcpp}
> +command line option. This in turn invokes @samp{cpp} with the
> +following arguments @samp{-traditional -lang-asm}. These options
> +preserve comments and all quotations. @samp{gm2} treats a @samp{#}
> +character in the first column as a preprocessor directive.
> +
> +For example here is a module which calls @code{FatalError}
> +via the macro @code{ERROR}.
> +
> +@example
> +MODULE cpp ;
> +
> +FROM SYSTEM IMPORT ADR, SIZE ;
> +FROM libc IMPORT exit, printf, malloc ;
> +
> +PROCEDURE FatalError (a, file: ARRAY OF CHAR;
> + line: CARDINAL;
> + func: ARRAY OF CHAR) ;
> +BEGIN
> + printf("%s:%d:fatal error, %s, in %s\n",
> + ADR(file), line, ADR(a), ADR(func)) ;
> + exit(1)
> +END FatalError ;
> +
> +#define ERROR(X) FatalError(X, __FILE__, __LINE__, __FUNCTION__)
> +
> +VAR
> + pc: POINTER TO CARDINAL;
> +BEGIN
> + pc := malloc(SIZE(CARDINAL)) ;
> + IF pc=NIL
> + THEN
> + ERROR('out of memory')
> + END
> +END cpp.
> +@end example
> +
> +Another use for the C preprocessor in Modula-2 might be to turn on
> +debugging code. For example the library module
> +@file{FormatStrings.mod} uses procedures from @file{DynamicStrings.mod}
> +and to track down memory leaks it was useful to track the source file
> +and line where each string was created. Here is a section of
> +@file{FormatStrings.mod} which shows how the debugging code was
> +enabled and disabled by adding @code{-fcpp} to the command line.
> +
> +@example
> +FROM DynamicStrings IMPORT String, InitString, InitStringChar, Mark,
> + ConCat, Slice, Index, char,
> + Assign, Length, Mult, Dup, ConCatChar,
> + PushAllocation, PopAllocationExemption,
> + InitStringDB, InitStringCharStarDB,
> + InitStringCharDB, MultDB, DupDB, SliceDB ;
> +
> +(*
> +#define InitString(X) InitStringDB(X, __FILE__, __LINE__)
> +#define InitStringCharStar(X) InitStringCharStarDB(X, __FILE__, \
> + __LINE__)
> +#define InitStringChar(X) InitStringCharDB(X, __FILE__, __LINE__)
> +#define Mult(X,Y) MultDB(X, Y, __FILE__, __LINE__)
> +#define Dup(X) DupDB(X, __FILE__, __LINE__)
> +#define Slice(X,Y,Z) SliceDB(X, Y, Z, __FILE__, __LINE__)
> +*)
> +
> +PROCEDURE doDSdbEnter ;
> +BEGIN
> + PushAllocation
> +END doDSdbEnter ;
> +
> +PROCEDURE doDSdbExit (s: String) ;
> +BEGIN
> + s := PopAllocationExemption(TRUE, s)
> +END doDSdbExit ;
> +
> +PROCEDURE DSdbEnter ;
> +BEGIN
> +END DSdbEnter ;
> +
> +PROCEDURE DSdbExit (s: String) ;
> +BEGIN
> +END DSdbExit ;
> +
> +(*
> +#define DBsbEnter doDBsbEnter
> +#define DBsbExit doDBsbExit
> +*)
> +
> +PROCEDURE Sprintf1 (s: String; w: ARRAY OF BYTE) : String ;
> +BEGIN
> + DSdbEnter ;
> + s := FormatString(HandleEscape(s), w) ;
> + DSdbExit(s) ;
> + RETURN( s )
> +END Sprintf1 ;
> +@end example
> +
> +It is worth noting that the overhead of this code once @code{-fcpp} is
> +not present and -O2 is used will be zero since the local empty
> +procedures @code{DSdbEnter} and @code{DSdbExit} will be thrown away by
> +the optimization passes of the GCC backend.
> +
> +@subsection Optional procedure parameter
> +
> +GNU Modula-2 allows the last parameter to a procedure or function
> +parameter to be optional. For example in the ISO library
> +@file{COROUTINES.def} the procedure @code{NEWCOROUTINE} is defined as
> +having an optional fifth argument (@code{initProtection}) which, if
> +absent, is automatically replaced by @code{NIL}.
> +
> +@example
> +@findex NEWCOROUTINE
> +PROCEDURE NEWCOROUTINE (procBody: PROC; workspace: SYSTEM.ADDRESS;
> + size: CARDINAL; VAR cr: COROUTINE;
> + [initProtection: PROTECTION = NIL]);
> +
> + (* Creates a new coroutine whose body is given by procBody,
> + and returns the identity of the coroutine in cr.
> + workspace is a pointer to the work space allocated to
> + the coroutine; size specifies the size of this workspace
> + in terms of SYSTEM.LOC.
> +
> + The optional fifth argument may contain a single parameter
> + which specifies the initial protection level of the coroutine.
> + *)
> +@end example
> +
> +The implementation module @file{COROUTINES.mod} implements this
> +procedure using the following syntax:
> +
> +@example
> +PROCEDURE NEWCOROUTINE (procBody: PROC; workspace: SYSTEM.ADDRESS;
> + size: CARDINAL; VAR cr: COROUTINE;
> + [initProtection: PROTECTION]);
> +BEGIN
> +
> +END NEWCOROUTINE ;
> +@end example
> +
> +Note that it is illegal for this declaration to contain an initialiser
> +value for @code{initProtection}. However it is necessary to surround
> +this parameter with the brackets @code{[} and @code{]}. This serves to
> +remind the programmer that the last parameter was declared as optional
> +in the definition module.
> +
> +Local procedures can be declared to have an optional final parameter
> +in which case the initializer is mandatory in the implementation or
> +program module.
> +
> +GNU Modula-2 also provides additional fixed sized data types which
> +are all exported from the @code{SYSTEM} module.
> +@xref{The PIM system module, , ,gm2}.
> +@xref{The ISO system module, , ,gm2}.
> +
> +@node Type compatibility, Unbounded by reference, Extensions, Using
> +@section Type compatibility
> +
> +This section discuss the issues surrounding assignment, expression
> +and parameter compatibility, their effect of the additional
> +fixed sized datatypes and also their effect of runtime checking.
> +The data types supported by the compiler are:
> +
> +@example
> +GNU Modula-2 scope switches
> +=============================================
> +INTEGER pervasive
> +LONGINT pervasive
> +SHORTINT pervasive
> +CARDINAL pervasive
> +LONGCARD pervasive
> +SHORTCARD pervasive
> +BOOLEAN pervasive
> +BITSET pervasive
> +REAL pervasive
> +LONGREAL pervasive
> +SHORTREAL pervasive
> +CHAR pervasive
> +SHORTCOMPLEX pervasive
> +COMPLEX pervasive
> +LONGCOMPLEX pervasive
> +
> +LOC SYSTEM -fiso
> +BYTE SYSTEM
> +WORD SYSTEM
> +ADDRESS SYSTEM
> +
> +The following extensions are supported for
> +most architectures (please check SYSTEM.def).
> +=============================================
> +INTEGER8 SYSTEM
> +INTEGER16 SYSTEM
> +INTEGER32 SYSTEM
> +INTEGER64 SYSTEM
> +CARDINAL8 SYSTEM
> +CARDINAL16 SYSTEM
> +CARDINAL32 SYSTEM
> +CARDINAL64 SYSTEM
> +BITSET8 SYSTEM
> +BITSET16 SYSTEM
> +BITSET32 SYSTEM
> +WORD16 SYSTEM
> +WORD32 SYSTEM
> +WORD64 SYSTEM
> +REAL32 SYSTEM
> +REAL64 SYSTEM
> +REAL96 SYSTEM
> +REAL128 SYSTEM
> +COMPLEX32 SYSTEM
> +COMPLEX64 SYSTEM
> +COMPLEX96 SYSTEM
> +COMPLEX128 SYSTEM
> +@end example
> +
> +The Modula-2 language categorises compatibility between entities of
> +possibly differing types into three subcomponents: expressions,
> +assignments, and parameters. Parameter compatibility is further
> +divided into two sections for pass by reference and pass by value
> +compatibility.
> +
> +For more detail on the Modula-2 type compatibility see the Modula-2
> +ISO standard BS ISO/IEC 10514-1:1996 page 121-125. For detail on the
> +PIM type compatibility see Programming in Modula-2 Edition 4 page 29,
> +(Elementary Data Types).
> +
> +@subsection Expression compatibility
> +
> +Modula-2 restricts the types of expressions to the same type.
> +Expression compatibility is a symmetric relation.
> +
> +For example two sub expressions of @code{INTEGER} and @code{CARDINAL}
> +are not expression compatible
> +(@uref{http://freepages.modula2.org/report4/modula-2.html} and ISO
> +Modula-2).
> +
> +In GNU Modula-2 this rule is also extended across all fixed sized data
> +types (imported from SYSTEM).
> +
> +@subsection Assignment compatibility
> +
> +This section discusses the assignment issues surrounding assignment
> +compatibility of elementary types (@code{INTEGER}, @code{CARDINAL},
> +@code{REAL} and @code{CHAR} for example). The information here is
> +found in more detail in the Modula-2 ISO standard BS ISO/IEC
> +10514-1:1996 page 122.
> +
> +Assignment compatibility exists between the same sized elementary
> +types.
> +
> +Same type family of different sizes are
> +also compatible as long as the @code{MAX(}type@code{)} and
> +@code{MIN(}type@code{)} is known. So for example this includes the
> +@code{INTEGER} family, @code{CARDINAL} family and the @code{REAL}
> +family.
> +
> +The reason for this is that when the assignment is performed
> +the compiler will check to see that the expression (on the right of
> +the @code{:=}) lies within the range of the designator type (on the
> +left hand side of the @code{:=}). Thus these ordinal types can be
> +assignment compatible. However it does mean that @code{WORD32} is not
> +compatible with @code{WORD16} as @code{WORD32} does not have a minimum
> +or maximum value and therefore cannot be checked. The compiler does
> +not know which of the two bytes from @code{WORD32} should be copied
> +into @code{WORD16} and which two should be ignored. Currently the
> +types @code{BITSET8}, @code{BITSET16} and @code{BITSET32} are
> +assignment incompatible. However this restriction maybe lifted when
> +further runtime checking is achieved.
> +
> +Modula-2 does allow @code{INTEGER} to be assignment compatible with
> +@code{WORD} as they are the same size. Likewise GNU Modula-2 allows
> +@code{INTEGER16} to be compatible with @code{WORD16} and the same for
> +the other fixed sized types and their sized equivalent in either
> +@code{WORD}n, @code{BYTE} or @code{LOC} types. However it prohibits
> +assignment between @code{WORD} and @code{WORD32} even though on many
> +systems these sizes will be the same. The reasoning behind this rule
> +is that the extended fixed sized types are meant to be used by
> +applications requiring fixed sized data types and it is more portable
> +to forbid the bluring of the boundaries between fixed sized and
> +machine dependant sized types.
> +
> +Intemediate code runtime checking is always generated by the front
> +end. However this intemediate code is only translated into actual
> +code if the appropriate command line switches are specified. This
> +allows the compiler to perform limited range checking at compile time.
> +In the future it will allow the extensive GCC optimisations to
> +propagate constant values through to the range checks which if they
> +are found to exceed the type range will result in a compile time
> +error message.
> +
> +@subsection Parameter compatibility
> +
> +Parameter compatibility is divided into two areas, pass by value and
> +pass by reference (@code{VAR}). In the case of pass by value the
> +rules are exactly the same as assignment. However in the second case,
> +pass by reference, the actual parameter and formal parameter must be
> +the same size and family. Furthermore @code{INTEGER} and
> +@code{CARDINAL}s are not treated as compatible in the pass by
> +reference case.
> +
> +The types @code{BYTE}, @code{LOC}, @code{WORD} and @code{WORD}n
> +derivitives are assignment and parameter compatible with any data type
> +of the same size.
> +
> +@node Unbounded by reference, Building a shared library, Type compatibility, Using
> +@section Unbounded by reference
> +
> +This section documents a GNU Modula-2 compiler switch which implements
> +a language optimisation surrounding the implementation of unbounded
> +arrays. In GNU Modula-2 the unbounded array is implemented by
> +utilising an internal structure @code{struct @{dataType *address,
> +unsigned int high@}}. So given the Modula-2 procedure declaration:
> +
> +@example
> +PROCEDURE foo (VAR a: ARRAY OF dataType) ;
> +BEGIN
> + IF a[2]= (* etc *)
> +END foo ;
> +@end example
> +
> +it is translated into GCC @code{tree}s, which can be represented
> +in their C form thus:
> +
> +@example
> +void foo (struct @{dataType *address, unsigned int high@} a)
> +@{
> + if (a.address[2] == /* etc */
> +@}
> +@end example
> +
> +Whereas if the procedure @code{foo} was declared as:
> +
> +@example
> +PROCEDURE foo (a: ARRAY OF dataType) ;
> +BEGIN
> + IF a[2]= (* etc *)
> +END foo ;
> +@end example
> +
> +then it is implemented by being translated into the following
> +GCC @code{tree}s, which can be represented in their C form thus:
> +
> +@example
> +void foo (struct @{dataType *address, unsigned int high@} a)
> +@{
> + dataType *copyContents = (dataType *)alloca (a.high+1);
> + memcpy(copyContents, a.address, a.high+1);
> + a.address = copyContents;
> +
> + if (a.address[2] == /* etc */
> +@}
> +@end example
> +
> +This implementation works, but it makes a copy of each non VAR
> +unbounded array when a procedure is entered. If the unbounded array
> +is not changed during procedure @code{foo} then this implementation
> +will be very inefficient. In effect Modula-2 lacks the @code{REF}
> +keyword of Ada. Consequently the programmer maybe tempted to
> +sacrifice semantic clarity for greater efficiency by declaring the
> +parameter using the @code{VAR} keyword in place of @code{REF}.
> +
> +The @code{-funbounded-by-reference} switch instructs the compiler to
> +check and see if the programmer is modifying the content of any
> +unbounded array. If it is modified then a copy will be made upon
> +entry into the procedure. Conversely if the content is only read and
> +never modified then this non @code{VAR} unbounded array is a candidate
> +for being passed by reference. It is only a candidate as it is still
> +possible that passing this parameter by reference could alter the
> +meaning of the source code. For example consider the following case:
> +
> +@example
> +PROCEDURE StrConCat (VAR a: ARRAY OF CHAR; b, c: ARRAY OF CHAR) ;
> +BEGIN
> + (* code which performs string a := b + c *)
> +END StrConCat ;
> +
> +PROCEDURE foo ;
> +VAR
> + a: ARRAY [0..3] OF CHAR ;
> +BEGIN
> + a := 'q' ;
> + StrConCat(a, a, a)
> +END foo ;
> +@end example
> +
> +In the code above we see that the same parameter, @code{a}, is being
> +passed three times to @code{StrConCat}. Clearly even though parameters
> +@code{b} and @code{c} are never modified it would be incorrect to
> +implement them as pass by reference. Therefore the compiler checks to
> +see if any non @code{VAR} parameter is type compatible with any
> +@code{VAR} parameter and if so it generates runtime procedure entry
> +checks to determine whether the contents of parameters @code{b} or
> +@code{c} matches the contents of @code{a}. If a match is detected
> +then a copy is made and the @code{address} in the unbounded
> +@code{struct}ure is modified.
> +
> +The compiler will check the address range of each candidate against
> +the address range of any @code{VAR} parameter, providing they are type
> +compatible. For example consider:
> +
> +@example
> +PROCEDURE foo (a: ARRAY OF BYTE; VAR f: REAL) ;
> +BEGIN
> + f := 3.14 ;
> + IF a[0]=BYTE(0)
> + THEN
> + (* etc *)
> + END
> +END foo ;
> +
> +PROCEDURE bar ;
> +BEGIN
> + r := 2.0 ;
> + foo(r, r)
> +END bar ;
> +@end example
> +
> +Here we see that although parameter, @code{a}, is a candidate for the
> +passing by reference, it would be incorrect to use this
> +transformation. Thus the compiler detects that parameters, @code{a}
> +and @code{f} are type compatible and will produce runtime checking
> +code to test whether the address range of their respective contents
> +intersect.
> +
> +@node Linking, Building a shared library, Unbounded by reference, Using
> +
> +This section describes the linking related options. There are three
> +linking strategies available which are dynamic scaffold, static
> +scaffold and user defined. The dynamic scaffold is enabled by default
> +and each module will register itself to the runtime @samp{M2RTS} via
> +a constructor. The static scaffold mechanism will invoke each modules
> +@samp{_init} and @samp{_finish} function in turn via a sequence of
> +calls from within @samp{main}. Lastly the user defined strategy
> +can be implemented by turning off the dynamic and static options via
> +@samp{-fno-scaffold-dynamic} and @samp{-fno-scaffold-static}.
> +
> +In the simple test below:
> +
> +@example
> +$ gm2 hello.mod
> +@end example
> +
> +the driver will add the options @samp{-fscaffold-dynamic} and
> +@samp{-fgen-module-list=-} which generate a list of application
> +modules and also creates the @samp{main} function with calls to
> +@samp{M2RTS}. It can be useful to add the option @samp{-fsources}
> +which displays the source files as they are parsed and summarizes
> +whether the source file is required for compilation or linking.
> +
> +If you wish to split the above command line into a compile and link
> +then you could use these steps:
> +
> +@example
> +$ gm2 -c -fscaffold-main hello.mod
> +$ gm2 hello.o
> +@end example
> +
> +The @samp{-fscaffold-main} informs the compiler to generate the
> +@samp{main} function and scaffold. You can enable the environment
> +variable @samp{GCC_M2LINK_RTFLAG} to trace the construction and
> +destruction of the application. The values for
> +@samp{GCC_M2LINK_RTFLAG} are shown in the table below:
> +
> +@example
> +value | meaning
> +=================
> +all | turn on all flags below
> +module | trace modules as they register themselves
> +pre | generate module list prior to dependency resolution
> +dep | trace module dependency resolution
> +post | generate module list after dependency resolution
> +force | generate a module list after dependency and forced
> + | ordering is complete
> +@end example
> +
> +The values can be combined using a comma separated list.
> +
> +One of the advantages of the dynamic scaffold is that the driver
> +behaves in a similar way to the other front end drivers.
> +For example consider a small project consisting of 4 definition
> +implementation modules (@samp{a.def}, @samp{a.mod}, @samp{b.def},
> +@samp{b.mod}, @samp{c.def}, @samp{c.mod}, @samp{d.def}, @samp{d.mod})
> +and a program module @samp{program.mod}.
> +
> +To link this project we could:
> +
> +@example
> +$ gm2 -g -c a.mod
> +$ gm2 -g -c b.mod
> +$ gm2 -g -c c.mod
> +$ gm2 -g -c d.mod
> +$ gm2 -g program.mod a.o b.o c.o d.o
> +@end example
> +
> +The module initialization sequence is defined by the ISO standard to
> +follow the import graph traversal. The initialization order is the
> +order in which the corresponding separate modules finish the
> +processing of their import lists.
> +
> +However, if required, you can override this using
> +@samp{-fruntime-modules=a,b,c,d} for example which forces the
> +initialization sequence to @samp{a}, @samp{b}, @samp{c} and @samp{d}.
> +
> +@node Building a shared library, Interface for Python, Unbounded by reference, Using
> +@section Building a shared library
> +
> +This section describes building a tiny shared library implemented in
> +Modula-2 and built with @file{libtool}. Suppose a project consists of
> +two definition modules and two implementation modules and a program
> +module @file{a.def}, @file{a.mod}, @file{b.def}, @file{b.mod} and
> +@file{c.mod}. The first step is to compile the modules using position
> +independent code. This can be achieved by the following three
> +commands:
> +
> +@example
> +libtool --tag=CC --mode=compile gm2 -g -c a.mod -o a.lo
> +libtool --tag=CC --mode=compile gm2 -g -c b.mod -o b.lo
> +libtool --tag=CC --mode=compile gm2 -g -c c.mod -o c.lo
> +@end example
> +
> +The second step is to generate the shared library initialization and
> +finalization routines. We can do this by asking gm2 to generate a
> +list of dependant modules and then use this to generate the scaffold.
> +We also must compile the scaffold.
> +
> +@example
> +gm2 -c -g -fmakelist c.mod
> +gm2 -c -g -fmakeinit -fshared c.mod
> +libtool --tag=CC --mode=compile g++ -g -c c_m2.cpp -o c_m2.lo
> +@end example
> +
> +The third step is to link all these @file{.lo} files.
> +
> +@example
> +libtool --mode=link gcc -g c_m2.lo a.lo b.lo c.lo \
> + -L$(prefix)/lib64 \
> + -rpath `pwd` -lgm2 -lstdc++ -lm -o libabc.la
> +@end example
> +
> +At this point the shared library @file{libabc.so} will have been
> +created inside the directory @file{.libs}.
> +
> +@node Interface for Python, Producing a Python module, Building a shared library, Using
> +@section How to produce swig interface files
> +
> +This section describes how Modula-2 implementation modules can be
> +called from Python (and other scripting languages such as TCL and
> +Perl). GNU Modula-2 can be instructed to create a swig interface when
> +it is compiling an implementation module. Swig then uses the
> +interface file to generate all the necessary wrapping to that the
> +desired scripting language may access the implementation module.
> +
> +Here is an example of how you might call upon the services of the
> +Modula-2 library module @code{NumberIO} from Python3.
> +
> +The following commands can be used to generate the Python3 module:
> +
> +@example
> +export src=@samp{directory to the sources}
> +export prefix=@samp{directory to where the compiler is installed}
> +gm2 -I$@{src@} -c -g -fswig $@{src@}/../../../gm2-libs/NumberIO.mod
> +gm2 -I$@{src@} -c -g -fmakelist $@{src@}/../../../gm2-libs/NumberIO.mod
> +
> +gm2 -I$@{src@} -c -g -fmakeinit -fshared \
> + $@{src@}/../../../gm2-libs/NumberIO.mod
> +
> +swig -c++ -python3 NumberIO.i
> +
> +libtool --mode=compile g++ -g -c -I$@{src@} NumberIO_m2.cpp \
> + -o NumberIO_m2.lo
> +
> +libtool --tag=CC --mode=compile gm2 -g -c \
> + -I$@{src@}../../../gm2-libs \
> + $@{src@}/../../../gm2-libs/NumberIO.mod -o NumberIO.lo
> +
> +libtool --tag=CC --mode=compile g++ -g -c NumberIO_wrap.cxx \
> + -I/usr/include/python3 -o NumberIO_wrap.lo
> +
> +libtool --mode=link gcc -g NumberIO_m2.lo NumberIO_wrap.lo \
> + -L$@{prefix@}/lib64 \
> + -rpath `pwd` -lgm2 -lstdc++ -lm -o libNumberIO.la
> +
> +cp .libs/libNumberIO.so _NumberIO.so
> +@end example
> +
> +The first four commands, generate the swig interface file
> +@file{NumberIO.i} and python wrap files @file{NumberIO_wrap.cxx} and
> +@file{NumberIO.py}. The next three @file{libtool} commnads compile
> +the C++ and Modula-2 source code into @file{.lo} objects. The last
> +@file{libtool} command links all the @file{.lo} files into a
> +@file{.la} file and includes all shared library dependencies.
> +
> +Now it is possible to run the following Python script
> +(called @file{testnum.py}):
> +
> +@example
> +import NumberIO
> +
> +print ("1234 x 2 =", NumberIO.NumberIO_StrToInt("1234")*2)
> +@end example
> +
> +like this:
> +
> +@example
> +$ python3 testnum.py
> +1234 x 2 = 2468
> +@end example
> +
> +@xref{Producing a Python module, , ,gm2} for another example which
> +uses the @code{UNQUALIFIED} keyword to reduce the module name clutter
> +from the viewport of Python3.
> +
> +@subsection Limitations of automatic generated of Swig files
> +
> +This section discusses the limitations of automatically generating
> +swig files. From the previous example we see that the module
> +@code{NumberIO} had a swig interface file @file{NumberIO.i}
> +automatically generated by the compiler. If we consider three of the
> +procedure definitions in @file{NumberIO.def} we can see the
> +success and limitations of the automatic interface generation.
> +
> +@example
> +PROCEDURE StrToHex (a: ARRAY OF CHAR; VAR x: CARDINAL) ;
> +PROCEDURE StrToInt (a: ARRAY OF CHAR; VAR x: INTEGER) ;
> +PROCEDURE ReadInt (VAR x: CARDINAL) ;
> +@end example
> +
> +Below are the swig interface prototypes:
> +
> +@example
> +extern void NumberIO_StrToHex (char *_m2_address_a,
> + int _m2_high_a, unsigned int *OUTPUT);
> +/* parameters: x is known to be an OUTPUT */
> +extern void NumberIO_StrToInt (char *_m2_address_a,
> + int _m2_high_a, int *OUTPUT);
> +/* parameters: x is guessed to be an OUTPUT */
> +extern void NumberIO_ReadInt (int *x);
> +/* parameters: x is unknown */
> +@end example
> +
> +In the case of @code{StrToHex} it can be seen that the compiler
> +detects that the last parameter is an output. It explicitly tells
> +swig this by using the parameter name @code{OUTPUT} and in the
> +following comment it informs the user that it knows this to be an
> +output parameter. In the second procedure @code{StrToInt} it marks
> +the final parameter as an output, but it tells the user that this is
> +only a guess. Finally in @code{ReadInt} it informs the user that
> +it does not know whether the parameter, @code{x}, is an output, input
> +or an inout parameter.
> +
> +The compiler decides whether to mark a parameter as either:
> +@code{INPUT}, @code{OUTPUT} or @code{INOUT} if it is read before
> +written or visa versa in the first basic block. At this point
> +it will write output that the parameter is known. If it is not
> +read or written in the first basic block then subsequent basic blocks
> +are searched and the result is commented as a guess. Finally if
> +no read or write occurs then the parameter is commented as unknown.
> +However, clearly it is possible to fool this mechanism. Nevertheless
> +automatic generation of implementation module into swig interface files
> +was thought sufficiently useful despite these limitations.
> +
> +In conclusion it would be wise to check all parameters in any
> +automatically generated swig interface file. Furthermore you can
> +force the automatic mechanism to generate correct interface files by
> +reading or writing to the @code{VAR} parameter in the first basic
> +block of a procedure.
> +
> +@node Producing a Python module, Interface to C, Interface for Python, Using
> +@section How to produce a Python module
> +
> +This section descibes how it is possible to produce a Python module
> +from Modula-2 code. There are a number of advantages to this
> +approach, it ensures your code reaches a wider audience, maybe it is
> +easier to initialize your application in Python.
> +
> +The example application here is a pedagogical two dimensional gravity
> +next event simulation. The Python module needs to have a clear API
> +which should be placed in a single definition module. Furthermore the
> +API should only use fundamental pervasive data types and strings.
> +Below the API is contained in the file @file{twoDsim.def}:
> +
> +@example
> +DEFINITION MODULE twoDsim ;
> +
> +EXPORT UNQUALIFIED gravity, box, poly3, poly5, poly6, mass,
> + fix, circle, pivot, velocity, accel, fps,
> + replayRate, simulateFor ;
> +(*
> + gravity - turn on gravity at: g m^2
> +*)
> +
> +PROCEDURE gravity (g: REAL) ;
> +
> +
> +(*
> + box - place a box in the world at (x0,y0),(x0+i,y0+j)
> +*)
> +
> +PROCEDURE box (x0, y0, i, j: REAL) : CARDINAL ;
> +
> +
> +(*
> + poly3 - place a triangle in the world at:
> + (x0,y0),(x1,y1),(x2,y2)
> +*)
> +
> +PROCEDURE poly3 (x0, y0, x1, y1, x2, y2: REAL) : CARDINAL ;
> +
> +
> +(*
> + poly5 - place a pentagon in the world at:
> + (x0,y0),(x1,y1),(x2,y2),(x3,y3),(x4,y4)
> +*)
> +
> +PROCEDURE poly5 (x0, y0, x1, y1,
> + x2, y2, x3, y3, x4, y4: REAL) : CARDINAL ;
> +
> +
> +(*
> + poly6 - place a hexagon in the world at:
> + (x0,y0),(x1,y1),(x2,y2),(x3,y3),(x4,y4),(x5,y5)
> +*)
> +
> +PROCEDURE poly6 (x0, y0, x1, y1,
> + x2, y2, x3, y3,
> + x4, y4, x5, y5: REAL) : CARDINAL ;
> +
> +
> +(*
> + mass - specify the mass of an object and return the, id.
> +*)
> +
> +PROCEDURE mass (id: CARDINAL; m: REAL) : CARDINAL ;
> +
> +
> +(*
> + fix - fix the object to the world.
> +*)
> +
> +PROCEDURE fix (id: CARDINAL) : CARDINAL ;
> +
> +
> +(*
> + circle - adds a circle to the world. Center
> + defined by: x0, y0 radius, r.
> +*)
> +
> +PROCEDURE circle (x0, y0, r: REAL) : CARDINAL ;
> +
> +
> +(*
> + velocity - give an object, id, a velocity, vx, vy.
> +*)
> +
> +PROCEDURE velocity (id: CARDINAL; vx, vy: REAL) : CARDINAL ;
> +
> +
> +(*
> + accel - give an object, id, an acceleration, ax, ay.
> +*)
> +
> +PROCEDURE accel (id: CARDINAL; ax, ay: REAL) : CARDINAL ;
> +
> +
> +(*
> + fps - set frames per second.
> +*)
> +
> +PROCEDURE fps (f: REAL) ;
> +
> +
> +(*
> + replayRate - set frames per second during replay.
> +*)
> +
> +PROCEDURE replayRate (f: REAL) ;
> +
> +
> +(*
> + simulateFor - render for, t, seconds.
> +*)
> +
> +PROCEDURE simulateFor (t: REAL) ;
> +
> +
> +END twoDsim.
> +@end example
> +
> +The keyword @code{UNQUALIFIED} can be used to ensure that the
> +compiler will provide externally accessible functions
> +@code{gravity}, @code{box}, @code{poly3}, @code{poly5}, @code{poly6},
> +@code{mass}, @code{fix}, @code{circle}, @code{pivot}, @code{velocity},
> +@code{accel}, @code{fps}, @code{replayRate}, @code{simulateFor}
> +rather than name mangled alternatives.
> +Hence in our Python3 application we could write:
> +
> +@example
> +#!/usr/bin/env python3
> +
> +from twoDsim import *
> +
> +b = box (0.0, 0.0, 1.0, 1.0)
> +b = fix (b)
> +c1 = circle (0.7, 0.7, 0.05)
> +c1 = mass (c1, 0.01)
> +c2 = circle (0.7, 0.1, 0.05)
> +c2 = mass (c2, 0.01)
> +c2 = fix (c2)
> +gravity (-9.81)
> +fps (24.0*4.0)
> +replayRate (24.0)
> +print ("creating frames")
> +try:
> + simulateFor (1.0)
> + print ("all done")
> +except:
> + print ("exception raised")
> +@end example
> +
> +which accesses the various functions defined and implemented by the
> +module @code{twoDsim}. The Modula-2 source code is compiled via:
> +
> +@example
> +$ gm2 -g -fiso -c -fswig twoDsim.mod
> +$ gm2 -g -fiso -c -fmakelist twoDsim.mod
> +$ gm2 -g -fiso -c -fmakeinit twoDsim.mod
> +@end example
> +
> +The first command both compiles the source file creating
> +@file{twoDsim.o} and produces a swig interface file @file{swig.i}. We
> +now use @code{swig} and @code{g++} to produce and compile the
> +interface wrappers:
> +
> +@example
> +$ libtool --mode=compile g++ -g -c twoDsim_m2.cpp -o twoDsim_m2.lo
> +$ swig -c++ -python3 twoDsim.i
> +$ libtool --mode=compile g++ -c -fPIC twoDsim_wrap.cxx \
> + -I/usr/include/python3 -o twoDsim_wrap.lo
> +$ libtool --mode=compile gm2 -g -fPIC -fiso -c deviceGnuPic.mod
> +$ libtool --mode=compile gm2 -g -fPIC -fiso -c roots.mod
> +$ libtool --mode=compile gm2 -g -fPIC -fiso -c -fswig \
> + twoDsim.mod -o twoDsim.lo
> +@end example
> +
> +Finally the application is linked into a shared library:
> +
> +@example
> +$ libtool --mode=link gcc -g twoDsim_m2.lo twoDsim_wrap.lo \
> + roots.lo deviceGnuPic.lo \
> + -L$@{prefix@}/lib64 \
> + -rpath `pwd` -lgm2 -lstdc++ -lm -o libtwoDsim.la
> +cp .libs/libtwoDsim.so _twoDsim.so
> +@end example
> +
> +The library name must start with @code{_} to comply with the Python3
> +module naming scheme.
> +
> +@node Interface to C, Assembly language, Producing a Python module, Using
> +@section Interfacing GNU Modula-2 to C
> +
> +The GNU Modula-2 compiler tries to use the C calling convention
> +wherever possible however some parameters have no C equivalent and
> +thus a language specific method is used. For example unbounded arrays
> +are passed as a @code{struct @{void *address, unsigned int high@}} and
> +the contents of these arrays are copied by callee functions when they
> +are declared as non @code{VAR} parameters. The @code{VAR} equivalent
> +unbounded array parameters need no copy, but still use the
> +@code{struct} representation.
> +
> +The recommended method of interfacing GNU Modula-2 to C is by telling
> +the definition module that the implementation is in the C language.
> +This is achieved by using the tokens @code{DEFINITION MODULE FOR "C"}.
> +Here is an example @file{libprintf.def}.
> +
> +@example
> +DEFINITION MODULE FOR "C" libprintf ;
> +
> +EXPORT UNQUALIFIED printf ;
> +
> +PROCEDURE printf (a: ARRAY OF CHAR; ...) : [ INTEGER ] ;
> +
> +END libprintf.
> +@end example
> +
> +the @code{UNQUALIFIED} keyword in the definition module informs
> +GNU Modula-2 not to prefix the module name to exported references
> +in the object file.
> +
> +The @code{printf} declaration states that the first parameter
> +semantically matches @code{ARRAY OF CHAR} but since the module is for
> +the C language it will be mapped onto @code{char *}. The token
> +@code{...} indicates a variable number of arguments (varargs) and all
> +parameters passed here are mapped onto their C equivalents. Arrays and
> +constant strings are passed as pointers. Lastly @code{[ INTEGER ]}
> +states that the caller can ignore the function return result if desired.
> +
> +The hello world program can be rewritten as:
> +
> +@example
> +MODULE hello ;
> +
> +FROM libprintf IMPORT printf ;
> +
> +BEGIN
> + printf("hello world\n")
> +END hello.
> +@end example
> +
> +and it can be compiled by:
> +
> +@samp{gm2 -g -I. hello.mod -lc}
> +
> +In reality the @samp{-lc} is redundant as libc is always included in the
> +linking process. It is shown here to emphasize that the C library or
> +object file containing @code{printf} must be present.
> +
> +If a procedure function is declared using varargs then some parameter
> +values are converted. The table below summarises the default conversions
> +and default types used.
> +
> +@example
> +Actual Parameter | Default conversion | Type of actual
> + | | value passed
> +===============================================================
> +123 | none | long long int
> +"hello world" | none | const char *
> +a: ARRAY OF CHAR | ADR(a) | char *
> +a: ARRAY [0..5] OF CHAR| ADR(a) | char *
> +3.14 | none | long double
> +@end example
> +
> +If you wish to pass @code{int} values then you should explicitly
> +convert the constants using one of the conversion mechanisms.
> +For example: @code{INTEGER(10)} or @code{VAL(INTEGER, 10)} or
> +@code{CAST(INTEGER, 10)}.
> +
> +@node Assembly language, Alignment, Interface to C, Using
> +@section Interface to assembly language
> +
> +The interface for GNU Modula-2 to assembly language is almost
> +identical to GNU C. The only alterations are that the keywords
> +@code{asm} and @code{volatile} are in capitals, following the Modula-2
> +convention.
> +
> +A simple, but highly non optimal, example is given below. Here we want
> +to add the two @code{CARDINAL}s @code{foo} and @code{bar} together and
> +return the result. The target processor is assumed to be executing
> +the x86_64 instruction set.
> +
> +@example
> +PROCEDURE Example (foo, bar: CARDINAL) : CARDINAL ;
> +VAR
> + myout: CARDINAL ;
> +BEGIN
> + ASM VOLATILE ("movq %1,%%rax; addq %2,%%rax; movq %%rax,%0"
> + : "=rm" (myout) (* outputs *)
> + : "rm" (foo), "rm" (bar) (* inputs *)
> + : "rax") ; (* we trash *)
> + RETURN( myout )
> +END Example ;
> +@end example
> +
> +For a full description of this interface we refer the reader to the GNU C manual.
> +
> +@xref{Extended Asm, ,Extensions to the C Language Family,gcc}.
> +
> +The same example can be written using the newer extensions of naming
> +the operands rather than using numbered arguments.
> +
> +@example
> +PROCEDURE Example (foo, bar: CARDINAL) : CARDINAL ;
> +VAR
> + myout: CARDINAL ;
> +BEGIN
> + ASM VOLATILE (
> + "movq %[left],%%rax; addq %[right],%%rax; movq %%rax,%[output]"
> + : [output] "=rm" (myout) (* outputs *)
> + : [left] "rm" (foo), [right] "rm" (bar) (* inputs *)
> + : "rax") ; (* we trash *)
> + RETURN( myout )
> +END Example ;
> +@end example
> +
> +Both examples generate exactly the same code. It is worth noting that
> +the specifier ``rm'' indicates that the operand can be either a
> +register or memory. Of course you must choose an instruction which
> +can take either, but this allows the compiler to take make more
> +efficient choices depending upon the optimization level given to the
> +compiler.
> +
> +@node Alignment, Packed, Assembly language, Using
> +@section Data type alignment
> +
> +GNU Modula-2 allows you to specify alignment for types and variables.
> +The syntax for alignment is to use the ISO pragma directives @code{<*}
> +@code{bytealignment (} expression @code{)} and @code{*>}. These directives
> +can be used after type and variable declarations.
> +
> +The ebnf of the alignment production is:
> +
> +@example
> +Alignment := [ ByteAlignment ] =:
> +ByteAlignment := '<*' AttributeExpression '*>' =:
> +AlignmentExpression := "(" ConstExpression ")" =:
> +@end example
> +
> +The @code{Alignment} ebnf statement may be used during contruction of
> +types, records, record fields, arrays, pointers and variables. Below
> +is an example of aligning a type so that the variable @code{bar} is
> +aligned on a 1024 address.
> +
> +@example
> +MODULE align ;
> +
> +TYPE
> + foo = INTEGER <* bytealignment(1024) *> ;
> +
> +VAR
> + z : INTEGER ;
> + bar: foo ;
> +BEGIN
> +END align.
> +@end example
> +
> +The next example aligns a variable on a 1024 byte boundary.
> +
> +@example
> +MODULE align2 ;
> +
> +VAR
> + x : CHAR ;
> + z : ARRAY [0..255] OF INTEGER <* bytealignment(1024) *> ;
> +BEGIN
> +END align2.
> +@end example
> +
> +Here the example aligns a pointer on a 1024 byte boundary.
> +
> +@example
> +MODULE align4 ;
> +
> +FROM SYSTEM IMPORT ADR ;
> +FROM libc IMPORT exit ;
> +
> +VAR
> + x : CHAR ;
> + z : POINTER TO INTEGER <* bytealignment(1024) *> ;
> +BEGIN
> + IF ADR(z) MOD 1024=0
> + THEN
> + exit(0)
> + ELSE
> + exit(1)
> + END
> +END align4.
> +@end example
> +
> +In example @code{align5} record field @code{y} is aligned on a 1024
> +byte boundary.
> +
> +@example
> +MODULE align5 ;
> +
> +FROM SYSTEM IMPORT ADR ;
> +FROM libc IMPORT exit ;
> +
> +TYPE
> + rec = RECORD
> + x: CHAR ;
> + y: CHAR <* bytealignment(1024) *> ;
> + END ;
> +VAR
> + r: rec ;
> +BEGIN
> + IF ADR(r.y) MOD 1024=0
> + THEN
> + exit(0)
> + ELSE
> + exit(1)
> + END
> +END align5.
> +@end example
> +
> +In the example below module @code{align6} declares @code{foo} as an
> +array of 256 @code{INTEGER}s. The array @code{foo} is aligned on a
> +1024 byte boundary.
> +
> +@example
> +MODULE align6 ;
> +
> +FROM SYSTEM IMPORT ADR ;
> +FROM libc IMPORT exit ;
> +
> +TYPE
> + foo = ARRAY [0..255] OF INTEGER <* bytealignment(1024) *> ;
> +
> +VAR
> + x : CHAR ;
> + z : foo ;
> +BEGIN
> + IF ADR(z) MOD 1024=0
> + THEN
> + exit(0)
> + ELSE
> + exit(1)
> + END
> +END align6.
> +@end example
> +
> +@node Packed, Built-ins, Alignment, Using
> +@section Packing data types
> +
> +The pragma @code{<* bytealignment(0) *>} can be used to specify that
> +the fields within a @code{RECORD} are to be packed. Currently this
> +only applies to fields which are declared as subranges, ordinal types
> +and enumerated types. Here is an example of how two subranges might
> +be packed into a byte.
> +
> +@example
> +TYPE
> + bits3c = [0..7] ;
> + bits3i = [-4..3] ;
> +
> + byte = RECORD
> + <* bytealignment(0) *>
> + x: bits3c ;
> + <* bitsunused(2) *>
> + y: bits3i ;
> + END ;
> +@end example
> +
> +Notice that the user has specified that in between fields @code{x} and
> +@code{y} there are two bits unused.
> +
> +Now the user wishes to create a record with byte numbers zero and one
> +occupied and then an @code{INTEGER32} field which is four byte
> +aligned. In this case byte numbers two and three will be unused. The
> +pragma @code{bytealignment} can be issued at the start of the record
> +indicating the default alignment for the whole record and this can be
> +overridden by individual fields if necessary.
> +
> +@example
> + rec = RECORD
> + <* bytealignment (1) *> ;
> + a, b: byte ;
> + x: INTEGER32 <* bytealignment(4) *> ;
> + END ;
> +@end example
> +
> +In the following example the user has specified that a record has two
> +fields @code{p} and @code{q} but that there are three bytes unused between
> +these fields.
> +
> +@example
> + header = RECORD
> + <* bytealignment(1) *>
> + p: byte ;
> + <* bytesunused(3) *>
> + q: byte ;
> + END ;
> +@end example
> +
> +The pragma @code{<* bytesunused(x) *>} can only be used if the current
> +field is on a byte boundary. There is also a @code{SYSTEM} pseudo
> +procedure function @code{TBITSIZE(T)} which returns the minimum number of
> +bits necessary to represent type @code{T}.
> +
> +Another example of packing record bit fields is given below:
> +
> +@example
> +MODULE align21 ;
> +
> +FROM libc IMPORT exit ;
> +
> +TYPE
> + colour = (red, blue, green, purple, white, black) ;
> +
> + soc = PACKEDSET OF colour ;
> +
> + rec = RECORD
> + <* bytealignment(0) *>
> + x: soc ;
> + y: [-1..1] ;
> + END ;
> +
> +VAR
> + r: rec ;
> + v: CARDINAL ;
> +BEGIN
> + v := SIZE(r) ;
> + IF SIZE(r)#1
> + THEN
> + exit(1)
> + END ;
> + r.x := soc@{blue@} ;
> + IF r.x#soc@{blue@}
> + THEN
> + exit(2)
> + END
> +END align21.
> +@end example
> +
> +Here we see that the total size of this record is one byte and consists
> +of a six bit set type followed by a 2 bit integer subrange.
> +
> +@node Built-ins, The PIM system module, Packed, Using
> +@section Accessing GNU Modula-2 Built-ins
> +
> +This section describes the built-in constants and functions defined in
> +GNU Modula-2. The following compiler constants can be accessed using
> +the @code{__ATTRIBUTE__} @code{__BUILTIN__} keywords. These are not
> +part of the Modula-2 language and they may differ depending upon the
> +target architecture but they provide a method whereby common
> +libraries can interface to a different underlying architecture.
> +
> +The built-in constants are: @code{BITS_PER_UNIT}, @code{BITS_PER_WORD},
> +@code{BITS_PER_CHAR} and @code{UNITS_PER_WORD}. They are integrated into
> +GNU Modula-2 by an extension to the @code{ConstFactor} rule:
> +
> +@example
> +ConstFactor := ConstQualidentOrSet | Number | ConstString |
> + "(" ConstExpression ")" | "NOT" ConstFactor |
> + ConstAttribute =:
> +
> +ConstAttribute := "__ATTRIBUTE__" "__BUILTIN__" "(" "(" Ident ")" ")" =:
> +@end example
> +
> +Here is an example taken from the ISO library @code{SYSTEM.def}:
> +
> +@example
> +CONST
> + BITSPERLOC = __ATTRIBUTE__ __BUILTIN__ ((BITS_PER_UNIT)) ;
> + LOCSPERWORD = __ATTRIBUTE__ __BUILTIN__ ((UNITS_PER_WORD)) ;
> +@end example
> +
> +Built-in functions are transparent to the end user. All built-in
> +functions are declared in @code{DEFINITION MODULE}s and are imported
> +as and when required. Built-in functions are declared in definition
> +modules by using the @code{__BUILTIN__} keyword. Here is a section of
> +the ISO library @code{LongMath.def} which demonstrates this feature.
> +
> +@example
> +PROCEDURE __BUILTIN__ sqrt (x: LONGREAL): LONGREAL;
> + (* Returns the square root of x *)
> +@end example
> +
> +This indicates that the function @code{sqrt} will be implemented using
> +the gcc built-in maths library. If gcc cannot utilise the built-in
> +function (for example if the programmer requested the address of
> +@code{sqrt}) then code is generated to call the alternative function
> +implemented in the @code{IMPLEMENTATION} @code{MODULE}.
> +
> +Sometimes a function exported from the @code{DEFINITION} @code{MODULE}
> +will have a different name from the built-in function within gcc. In
> +such cases the mapping between the GNU Modula-2 function name and the
> +gcc name is expressed using the keywords @code{__ATTRIBUTE__}
> +@code{__BUILTIN__} @code{((Ident))}. For example the function
> +@code{sqrt} in @code{LongMath.def} maps onto the gcc built-in function
> +@code{sqrtl} and this is expressed as:
> +
> +@example
> +PROCEDURE __ATTRIBUTE__ __BUILTIN__ ((sqrtl)) sqrt
> + (x: LONGREAL) : LONGREAL;
> + (* Returns the positive square root of x *)
> +@end example
> +
> +The following module @code{Builtins.def} enumerates the list of
> +built-in functions which can be accessed in GNU Modula-2. It also
> +serves to define the parameter and return value for each function:
> +
> +@include m2/Builtins.texi
> +
> +Although this module exists and will result in the generation of
> +in-line code if optimization flags are passed to GNU Modula-2, users
> +are advised to utilize the same functions from more generic libraries.
> +The built-in mechanism will be applied to these generic
> +libraries where appropriate. Note for the mathematical routines to
> +be in-lined you need to specify the @samp{-ffast-math -O} options.
> +
> +@node The PIM system module, The ISO system module, Built-ins, Using
> +@section The PIM system module
> +
> +@include m2/SYSTEM-pim.texi
> +
> +The different dialects of Modula-2 PIM-[234] and ISO Modula-2 declare
> +the function @code{SIZE} in different places. PIM-[34] and ISO
> +Modula-2 declare @code{SIZE} as a pervasive function (declared in the
> +base module). PIM-2 defined @code{SIZE} in the @code{SYSTEM} module
> +(as shown above).
> +
> +GNU Modula-2 allows users to specify the dialect of Modula-2 by using
> +the @code{-fiso} and @code{-fpim2} command line switches.
> +
> +The data types @code{CSIZE_T} and @code{CSSIZE_T} are also exported from
> +the @code{SYSTEM} module. The type @code{CSIZE_T} is unsigned and is
> +mapped onto the target C data type @code{size_t} whereas the type
> +@code{CSSIZE_T} is mapped onto the signed C data type @code{ssize_t}.
> +
> +It is anticipated that these should only be used to provide cross
> +platform definition modules for C libraries.
> +
> +There are also a variety of fixed sized @code{INTEGER} and
> +@code{CARDINAL} types. The variety of the fixed sized types will
> +depend upon the target architecture.
> +
> +@node The ISO system module, , The PIM system module, Using
> +@section The ISO system module
> +
> +@include m2/SYSTEM-iso.texi
> +
> +The data types @code{CSIZE_T} and @code{CSSIZE_T} are also exported from
> +the @code{SYSTEM} module. The type @code{CSIZE_T} is unsigned and is
> +mapped onto the target C data type @code{size_t} whereas the type
> +@code{CSSIZE_T} is mapped onto the signed C data type @code{ssize_t}.
> +
> +It is anticipated that these should only be used to provide cross
> +platform definition modules for C libraries.
> +
> +There are also a variety of fixed sized @code{INTEGER} and
> +@code{CARDINAL} types. The variety of the fixed sized types will
> +depend upon the target architecture.
> +
> +@node Licence, Copying, The ISO system module, Top
> +@section Licence of GNU Modula-2
> +
> +GNU Modula-2 is free software, the compiler is held under the GPL v3
> +@uref{http://www.gnu.org/licenses/gpl.txt},
> +its libraries (pim, iso and Logitech compatible) are under the
> +GPL v3 with the GCC runtime library exception clause.
> +
> +Under Section 7 of GPL version 3, you are granted additional
> +permissions described in the GCC Runtime Library Exception, version
> +3.1, as published by the Free Software Foundation.
> +
> +You should have received a copy of the GNU General Public License and
> +a copy of the GCC Runtime Library Exception along with this program;
> +see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
> +<http://www.gnu.org/licenses/>.
> +
> +More information on how these licences work is available
> +@uref{http://www.gnu.org/licenses/licenses.html} on the GNU web site.
> +
> +@c Copying node is inside the gpl_v3.texi
> +@include gpl_v3.texi
> +
> +@node Contributing, Internals, Copying, Top
> +@section Contributing to GNU Modula-2
> +
> +Please do. But also please read the GNU Emacs info under
> +
> +@example
> +* Standards: (standards). GNU coding standards.
> +* Intellectual Property:: Keeping Free Software Free
> +* Reading Non-Free Code:: Referring to Proprietary Programs
> +* Contributions:: Accepting Contributions
> +@end example
> +
> +You might consider joining the GM2 Mailing list before you start
> +coding. The mailing list may be subscribed via a web interface
> +@uref{http://lists.nongnu.org/mailman/listinfo/gm2} or via email
> +@email{gm2-subscribe@@nongnu.org}.
> +
> +Many thanks and enjoy your coding!
> +
> +@node Internals, EBNF, Contributing, Top
> +
> +This section is still being written.
> +@c @include gm2-internals.texi
> +
> +@node EBNF, Libraries, Internals, Top
> +@chapter EBNF of GNU Modula-2
> +
> +This chapter contains the EBNF of GNU Modula-2. This grammer currently
> +supports both PIM and ISO dialects. The rules here are automatically
> +extracted from the grammer files in GNU Modula-2 and serve to document
> +the syntax of the extensions described earlier and how they fit in
> +with the base language.
> +
> +Note that the first six productions are built into the lexical analysis
> +phase.
> +
> +@include m2/gm2-ebnf.texi
> +
> +@node Libraries, Indices, EBNF, Top
> +@chapter PIM and ISO library definitions
> +
> +This chapter contains M2F, PIM and ISO libraries.
> +
> +@c Permission has been kindly granted by
> +@c the authors of the ULM libraries to include them with GNU
> +@c Modula-2.
> +@c These libraries (under the GNU GPL) were written at the
> +@c University of Ulm and were originally shipped with the ULM sparc
> +@c Modula-2 compiler.
> +
> +@include m2/gm2-libs.texi
> +
> +@node Indices, , Libraries, Top
> +@section Indices
> +
> +@ifhtml
> +@menu
> +* Contents:: Section and subsections.
> +* Functions:: Function, constants, types, ebnf indices.
> +@end menu
> +
> +@node Contents, Functions, ,
> +@section Section and subsections
> +@printindex cp
> +
> +@node Functions, , Contents,
> +@section Function, constants, types, ebnf indices.
> +@end ifhtml
> +
> +@printindex fn
> +
> +@summarycontents
> +@contents
> +@bye
> diff -ruw /dev/null gcc-git-devel-modula2/gcc/m2/lang.opt
> --- /dev/null 2022-08-24 16:22:16.888000070 +0100
> +++ gcc-git-devel-modula2/gcc/m2/lang.opt 2022-12-10 00:04:30.319603938 +0000
> @@ -0,0 +1,352 @@
> +; Options for the Modula-2 front end.
> +;
> +; Copyright (C) 2016-2022 Free Software Foundation, Inc.
> +; Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
> +;
> +; This file is part of GNU Modula-2.
> +;
> +; GNU Modula-2 is free software; you can redistribute it and/or modify
> +; it under the terms of the GNU General Public License as published by
> +; the Free Software Foundation; either version 3, or (at your option)
> +; any later version.
> +;
> +; GNU Modula-2 is distributed in the hope that it will be useful, but
> +; WITHOUT ANY WARRANTY; without even the implied warranty of
> +; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> +; General Public License for more details.
> +;
> +; You should have received a copy of the GNU General Public License
> +; along with GNU Modula-2; see the file COPYING. If not,
> +; see <https://www.gnu.org/licenses/>. *)
> +
> +; See the GCC internals manual for a description of this file's format.
> +
> +; Please try to keep this file in ASCII collating order.
> +
> +Language
> +Modula-2
> +
> +B
> +Modula-2
> +; Documented in c.opt
> +
> +D
> +Modula-2
> +; Documented in c.opt
> +
> +E
> +Modula-2
> +; Documented in c.opt (passed to the preprocessor if -fcpp is used)
> +
> +I
> +Modula-2 Joined Separate
> +; Documented in c.opt
> +
> +L
> +Modula-2 Joined Separate
> +; Not documented
> +
> +M
> +Modula-2
> +; Documented in c.opt
> +
> +O
> +Modula-2
> +; Documented in c.opt
> +
> +Wall
> +Modula-2
> +; Documented in c.opt
> +
> +Wpedantic
> +Modula-2
> +; Documented in common.opt
> +
> +Wpedantic-param-names
> +Modula-2
> +compiler checks to force definition module procedure parameter names with their implementation module counterpart
> +
> +Wpedantic-cast
> +Modula-2
> +compiler warns if a cast is being used on types of differing sizes
> +
> +Wverbose-unbounded
> +Modula-2
> +inform user which parameters will be passed by reference
> +
> +Wstyle
> +Modula-2
> +extra compile time semantic checking, typically tries to catch poor programming style
> +
> +Wunused-variable
> +Modula-2
> +; Documented in c.opt
> +
> +Wunused-parameter
> +Modula-2
> +; Documented in c.opt
> +
> +c
> +Modula-2
> +; Documented in c.opt
> +
> +fauto-init
> +Modula-2
> +automatically initializes all pointers to NIL
> +
> +fbounds
> +Modula-2
> +turns on runtime subrange, array index and indirection via NIL pointer checking
> +
> +fcase
> +Modula-2
> +turns on runtime checking to check whether a CASE statement requires an ELSE clause when on was not specified
> +
> +fobjc-std=objc1
> +Modula-2
> +; Documented in c.opt
> +
> +fcpp
> +Modula-2
> +use cpp to preprocess the module
> +
> +fcpp-end
> +Modula-2
> +passed to the preprocessor if -fcpp is used (internal switch)
> +
> +fcpp-begin
> +Modula-2
> +passed to the preprocessor if -fcpp is used (internal switch)
> +
> +fdebug-builtins
> +Modula-2
> +call a real function, rather than the builtin equivalent
> +
> +fd
> +Modula-2
> +turn on internal debugging of the compiler (internal switch)
> +
> +fdebug-trace-quad
> +Modula-2
> +turn on quadruple tracing (internal switch)
> +
> +fdebug-trace-api
> +Modula-2
> +turn on the Modula-2 api tracing (internal switch)
> +
> +fdebug-function-line-numbers
> +Modula-2
> +turn on the Modula-2 function line number generation (internal switch)
> +
> +fdef=
> +Modula-2 Joined
> +recognise the specified suffix as a definition module filename
> +
> +fdump-system-exports
> +Modula-2
> +display all inbuilt system items
> +
> +fexceptions
> +Modula-2
> +; Documented in common.opt
> +
> +fextended-opaque
> +Modula-2
> +allows opaque types to be implemented as any type (a GNU Modula-2 extension)
> +
> +ffloatvalue
> +Modula-2
> +turns on runtime checking to check whether a floating point number is about to exceed range
> +
> +fgen-module-list=
> +Modula-2 Joined
> +create a topologically sorted module list from all dependent modules used in the application
> +
> +findex
> +Modula-2
> +turns on all range checking for numerical values
> +
> +fiso
> +Modula-2
> +use ISO dialect of Modula-2
> +
> +flibs=
> +Modula-2 Joined
> +specify the library order, currently legal entries include: log, min, pim, iso or their directory name equivalent m2log, m2min, m2pim, m2iso.
> +
> +flocation=
> +Modula-2 Joined
> +set all location values to a specific value (internal switch)
> +
> +fm2-g
> +Modula-2
> +generate extra nops to improve debugging, producing an instruction for every code related keyword
> +
> +fm2-lower-case
> +Modula-2
> +generate error messages which render keywords in lower case
> +
> +fm2-plugin
> +Modula-2
> +insert plugin to identify runtime errors at compiletime (default on)
> +
> +fm2-statistics
> +Modula-2
> +display statistics about the amount of source lines compiled and symbols used
> +
> +fm2-strict-type
> +Modula-2
> +experimental flag to turn on the new strict type checker
> +
> +fm2-whole-program
> +Modula-2
> +compile all implementation modules and program module at once
> +
> +fmod=
> +Modula-2 Joined
> +recognise the specified suffix as implementation and module filenames
> +
> +fnil
> +Modula-2
> +turns on runtime checking to detect accessing data through a NIL value pointer
> +
> +fpim
> +Modula-2
> +use PIM [234] dialect of Modula-2
> +
> +fpim2
> +Modula-2
> +use PIM 2 dialect of Modula-2
> +
> +fpim3
> +Modula-2
> +use PIM 3 dialect of Modula-2
> +
> +fpim4
> +Modula-2
> +use PIM 4 dialect of Modula-2
> +
> +fpositive-mod-floor-div
> +Modula-2
> +force positive result from MOD and DIV result floor
> +
> +fpthread
> +Modula-2
> +link against the pthread library (default on)
> +
> +fq
> +Modula-2
> +internal compiler debugging information, dump the list of quadruples
> +
> +frange
> +Modula-2
> +turns on all range checking for numerical values
> +
> +freturn
> +Modula-2
> +turns on runtime checking for functions which finish without executing a RETURN statement
> +
> +fruntime-modules=
> +Modula-2 Joined
> +specify the list of runtime modules and their initialization order
> +
> +fscaffold-dynamic
> +Modula-2
> +the modules initialization order is dynamically determined by M2RTS and application dependancies
> +
> +fscaffold-c
> +Modula-2
> +generate a C source scaffold for the current module being compiled
> +
> +fscaffold-c++
> +Modula-2
> +generate a C++ source scaffold for the current module being compiled
> +
> +fscaffold-main
> +Modula-2
> +generate the main function
> +
> +fscaffold-static
> +Modula-2
> +generate static scaffold initialization and finalization for every module inside main
> +
> +fshared
> +Modula-2
> +generate a shared library from the module
> +
> +fsoft-check-all
> +Modula-2
> +turns on all software runtime checking (an abbreviation for -fnil -frange -findex -fwholediv -fcase -freturn -fwholevalue -ffloatvalue)
> +
> +fsources
> +Modula-2
> +display the location of module source files as they are compiled
> +
> +fswig
> +Modula-2
> +create a swig interface file for the module
> +
> +funbounded-by-reference
> +Modula-2
> +optimize non var unbounded parameters by passing it by reference, providing it is not written to within the callee procedure.
> +
> +fuse-list=
> +Modula-2 Joined
> +orders the initialization/finalializations for scaffold-static or force linking of modules if scaffold-dynamic
> +
> +fversion
> +Modula-2
> +; Documented in common.opt
> +
> +fwholediv
> +Modula-2
> +turns on all division and modulus by zero checking for ordinal values
> +
> +fwholevalue
> +Modula-2
> +turns on runtime checking to check whether a whole number is about to exceed range
> +
> +iprefix
> +Modula-2
> +; Documented in c.opt
> +
> +isystem
> +Modula-2
> +; Documented in c.opt
> +
> +idirafter
> +Modula-2
> +; Documented in c.opt
> +
> +imultilib
> +Modula-2
> +; Documented in c.opt
> +
> +lang-asm
> +Modula-2
> +; Documented in c.opt
> +
> +-save-temps
> +Modula-2 Alias(save-temps)
> +
> +save-temps
> +Modula-2
> +save temporary preprocessed files
> +
> +save-temps=
> +Modula-2 Joined
> +save temporary preprocessed files
> +
> +traditional-cpp
> +Modula-2
> +; Documented in c.opt
> +
> +v
> +Modula-2
> +; Documented in c.opt
> +
> +x
> +Modula-2 Joined
> +specify the language from the compiler driver
> +
> +; This comment is to ensure we retain the blank line above.
> diff -ruw /dev/null gcc-git-devel-modula2/gcc/m2/gm2-lang.cc
> --- /dev/null 2022-08-24 16:22:16.888000070 +0100
> +++ gcc-git-devel-modula2/gcc/m2/gm2-lang.cc 2022-12-10 00:04:30.307603788 +0000
> @@ -0,0 +1,892 @@
> +/* gm2-lang.cc language-dependent hooks for GNU Modula-2.
> +
> +Copyright (C) 2002-2022 Free Software Foundation, Inc.
> +Contributed by Gaius Mulley <gaius@glam.ac.uk>.
> +
> +This file is part of GNU Modula-2.
> +
> +GNU Modula-2 is free software; you can redistribute it and/or modify
> +it under the terms of the GNU General Public License as published by
> +the Free Software Foundation; either version 3, or (at your option)
> +any later version.
> +
> +GNU Modula-2 is distributed in the hope that it will be useful, but
> +WITHOUT ANY WARRANTY; without even the implied warranty of
> +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
> +General Public License for more details.
> +
> +You should have received a copy of the GNU General Public License
> +along with GNU Modula-2; see the file COPYING. If not, write to the
> +Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
> +02110-1301, USA. */
> +
> +#include "gm2-gcc/gcc-consolidation.h"
> +
> +#include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name. */
> +#include "tree-pass.h" /* FIXME: only for PROP_gimple_any. */
> +#include "toplev.h"
> +#include "debug.h"
> +
> +#include "opts.h"
> +
> +#define GM2_LANG_C
> +#include "gm2-lang.h"
> +#include "m2block.h"
> +#include "dynamicstrings.h"
> +#include "m2options.h"
> +#include "m2convert.h"
> +#include "m2linemap.h"
> +#include "init.h"
> +#include "m2-tree.h"
> +#include "convert.h"
> +#include "rtegraph.h"
> +
> +static void write_globals (void);
> +
> +static int insideCppArgs = FALSE;
> +
> +#define EXPR_STMT_EXPR(NODE) TREE_OPERAND (EXPR_STMT_CHECK (NODE), 0)
> +
> +/* start of new stuff. */
> +
> +/* Language-dependent contents of a type. */
> +
> +struct GTY (()) lang_type
> +{
> + char dummy;
> +};
> +
> +/* Language-dependent contents of a decl. */
> +
> +struct GTY (()) lang_decl
> +{
> + char dummy;
> +};
> +
> +/* Language-dependent contents of an identifier. This must include a
> + tree_identifier. */
> +
> +struct GTY (()) lang_identifier
> +{
> + struct tree_identifier common;
> +};
> +
> +/* The resulting tree type. */
> +
> +union GTY ((desc ("TREE_CODE (&%h.generic) == IDENTIFIER_NODE"),
> + chain_next ("CODE_CONTAINS_STRUCT (TREE_CODE (&%h.generic), "
> + "TS_COMMON) ? ((union lang_tree_node *) TREE_CHAIN "
> + "(&%h.generic)) : NULL"))) lang_tree_node
> +{
> + union tree_node GTY ((tag ("0"),
> + desc ("tree_node_structure (&%h)"))) generic;
> + struct lang_identifier GTY ((tag ("1"))) identifier;
> +};
> +
> +struct GTY (()) language_function
> +{
> +
> + /* While we are parsing the function, this contains information about
> + the statement-tree that we are building. */
> + /* struct stmt_tree_s stmt_tree; */
> + tree stmt_tree;
> +};
> +
> +/* Language hooks. */
> +
> +bool
> +gm2_langhook_init (void)
> +{
> + build_common_tree_nodes (false);
> + build_common_builtin_nodes ();
> +
> + /* The default precision for floating point numbers. This is used
> + for floating point constants with abstract type. This may eventually
> + be controllable by a command line option. */
> + mpfr_set_default_prec (256);
> +
> + /* GNU Modula-2 uses exceptions. */
> + using_eh_for_cleanups ();
> + return true;
> +}
> +
> +/* The option mask. */
> +
> +static unsigned int
> +gm2_langhook_option_lang_mask (void)
> +{
> + return CL_ModulaX2;
> +}
> +
> +/* Initialize the options structure. */
> +
> +static void
> +gm2_langhook_init_options_struct (struct gcc_options *opts)
> +{
> + /* Default to avoiding range issues for complex multiply and divide. */
> + opts->x_flag_complex_method = 2;
> +
> + /* The builtin math functions should not set errno. */
> + opts->x_flag_errno_math = 0;
> + opts->frontend_set_flag_errno_math = true;
> +
> + /* Exceptions are used. */
> + opts->x_flag_exceptions = 1;
> + init_FrontEndInit ();
> +}
> +
> +/* Infrastructure for a VEC of bool values. */
> +
> +/* This array determines whether the filename is associated with the
> + C preprocessor. */
> +
> +static vec<bool> filename_cpp;
> +
> +void
> +gm2_langhook_init_options (unsigned int decoded_options_count,
> + struct cl_decoded_option *decoded_options)
> +{
> + unsigned int i;
> + bool in_cpp_args = false;
> +
> + for (i = 1; i < decoded_options_count; i++)
> + {
> + switch (decoded_options[i].opt_index)
> + {
> + case OPT_fcpp_begin:
> + in_cpp_args = true;
> + break;
> + case OPT_fcpp_end:
> + in_cpp_args = false;
> + break;
> + case OPT_SPECIAL_input_file:
> + case OPT_SPECIAL_program_name:
> + filename_cpp.safe_push (in_cpp_args);
> + }
> + }
> + filename_cpp.safe_push (false);
> +}
> +
> +static bool
> +is_cpp_filename (unsigned int i)
> +{
> + gcc_assert (i < filename_cpp.length ());
> + return filename_cpp[i];
> +}
> +
> +/* Handle gm2 specific options. Return 0 if we didn't do anything. */
> +
> +bool
> +gm2_langhook_handle_option (
> + size_t scode, const char *arg, HOST_WIDE_INT value, int kind ATTRIBUTE_UNUSED,
> + location_t loc ATTRIBUTE_UNUSED,
> + const struct cl_option_handlers *handlers ATTRIBUTE_UNUSED)
> +{
> + enum opt_code code = (enum opt_code)scode;
> +
> + /* ignore file names. */
> + if (code == N_OPTS)
> + return 1;
> +
> + switch (code)
> + {
> + case OPT_B:
> + M2Options_SetB (arg);
> + return 1;
> + case OPT_c:
> + M2Options_Setc (value);
> + return 1;
> + case OPT_I:
> + if (insideCppArgs)
> + {
> + const struct cl_option *option = &cl_options[scode];
> + const char *opt = (const char *)option->opt_text;
> + M2Options_CppArg (opt, arg, TRUE);
> + }
> + else
> + M2Options_SetSearchPath (arg);
> + return 1;
> + case OPT_fiso:
> + M2Options_SetISO (value);
> + return 1;
> + case OPT_fpim:
> + M2Options_SetPIM (value);
> + return 1;
> + case OPT_fpim2:
> + M2Options_SetPIM2 (value);
> + return 1;
> + case OPT_fpim3:
> + M2Options_SetPIM3 (value);
> + return 1;
> + case OPT_fpim4:
> + M2Options_SetPIM4 (value);
> + return 1;
> + case OPT_fpositive_mod_floor_div:
> + M2Options_SetPositiveModFloor (value);
> + return 1;
> + case OPT_flibs_:
> + /* handled in the gm2 driver. */
> + return 1;
> + case OPT_fgen_module_list_:
> + M2Options_SetGenModuleList (value, arg);
> + return 1;
> + case OPT_fnil:
> + M2Options_SetNilCheck (value);
> + return 1;
> + case OPT_fwholediv:
> + M2Options_SetWholeDiv (value);
> + return 1;
> + case OPT_findex:
> + M2Options_SetIndex (value);
> + return 1;
> + case OPT_frange:
> + M2Options_SetRange (value);
> + return 1;
> + case OPT_ffloatvalue:
> + M2Options_SetFloatValueCheck (value);
> + return 1;
> + case OPT_fwholevalue:
> + M2Options_SetWholeValueCheck (value);
> + return 1;
> + case OPT_freturn:
> + M2Options_SetReturnCheck (value);
> + return 1;
> + case OPT_fcase:
> + M2Options_SetCaseCheck (value);
> + return 1;
> + case OPT_fd:
> + M2Options_SetCompilerDebugging (value);
> + return 1;
> + case OPT_fdebug_trace_quad:
> + M2Options_SetDebugTraceQuad (value);
> + return 1;
> + case OPT_fdebug_trace_api:
> + M2Options_SetDebugTraceAPI (value);
> + return 1;
> + case OPT_fdebug_function_line_numbers:
> + M2Options_SetDebugFunctionLineNumbers (value);
> + return 1;
> + case OPT_fauto_init:
> + M2Options_SetAutoInit (value);
> + return 1;
> + case OPT_fsoft_check_all:
> + M2Options_SetCheckAll (value);
> + return 1;
> + case OPT_fexceptions:
> + M2Options_SetExceptions (value);
> + return 1;
> + case OPT_Wstyle:
> + M2Options_SetStyle (value);
> + return 1;
> + case OPT_Wpedantic:
> + M2Options_SetPedantic (value);
> + return 1;
> + case OPT_Wpedantic_param_names:
> + M2Options_SetPedanticParamNames (value);
> + return 1;
> + case OPT_Wpedantic_cast:
> + M2Options_SetPedanticCast (value);
> + return 1;
> + case OPT_fextended_opaque:
> + M2Options_SetExtendedOpaque (value);
> + return 1;
> + case OPT_Wverbose_unbounded:
> + M2Options_SetVerboseUnbounded (value);
> + return 1;
> + case OPT_Wunused_variable:
> + M2Options_SetUnusedVariableChecking (value);
> + return 1;
> + case OPT_Wunused_parameter:
> + M2Options_SetUnusedParameterChecking (value);
> + return 1;
> + case OPT_fm2_strict_type:
> + M2Options_SetStrictTypeChecking (value);
> + return 1;
> + case OPT_Wall:
> + M2Options_SetWall (value);
> + return 1;
> +#if 0
> + /* Not yet implemented. */
> + case OPT_fxcode:
> + M2Options_SetXCode (value);
> + return 1;
> +#endif
> + case OPT_fm2_lower_case:
> + M2Options_SetLowerCaseKeywords (value);
> + return 1;
> + case OPT_fuse_list_:
> + M2Options_SetUselist (value, arg);
> + return 1;
> + case OPT_fruntime_modules_:
> + M2Options_SetRuntimeModuleOverride (arg);
> + return 1;
> + case OPT_fpthread:
> + /* Handled in the driver. */
> + return 1;
> + case OPT_fm2_plugin:
> + /* Handled in the driver. */
> + return 1;
> + case OPT_fscaffold_dynamic:
> + M2Options_SetScaffoldDynamic (value);
> + return 1;
> + case OPT_fscaffold_static:
> + M2Options_SetScaffoldStatic (value);
> + return 1;
> + case OPT_fscaffold_main:
> + M2Options_SetScaffoldMain (value);
> + return 1;
> + case OPT_fcpp:
> + M2Options_SetCpp (value);
> + return 1;
> + case OPT_fcpp_begin:
> + insideCppArgs = TRUE;
> + return 1;
> + case OPT_fcpp_end:
> + insideCppArgs = FALSE;
> + return 1;
> + case OPT_fq:
> + M2Options_SetQuadDebugging (value);
> + return 1;
> + case OPT_fsources:
> + M2Options_SetSources (value);
> + return 1;
> + case OPT_funbounded_by_reference:
> + M2Options_SetUnboundedByReference (value);
> + return 1;
> + case OPT_fdef_:
> + M2Options_setdefextension (arg);
> + return 1;
> + case OPT_fmod_:
> + M2Options_setmodextension (arg);
> + return 1;
> + case OPT_fdump_system_exports:
> + M2Options_SetDumpSystemExports (value);
> + return 1;
> + case OPT_fswig:
> + M2Options_SetSwig (value);
> + return 1;
> + case OPT_fshared:
> + M2Options_SetShared (value);
> + return 1;
> + case OPT_fm2_statistics:
> + M2Options_SetStatistics (value);
> + return 1;
> + case OPT_fm2_g:
> + M2Options_SetM2g (value);
> + return 1;
> + case OPT_O:
> + M2Options_SetOptimizing (value);
> + return 1;
> + case OPT_quiet:
> + M2Options_SetQuiet (value);
> + return 1;
> + case OPT_fm2_whole_program:
> + M2Options_SetWholeProgram (value);
> + return 1;
> + case OPT_flocation_:
> + if (strcmp (arg, "builtins") == 0)
> + {
> + M2Options_SetForcedLocation (BUILTINS_LOCATION);
> + return 1;
> + }
> + else if (strcmp (arg, "unknown") == 0)
> + {
> + M2Options_SetForcedLocation (UNKNOWN_LOCATION);
> + return 1;
> + }
> + else if ((arg != NULL) && (ISDIGIT (arg[0])))
> + {
> + M2Options_SetForcedLocation (atoi (arg));
> + return 1;
> + }
> + else
> + return 0;
> + case OPT_save_temps:
> + M2Options_SetSaveTemps (value);
> + return 1;
> + case OPT_save_temps_:
> + M2Options_SetSaveTempsDir (arg);
> + return 1;
> + default:
> + if (insideCppArgs)
> + {
> + const struct cl_option *option = &cl_options[scode];
> + const char *opt = (const char *)option->opt_text;
> +
> + M2Options_CppArg (opt, arg, TRUE);
> + return 1;
> + }
> + return 0;
> + }
> + return 0;
> +}
> +
> +/* Run after parsing options. */
> +
> +static bool
> +gm2_langhook_post_options (const char **pfilename)
> +{
> + const char *filename = *pfilename;
> + flag_excess_precision = EXCESS_PRECISION_FAST;
> + M2Options_SetCC1Quiet (quiet_flag);
> + M2Options_FinaliseOptions ();
> + main_input_filename = filename;
> +
> + /* Returning false means that the backend should be used. */
> + return false;
> +}
> +
> +/* Call the compiler for every source filename on the command line. */
> +
> +static void
> +gm2_parse_input_files (const char **filenames, unsigned int filename_count)
> +{
> + unsigned int i;
> + gcc_assert (filename_count > 0);
> +
> + for (i = 0; i < filename_count; i++)
> + if (!is_cpp_filename (i))
> + {
> + main_input_filename = filenames[i];
> + init_PerCompilationInit (filenames[i]);
> + }
> +}
> +
> +static void
> +gm2_langhook_parse_file (void)
> +{
> + gm2_parse_input_files (in_fnames, num_in_fnames);
> + write_globals ();
> +}
> +
> +static tree
> +gm2_langhook_type_for_size (unsigned int bits, int unsignedp)
> +{
> + return gm2_type_for_size (bits, unsignedp);
> +}
> +
> +static tree
> +gm2_langhook_type_for_mode (machine_mode mode, int unsignedp)
> +{
> + tree type;
> +
> + for (int i = 0; i < NUM_INT_N_ENTS; i ++)
> + if (int_n_enabled_p[i]
> + && mode == int_n_data[i].m)
> + return (unsignedp ? int_n_trees[i].unsigned_type
> + : int_n_trees[i].signed_type);
> +
> + if (VECTOR_MODE_P (mode))
> + {
> + tree inner;
> +
> + inner = gm2_langhook_type_for_mode (GET_MODE_INNER (mode), unsignedp);
> + if (inner != NULL_TREE)
> + return build_vector_type_for_mode (inner, mode);
> + return NULL_TREE;
> + }
> +
> + scalar_int_mode imode;
> + if (is_int_mode (mode, &imode))
> + return gm2_langhook_type_for_size (GET_MODE_BITSIZE (imode), unsignedp);
> +
> + if (mode == TYPE_MODE (float_type_node))
> + return float_type_node;
> +
> + if (mode == TYPE_MODE (double_type_node))
> + return double_type_node;
> +
> + if (mode == TYPE_MODE (long_double_type_node))
> + return long_double_type_node;
> +
> + if (COMPLEX_MODE_P (mode))
> + {
> + if (mode == TYPE_MODE (complex_float_type_node))
> + return complex_float_type_node;
> + if (mode == TYPE_MODE (complex_double_type_node))
> + return complex_double_type_node;
> + if (mode == TYPE_MODE (complex_long_double_type_node))
> + return complex_long_double_type_node;
> + }
> +
> +#if HOST_BITS_PER_WIDE_INT >= 64
> + /* The middle-end and some backends rely on TImode being supported
> + for 64-bit HWI. */
> + if (mode == TImode)
> + {
> + type = build_nonstandard_integer_type (GET_MODE_BITSIZE (TImode),
> + unsignedp);
> + if (type && TYPE_MODE (type) == TImode)
> + return type;
> + }
> +#endif
> + return NULL_TREE;
> +}
> +
> +/* Record a builtin function. We just ignore builtin functions. */
> +
> +static tree
> +gm2_langhook_builtin_function (tree decl)
> +{
> + return decl;
> +}
> +
> +/* Return true if we are in the global binding level. */
> +
> +static bool
> +gm2_langhook_global_bindings_p (void)
> +{
> + return current_function_decl == NULL_TREE;
> +}
> +
> +/* Unused langhook. */
> +
> +static tree
> +gm2_langhook_pushdecl (tree decl ATTRIBUTE_UNUSED)
> +{
> + gcc_unreachable ();
> +}
> +
> +/* This hook is used to get the current list of declarations as trees.
> + We don't support that; instead we use write_globals. This can't
> + simply crash because it is called by -gstabs. */
> +
> +static tree
> +gm2_langhook_getdecls (void)
> +{
> + return NULL;
> +}
> +
> +/* m2_write_global_declarations writes out globals creating an array
> + of the declarations and calling wrapup_global_declarations. */
> +
> +static void
> +m2_write_global_declarations (tree globals)
> +{
> + auto_vec<tree> global_decls;
> + tree decl = globals;
> + int n = 0;
> +
> + while (decl != NULL)
> + {
> + global_decls.safe_push (decl);
> + decl = TREE_CHAIN (decl);
> + n++;
> + }
> + wrapup_global_declarations (global_decls.address (), n);
> +}
> +
> +/* Write out globals. */
> +
> +static void
> +write_globals (void)
> +{
> + tree t;
> + unsigned i;
> +
> + m2block_finishGlobals ();
> +
> + /* Process all file scopes in this compilation, and the
> + external_scope, through wrapup_global_declarations and
> + check_global_declarations. */
> + FOR_EACH_VEC_ELT (*all_translation_units, i, t)
> + m2_write_global_declarations (BLOCK_VARS (DECL_INITIAL (t)));
> +}
> +
> +
> +/* Gimplify an EXPR_STMT node. */
> +
> +static void
> +gimplify_expr_stmt (tree *stmt_p)
> +{
> + gcc_assert (EXPR_STMT_EXPR (*stmt_p) != NULL_TREE);
> + *stmt_p = EXPR_STMT_EXPR (*stmt_p);
> +}
> +
> +/* Genericize a TRY_BLOCK. */
> +
> +static void
> +genericize_try_block (tree *stmt_p)
> +{
> + tree body = TRY_STMTS (*stmt_p);
> + tree cleanup = TRY_HANDLERS (*stmt_p);
> +
> + *stmt_p = build2 (TRY_CATCH_EXPR, void_type_node, body, cleanup);
> +}
> +
> +/* Genericize a HANDLER by converting to a CATCH_EXPR. */
> +
> +static void
> +genericize_catch_block (tree *stmt_p)
> +{
> + tree type = HANDLER_TYPE (*stmt_p);
> + tree body = HANDLER_BODY (*stmt_p);
> +
> + /* FIXME should the caught type go in TREE_TYPE? */
> + *stmt_p = build2 (CATCH_EXPR, void_type_node, type, body);
> +}
> +
> +/* Convert the tree representation of FNDECL from m2 frontend trees
> + to GENERIC. */
> +
> +extern void pf (tree);
> +
> +void
> +gm2_genericize (tree fndecl)
> +{
> + tree t;
> + struct cgraph_node *cgn;
> +
> +#if 0
> + pf (fndecl);
> +#endif
> + /* Fix up the types of parms passed by invisible reference. */
> + for (t = DECL_ARGUMENTS (fndecl); t; t = DECL_CHAIN (t))
> + if (TREE_ADDRESSABLE (TREE_TYPE (t)))
> + {
> +
> + /* If a function's arguments are copied to create a thunk, then
> + DECL_BY_REFERENCE will be set -- but the type of the argument will be
> + a pointer type, so we will never get here. */
> + gcc_assert (!DECL_BY_REFERENCE (t));
> + gcc_assert (DECL_ARG_TYPE (t) != TREE_TYPE (t));
> + TREE_TYPE (t) = DECL_ARG_TYPE (t);
> + DECL_BY_REFERENCE (t) = 1;
> + TREE_ADDRESSABLE (t) = 0;
> + relayout_decl (t);
> + }
> +
> + /* Dump all nested functions now. */
> + cgn = cgraph_node::get_create (fndecl);
> + for (cgn = first_nested_function (cgn);
> + cgn != NULL; cgn = next_nested_function (cgn))
> + gm2_genericize (cgn->decl);
> +}
> +
> +/* gm2 gimplify expression, currently just change THROW in the same
> + way as C++ */
> +
> +static int
> +gm2_langhook_gimplify_expr (tree *expr_p, gimple_seq *pre_p ATTRIBUTE_UNUSED,
> + gimple_seq *post_p ATTRIBUTE_UNUSED)
> +{
> + enum tree_code code = TREE_CODE (*expr_p);
> +
> + switch (code)
> + {
> + case THROW_EXPR:
> +
> + /* FIXME communicate throw type to back end, probably by moving
> + THROW_EXPR into ../tree.def. */
> + *expr_p = TREE_OPERAND (*expr_p, 0);
> + return GS_OK;
> +
> + case EXPR_STMT:
> + gimplify_expr_stmt (expr_p);
> + return GS_OK;
> +
> + case TRY_BLOCK:
> + genericize_try_block (expr_p);
> + return GS_OK;
> +
> + case HANDLER:
> + genericize_catch_block (expr_p);
> + return GS_OK;
> +
> + default:
> + return GS_UNHANDLED;
> + }
> +}
> +
> +static GTY(()) tree gm2_eh_personality_decl;
> +
> +static tree
> +gm2_langhook_eh_personality (void)
> +{
> + if (!gm2_eh_personality_decl)
> + gm2_eh_personality_decl = build_personality_function ("gxx");
> +
> + return gm2_eh_personality_decl;
> +}
> +
> +/* Functions called directly by the generic backend. */
> +
> +tree
> +convert_loc (location_t location, tree type, tree expr)
> +{
> + if (type == error_mark_node || expr == error_mark_node
> + || TREE_TYPE (expr) == error_mark_node)
> + return error_mark_node;
> +
> + if (type == TREE_TYPE (expr))
> + return expr;
> +
> + gcc_assert (TYPE_MAIN_VARIANT (type) != NULL);
> + if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (TREE_TYPE (expr)))
> + return fold_convert (type, expr);
> +
> + expr = m2convert_GenericToType (location, type, expr);
> + switch (TREE_CODE (type))
> + {
> + case VOID_TYPE:
> + case BOOLEAN_TYPE:
> + return fold_convert (type, expr);
> + case INTEGER_TYPE:
> + return fold (convert_to_integer (type, expr));
> + case POINTER_TYPE:
> + return fold (convert_to_pointer (type, expr));
> + case REAL_TYPE:
> + return fold (convert_to_real (type, expr));
> + case COMPLEX_TYPE:
> + return fold (convert_to_complex (type, expr));
> + case ENUMERAL_TYPE:
> + return fold (convert_to_integer (type, expr));
> + default:
> + error_at (location, "cannot convert expression, only base types can be converted");
> + break;
> + }
> + return error_mark_node;
> +}
> +
> +/* Functions called directly by the generic backend. */
> +
> +tree
> +convert (tree type, tree expr)
> +{
> + return convert_loc (m2linemap_UnknownLocation (), type, expr);
> +}
> +
> +/* Mark EXP saying that we need to be able to take the address of it;
> + it should not be allocated in a register. Returns true if
> + successful. */
> +
> +bool
> +gm2_mark_addressable (tree exp)
> +{
> + tree x = exp;
> +
> + while (TRUE)
> + switch (TREE_CODE (x))
> + {
> + case COMPONENT_REF:
> + if (DECL_PACKED (TREE_OPERAND (x, 1)))
> + return false;
> + x = TREE_OPERAND (x, 0);
> + break;
> +
> + case ADDR_EXPR:
> + case ARRAY_REF:
> + case REALPART_EXPR:
> + case IMAGPART_EXPR:
> + x = TREE_OPERAND (x, 0);
> + break;
> +
> + case COMPOUND_LITERAL_EXPR:
> + case CONSTRUCTOR:
> + case STRING_CST:
> + case VAR_DECL:
> + case CONST_DECL:
> + case PARM_DECL:
> + case RESULT_DECL:
> + case FUNCTION_DECL:
> + TREE_ADDRESSABLE (x) = 1;
> + return true;
> + default:
> + return true;
> + }
> + /* Never reach here. */
> + gcc_unreachable ();
> +}
> +
> +/* Return an integer type with BITS bits of precision, that is
> + unsigned if UNSIGNEDP is nonzero, otherwise signed. */
> +
> +tree
> +gm2_type_for_size (unsigned int bits, int unsignedp)
> +{
> + tree type;
> +
> + if (unsignedp)
> + {
> + if (bits == INT_TYPE_SIZE)
> + type = unsigned_type_node;
> + else if (bits == CHAR_TYPE_SIZE)
> + type = unsigned_char_type_node;
> + else if (bits == SHORT_TYPE_SIZE)
> + type = short_unsigned_type_node;
> + else if (bits == LONG_TYPE_SIZE)
> + type = long_unsigned_type_node;
> + else if (bits == LONG_LONG_TYPE_SIZE)
> + type = long_long_unsigned_type_node;
> + else
> + type = build_nonstandard_integer_type (bits,
> + unsignedp);
> + }
> + else
> + {
> + if (bits == INT_TYPE_SIZE)
> + type = integer_type_node;
> + else if (bits == CHAR_TYPE_SIZE)
> + type = signed_char_type_node;
> + else if (bits == SHORT_TYPE_SIZE)
> + type = short_integer_type_node;
> + else if (bits == LONG_TYPE_SIZE)
> + type = long_integer_type_node;
> + else if (bits == LONG_LONG_TYPE_SIZE)
> + type = long_long_integer_type_node;
> + else
> + type = build_nonstandard_integer_type (bits,
> + unsignedp);
> + }
> + return type;
> +}
> +
> +/* Allow the analyzer to understand Storage ALLOCATE/DEALLOCATE. */
> +
> +bool
> +gm2_langhook_new_dispose_storage_substitution (void)
> +{
> + return true;
> +}
> +
> +#undef LANG_HOOKS_NAME
> +#undef LANG_HOOKS_INIT
> +#undef LANG_HOOKS_INIT_OPTIONS
> +#undef LANG_HOOKS_OPTION_LANG_MASK
> +#undef LANG_HOOKS_INIT_OPTIONS_STRUCT
> +#undef LANG_HOOKS_HANDLE_OPTION
> +#undef LANG_HOOKS_POST_OPTIONS
> +#undef LANG_HOOKS_PARSE_FILE
> +#undef LANG_HOOKS_TYPE_FOR_MODE
> +#undef LANG_HOOKS_TYPE_FOR_SIZE
> +#undef LANG_HOOKS_BUILTIN_FUNCTION
> +#undef LANG_HOOKS_GLOBAL_BINDINGS_P
> +#undef LANG_HOOKS_PUSHDECL
> +#undef LANG_HOOKS_GETDECLS
> +#undef LANG_HOOKS_GIMPLIFY_EXPR
> +#undef LANG_HOOKS_EH_PERSONALITY
> +#undef LANG_HOOKS_NEW_DISPOSE_STORAGE_SUBSTITUTION
> +
> +#define LANG_HOOKS_NAME "GNU Modula-2"
> +#define LANG_HOOKS_INIT gm2_langhook_init
> +#define LANG_HOOKS_INIT_OPTIONS gm2_langhook_init_options
> +#define LANG_HOOKS_OPTION_LANG_MASK gm2_langhook_option_lang_mask
> +#define LANG_HOOKS_INIT_OPTIONS_STRUCT gm2_langhook_init_options_struct
> +#define LANG_HOOKS_HANDLE_OPTION gm2_langhook_handle_option
> +#define LANG_HOOKS_POST_OPTIONS gm2_langhook_post_options
> +#define LANG_HOOKS_PARSE_FILE gm2_langhook_parse_file
> +#define LANG_HOOKS_TYPE_FOR_MODE gm2_langhook_type_for_mode
> +#define LANG_HOOKS_TYPE_FOR_SIZE gm2_langhook_type_for_size
> +#define LANG_HOOKS_BUILTIN_FUNCTION gm2_langhook_builtin_function
> +#define LANG_HOOKS_GLOBAL_BINDINGS_P gm2_langhook_global_bindings_p
> +#define LANG_HOOKS_PUSHDECL gm2_langhook_pushdecl
> +#define LANG_HOOKS_GETDECLS gm2_langhook_getdecls
> +#define LANG_HOOKS_GIMPLIFY_EXPR gm2_langhook_gimplify_expr
> +#define LANG_HOOKS_EH_PERSONALITY gm2_langhook_eh_personality
> +#define LANG_HOOKS_NEW_DISPOSE_STORAGE_SUBSTITUTION \
> + gm2_langhook_new_dispose_storage_substitution
> +
> +struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
> +
> +#include "gt-m2-gm2-lang.h"
> +#include "gtype-m2.h"
Richard Biener <richard.guenther@gmail.com> writes:
> On Sat, Dec 10, 2022 at 1:49 AM Gaius Mulley via Gcc-patches
> <gcc-patches@gcc.gnu.org> wrote:
>>
>>
>> While writing the ChangeLog entries git gcc-verify spotted an oversight
>> with v3 of this patch set. I had forgotten to post gm2.texi and also a
>> tiny patchlet in gcc/configure.ac (to detect Python). HAVE_PYTHON is
>> used within gcc/m2/Make-lang.in to avoid generating the library section
>> included by gm2.texi should Python not be available.
>
> The configure check doesn't verify the python version.
indeed - I'll fix this
> Does --enable-generated-files-in-srcdir (used when building release
> tarballs) generate the required section so it's packed up in the
> release tarball and avoid requiring python3 when building from the
> release tarball?
currently working on it - no it fails - should be done rsn.
> Note these kind of dependences should be mentioned in
> install.texi - for python also listing required modules would be nice.
I'll add these.
> Thanks,
> Richard.
>
>> ok to commit? I've included gm2-lang.cc and lang.opt for reference.
>
> The python script would have been more informative, the generated
> .texi fragment and the Make-lang.in part as well
ah yes this is true, sorry.
regards,
Gaius
Richard Biener <richard.guenther@gmail.com> writes:
> On Wed, Dec 14, 2022 at 8:48 AM Gaius Mulley <gaiusmod2@gmail.com> wrote:
>>
>>
>>
>> This patch set adds a re-exp ACX_CHECK_PROG_VER to detect python3.
>> HAVE_PYTHON is then checked in gcc/m2/Make-lang.in to generate library
>> chapters if python3 is available. If python3 is unavailable then the
>> chapters are copied from a target-independent version.
>>
>> Bugfixed --enable-generated-files-in-srcdir.
>>
>> Python3 modules section added to install.texi.
>>
>> Also included are the target-independent versions of the
>> documentation. The only difference is in the SYSTEM module which if
>> generated when HAVE_PYTHON is "yes" will enumerate all fundamental
>> data types supported by the target and compiler.
>>
>> I've hand snipped to try and reduce the size/noise as some of
>> these files have already been reviewed.
>>
>> I'll post the unedited version as well for completness,
>
> LGTM.
thanks - this is the last patch tick. So I'll actually do the merge now :-)
> I'll note that in other GCC manuals we have target dependent
> things documented for each supported target. It looks like
> the M2 docs will have only documentation built for the target
> the compiler is built for? So for example the online documentation
> hosted on gcc.gnu.org will then contain only documentation for
> the x86_64-linux target specific SYSTEM module?
true
> building documentation for openSUSE (caveat: we only build
> .info docs and manpages) the documentation is only built once
> (aka for rpm 'noarch') with the idea it will be the same on all targets.
>
> So it seems to me that enumerating the SYSTEM module documentation
> for all targets or somehow differently organizing it would be better?
yes it would. There is a desire to move the non standard data types out
of SYSTEM (by the user community) for the future. But having a comment
saying data type availability dependant upon target architecture would
suffice for now, I'll add a comment,
regards,
Gaius
On Wed, Dec 14, 2022 at 08:35:07AM +0000, Gaius Mulley via Gcc-patches wrote:
> thanks - this is the last patch tick. So I'll actually do the merge now :-)
I've committed following patch to fix up formatting of ChangeLog entries.
diff --git a/ChangeLog b/ChangeLog
index d429aa16dac..89f9d752562 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,24 +2,27 @@
* configure.ac (target_libraries): Add target-libgm2.
Add NCN_STRICT_CHECK_TARGET_TOOLS entry for gm2.
- Add GCC_TARGET_TOOL entry for gm2. (compare_exclusions)
- add gcc/m2/gm2-compiler/M2Version,
+ Add GCC_TARGET_TOOL entry for gm2.
+ (compare_exclusions): Add gcc/m2/gm2-compiler/M2Version,
gcc/m2/gm2-compiler-boot/SYSTEM and gcc/m2/gm2version.
- * Makefile.def (target_modules): Add libgm2. (flags_to_pass)
- Add GM2_FOR_TARGET, GM2FLAGS_FOR_TARGET. (dependencies) Add
- all-target-libgm2 and on=all-target-libatomic. (languages)
- Add entry for language=m2 with gcc-check-target=check-m2
+ * Makefile.def (target_modules): Add libgm2.
+ (flags_to_pass): Add GM2_FOR_TARGET, GM2FLAGS_FOR_TARGET.
+ (dependencies): Add all-target-libgm2 and on=all-target-libatomic.
+ (languages): Add entry for language=m2 with gcc-check-target=check-m2
and lib-check-target=check-target-libgm2.
- * Makefile.tpl (BUILD_EXPORTS): Add definition for GM2
- and GM2FLAGS. (HOST_EXPORTS) Add definition for GM2.
- (BASE_TARGET_EXPORTS) Add definition for GM2.
- (GM2_FOR_BUILD) Defined. (GM2FLAGS) Defined.
- (GM2_FOR_TARGET) Defined. (GM2FLAGS_FOR_TARGET) Defined.
- (EXTRA_HOST_FLAGS) Defined. (POSTSTAGE1_FLAGS_TO_PASS)
- Add GM2 and GM2_FOR_BUILD. (EXTRA_TARGET_FLAGS) Add
- GM2 and GM2FLAGS. (EXTRA_GCC_FLAGS) Add GM2_FOR_TARGET.
- * configure: (Rebuilt).
- * Makefile.in: (Rebuilt).
+ * Makefile.tpl (BUILD_EXPORTS): Add definition for GM2 and GM2FLAGS.
+ (HOST_EXPORTS): Add definition for GM2.
+ (BASE_TARGET_EXPORTS): Add definition for GM2.
+ (GM2_FOR_BUILD): Defined.
+ (GM2FLAGS): Defined.
+ (GM2_FOR_TARGET): Defined.
+ (GM2FLAGS_FOR_TARGET): Defined.
+ (EXTRA_HOST_FLAGS): Defined.
+ (POSTSTAGE1_FLAGS_TO_PASS): Add GM2 and GM2_FOR_BUILD.
+ (EXTRA_TARGET_FLAGS): Add GM2 and GM2FLAGS.
+ (EXTRA_GCC_FLAGS): Add GM2_FOR_TARGET.
+ * configure: Rebuilt.
+ * Makefile.in: Rebuilt.
2022-12-13 Philip Herron <philip.herron@embecosm.com>
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index c3db91c3e27..5299b0da895 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -41,13 +41,15 @@
* configure.ac (HAVE_PYTHON): Test for Python3 added.
* dwarf2out.cc (gen_compile_unit_die): Check language_string
and language to DW_LANG_Modula2.
- * doc/install.texi: Add m2 as a language. (--disable-libgm2)
- Documented. Add make check-m2 to testing selected tests.
+ * doc/install.texi: Add m2 as a language.
+ (--disable-libgm2): Documented. Add make check-m2 to testing selected
+ tests.
* doc/sourcebuild.texi (GM2): New prerequisite item.
- (Python3 modules) New item. (libgm2) Added.
+ (Python3 modules) New item.
+ (libgm2) Added.
(gcc/m2) Added.
- * configure: (Rebuilt).
- * config.in: (Rebuilt).
+ * configure: Rebuilt.
+ * config.in: Rebuilt.
* doc/gm2.texi: New file.
2022-12-14 Martin Jambor <mjambor@suse.cz>
diff --git a/gcc/m2/ChangeLog b/gcc/m2/ChangeLog
index a3e39efe437..34da98a594d 100644
--- a/gcc/m2/ChangeLog
+++ b/gcc/m2/ChangeLog
@@ -1,921 +1,921 @@
2022-12-14 Gaius Mulley <gaiusmod2@gmail.com>
- * COPYING.FDL: (New file).
- * COPYING.RUNTIME: (New file).
- * COPYING3: (New file).
- * COPYING3.LIB: (New file).
- * Make-lang.in: (New file).
- * Make-maintainer.in: (New file).
- * NEWS: (New file).
- * README: (New file).
- * config-lang.in: (New file).
- * config-make.in: (New file).
- * configure.ac: (New file).
- * gm2-compiler/CLexBuf.def: (New file).
- * gm2-compiler/CLexBuf.mod: (New file).
- * gm2-compiler/FifoQueue.def: (New file).
- * gm2-compiler/FifoQueue.mod: (New file).
- * gm2-compiler/Lists.def: (New file).
- * gm2-compiler/Lists.mod: (New file).
- * gm2-compiler/M2ALU.def: (New file).
- * gm2-compiler/M2ALU.mod: (New file).
- * gm2-compiler/M2AsmUtil.def: (New file).
- * gm2-compiler/M2AsmUtil.mod: (New file).
- * gm2-compiler/M2Base.def: (New file).
- * gm2-compiler/M2Base.mod: (New file).
- * gm2-compiler/M2BasicBlock.def: (New file).
- * gm2-compiler/M2BasicBlock.mod: (New file).
- * gm2-compiler/M2Batch.def: (New file).
- * gm2-compiler/M2Batch.mod: (New file).
- * gm2-compiler/M2Bitset.def: (New file).
- * gm2-compiler/M2Bitset.mod: (New file).
- * gm2-compiler/M2CaseList.def: (New file).
- * gm2-compiler/M2CaseList.mod: (New file).
- * gm2-compiler/M2Check.def: (New file).
- * gm2-compiler/M2Check.mod: (New file).
- * gm2-compiler/M2Code.def: (New file).
- * gm2-compiler/M2Code.mod: (New file).
- * gm2-compiler/M2ColorString.def: (New file).
- * gm2-compiler/M2ColorString.mod: (New file).
- * gm2-compiler/M2Comp.def: (New file).
- * gm2-compiler/M2Comp.mod: (New file).
- * gm2-compiler/M2Const.def: (New file).
- * gm2-compiler/M2Const.mod: (New file).
- * gm2-compiler/M2Debug.def: (New file).
- * gm2-compiler/M2Debug.mod: (New file).
- * gm2-compiler/M2DebugStack.def: (New file).
- * gm2-compiler/M2DebugStack.mod: (New file).
- * gm2-compiler/M2Defaults.def: (New file).
- * gm2-compiler/M2Defaults.mod: (New file).
- * gm2-compiler/M2DriverOptions.def: (New file).
- * gm2-compiler/M2DriverOptions.mod: (New file).
- * gm2-compiler/M2Emit.def: (New file).
- * gm2-compiler/M2Emit.mod: (New file).
- * gm2-compiler/M2Error.def: (New file).
- * gm2-compiler/M2Error.mod: (New file).
- * gm2-compiler/M2EvalSym.def: (New file).
- * gm2-compiler/M2FileName.def: (New file).
- * gm2-compiler/M2FileName.mod: (New file).
- * gm2-compiler/M2GCCDeclare.def: (New file).
- * gm2-compiler/M2GCCDeclare.mod: (New file).
- * gm2-compiler/M2GenGCC.def: (New file).
- * gm2-compiler/M2GenGCC.mod: (New file).
- * gm2-compiler/M2Graph.def: (New file).
- * gm2-compiler/M2Graph.mod: (New file).
- * gm2-compiler/M2Lex.def: (New file).
- * gm2-compiler/M2Lex.mod: (New file).
- * gm2-compiler/M2LexBuf.def: (New file).
- * gm2-compiler/M2LexBuf.mod: (New file).
- * gm2-compiler/M2MetaError.def: (New file).
- * gm2-compiler/M2MetaError.mod: (New file).
- * gm2-compiler/M2Optimize.def: (New file).
- * gm2-compiler/M2Optimize.mod: (New file).
- * gm2-compiler/M2Options.def: (New file).
- * gm2-compiler/M2Options.mod: (New file).
- * gm2-compiler/M2Pass.def: (New file).
- * gm2-compiler/M2Pass.mod: (New file).
- * gm2-compiler/M2Preprocess.def: (New file).
- * gm2-compiler/M2Preprocess.mod: (New file).
- * gm2-compiler/M2Printf.def: (New file).
- * gm2-compiler/M2Printf.mod: (New file).
- * gm2-compiler/M2Quads.def: (New file).
- * gm2-compiler/M2Quads.mod: (New file).
- * gm2-compiler/M2Quiet.def: (New file).
- * gm2-compiler/M2Quiet.mod: (New file).
- * gm2-compiler/M2Range.def: (New file).
- * gm2-compiler/M2Range.mod: (New file).
- * gm2-compiler/M2Reserved.def: (New file).
- * gm2-compiler/M2Reserved.mod: (New file).
- * gm2-compiler/M2SSA.def: (New file).
- * gm2-compiler/M2SSA.mod: (New file).
- * gm2-compiler/M2Scaffold.def: (New file).
- * gm2-compiler/M2Scaffold.mod: (New file).
- * gm2-compiler/M2Scope.def: (New file).
- * gm2-compiler/M2Scope.mod: (New file).
- * gm2-compiler/M2Search.def: (New file).
- * gm2-compiler/M2Search.mod: (New file).
- * gm2-compiler/M2Size.def: (New file).
- * gm2-compiler/M2Size.mod: (New file).
- * gm2-compiler/M2StackAddress.def: (New file).
- * gm2-compiler/M2StackAddress.mod: (New file).
- * gm2-compiler/M2StackWord.def: (New file).
- * gm2-compiler/M2StackWord.mod: (New file).
- * gm2-compiler/M2Students.def: (New file).
- * gm2-compiler/M2Students.mod: (New file).
- * gm2-compiler/M2Swig.def: (New file).
- * gm2-compiler/M2Swig.mod: (New file).
- * gm2-compiler/M2System.def: (New file).
- * gm2-compiler/M2System.mod: (New file).
- * gm2-compiler/M2Version.def: (New file).
- * gm2-compiler/NameKey.def: (New file).
- * gm2-compiler/NameKey.mod: (New file).
- * gm2-compiler/ObjectFiles.def: (New file).
- * gm2-compiler/ObjectFiles.mod: (New file).
- * gm2-compiler/Output.def: (New file).
- * gm2-compiler/Output.mod: (New file).
- * gm2-compiler/P0SymBuild.def: (New file).
- * gm2-compiler/P0SymBuild.mod: (New file).
- * gm2-compiler/P0SyntaxCheck.bnf: (New file).
- * gm2-compiler/P0SyntaxCheck.def: (New file).
- * gm2-compiler/P1Build.bnf: (New file).
- * gm2-compiler/P1Build.def: (New file).
- * gm2-compiler/P1SymBuild.def: (New file).
- * gm2-compiler/P1SymBuild.mod: (New file).
- * gm2-compiler/P2Build.bnf: (New file).
- * gm2-compiler/P2Build.def: (New file).
- * gm2-compiler/P2SymBuild.def: (New file).
- * gm2-compiler/P2SymBuild.mod: (New file).
- * gm2-compiler/P3Build.bnf: (New file).
- * gm2-compiler/P3Build.def: (New file).
- * gm2-compiler/P3SymBuild.def: (New file).
- * gm2-compiler/P3SymBuild.mod: (New file).
- * gm2-compiler/PCBuild.bnf: (New file).
- * gm2-compiler/PCBuild.def: (New file).
- * gm2-compiler/PCSymBuild.def: (New file).
- * gm2-compiler/PCSymBuild.mod: (New file).
- * gm2-compiler/PHBuild.bnf: (New file).
- * gm2-compiler/PHBuild.def: (New file).
- * gm2-compiler/README: (New file).
- * gm2-compiler/Sets.def: (New file).
- * gm2-compiler/Sets.mod: (New file).
- * gm2-compiler/SymbolConversion.def: (New file).
- * gm2-compiler/SymbolConversion.mod: (New file).
- * gm2-compiler/SymbolKey.def: (New file).
- * gm2-compiler/SymbolKey.mod: (New file).
- * gm2-compiler/SymbolTable.def: (New file).
- * gm2-compiler/SymbolTable.mod: (New file).
- * gm2-compiler/bnflex.def: (New file).
- * gm2-compiler/bnflex.mod: (New file).
- * gm2-compiler/cflex.def: (New file).
- * gm2-compiler/gm2.mod: (New file).
- * gm2-compiler/gm2lcc.mod: (New file).
- * gm2-compiler/gm2lgen.mod: (New file).
- * gm2-compiler/gm2lorder.mod: (New file).
- * gm2-compiler/m2flex.def: (New file).
- * gm2-compiler/ppg.mod: (New file).
- * gm2-gcc/README: (New file).
- * gm2-gcc/dynamicstrings.h: (New file).
- * gm2-gcc/gcc-consolidation.h: (New file).
- * gm2-gcc/init.cc: (New file).
- * gm2-gcc/init.def: (New file).
- * gm2-gcc/init.h: (New file).
- * gm2-gcc/m2assert.cc: (New file).
- * gm2-gcc/m2assert.h: (New file).
- * gm2-gcc/m2block.cc: (New file).
- * gm2-gcc/m2block.def: (New file).
- * gm2-gcc/m2block.h: (New file).
- * gm2-gcc/m2builtins.cc: (New file).
- * gm2-gcc/m2builtins.def: (New file).
- * gm2-gcc/m2builtins.h: (New file).
- * gm2-gcc/m2color.cc: (New file).
- * gm2-gcc/m2color.def: (New file).
- * gm2-gcc/m2color.h: (New file).
- * gm2-gcc/m2configure.cc: (New file).
- * gm2-gcc/m2configure.def: (New file).
- * gm2-gcc/m2configure.h: (New file).
- * gm2-gcc/m2convert.cc: (New file).
- * gm2-gcc/m2convert.def: (New file).
- * gm2-gcc/m2convert.h: (New file).
- * gm2-gcc/m2decl.cc: (New file).
- * gm2-gcc/m2decl.def: (New file).
- * gm2-gcc/m2decl.h: (New file).
- * gm2-gcc/m2except.cc: (New file).
- * gm2-gcc/m2except.def: (New file).
- * gm2-gcc/m2except.h: (New file).
- * gm2-gcc/m2expr.cc: (New file).
- * gm2-gcc/m2expr.def: (New file).
- * gm2-gcc/m2expr.h: (New file).
- * gm2-gcc/m2linemap.cc: (New file).
- * gm2-gcc/m2linemap.def: (New file).
- * gm2-gcc/m2linemap.h: (New file).
- * gm2-gcc/m2misc.cc: (New file).
- * gm2-gcc/m2misc.def: (New file).
- * gm2-gcc/m2misc.h: (New file).
- * gm2-gcc/m2options.h: (New file).
- * gm2-gcc/m2range.h: (New file).
- * gm2-gcc/m2search.h: (New file).
- * gm2-gcc/m2statement.cc: (New file).
- * gm2-gcc/m2statement.def: (New file).
- * gm2-gcc/m2statement.h: (New file).
- * gm2-gcc/m2top.cc: (New file).
- * gm2-gcc/m2top.def: (New file).
- * gm2-gcc/m2top.h: (New file).
- * gm2-gcc/m2tree.cc: (New file).
- * gm2-gcc/m2tree.def: (New file).
- * gm2-gcc/m2tree.h: (New file).
- * gm2-gcc/m2treelib.cc: (New file).
- * gm2-gcc/m2treelib.def: (New file).
- * gm2-gcc/m2treelib.h: (New file).
- * gm2-gcc/m2type.cc: (New file).
- * gm2-gcc/m2type.def: (New file).
- * gm2-gcc/m2type.h: (New file).
- * gm2-gcc/rtegraph.cc: (New file).
- * gm2-gcc/rtegraph.h: (New file).
- * gm2-ici/M2Emit.mod: (New file).
- * gm2-ici/README: (New file).
- * gm2-ici/m2linemap.c: (New file).
- * gm2-internals.texi: (New file).
- * gm2-lang.cc: (New file).
- * gm2-lang.h: (New file).
- * gm2-libiberty/README: (New file).
- * gm2-libiberty/choosetemp.def: (New file).
- * gm2-libiberty/pexecute.def: (New file).
- * gm2-libs-ch/M2LINK.c: (New file).
- * gm2-libs-ch/README: (New file).
- * gm2-libs-ch/RTcodummy.c: (New file).
- * gm2-libs-ch/RTintdummy.c: (New file).
- * gm2-libs-ch/Selective.c: (New file).
- * gm2-libs-ch/SysExceptions.c: (New file).
- * gm2-libs-ch/UnixArgs.cc: (New file).
- * gm2-libs-ch/cgetopt.c: (New file).
- * gm2-libs-ch/choosetemp.c: (New file).
- * gm2-libs-ch/dtoa.cc: (New file).
- * gm2-libs-ch/errno.c: (New file).
- * gm2-libs-ch/host.c: (New file).
- * gm2-libs-ch/ldtoa.cc: (New file).
- * gm2-libs-ch/m2rts.h: (New file).
- * gm2-libs-ch/termios.c: (New file).
- * gm2-libs-ch/tools.c: (New file).
- * gm2-libs-ch/wrapc.c: (New file).
- * gm2-libs-ch/xlibc.c: (New file).
- * gm2-libs-coroutines/Debug.def: (New file).
- * gm2-libs-coroutines/Debug.mod: (New file).
- * gm2-libs-coroutines/Executive.def: (New file).
- * gm2-libs-coroutines/Executive.mod: (New file).
- * gm2-libs-coroutines/KeyBoardLEDs.def: (New file).
- * gm2-libs-coroutines/README.texi: (New file).
- * gm2-libs-coroutines/SYSTEM.def: (New file).
- * gm2-libs-coroutines/SYSTEM.mod: (New file).
- * gm2-libs-coroutines/TimerHandler.def: (New file).
- * gm2-libs-coroutines/TimerHandler.mod: (New file).
- * gm2-libs-iso/COROUTINES.def: (New file).
- * gm2-libs-iso/COROUTINES.mod: (New file).
- * gm2-libs-iso/ChanConsts.def: (New file).
- * gm2-libs-iso/ChanConsts.h: (New file).
- * gm2-libs-iso/ChanConsts.mod: (New file).
- * gm2-libs-iso/CharClass.def: (New file).
- * gm2-libs-iso/CharClass.mod: (New file).
- * gm2-libs-iso/ClientSocket.def: (New file).
- * gm2-libs-iso/ClientSocket.mod: (New file).
- * gm2-libs-iso/ComplexMath.def: (New file).
- * gm2-libs-iso/ComplexMath.mod: (New file).
- * gm2-libs-iso/ConvStringLong.def: (New file).
- * gm2-libs-iso/ConvStringLong.mod: (New file).
- * gm2-libs-iso/ConvStringReal.def: (New file).
- * gm2-libs-iso/ConvStringReal.mod: (New file).
- * gm2-libs-iso/ConvTypes.def: (New file).
- * gm2-libs-iso/ConvTypes.mod: (New file).
- * gm2-libs-iso/EXCEPTIONS.def: (New file).
- * gm2-libs-iso/EXCEPTIONS.mod: (New file).
- * gm2-libs-iso/ErrnoCategory.def: (New file).
- * gm2-libs-iso/GeneralUserExceptions.def: (New file).
- * gm2-libs-iso/GeneralUserExceptions.mod: (New file).
- * gm2-libs-iso/IOChan.def: (New file).
- * gm2-libs-iso/IOChan.mod: (New file).
- * gm2-libs-iso/IOConsts.def: (New file).
- * gm2-libs-iso/IOConsts.mod: (New file).
- * gm2-libs-iso/IOLink.def: (New file).
- * gm2-libs-iso/IOLink.mod: (New file).
- * gm2-libs-iso/IOResult.def: (New file).
- * gm2-libs-iso/IOResult.mod: (New file).
- * gm2-libs-iso/LongComplexMath.def: (New file).
- * gm2-libs-iso/LongComplexMath.mod: (New file).
- * gm2-libs-iso/LongConv.def: (New file).
- * gm2-libs-iso/LongConv.mod: (New file).
- * gm2-libs-iso/LongIO.def: (New file).
- * gm2-libs-iso/LongIO.mod: (New file).
- * gm2-libs-iso/LongMath.def: (New file).
- * gm2-libs-iso/LongMath.mod: (New file).
- * gm2-libs-iso/LongStr.def: (New file).
- * gm2-libs-iso/LongStr.mod: (New file).
- * gm2-libs-iso/LongWholeIO.def: (New file).
- * gm2-libs-iso/LongWholeIO.mod: (New file).
- * gm2-libs-iso/LowLong.def: (New file).
- * gm2-libs-iso/LowLong.mod: (New file).
- * gm2-libs-iso/LowReal.def: (New file).
- * gm2-libs-iso/LowReal.mod: (New file).
- * gm2-libs-iso/LowShort.def: (New file).
- * gm2-libs-iso/LowShort.mod: (New file).
- * gm2-libs-iso/M2EXCEPTION.def: (New file).
- * gm2-libs-iso/M2EXCEPTION.mod: (New file).
- * gm2-libs-iso/M2RTS.def: (New file).
- * gm2-libs-iso/M2RTS.mod: (New file).
- * gm2-libs-iso/MemStream.def: (New file).
- * gm2-libs-iso/MemStream.mod: (New file).
- * gm2-libs-iso/Preemptive.def: (New file).
- * gm2-libs-iso/Preemptive.mod: (New file).
- * gm2-libs-iso/Processes.def: (New file).
- * gm2-libs-iso/Processes.mod: (New file).
- * gm2-libs-iso/ProgramArgs.def: (New file).
- * gm2-libs-iso/ProgramArgs.mod: (New file).
- * gm2-libs-iso/README.texi: (New file).
- * gm2-libs-iso/RTco.def: (New file).
- * gm2-libs-iso/RTdata.def: (New file).
- * gm2-libs-iso/RTdata.mod: (New file).
- * gm2-libs-iso/RTentity.def: (New file).
- * gm2-libs-iso/RTentity.mod: (New file).
- * gm2-libs-iso/RTfio.def: (New file).
- * gm2-libs-iso/RTfio.mod: (New file).
- * gm2-libs-iso/RTgen.def: (New file).
- * gm2-libs-iso/RTgen.mod: (New file).
- * gm2-libs-iso/RTgenif.def: (New file).
- * gm2-libs-iso/RTgenif.mod: (New file).
- * gm2-libs-iso/RTio.def: (New file).
- * gm2-libs-iso/RTio.mod: (New file).
- * gm2-libs-iso/RandomNumber.def: (New file).
- * gm2-libs-iso/RandomNumber.mod: (New file).
- * gm2-libs-iso/RawIO.def: (New file).
- * gm2-libs-iso/RawIO.mod: (New file).
- * gm2-libs-iso/RealConv.def: (New file).
- * gm2-libs-iso/RealConv.mod: (New file).
- * gm2-libs-iso/RealIO.def: (New file).
- * gm2-libs-iso/RealIO.mod: (New file).
- * gm2-libs-iso/RealMath.def: (New file).
- * gm2-libs-iso/RealMath.mod: (New file).
- * gm2-libs-iso/RealStr.def: (New file).
- * gm2-libs-iso/RealStr.mod: (New file).
- * gm2-libs-iso/RndFile.def: (New file).
- * gm2-libs-iso/RndFile.mod: (New file).
- * gm2-libs-iso/SIOResult.def: (New file).
- * gm2-libs-iso/SIOResult.mod: (New file).
- * gm2-libs-iso/SLongIO.def: (New file).
- * gm2-libs-iso/SLongIO.mod: (New file).
- * gm2-libs-iso/SLongWholeIO.def: (New file).
- * gm2-libs-iso/SLongWholeIO.mod: (New file).
- * gm2-libs-iso/SRawIO.def: (New file).
- * gm2-libs-iso/SRawIO.mod: (New file).
- * gm2-libs-iso/SRealIO.def: (New file).
- * gm2-libs-iso/SRealIO.mod: (New file).
- * gm2-libs-iso/SShortIO.def: (New file).
- * gm2-libs-iso/SShortIO.mod: (New file).
- * gm2-libs-iso/SShortWholeIO.def: (New file).
- * gm2-libs-iso/SShortWholeIO.mod: (New file).
- * gm2-libs-iso/STextIO.def: (New file).
- * gm2-libs-iso/STextIO.mod: (New file).
- * gm2-libs-iso/SWholeIO.def: (New file).
- * gm2-libs-iso/SWholeIO.mod: (New file).
- * gm2-libs-iso/SYSTEM.def: (New file).
- * gm2-libs-iso/SYSTEM.mod: (New file).
- * gm2-libs-iso/Semaphores.def: (New file).
- * gm2-libs-iso/Semaphores.mod: (New file).
- * gm2-libs-iso/SeqFile.def: (New file).
- * gm2-libs-iso/SeqFile.mod: (New file).
- * gm2-libs-iso/ShortComplexMath.def: (New file).
- * gm2-libs-iso/ShortComplexMath.mod: (New file).
- * gm2-libs-iso/ShortIO.def: (New file).
- * gm2-libs-iso/ShortIO.mod: (New file).
- * gm2-libs-iso/ShortWholeIO.def: (New file).
- * gm2-libs-iso/ShortWholeIO.mod: (New file).
- * gm2-libs-iso/SimpleCipher.def: (New file).
- * gm2-libs-iso/SimpleCipher.mod: (New file).
- * gm2-libs-iso/StdChans.def: (New file).
- * gm2-libs-iso/StdChans.mod: (New file).
- * gm2-libs-iso/Storage.def: (New file).
- * gm2-libs-iso/Storage.mod: (New file).
- * gm2-libs-iso/StreamFile.def: (New file).
- * gm2-libs-iso/StreamFile.mod: (New file).
- * gm2-libs-iso/StringChan.def: (New file).
- * gm2-libs-iso/StringChan.mod: (New file).
- * gm2-libs-iso/Strings.def: (New file).
- * gm2-libs-iso/Strings.mod: (New file).
- * gm2-libs-iso/SysClock.def: (New file).
- * gm2-libs-iso/SysClock.mod: (New file).
- * gm2-libs-iso/TERMINATION.def: (New file).
- * gm2-libs-iso/TERMINATION.mod: (New file).
- * gm2-libs-iso/TermFile.def: (New file).
- * gm2-libs-iso/TermFile.mod: (New file).
- * gm2-libs-iso/TextIO.def: (New file).
- * gm2-libs-iso/TextIO.mod: (New file).
- * gm2-libs-iso/WholeConv.def: (New file).
- * gm2-libs-iso/WholeConv.mod: (New file).
- * gm2-libs-iso/WholeIO.def: (New file).
- * gm2-libs-iso/WholeIO.mod: (New file).
- * gm2-libs-iso/WholeStr.def: (New file).
- * gm2-libs-iso/WholeStr.mod: (New file).
- * gm2-libs-iso/wrapsock.c: (New file).
- * gm2-libs-iso/wrapsock.def: (New file).
- * gm2-libs-iso/wraptime.c: (New file).
- * gm2-libs-iso/wraptime.def: (New file).
- * gm2-libs-min/M2RTS.def: (New file).
- * gm2-libs-min/M2RTS.mod: (New file).
- * gm2-libs-min/SYSTEM.def: (New file).
- * gm2-libs-min/SYSTEM.mod: (New file).
- * gm2-libs-min/libc.c: (New file).
- * gm2-libs-min/libc.def: (New file).
- * gm2-libs-pim/BitBlockOps.def: (New file).
- * gm2-libs-pim/BitBlockOps.mod: (New file).
- * gm2-libs-pim/BitByteOps.def: (New file).
- * gm2-libs-pim/BitByteOps.mod: (New file).
- * gm2-libs-pim/BitWordOps.def: (New file).
- * gm2-libs-pim/BitWordOps.mod: (New file).
- * gm2-libs-pim/BlockOps.def: (New file).
- * gm2-libs-pim/BlockOps.mod: (New file).
- * gm2-libs-pim/Break.c: (New file).
- * gm2-libs-pim/Break.def: (New file).
- * gm2-libs-pim/CardinalIO.def: (New file).
- * gm2-libs-pim/CardinalIO.mod: (New file).
- * gm2-libs-pim/Conversions.def: (New file).
- * gm2-libs-pim/Conversions.mod: (New file).
- * gm2-libs-pim/DebugPMD.def: (New file).
- * gm2-libs-pim/DebugPMD.mod: (New file).
- * gm2-libs-pim/DebugTrace.def: (New file).
- * gm2-libs-pim/DebugTrace.mod: (New file).
- * gm2-libs-pim/Delay.def: (New file).
- * gm2-libs-pim/Delay.mod: (New file).
- * gm2-libs-pim/Display.def: (New file).
- * gm2-libs-pim/Display.mod: (New file).
- * gm2-libs-pim/ErrorCode.def: (New file).
- * gm2-libs-pim/ErrorCode.mod: (New file).
- * gm2-libs-pim/FileSystem.def: (New file).
- * gm2-libs-pim/FileSystem.mod: (New file).
- * gm2-libs-pim/FloatingUtilities.def: (New file).
- * gm2-libs-pim/FloatingUtilities.mod: (New file).
- * gm2-libs-pim/InOut.def: (New file).
- * gm2-libs-pim/InOut.mod: (New file).
- * gm2-libs-pim/Keyboard.def: (New file).
- * gm2-libs-pim/Keyboard.mod: (New file).
- * gm2-libs-pim/LongIO.def: (New file).
- * gm2-libs-pim/LongIO.mod: (New file).
- * gm2-libs-pim/NumberConversion.def: (New file).
- * gm2-libs-pim/NumberConversion.mod: (New file).
- * gm2-libs-pim/README.texi: (New file).
- * gm2-libs-pim/Random.def: (New file).
- * gm2-libs-pim/Random.mod: (New file).
- * gm2-libs-pim/RealConversions.def: (New file).
- * gm2-libs-pim/RealConversions.mod: (New file).
- * gm2-libs-pim/RealInOut.def: (New file).
- * gm2-libs-pim/RealInOut.mod: (New file).
- * gm2-libs-pim/Strings.def: (New file).
- * gm2-libs-pim/Strings.mod: (New file).
- * gm2-libs-pim/Termbase.def: (New file).
- * gm2-libs-pim/Termbase.mod: (New file).
- * gm2-libs-pim/Terminal.def: (New file).
- * gm2-libs-pim/Terminal.mod: (New file).
- * gm2-libs-pim/TimeDate.def: (New file).
- * gm2-libs-pim/TimeDate.mod: (New file).
- * gm2-libs/ASCII.def: (New file).
- * gm2-libs/ASCII.mod: (New file).
- * gm2-libs/Args.def: (New file).
- * gm2-libs/Args.mod: (New file).
- * gm2-libs/Assertion.def: (New file).
- * gm2-libs/Assertion.mod: (New file).
- * gm2-libs/Break.def: (New file).
- * gm2-libs/Break.mod: (New file).
- * gm2-libs/Builtins.def: (New file).
- * gm2-libs/Builtins.mod: (New file).
- * gm2-libs/COROUTINES.def: (New file).
- * gm2-libs/COROUTINES.mod: (New file).
- * gm2-libs/CmdArgs.def: (New file).
- * gm2-libs/CmdArgs.mod: (New file).
- * gm2-libs/Debug.def: (New file).
- * gm2-libs/Debug.mod: (New file).
- * gm2-libs/DynamicStrings.def: (New file).
- * gm2-libs/DynamicStrings.mod: (New file).
- * gm2-libs/Environment.def: (New file).
- * gm2-libs/Environment.mod: (New file).
- * gm2-libs/FIO.def: (New file).
- * gm2-libs/FIO.mod: (New file).
- * gm2-libs/FormatStrings.def: (New file).
- * gm2-libs/FormatStrings.mod: (New file).
- * gm2-libs/FpuIO.def: (New file).
- * gm2-libs/FpuIO.mod: (New file).
- * gm2-libs/GetOpt.def: (New file).
- * gm2-libs/GetOpt.mod: (New file).
- * gm2-libs/IO.def: (New file).
- * gm2-libs/IO.mod: (New file).
- * gm2-libs/Indexing.def: (New file).
- * gm2-libs/Indexing.mod: (New file).
- * gm2-libs/LMathLib0.def: (New file).
- * gm2-libs/LMathLib0.mod: (New file).
- * gm2-libs/LegacyReal.def: (New file).
- * gm2-libs/LegacyReal.mod: (New file).
- * gm2-libs/M2Dependent.def: (New file).
- * gm2-libs/M2Dependent.mod: (New file).
- * gm2-libs/M2EXCEPTION.def: (New file).
- * gm2-libs/M2EXCEPTION.mod: (New file).
- * gm2-libs/M2LINK.def: (New file).
- * gm2-libs/M2RTS.def: (New file).
- * gm2-libs/M2RTS.mod: (New file).
- * gm2-libs/MathLib0.def: (New file).
- * gm2-libs/MathLib0.mod: (New file).
- * gm2-libs/MemUtils.def: (New file).
- * gm2-libs/MemUtils.mod: (New file).
- * gm2-libs/NumberIO.def: (New file).
- * gm2-libs/NumberIO.mod: (New file).
- * gm2-libs/OptLib.def: (New file).
- * gm2-libs/OptLib.mod: (New file).
- * gm2-libs/PushBackInput.def: (New file).
- * gm2-libs/PushBackInput.mod: (New file).
- * gm2-libs/README.texi: (New file).
- * gm2-libs/RTExceptions.def: (New file).
- * gm2-libs/RTExceptions.mod: (New file).
- * gm2-libs/RTint.def: (New file).
- * gm2-libs/RTint.mod: (New file).
- * gm2-libs/SArgs.def: (New file).
- * gm2-libs/SArgs.mod: (New file).
- * gm2-libs/SCmdArgs.def: (New file).
- * gm2-libs/SCmdArgs.mod: (New file).
- * gm2-libs/SEnvironment.def: (New file).
- * gm2-libs/SEnvironment.mod: (New file).
- * gm2-libs/SFIO.def: (New file).
- * gm2-libs/SFIO.mod: (New file).
- * gm2-libs/SMathLib0.def: (New file).
- * gm2-libs/SMathLib0.mod: (New file).
- * gm2-libs/SYSTEM.def: (New file).
- * gm2-libs/SYSTEM.mod: (New file).
- * gm2-libs/Scan.def: (New file).
- * gm2-libs/Scan.mod: (New file).
- * gm2-libs/Selective.def: (New file).
- * gm2-libs/StdIO.def: (New file).
- * gm2-libs/StdIO.mod: (New file).
- * gm2-libs/Storage.def: (New file).
- * gm2-libs/Storage.mod: (New file).
- * gm2-libs/StrCase.def: (New file).
- * gm2-libs/StrCase.mod: (New file).
- * gm2-libs/StrIO.def: (New file).
- * gm2-libs/StrIO.mod: (New file).
- * gm2-libs/StrLib.def: (New file).
- * gm2-libs/StrLib.mod: (New file).
- * gm2-libs/StringConvert.def: (New file).
- * gm2-libs/StringConvert.mod: (New file).
- * gm2-libs/SysExceptions.def: (New file).
- * gm2-libs/SysStorage.def: (New file).
- * gm2-libs/SysStorage.mod: (New file).
- * gm2-libs/TimeString.def: (New file).
- * gm2-libs/TimeString.mod: (New file).
- * gm2-libs/UnixArgs.def: (New file).
- * gm2-libs/cbuiltin.def: (New file).
- * gm2-libs/cgetopt.def: (New file).
- * gm2-libs/config-host: (New file).
- * gm2-libs/config-host.in: (New file).
- * gm2-libs/cxxabi.def: (New file).
- * gm2-libs/dtoa.def: (New file).
- * gm2-libs/errno.def: (New file).
- * gm2-libs/gdbif.def: (New file).
- * gm2-libs/gdbif.mod: (New file).
- * gm2-libs/gm2-libs-host.h.in: (New file).
- * gm2-libs/ldtoa.def: (New file).
- * gm2-libs/libc.def: (New file).
- * gm2-libs/libm.def: (New file).
- * gm2-libs/sckt.def: (New file).
- * gm2-libs/termios.def: (New file).
- * gm2-libs/wrapc.def: (New file).
- * gm2config.h.in: (New file).
- * gm2spec.cc: (New file).
- * gm2version.h: (New file).
- * init/README: (New file).
- * init/mcinit: (New file).
- * init/ppginit: (New file).
- * lang-specs.h: (New file).
- * lang.opt: (New file).
- * m2-tree.def: (New file).
- * m2-tree.h: (New file).
- * m2.flex: (New file).
- * m2pp.cc: (New file).
- * m2pp.h: (New file).
- * mc-boot-ch/GBuiltins.c: (New file).
- * mc-boot-ch/GM2LINK.c: (New file).
- * mc-boot-ch/GRTco.c: (New file).
- * mc-boot-ch/GSYSTEM.c: (New file).
- * mc-boot-ch/GSelective.c: (New file).
- * mc-boot-ch/GSysExceptions.c: (New file).
- * mc-boot-ch/GUnixArgs.cc: (New file).
- * mc-boot-ch/Gabort.c: (New file).
- * mc-boot-ch/Gcbuiltin.c: (New file).
- * mc-boot-ch/Gdtoa.c: (New file).
- * mc-boot-ch/Gerrno.c: (New file).
- * mc-boot-ch/Gldtoa.c: (New file).
- * mc-boot-ch/Glibc.c: (New file).
- * mc-boot-ch/Glibm.c: (New file).
- * mc-boot-ch/Gmcrts.c: (New file).
- * mc-boot-ch/Gmcrts.h: (New file).
- * mc-boot-ch/Gnetwork.h: (New file).
- * mc-boot-ch/Gtermios.cc: (New file).
- * mc-boot-ch/Gwrapc.c: (New file).
- * mc-boot-ch/README: (New file).
- * mc-boot-ch/m2rts.h: (New file).
- * mc-boot-ch/network.c: (New file).
- * mc-boot/GASCII.c: (New file).
- * mc-boot/GASCII.h: (New file).
- * mc-boot/GArgs.c: (New file).
- * mc-boot/GArgs.h: (New file).
- * mc-boot/GAssertion.c: (New file).
- * mc-boot/GAssertion.h: (New file).
- * mc-boot/GBreak.c: (New file).
- * mc-boot/GBreak.h: (New file).
- * mc-boot/GCOROUTINES.h: (New file).
- * mc-boot/GCmdArgs.c: (New file).
- * mc-boot/GCmdArgs.h: (New file).
- * mc-boot/GDebug.c: (New file).
- * mc-boot/GDebug.h: (New file).
- * mc-boot/GDynamicStrings.c: (New file).
- * mc-boot/GDynamicStrings.h: (New file).
- * mc-boot/GEnvironment.c: (New file).
- * mc-boot/GEnvironment.h: (New file).
- * mc-boot/GFIO.c: (New file).
- * mc-boot/GFIO.h: (New file).
- * mc-boot/GFormatStrings.c: (New file).
- * mc-boot/GFormatStrings.h: (New file).
- * mc-boot/GFpuIO.c: (New file).
- * mc-boot/GFpuIO.h: (New file).
- * mc-boot/GIO.c: (New file).
- * mc-boot/GIO.h: (New file).
- * mc-boot/GIndexing.c: (New file).
- * mc-boot/GIndexing.h: (New file).
- * mc-boot/GM2Dependent.c: (New file).
- * mc-boot/GM2Dependent.h: (New file).
- * mc-boot/GM2EXCEPTION.c: (New file).
- * mc-boot/GM2EXCEPTION.h: (New file).
- * mc-boot/GM2LINK.h: (New file).
- * mc-boot/GM2RTS.c: (New file).
- * mc-boot/GM2RTS.h: (New file).
- * mc-boot/GMemUtils.c: (New file).
- * mc-boot/GMemUtils.h: (New file).
- * mc-boot/GNumberIO.c: (New file).
- * mc-boot/GNumberIO.h: (New file).
- * mc-boot/GPushBackInput.c: (New file).
- * mc-boot/GPushBackInput.h: (New file).
- * mc-boot/GRTExceptions.c: (New file).
- * mc-boot/GRTExceptions.h: (New file).
- * mc-boot/GRTco.h: (New file).
- * mc-boot/GRTint.c: (New file).
- * mc-boot/GRTint.h: (New file).
- * mc-boot/GSArgs.c: (New file).
- * mc-boot/GSArgs.h: (New file).
- * mc-boot/GSFIO.c: (New file).
- * mc-boot/GSFIO.h: (New file).
- * mc-boot/GSYSTEM.h: (New file).
- * mc-boot/GSelective.h: (New file).
- * mc-boot/GStdIO.c: (New file).
- * mc-boot/GStdIO.h: (New file).
- * mc-boot/GStorage.c: (New file).
- * mc-boot/GStorage.h: (New file).
- * mc-boot/GStrCase.c: (New file).
- * mc-boot/GStrCase.h: (New file).
- * mc-boot/GStrIO.c: (New file).
- * mc-boot/GStrIO.h: (New file).
- * mc-boot/GStrLib.c: (New file).
- * mc-boot/GStrLib.h: (New file).
- * mc-boot/GStringConvert.c: (New file).
- * mc-boot/GStringConvert.h: (New file).
- * mc-boot/GSysExceptions.h: (New file).
- * mc-boot/GSysStorage.c: (New file).
- * mc-boot/GSysStorage.h: (New file).
- * mc-boot/GTimeString.c: (New file).
- * mc-boot/GTimeString.h: (New file).
- * mc-boot/GUnixArgs.h: (New file).
- * mc-boot/Galists.c: (New file).
- * mc-boot/Galists.h: (New file).
- * mc-boot/Gdecl.c: (New file).
- * mc-boot/Gdecl.h: (New file).
- * mc-boot/Gdtoa.h: (New file).
- * mc-boot/Gerrno.h: (New file).
- * mc-boot/Gkeyc.c: (New file).
- * mc-boot/Gkeyc.h: (New file).
- * mc-boot/Gldtoa.h: (New file).
- * mc-boot/Glibc.h: (New file).
- * mc-boot/Glibm.h: (New file).
- * mc-boot/Glists.c: (New file).
- * mc-boot/Glists.h: (New file).
- * mc-boot/GmcComment.c: (New file).
- * mc-boot/GmcComment.h: (New file).
- * mc-boot/GmcComp.c: (New file).
- * mc-boot/GmcComp.h: (New file).
- * mc-boot/GmcDebug.c: (New file).
- * mc-boot/GmcDebug.h: (New file).
- * mc-boot/GmcError.c: (New file).
- * mc-boot/GmcError.h: (New file).
- * mc-boot/GmcFileName.c: (New file).
- * mc-boot/GmcFileName.h: (New file).
- * mc-boot/GmcLexBuf.c: (New file).
- * mc-boot/GmcLexBuf.h: (New file).
- * mc-boot/GmcMetaError.c: (New file).
- * mc-boot/GmcMetaError.h: (New file).
- * mc-boot/GmcOptions.c: (New file).
- * mc-boot/GmcOptions.h: (New file).
- * mc-boot/GmcPreprocess.c: (New file).
- * mc-boot/GmcPreprocess.h: (New file).
- * mc-boot/GmcPretty.c: (New file).
- * mc-boot/GmcPretty.h: (New file).
- * mc-boot/GmcPrintf.c: (New file).
- * mc-boot/GmcPrintf.h: (New file).
- * mc-boot/GmcQuiet.c: (New file).
- * mc-boot/GmcQuiet.h: (New file).
- * mc-boot/GmcReserved.c: (New file).
- * mc-boot/GmcReserved.h: (New file).
- * mc-boot/GmcSearch.c: (New file).
- * mc-boot/GmcSearch.h: (New file).
- * mc-boot/GmcStack.c: (New file).
- * mc-boot/GmcStack.h: (New file).
- * mc-boot/GmcStream.c: (New file).
- * mc-boot/GmcStream.h: (New file).
- * mc-boot/Gmcflex.h: (New file).
- * mc-boot/Gmcp1.c: (New file).
- * mc-boot/Gmcp1.h: (New file).
- * mc-boot/Gmcp2.c: (New file).
- * mc-boot/Gmcp2.h: (New file).
- * mc-boot/Gmcp3.c: (New file).
- * mc-boot/Gmcp3.h: (New file).
- * mc-boot/Gmcp4.c: (New file).
- * mc-boot/Gmcp4.h: (New file).
- * mc-boot/Gmcp5.c: (New file).
- * mc-boot/Gmcp5.h: (New file).
- * mc-boot/GnameKey.c: (New file).
- * mc-boot/GnameKey.h: (New file).
- * mc-boot/Gpth.h: (New file).
- * mc-boot/GsymbolKey.c: (New file).
- * mc-boot/GsymbolKey.h: (New file).
- * mc-boot/Gtermios.h: (New file).
- * mc-boot/Gtop.c: (New file).
- * mc-boot/Gvarargs.c: (New file).
- * mc-boot/Gvarargs.h: (New file).
- * mc-boot/Gwlists.c: (New file).
- * mc-boot/Gwlists.h: (New file).
- * mc-boot/Gwrapc.h: (New file).
- * mc-boot/README: (New file).
- * mc/Indexing.def: (New file).
- * mc/Indexing.mod: (New file).
- * mc/README: (New file).
- * mc/alists.def: (New file).
- * mc/alists.mod: (New file).
- * mc/decl.def: (New file).
- * mc/decl.mod: (New file).
- * mc/decl.mod-extra: (New file).
- * mc/keyc.def: (New file).
- * mc/keyc.mod: (New file).
- * mc/lists.def: (New file).
- * mc/lists.mod: (New file).
- * mc/m2flex.def: (New file).
- * mc/mc.flex: (New file).
- * mc/mcComment.def: (New file).
- * mc/mcComment.h: (New file).
- * mc/mcComment.mod: (New file).
- * mc/mcComp.def: (New file).
- * mc/mcComp.mod: (New file).
- * mc/mcDebug.def: (New file).
- * mc/mcDebug.mod: (New file).
- * mc/mcError.def: (New file).
- * mc/mcError.mod: (New file).
- * mc/mcFileName.def: (New file).
- * mc/mcFileName.mod: (New file).
- * mc/mcLexBuf.def: (New file).
- * mc/mcLexBuf.h: (New file).
- * mc/mcLexBuf.mod: (New file).
- * mc/mcMetaError.def: (New file).
- * mc/mcMetaError.mod: (New file).
- * mc/mcOptions.def: (New file).
- * mc/mcOptions.mod: (New file).
- * mc/mcPreprocess.def: (New file).
- * mc/mcPreprocess.mod: (New file).
- * mc/mcPretty.def: (New file).
- * mc/mcPretty.mod: (New file).
- * mc/mcPrintf.def: (New file).
- * mc/mcPrintf.mod: (New file).
- * mc/mcQuiet.def: (New file).
- * mc/mcQuiet.mod: (New file).
- * mc/mcReserved.def: (New file).
- * mc/mcReserved.h: (New file).
- * mc/mcReserved.mod: (New file).
- * mc/mcSearch.def: (New file).
- * mc/mcSearch.mod: (New file).
- * mc/mcStack.def: (New file).
- * mc/mcStack.mod: (New file).
- * mc/mcStream.def: (New file).
- * mc/mcStream.mod: (New file).
- * mc/mcflex.def: (New file).
- * mc/mcp1.bnf: (New file).
- * mc/mcp1.def: (New file).
- * mc/mcp2.bnf: (New file).
- * mc/mcp2.def: (New file).
- * mc/mcp3.bnf: (New file).
- * mc/mcp3.def: (New file).
- * mc/mcp4.bnf: (New file).
- * mc/mcp4.def: (New file).
- * mc/mcp5.bnf: (New file).
- * mc/mcp5.def: (New file).
- * mc/nameKey.def: (New file).
- * mc/nameKey.mod: (New file).
- * mc/symbolKey.def: (New file).
- * mc/symbolKey.mod: (New file).
- * mc/top.mod: (New file).
- * mc/varargs.def: (New file).
- * mc/varargs.mod: (New file).
- * mc/wlists.def: (New file).
- * mc/wlists.mod: (New file).
- * pge-boot/GASCII.c: (New file).
- * pge-boot/GASCII.h: (New file).
- * pge-boot/GArgs.c: (New file).
- * pge-boot/GArgs.h: (New file).
- * pge-boot/GAssertion.c: (New file).
- * pge-boot/GAssertion.h: (New file).
- * pge-boot/GBreak.h: (New file).
- * pge-boot/GBuiltins.c: (New file).
- * pge-boot/GCmdArgs.h: (New file).
- * pge-boot/GDebug.c: (New file).
- * pge-boot/GDebug.h: (New file).
- * pge-boot/GDynamicStrings.c: (New file).
- * pge-boot/GDynamicStrings.h: (New file).
- * pge-boot/GEnvironment.h: (New file).
- * pge-boot/GFIO.c: (New file).
- * pge-boot/GFIO.h: (New file).
- * pge-boot/GFormatStrings.h: (New file).
- * pge-boot/GFpuIO.h: (New file).
- * pge-boot/GIO.c: (New file).
- * pge-boot/GIO.h: (New file).
- * pge-boot/GIndexing.c: (New file).
- * pge-boot/GIndexing.h: (New file).
- * pge-boot/GLists.c: (New file).
- * pge-boot/GLists.h: (New file).
- * pge-boot/GM2Dependent.c: (New file).
- * pge-boot/GM2Dependent.h: (New file).
- * pge-boot/GM2EXCEPTION.c: (New file).
- * pge-boot/GM2EXCEPTION.h: (New file).
- * pge-boot/GM2LINK.c: (New file).
- * pge-boot/GM2LINK.h: (New file).
- * pge-boot/GM2RTS.c: (New file).
- * pge-boot/GM2RTS.h: (New file).
- * pge-boot/GNameKey.c: (New file).
- * pge-boot/GNameKey.h: (New file).
- * pge-boot/GNumberIO.c: (New file).
- * pge-boot/GNumberIO.h: (New file).
- * pge-boot/GOutput.c: (New file).
- * pge-boot/GOutput.h: (New file).
- * pge-boot/GPushBackInput.c: (New file).
- * pge-boot/GPushBackInput.h: (New file).
- * pge-boot/GRTExceptions.c: (New file).
- * pge-boot/GRTExceptions.h: (New file).
- * pge-boot/GRTco.c: (New file).
- * pge-boot/GSArgs.h: (New file).
- * pge-boot/GSEnvironment.h: (New file).
- * pge-boot/GSFIO.c: (New file).
- * pge-boot/GSFIO.h: (New file).
- * pge-boot/GSYSTEM.c: (New file).
- * pge-boot/GSYSTEM.h: (New file).
- * pge-boot/GScan.h: (New file).
- * pge-boot/GSelective.c: (New file).
- * pge-boot/GStdIO.c: (New file).
- * pge-boot/GStdIO.h: (New file).
- * pge-boot/GStorage.c: (New file).
- * pge-boot/GStorage.h: (New file).
- * pge-boot/GStrCase.c: (New file).
- * pge-boot/GStrCase.h: (New file).
- * pge-boot/GStrIO.c: (New file).
- * pge-boot/GStrIO.h: (New file).
- * pge-boot/GStrLib.c: (New file).
- * pge-boot/GStrLib.h: (New file).
- * pge-boot/GStringConvert.h: (New file).
- * pge-boot/GSymbolKey.c: (New file).
- * pge-boot/GSymbolKey.h: (New file).
- * pge-boot/GSysExceptions.c: (New file).
- * pge-boot/GSysExceptions.h: (New file).
- * pge-boot/GSysStorage.c: (New file).
- * pge-boot/GSysStorage.h: (New file).
- * pge-boot/GTimeString.h: (New file).
- * pge-boot/GUnixArgs.cc: (New file).
- * pge-boot/GUnixArgs.h: (New file).
- * pge-boot/Gabort.c: (New file).
- * pge-boot/Gbnflex.c: (New file).
- * pge-boot/Gbnflex.h: (New file).
- * pge-boot/Gcbuiltin.c: (New file).
- * pge-boot/Gdtoa.c: (New file).
- * pge-boot/Gdtoa.h: (New file).
- * pge-boot/Gerrno.c: (New file).
- * pge-boot/Gerrno.h: (New file).
- * pge-boot/Gldtoa.c: (New file).
- * pge-boot/Gldtoa.h: (New file).
- * pge-boot/Glibc.c: (New file).
- * pge-boot/Glibc.h: (New file).
- * pge-boot/Glibm.c: (New file).
- * pge-boot/Glibm.h: (New file).
- * pge-boot/Gmcrts.c: (New file).
- * pge-boot/Gmcrts.h: (New file).
- * pge-boot/Gnetwork.h: (New file).
- * pge-boot/Gpge.c: (New file).
- * pge-boot/Gtermios.cc: (New file).
- * pge-boot/Gtermios.h: (New file).
- * pge-boot/Gwrapc.c: (New file).
- * pge-boot/Gwrapc.h: (New file).
- * pge-boot/README: (New file).
- * pge-boot/m2rts.h: (New file).
- * pge-boot/main.c: (New file).
- * pge-boot/network.c: (New file).
- * plugin/README: (New file).
- * plugin/m2rte.cc: (New file).
- * tools-src/README: (New file).
- * tools-src/boilerplate.py: (New file).
- * tools-src/buildpg: (New file).
- * tools-src/calcpath: (New file).
- * tools-src/def2doc.py: (New file).
- * tools-src/makeSystem: (New file).
- * tools-src/mklink.c: (New file).
- * tools-src/tidydates.py: (New file).
- * images/LICENSE.IMG: (New file).
- * images/gnupng: (New file).
- * images/gnu.eps: (New file).
- * version.c: (New file).
- * configure: (Rebuilt).
+ * COPYING.FDL: New file.
+ * COPYING.RUNTIME: New file.
+ * COPYING3: New file.
+ * COPYING3.LIB: New file.
+ * Make-lang.in: New file.
+ * Make-maintainer.in: New file.
+ * NEWS: New file.
+ * README: New file.
+ * config-lang.in: New file.
+ * config-make.in: New file.
+ * configure.ac: New file.
+ * gm2-compiler/CLexBuf.def: New file.
+ * gm2-compiler/CLexBuf.mod: New file.
+ * gm2-compiler/FifoQueue.def: New file.
+ * gm2-compiler/FifoQueue.mod: New file.
+ * gm2-compiler/Lists.def: New file.
+ * gm2-compiler/Lists.mod: New file.
+ * gm2-compiler/M2ALU.def: New file.
+ * gm2-compiler/M2ALU.mod: New file.
+ * gm2-compiler/M2AsmUtil.def: New file.
+ * gm2-compiler/M2AsmUtil.mod: New file.
+ * gm2-compiler/M2Base.def: New file.
+ * gm2-compiler/M2Base.mod: New file.
+ * gm2-compiler/M2BasicBlock.def: New file.
+ * gm2-compiler/M2BasicBlock.mod: New file.
+ * gm2-compiler/M2Batch.def: New file.
+ * gm2-compiler/M2Batch.mod: New file.
+ * gm2-compiler/M2Bitset.def: New file.
+ * gm2-compiler/M2Bitset.mod: New file.
+ * gm2-compiler/M2CaseList.def: New file.
+ * gm2-compiler/M2CaseList.mod: New file.
+ * gm2-compiler/M2Check.def: New file.
+ * gm2-compiler/M2Check.mod: New file.
+ * gm2-compiler/M2Code.def: New file.
+ * gm2-compiler/M2Code.mod: New file.
+ * gm2-compiler/M2ColorString.def: New file.
+ * gm2-compiler/M2ColorString.mod: New file.
+ * gm2-compiler/M2Comp.def: New file.
+ * gm2-compiler/M2Comp.mod: New file.
+ * gm2-compiler/M2Const.def: New file.
+ * gm2-compiler/M2Const.mod: New file.
+ * gm2-compiler/M2Debug.def: New file.
+ * gm2-compiler/M2Debug.mod: New file.
+ * gm2-compiler/M2DebugStack.def: New file.
+ * gm2-compiler/M2DebugStack.mod: New file.
+ * gm2-compiler/M2Defaults.def: New file.
+ * gm2-compiler/M2Defaults.mod: New file.
+ * gm2-compiler/M2DriverOptions.def: New file.
+ * gm2-compiler/M2DriverOptions.mod: New file.
+ * gm2-compiler/M2Emit.def: New file.
+ * gm2-compiler/M2Emit.mod: New file.
+ * gm2-compiler/M2Error.def: New file.
+ * gm2-compiler/M2Error.mod: New file.
+ * gm2-compiler/M2EvalSym.def: New file.
+ * gm2-compiler/M2FileName.def: New file.
+ * gm2-compiler/M2FileName.mod: New file.
+ * gm2-compiler/M2GCCDeclare.def: New file.
+ * gm2-compiler/M2GCCDeclare.mod: New file.
+ * gm2-compiler/M2GenGCC.def: New file.
+ * gm2-compiler/M2GenGCC.mod: New file.
+ * gm2-compiler/M2Graph.def: New file.
+ * gm2-compiler/M2Graph.mod: New file.
+ * gm2-compiler/M2Lex.def: New file.
+ * gm2-compiler/M2Lex.mod: New file.
+ * gm2-compiler/M2LexBuf.def: New file.
+ * gm2-compiler/M2LexBuf.mod: New file.
+ * gm2-compiler/M2MetaError.def: New file.
+ * gm2-compiler/M2MetaError.mod: New file.
+ * gm2-compiler/M2Optimize.def: New file.
+ * gm2-compiler/M2Optimize.mod: New file.
+ * gm2-compiler/M2Options.def: New file.
+ * gm2-compiler/M2Options.mod: New file.
+ * gm2-compiler/M2Pass.def: New file.
+ * gm2-compiler/M2Pass.mod: New file.
+ * gm2-compiler/M2Preprocess.def: New file.
+ * gm2-compiler/M2Preprocess.mod: New file.
+ * gm2-compiler/M2Printf.def: New file.
+ * gm2-compiler/M2Printf.mod: New file.
+ * gm2-compiler/M2Quads.def: New file.
+ * gm2-compiler/M2Quads.mod: New file.
+ * gm2-compiler/M2Quiet.def: New file.
+ * gm2-compiler/M2Quiet.mod: New file.
+ * gm2-compiler/M2Range.def: New file.
+ * gm2-compiler/M2Range.mod: New file.
+ * gm2-compiler/M2Reserved.def: New file.
+ * gm2-compiler/M2Reserved.mod: New file.
+ * gm2-compiler/M2SSA.def: New file.
+ * gm2-compiler/M2SSA.mod: New file.
+ * gm2-compiler/M2Scaffold.def: New file.
+ * gm2-compiler/M2Scaffold.mod: New file.
+ * gm2-compiler/M2Scope.def: New file.
+ * gm2-compiler/M2Scope.mod: New file.
+ * gm2-compiler/M2Search.def: New file.
+ * gm2-compiler/M2Search.mod: New file.
+ * gm2-compiler/M2Size.def: New file.
+ * gm2-compiler/M2Size.mod: New file.
+ * gm2-compiler/M2StackAddress.def: New file.
+ * gm2-compiler/M2StackAddress.mod: New file.
+ * gm2-compiler/M2StackWord.def: New file.
+ * gm2-compiler/M2StackWord.mod: New file.
+ * gm2-compiler/M2Students.def: New file.
+ * gm2-compiler/M2Students.mod: New file.
+ * gm2-compiler/M2Swig.def: New file.
+ * gm2-compiler/M2Swig.mod: New file.
+ * gm2-compiler/M2System.def: New file.
+ * gm2-compiler/M2System.mod: New file.
+ * gm2-compiler/M2Version.def: New file.
+ * gm2-compiler/NameKey.def: New file.
+ * gm2-compiler/NameKey.mod: New file.
+ * gm2-compiler/ObjectFiles.def: New file.
+ * gm2-compiler/ObjectFiles.mod: New file.
+ * gm2-compiler/Output.def: New file.
+ * gm2-compiler/Output.mod: New file.
+ * gm2-compiler/P0SymBuild.def: New file.
+ * gm2-compiler/P0SymBuild.mod: New file.
+ * gm2-compiler/P0SyntaxCheck.bnf: New file.
+ * gm2-compiler/P0SyntaxCheck.def: New file.
+ * gm2-compiler/P1Build.bnf: New file.
+ * gm2-compiler/P1Build.def: New file.
+ * gm2-compiler/P1SymBuild.def: New file.
+ * gm2-compiler/P1SymBuild.mod: New file.
+ * gm2-compiler/P2Build.bnf: New file.
+ * gm2-compiler/P2Build.def: New file.
+ * gm2-compiler/P2SymBuild.def: New file.
+ * gm2-compiler/P2SymBuild.mod: New file.
+ * gm2-compiler/P3Build.bnf: New file.
+ * gm2-compiler/P3Build.def: New file.
+ * gm2-compiler/P3SymBuild.def: New file.
+ * gm2-compiler/P3SymBuild.mod: New file.
+ * gm2-compiler/PCBuild.bnf: New file.
+ * gm2-compiler/PCBuild.def: New file.
+ * gm2-compiler/PCSymBuild.def: New file.
+ * gm2-compiler/PCSymBuild.mod: New file.
+ * gm2-compiler/PHBuild.bnf: New file.
+ * gm2-compiler/PHBuild.def: New file.
+ * gm2-compiler/README: New file.
+ * gm2-compiler/Sets.def: New file.
+ * gm2-compiler/Sets.mod: New file.
+ * gm2-compiler/SymbolConversion.def: New file.
+ * gm2-compiler/SymbolConversion.mod: New file.
+ * gm2-compiler/SymbolKey.def: New file.
+ * gm2-compiler/SymbolKey.mod: New file.
+ * gm2-compiler/SymbolTable.def: New file.
+ * gm2-compiler/SymbolTable.mod: New file.
+ * gm2-compiler/bnflex.def: New file.
+ * gm2-compiler/bnflex.mod: New file.
+ * gm2-compiler/cflex.def: New file.
+ * gm2-compiler/gm2.mod: New file.
+ * gm2-compiler/gm2lcc.mod: New file.
+ * gm2-compiler/gm2lgen.mod: New file.
+ * gm2-compiler/gm2lorder.mod: New file.
+ * gm2-compiler/m2flex.def: New file.
+ * gm2-compiler/ppg.mod: New file.
+ * gm2-gcc/README: New file.
+ * gm2-gcc/dynamicstrings.h: New file.
+ * gm2-gcc/gcc-consolidation.h: New file.
+ * gm2-gcc/init.cc: New file.
+ * gm2-gcc/init.def: New file.
+ * gm2-gcc/init.h: New file.
+ * gm2-gcc/m2assert.cc: New file.
+ * gm2-gcc/m2assert.h: New file.
+ * gm2-gcc/m2block.cc: New file.
+ * gm2-gcc/m2block.def: New file.
+ * gm2-gcc/m2block.h: New file.
+ * gm2-gcc/m2builtins.cc: New file.
+ * gm2-gcc/m2builtins.def: New file.
+ * gm2-gcc/m2builtins.h: New file.
+ * gm2-gcc/m2color.cc: New file.
+ * gm2-gcc/m2color.def: New file.
+ * gm2-gcc/m2color.h: New file.
+ * gm2-gcc/m2configure.cc: New file.
+ * gm2-gcc/m2configure.def: New file.
+ * gm2-gcc/m2configure.h: New file.
+ * gm2-gcc/m2convert.cc: New file.
+ * gm2-gcc/m2convert.def: New file.
+ * gm2-gcc/m2convert.h: New file.
+ * gm2-gcc/m2decl.cc: New file.
+ * gm2-gcc/m2decl.def: New file.
+ * gm2-gcc/m2decl.h: New file.
+ * gm2-gcc/m2except.cc: New file.
+ * gm2-gcc/m2except.def: New file.
+ * gm2-gcc/m2except.h: New file.
+ * gm2-gcc/m2expr.cc: New file.
+ * gm2-gcc/m2expr.def: New file.
+ * gm2-gcc/m2expr.h: New file.
+ * gm2-gcc/m2linemap.cc: New file.
+ * gm2-gcc/m2linemap.def: New file.
+ * gm2-gcc/m2linemap.h: New file.
+ * gm2-gcc/m2misc.cc: New file.
+ * gm2-gcc/m2misc.def: New file.
+ * gm2-gcc/m2misc.h: New file.
+ * gm2-gcc/m2options.h: New file.
+ * gm2-gcc/m2range.h: New file.
+ * gm2-gcc/m2search.h: New file.
+ * gm2-gcc/m2statement.cc: New file.
+ * gm2-gcc/m2statement.def: New file.
+ * gm2-gcc/m2statement.h: New file.
+ * gm2-gcc/m2top.cc: New file.
+ * gm2-gcc/m2top.def: New file.
+ * gm2-gcc/m2top.h: New file.
+ * gm2-gcc/m2tree.cc: New file.
+ * gm2-gcc/m2tree.def: New file.
+ * gm2-gcc/m2tree.h: New file.
+ * gm2-gcc/m2treelib.cc: New file.
+ * gm2-gcc/m2treelib.def: New file.
+ * gm2-gcc/m2treelib.h: New file.
+ * gm2-gcc/m2type.cc: New file.
+ * gm2-gcc/m2type.def: New file.
+ * gm2-gcc/m2type.h: New file.
+ * gm2-gcc/rtegraph.cc: New file.
+ * gm2-gcc/rtegraph.h: New file.
+ * gm2-ici/M2Emit.mod: New file.
+ * gm2-ici/README: New file.
+ * gm2-ici/m2linemap.c: New file.
+ * gm2-internals.texi: New file.
+ * gm2-lang.cc: New file.
+ * gm2-lang.h: New file.
+ * gm2-libiberty/README: New file.
+ * gm2-libiberty/choosetemp.def: New file.
+ * gm2-libiberty/pexecute.def: New file.
+ * gm2-libs-ch/M2LINK.c: New file.
+ * gm2-libs-ch/README: New file.
+ * gm2-libs-ch/RTcodummy.c: New file.
+ * gm2-libs-ch/RTintdummy.c: New file.
+ * gm2-libs-ch/Selective.c: New file.
+ * gm2-libs-ch/SysExceptions.c: New file.
+ * gm2-libs-ch/UnixArgs.cc: New file.
+ * gm2-libs-ch/cgetopt.c: New file.
+ * gm2-libs-ch/choosetemp.c: New file.
+ * gm2-libs-ch/dtoa.cc: New file.
+ * gm2-libs-ch/errno.c: New file.
+ * gm2-libs-ch/host.c: New file.
+ * gm2-libs-ch/ldtoa.cc: New file.
+ * gm2-libs-ch/m2rts.h: New file.
+ * gm2-libs-ch/termios.c: New file.
+ * gm2-libs-ch/tools.c: New file.
+ * gm2-libs-ch/wrapc.c: New file.
+ * gm2-libs-ch/xlibc.c: New file.
+ * gm2-libs-coroutines/Debug.def: New file.
+ * gm2-libs-coroutines/Debug.mod: New file.
+ * gm2-libs-coroutines/Executive.def: New file.
+ * gm2-libs-coroutines/Executive.mod: New file.
+ * gm2-libs-coroutines/KeyBoardLEDs.def: New file.
+ * gm2-libs-coroutines/README.texi: New file.
+ * gm2-libs-coroutines/SYSTEM.def: New file.
+ * gm2-libs-coroutines/SYSTEM.mod: New file.
+ * gm2-libs-coroutines/TimerHandler.def: New file.
+ * gm2-libs-coroutines/TimerHandler.mod: New file.
+ * gm2-libs-iso/COROUTINES.def: New file.
+ * gm2-libs-iso/COROUTINES.mod: New file.
+ * gm2-libs-iso/ChanConsts.def: New file.
+ * gm2-libs-iso/ChanConsts.h: New file.
+ * gm2-libs-iso/ChanConsts.mod: New file.
+ * gm2-libs-iso/CharClass.def: New file.
+ * gm2-libs-iso/CharClass.mod: New file.
+ * gm2-libs-iso/ClientSocket.def: New file.
+ * gm2-libs-iso/ClientSocket.mod: New file.
+ * gm2-libs-iso/ComplexMath.def: New file.
+ * gm2-libs-iso/ComplexMath.mod: New file.
+ * gm2-libs-iso/ConvStringLong.def: New file.
+ * gm2-libs-iso/ConvStringLong.mod: New file.
+ * gm2-libs-iso/ConvStringReal.def: New file.
+ * gm2-libs-iso/ConvStringReal.mod: New file.
+ * gm2-libs-iso/ConvTypes.def: New file.
+ * gm2-libs-iso/ConvTypes.mod: New file.
+ * gm2-libs-iso/EXCEPTIONS.def: New file.
+ * gm2-libs-iso/EXCEPTIONS.mod: New file.
+ * gm2-libs-iso/ErrnoCategory.def: New file.
+ * gm2-libs-iso/GeneralUserExceptions.def: New file.
+ * gm2-libs-iso/GeneralUserExceptions.mod: New file.
+ * gm2-libs-iso/IOChan.def: New file.
+ * gm2-libs-iso/IOChan.mod: New file.
+ * gm2-libs-iso/IOConsts.def: New file.
+ * gm2-libs-iso/IOConsts.mod: New file.
+ * gm2-libs-iso/IOLink.def: New file.
+ * gm2-libs-iso/IOLink.mod: New file.
+ * gm2-libs-iso/IOResult.def: New file.
+ * gm2-libs-iso/IOResult.mod: New file.
+ * gm2-libs-iso/LongComplexMath.def: New file.
+ * gm2-libs-iso/LongComplexMath.mod: New file.
+ * gm2-libs-iso/LongConv.def: New file.
+ * gm2-libs-iso/LongConv.mod: New file.
+ * gm2-libs-iso/LongIO.def: New file.
+ * gm2-libs-iso/LongIO.mod: New file.
+ * gm2-libs-iso/LongMath.def: New file.
+ * gm2-libs-iso/LongMath.mod: New file.
+ * gm2-libs-iso/LongStr.def: New file.
+ * gm2-libs-iso/LongStr.mod: New file.
+ * gm2-libs-iso/LongWholeIO.def: New file.
+ * gm2-libs-iso/LongWholeIO.mod: New file.
+ * gm2-libs-iso/LowLong.def: New file.
+ * gm2-libs-iso/LowLong.mod: New file.
+ * gm2-libs-iso/LowReal.def: New file.
+ * gm2-libs-iso/LowReal.mod: New file.
+ * gm2-libs-iso/LowShort.def: New file.
+ * gm2-libs-iso/LowShort.mod: New file.
+ * gm2-libs-iso/M2EXCEPTION.def: New file.
+ * gm2-libs-iso/M2EXCEPTION.mod: New file.
+ * gm2-libs-iso/M2RTS.def: New file.
+ * gm2-libs-iso/M2RTS.mod: New file.
+ * gm2-libs-iso/MemStream.def: New file.
+ * gm2-libs-iso/MemStream.mod: New file.
+ * gm2-libs-iso/Preemptive.def: New file.
+ * gm2-libs-iso/Preemptive.mod: New file.
+ * gm2-libs-iso/Processes.def: New file.
+ * gm2-libs-iso/Processes.mod: New file.
+ * gm2-libs-iso/ProgramArgs.def: New file.
+ * gm2-libs-iso/ProgramArgs.mod: New file.
+ * gm2-libs-iso/README.texi: New file.
+ * gm2-libs-iso/RTco.def: New file.
+ * gm2-libs-iso/RTdata.def: New file.
+ * gm2-libs-iso/RTdata.mod: New file.
+ * gm2-libs-iso/RTentity.def: New file.
+ * gm2-libs-iso/RTentity.mod: New file.
+ * gm2-libs-iso/RTfio.def: New file.
+ * gm2-libs-iso/RTfio.mod: New file.
+ * gm2-libs-iso/RTgen.def: New file.
+ * gm2-libs-iso/RTgen.mod: New file.
+ * gm2-libs-iso/RTgenif.def: New file.
+ * gm2-libs-iso/RTgenif.mod: New file.
+ * gm2-libs-iso/RTio.def: New file.
+ * gm2-libs-iso/RTio.mod: New file.
+ * gm2-libs-iso/RandomNumber.def: New file.
+ * gm2-libs-iso/RandomNumber.mod: New file.
+ * gm2-libs-iso/RawIO.def: New file.
+ * gm2-libs-iso/RawIO.mod: New file.
+ * gm2-libs-iso/RealConv.def: New file.
+ * gm2-libs-iso/RealConv.mod: New file.
+ * gm2-libs-iso/RealIO.def: New file.
+ * gm2-libs-iso/RealIO.mod: New file.
+ * gm2-libs-iso/RealMath.def: New file.
+ * gm2-libs-iso/RealMath.mod: New file.
+ * gm2-libs-iso/RealStr.def: New file.
+ * gm2-libs-iso/RealStr.mod: New file.
+ * gm2-libs-iso/RndFile.def: New file.
+ * gm2-libs-iso/RndFile.mod: New file.
+ * gm2-libs-iso/SIOResult.def: New file.
+ * gm2-libs-iso/SIOResult.mod: New file.
+ * gm2-libs-iso/SLongIO.def: New file.
+ * gm2-libs-iso/SLongIO.mod: New file.
+ * gm2-libs-iso/SLongWholeIO.def: New file.
+ * gm2-libs-iso/SLongWholeIO.mod: New file.
+ * gm2-libs-iso/SRawIO.def: New file.
+ * gm2-libs-iso/SRawIO.mod: New file.
+ * gm2-libs-iso/SRealIO.def: New file.
+ * gm2-libs-iso/SRealIO.mod: New file.
+ * gm2-libs-iso/SShortIO.def: New file.
+ * gm2-libs-iso/SShortIO.mod: New file.
+ * gm2-libs-iso/SShortWholeIO.def: New file.
+ * gm2-libs-iso/SShortWholeIO.mod: New file.
+ * gm2-libs-iso/STextIO.def: New file.
+ * gm2-libs-iso/STextIO.mod: New file.
+ * gm2-libs-iso/SWholeIO.def: New file.
+ * gm2-libs-iso/SWholeIO.mod: New file.
+ * gm2-libs-iso/SYSTEM.def: New file.
+ * gm2-libs-iso/SYSTEM.mod: New file.
+ * gm2-libs-iso/Semaphores.def: New file.
+ * gm2-libs-iso/Semaphores.mod: New file.
+ * gm2-libs-iso/SeqFile.def: New file.
+ * gm2-libs-iso/SeqFile.mod: New file.
+ * gm2-libs-iso/ShortComplexMath.def: New file.
+ * gm2-libs-iso/ShortComplexMath.mod: New file.
+ * gm2-libs-iso/ShortIO.def: New file.
+ * gm2-libs-iso/ShortIO.mod: New file.
+ * gm2-libs-iso/ShortWholeIO.def: New file.
+ * gm2-libs-iso/ShortWholeIO.mod: New file.
+ * gm2-libs-iso/SimpleCipher.def: New file.
+ * gm2-libs-iso/SimpleCipher.mod: New file.
+ * gm2-libs-iso/StdChans.def: New file.
+ * gm2-libs-iso/StdChans.mod: New file.
+ * gm2-libs-iso/Storage.def: New file.
+ * gm2-libs-iso/Storage.mod: New file.
+ * gm2-libs-iso/StreamFile.def: New file.
+ * gm2-libs-iso/StreamFile.mod: New file.
+ * gm2-libs-iso/StringChan.def: New file.
+ * gm2-libs-iso/StringChan.mod: New file.
+ * gm2-libs-iso/Strings.def: New file.
+ * gm2-libs-iso/Strings.mod: New file.
+ * gm2-libs-iso/SysClock.def: New file.
+ * gm2-libs-iso/SysClock.mod: New file.
+ * gm2-libs-iso/TERMINATION.def: New file.
+ * gm2-libs-iso/TERMINATION.mod: New file.
+ * gm2-libs-iso/TermFile.def: New file.
+ * gm2-libs-iso/TermFile.mod: New file.
+ * gm2-libs-iso/TextIO.def: New file.
+ * gm2-libs-iso/TextIO.mod: New file.
+ * gm2-libs-iso/WholeConv.def: New file.
+ * gm2-libs-iso/WholeConv.mod: New file.
+ * gm2-libs-iso/WholeIO.def: New file.
+ * gm2-libs-iso/WholeIO.mod: New file.
+ * gm2-libs-iso/WholeStr.def: New file.
+ * gm2-libs-iso/WholeStr.mod: New file.
+ * gm2-libs-iso/wrapsock.c: New file.
+ * gm2-libs-iso/wrapsock.def: New file.
+ * gm2-libs-iso/wraptime.c: New file.
+ * gm2-libs-iso/wraptime.def: New file.
+ * gm2-libs-min/M2RTS.def: New file.
+ * gm2-libs-min/M2RTS.mod: New file.
+ * gm2-libs-min/SYSTEM.def: New file.
+ * gm2-libs-min/SYSTEM.mod: New file.
+ * gm2-libs-min/libc.c: New file.
+ * gm2-libs-min/libc.def: New file.
+ * gm2-libs-pim/BitBlockOps.def: New file.
+ * gm2-libs-pim/BitBlockOps.mod: New file.
+ * gm2-libs-pim/BitByteOps.def: New file.
+ * gm2-libs-pim/BitByteOps.mod: New file.
+ * gm2-libs-pim/BitWordOps.def: New file.
+ * gm2-libs-pim/BitWordOps.mod: New file.
+ * gm2-libs-pim/BlockOps.def: New file.
+ * gm2-libs-pim/BlockOps.mod: New file.
+ * gm2-libs-pim/Break.c: New file.
+ * gm2-libs-pim/Break.def: New file.
+ * gm2-libs-pim/CardinalIO.def: New file.
+ * gm2-libs-pim/CardinalIO.mod: New file.
+ * gm2-libs-pim/Conversions.def: New file.
+ * gm2-libs-pim/Conversions.mod: New file.
+ * gm2-libs-pim/DebugPMD.def: New file.
+ * gm2-libs-pim/DebugPMD.mod: New file.
+ * gm2-libs-pim/DebugTrace.def: New file.
+ * gm2-libs-pim/DebugTrace.mod: New file.
+ * gm2-libs-pim/Delay.def: New file.
+ * gm2-libs-pim/Delay.mod: New file.
+ * gm2-libs-pim/Display.def: New file.
+ * gm2-libs-pim/Display.mod: New file.
+ * gm2-libs-pim/ErrorCode.def: New file.
+ * gm2-libs-pim/ErrorCode.mod: New file.
+ * gm2-libs-pim/FileSystem.def: New file.
+ * gm2-libs-pim/FileSystem.mod: New file.
+ * gm2-libs-pim/FloatingUtilities.def: New file.
+ * gm2-libs-pim/FloatingUtilities.mod: New file.
+ * gm2-libs-pim/InOut.def: New file.
+ * gm2-libs-pim/InOut.mod: New file.
+ * gm2-libs-pim/Keyboard.def: New file.
+ * gm2-libs-pim/Keyboard.mod: New file.
+ * gm2-libs-pim/LongIO.def: New file.
+ * gm2-libs-pim/LongIO.mod: New file.
+ * gm2-libs-pim/NumberConversion.def: New file.
+ * gm2-libs-pim/NumberConversion.mod: New file.
+ * gm2-libs-pim/README.texi: New file.
+ * gm2-libs-pim/Random.def: New file.
+ * gm2-libs-pim/Random.mod: New file.
+ * gm2-libs-pim/RealConversions.def: New file.
+ * gm2-libs-pim/RealConversions.mod: New file.
+ * gm2-libs-pim/RealInOut.def: New file.
+ * gm2-libs-pim/RealInOut.mod: New file.
+ * gm2-libs-pim/Strings.def: New file.
+ * gm2-libs-pim/Strings.mod: New file.
+ * gm2-libs-pim/Termbase.def: New file.
+ * gm2-libs-pim/Termbase.mod: New file.
+ * gm2-libs-pim/Terminal.def: New file.
+ * gm2-libs-pim/Terminal.mod: New file.
+ * gm2-libs-pim/TimeDate.def: New file.
+ * gm2-libs-pim/TimeDate.mod: New file.
+ * gm2-libs/ASCII.def: New file.
+ * gm2-libs/ASCII.mod: New file.
+ * gm2-libs/Args.def: New file.
+ * gm2-libs/Args.mod: New file.
+ * gm2-libs/Assertion.def: New file.
+ * gm2-libs/Assertion.mod: New file.
+ * gm2-libs/Break.def: New file.
+ * gm2-libs/Break.mod: New file.
+ * gm2-libs/Builtins.def: New file.
+ * gm2-libs/Builtins.mod: New file.
+ * gm2-libs/COROUTINES.def: New file.
+ * gm2-libs/COROUTINES.mod: New file.
+ * gm2-libs/CmdArgs.def: New file.
+ * gm2-libs/CmdArgs.mod: New file.
+ * gm2-libs/Debug.def: New file.
+ * gm2-libs/Debug.mod: New file.
+ * gm2-libs/DynamicStrings.def: New file.
+ * gm2-libs/DynamicStrings.mod: New file.
+ * gm2-libs/Environment.def: New file.
+ * gm2-libs/Environment.mod: New file.
+ * gm2-libs/FIO.def: New file.
+ * gm2-libs/FIO.mod: New file.
+ * gm2-libs/FormatStrings.def: New file.
+ * gm2-libs/FormatStrings.mod: New file.
+ * gm2-libs/FpuIO.def: New file.
+ * gm2-libs/FpuIO.mod: New file.
+ * gm2-libs/GetOpt.def: New file.
+ * gm2-libs/GetOpt.mod: New file.
+ * gm2-libs/IO.def: New file.
+ * gm2-libs/IO.mod: New file.
+ * gm2-libs/Indexing.def: New file.
+ * gm2-libs/Indexing.mod: New file.
+ * gm2-libs/LMathLib0.def: New file.
+ * gm2-libs/LMathLib0.mod: New file.
+ * gm2-libs/LegacyReal.def: New file.
+ * gm2-libs/LegacyReal.mod: New file.
+ * gm2-libs/M2Dependent.def: New file.
+ * gm2-libs/M2Dependent.mod: New file.
+ * gm2-libs/M2EXCEPTION.def: New file.
+ * gm2-libs/M2EXCEPTION.mod: New file.
+ * gm2-libs/M2LINK.def: New file.
+ * gm2-libs/M2RTS.def: New file.
+ * gm2-libs/M2RTS.mod: New file.
+ * gm2-libs/MathLib0.def: New file.
+ * gm2-libs/MathLib0.mod: New file.
+ * gm2-libs/MemUtils.def: New file.
+ * gm2-libs/MemUtils.mod: New file.
+ * gm2-libs/NumberIO.def: New file.
+ * gm2-libs/NumberIO.mod: New file.
+ * gm2-libs/OptLib.def: New file.
+ * gm2-libs/OptLib.mod: New file.
+ * gm2-libs/PushBackInput.def: New file.
+ * gm2-libs/PushBackInput.mod: New file.
+ * gm2-libs/README.texi: New file.
+ * gm2-libs/RTExceptions.def: New file.
+ * gm2-libs/RTExceptions.mod: New file.
+ * gm2-libs/RTint.def: New file.
+ * gm2-libs/RTint.mod: New file.
+ * gm2-libs/SArgs.def: New file.
+ * gm2-libs/SArgs.mod: New file.
+ * gm2-libs/SCmdArgs.def: New file.
+ * gm2-libs/SCmdArgs.mod: New file.
+ * gm2-libs/SEnvironment.def: New file.
+ * gm2-libs/SEnvironment.mod: New file.
+ * gm2-libs/SFIO.def: New file.
+ * gm2-libs/SFIO.mod: New file.
+ * gm2-libs/SMathLib0.def: New file.
+ * gm2-libs/SMathLib0.mod: New file.
+ * gm2-libs/SYSTEM.def: New file.
+ * gm2-libs/SYSTEM.mod: New file.
+ * gm2-libs/Scan.def: New file.
+ * gm2-libs/Scan.mod: New file.
+ * gm2-libs/Selective.def: New file.
+ * gm2-libs/StdIO.def: New file.
+ * gm2-libs/StdIO.mod: New file.
+ * gm2-libs/Storage.def: New file.
+ * gm2-libs/Storage.mod: New file.
+ * gm2-libs/StrCase.def: New file.
+ * gm2-libs/StrCase.mod: New file.
+ * gm2-libs/StrIO.def: New file.
+ * gm2-libs/StrIO.mod: New file.
+ * gm2-libs/StrLib.def: New file.
+ * gm2-libs/StrLib.mod: New file.
+ * gm2-libs/StringConvert.def: New file.
+ * gm2-libs/StringConvert.mod: New file.
+ * gm2-libs/SysExceptions.def: New file.
+ * gm2-libs/SysStorage.def: New file.
+ * gm2-libs/SysStorage.mod: New file.
+ * gm2-libs/TimeString.def: New file.
+ * gm2-libs/TimeString.mod: New file.
+ * gm2-libs/UnixArgs.def: New file.
+ * gm2-libs/cbuiltin.def: New file.
+ * gm2-libs/cgetopt.def: New file.
+ * gm2-libs/config-host: New file.
+ * gm2-libs/config-host.in: New file.
+ * gm2-libs/cxxabi.def: New file.
+ * gm2-libs/dtoa.def: New file.
+ * gm2-libs/errno.def: New file.
+ * gm2-libs/gdbif.def: New file.
+ * gm2-libs/gdbif.mod: New file.
+ * gm2-libs/gm2-libs-host.h.in: New file.
+ * gm2-libs/ldtoa.def: New file.
+ * gm2-libs/libc.def: New file.
+ * gm2-libs/libm.def: New file.
+ * gm2-libs/sckt.def: New file.
+ * gm2-libs/termios.def: New file.
+ * gm2-libs/wrapc.def: New file.
+ * gm2config.h.in: New file.
+ * gm2spec.cc: New file.
+ * gm2version.h: New file.
+ * init/README: New file.
+ * init/mcinit: New file.
+ * init/ppginit: New file.
+ * lang-specs.h: New file.
+ * lang.opt: New file.
+ * m2-tree.def: New file.
+ * m2-tree.h: New file.
+ * m2.flex: New file.
+ * m2pp.cc: New file.
+ * m2pp.h: New file.
+ * mc-boot-ch/GBuiltins.c: New file.
+ * mc-boot-ch/GM2LINK.c: New file.
+ * mc-boot-ch/GRTco.c: New file.
+ * mc-boot-ch/GSYSTEM.c: New file.
+ * mc-boot-ch/GSelective.c: New file.
+ * mc-boot-ch/GSysExceptions.c: New file.
+ * mc-boot-ch/GUnixArgs.cc: New file.
+ * mc-boot-ch/Gabort.c: New file.
+ * mc-boot-ch/Gcbuiltin.c: New file.
+ * mc-boot-ch/Gdtoa.c: New file.
+ * mc-boot-ch/Gerrno.c: New file.
+ * mc-boot-ch/Gldtoa.c: New file.
+ * mc-boot-ch/Glibc.c: New file.
+ * mc-boot-ch/Glibm.c: New file.
+ * mc-boot-ch/Gmcrts.c: New file.
+ * mc-boot-ch/Gmcrts.h: New file.
+ * mc-boot-ch/Gnetwork.h: New file.
+ * mc-boot-ch/Gtermios.cc: New file.
+ * mc-boot-ch/Gwrapc.c: New file.
+ * mc-boot-ch/README: New file.
+ * mc-boot-ch/m2rts.h: New file.
+ * mc-boot-ch/network.c: New file.
+ * mc-boot/GASCII.c: New file.
+ * mc-boot/GASCII.h: New file.
+ * mc-boot/GArgs.c: New file.
+ * mc-boot/GArgs.h: New file.
+ * mc-boot/GAssertion.c: New file.
+ * mc-boot/GAssertion.h: New file.
+ * mc-boot/GBreak.c: New file.
+ * mc-boot/GBreak.h: New file.
+ * mc-boot/GCOROUTINES.h: New file.
+ * mc-boot/GCmdArgs.c: New file.
+ * mc-boot/GCmdArgs.h: New file.
+ * mc-boot/GDebug.c: New file.
+ * mc-boot/GDebug.h: New file.
+ * mc-boot/GDynamicStrings.c: New file.
+ * mc-boot/GDynamicStrings.h: New file.
+ * mc-boot/GEnvironment.c: New file.
+ * mc-boot/GEnvironment.h: New file.
+ * mc-boot/GFIO.c: New file.
+ * mc-boot/GFIO.h: New file.
+ * mc-boot/GFormatStrings.c: New file.
+ * mc-boot/GFormatStrings.h: New file.
+ * mc-boot/GFpuIO.c: New file.
+ * mc-boot/GFpuIO.h: New file.
+ * mc-boot/GIO.c: New file.
+ * mc-boot/GIO.h: New file.
+ * mc-boot/GIndexing.c: New file.
+ * mc-boot/GIndexing.h: New file.
+ * mc-boot/GM2Dependent.c: New file.
+ * mc-boot/GM2Dependent.h: New file.
+ * mc-boot/GM2EXCEPTION.c: New file.
+ * mc-boot/GM2EXCEPTION.h: New file.
+ * mc-boot/GM2LINK.h: New file.
+ * mc-boot/GM2RTS.c: New file.
+ * mc-boot/GM2RTS.h: New file.
+ * mc-boot/GMemUtils.c: New file.
+ * mc-boot/GMemUtils.h: New file.
+ * mc-boot/GNumberIO.c: New file.
+ * mc-boot/GNumberIO.h: New file.
+ * mc-boot/GPushBackInput.c: New file.
+ * mc-boot/GPushBackInput.h: New file.
+ * mc-boot/GRTExceptions.c: New file.
+ * mc-boot/GRTExceptions.h: New file.
+ * mc-boot/GRTco.h: New file.
+ * mc-boot/GRTint.c: New file.
+ * mc-boot/GRTint.h: New file.
+ * mc-boot/GSArgs.c: New file.
+ * mc-boot/GSArgs.h: New file.
+ * mc-boot/GSFIO.c: New file.
+ * mc-boot/GSFIO.h: New file.
+ * mc-boot/GSYSTEM.h: New file.
+ * mc-boot/GSelective.h: New file.
+ * mc-boot/GStdIO.c: New file.
+ * mc-boot/GStdIO.h: New file.
+ * mc-boot/GStorage.c: New file.
+ * mc-boot/GStorage.h: New file.
+ * mc-boot/GStrCase.c: New file.
+ * mc-boot/GStrCase.h: New file.
+ * mc-boot/GStrIO.c: New file.
+ * mc-boot/GStrIO.h: New file.
+ * mc-boot/GStrLib.c: New file.
+ * mc-boot/GStrLib.h: New file.
+ * mc-boot/GStringConvert.c: New file.
+ * mc-boot/GStringConvert.h: New file.
+ * mc-boot/GSysExceptions.h: New file.
+ * mc-boot/GSysStorage.c: New file.
+ * mc-boot/GSysStorage.h: New file.
+ * mc-boot/GTimeString.c: New file.
+ * mc-boot/GTimeString.h: New file.
+ * mc-boot/GUnixArgs.h: New file.
+ * mc-boot/Galists.c: New file.
+ * mc-boot/Galists.h: New file.
+ * mc-boot/Gdecl.c: New file.
+ * mc-boot/Gdecl.h: New file.
+ * mc-boot/Gdtoa.h: New file.
+ * mc-boot/Gerrno.h: New file.
+ * mc-boot/Gkeyc.c: New file.
+ * mc-boot/Gkeyc.h: New file.
+ * mc-boot/Gldtoa.h: New file.
+ * mc-boot/Glibc.h: New file.
+ * mc-boot/Glibm.h: New file.
+ * mc-boot/Glists.c: New file.
+ * mc-boot/Glists.h: New file.
+ * mc-boot/GmcComment.c: New file.
+ * mc-boot/GmcComment.h: New file.
+ * mc-boot/GmcComp.c: New file.
+ * mc-boot/GmcComp.h: New file.
+ * mc-boot/GmcDebug.c: New file.
+ * mc-boot/GmcDebug.h: New file.
+ * mc-boot/GmcError.c: New file.
+ * mc-boot/GmcError.h: New file.
+ * mc-boot/GmcFileName.c: New file.
+ * mc-boot/GmcFileName.h: New file.
+ * mc-boot/GmcLexBuf.c: New file.
+ * mc-boot/GmcLexBuf.h: New file.
+ * mc-boot/GmcMetaError.c: New file.
+ * mc-boot/GmcMetaError.h: New file.
+ * mc-boot/GmcOptions.c: New file.
+ * mc-boot/GmcOptions.h: New file.
+ * mc-boot/GmcPreprocess.c: New file.
+ * mc-boot/GmcPreprocess.h: New file.
+ * mc-boot/GmcPretty.c: New file.
+ * mc-boot/GmcPretty.h: New file.
+ * mc-boot/GmcPrintf.c: New file.
+ * mc-boot/GmcPrintf.h: New file.
+ * mc-boot/GmcQuiet.c: New file.
+ * mc-boot/GmcQuiet.h: New file.
+ * mc-boot/GmcReserved.c: New file.
+ * mc-boot/GmcReserved.h: New file.
+ * mc-boot/GmcSearch.c: New file.
+ * mc-boot/GmcSearch.h: New file.
+ * mc-boot/GmcStack.c: New file.
+ * mc-boot/GmcStack.h: New file.
+ * mc-boot/GmcStream.c: New file.
+ * mc-boot/GmcStream.h: New file.
+ * mc-boot/Gmcflex.h: New file.
+ * mc-boot/Gmcp1.c: New file.
+ * mc-boot/Gmcp1.h: New file.
+ * mc-boot/Gmcp2.c: New file.
+ * mc-boot/Gmcp2.h: New file.
+ * mc-boot/Gmcp3.c: New file.
+ * mc-boot/Gmcp3.h: New file.
+ * mc-boot/Gmcp4.c: New file.
+ * mc-boot/Gmcp4.h: New file.
+ * mc-boot/Gmcp5.c: New file.
+ * mc-boot/Gmcp5.h: New file.
+ * mc-boot/GnameKey.c: New file.
+ * mc-boot/GnameKey.h: New file.
+ * mc-boot/Gpth.h: New file.
+ * mc-boot/GsymbolKey.c: New file.
+ * mc-boot/GsymbolKey.h: New file.
+ * mc-boot/Gtermios.h: New file.
+ * mc-boot/Gtop.c: New file.
+ * mc-boot/Gvarargs.c: New file.
+ * mc-boot/Gvarargs.h: New file.
+ * mc-boot/Gwlists.c: New file.
+ * mc-boot/Gwlists.h: New file.
+ * mc-boot/Gwrapc.h: New file.
+ * mc-boot/README: New file.
+ * mc/Indexing.def: New file.
+ * mc/Indexing.mod: New file.
+ * mc/README: New file.
+ * mc/alists.def: New file.
+ * mc/alists.mod: New file.
+ * mc/decl.def: New file.
+ * mc/decl.mod: New file.
+ * mc/decl.mod-extra: New file.
+ * mc/keyc.def: New file.
+ * mc/keyc.mod: New file.
+ * mc/lists.def: New file.
+ * mc/lists.mod: New file.
+ * mc/m2flex.def: New file.
+ * mc/mc.flex: New file.
+ * mc/mcComment.def: New file.
+ * mc/mcComment.h: New file.
+ * mc/mcComment.mod: New file.
+ * mc/mcComp.def: New file.
+ * mc/mcComp.mod: New file.
+ * mc/mcDebug.def: New file.
+ * mc/mcDebug.mod: New file.
+ * mc/mcError.def: New file.
+ * mc/mcError.mod: New file.
+ * mc/mcFileName.def: New file.
+ * mc/mcFileName.mod: New file.
+ * mc/mcLexBuf.def: New file.
+ * mc/mcLexBuf.h: New file.
+ * mc/mcLexBuf.mod: New file.
+ * mc/mcMetaError.def: New file.
+ * mc/mcMetaError.mod: New file.
+ * mc/mcOptions.def: New file.
+ * mc/mcOptions.mod: New file.
+ * mc/mcPreprocess.def: New file.
+ * mc/mcPreprocess.mod: New file.
+ * mc/mcPretty.def: New file.
+ * mc/mcPretty.mod: New file.
+ * mc/mcPrintf.def: New file.
+ * mc/mcPrintf.mod: New file.
+ * mc/mcQuiet.def: New file.
+ * mc/mcQuiet.mod: New file.
+ * mc/mcReserved.def: New file.
+ * mc/mcReserved.h: New file.
+ * mc/mcReserved.mod: New file.
+ * mc/mcSearch.def: New file.
+ * mc/mcSearch.mod: New file.
+ * mc/mcStack.def: New file.
+ * mc/mcStack.mod: New file.
+ * mc/mcStream.def: New file.
+ * mc/mcStream.mod: New file.
+ * mc/mcflex.def: New file.
+ * mc/mcp1.bnf: New file.
+ * mc/mcp1.def: New file.
+ * mc/mcp2.bnf: New file.
+ * mc/mcp2.def: New file.
+ * mc/mcp3.bnf: New file.
+ * mc/mcp3.def: New file.
+ * mc/mcp4.bnf: New file.
+ * mc/mcp4.def: New file.
+ * mc/mcp5.bnf: New file.
+ * mc/mcp5.def: New file.
+ * mc/nameKey.def: New file.
+ * mc/nameKey.mod: New file.
+ * mc/symbolKey.def: New file.
+ * mc/symbolKey.mod: New file.
+ * mc/top.mod: New file.
+ * mc/varargs.def: New file.
+ * mc/varargs.mod: New file.
+ * mc/wlists.def: New file.
+ * mc/wlists.mod: New file.
+ * pge-boot/GASCII.c: New file.
+ * pge-boot/GASCII.h: New file.
+ * pge-boot/GArgs.c: New file.
+ * pge-boot/GArgs.h: New file.
+ * pge-boot/GAssertion.c: New file.
+ * pge-boot/GAssertion.h: New file.
+ * pge-boot/GBreak.h: New file.
+ * pge-boot/GBuiltins.c: New file.
+ * pge-boot/GCmdArgs.h: New file.
+ * pge-boot/GDebug.c: New file.
+ * pge-boot/GDebug.h: New file.
+ * pge-boot/GDynamicStrings.c: New file.
+ * pge-boot/GDynamicStrings.h: New file.
+ * pge-boot/GEnvironment.h: New file.
+ * pge-boot/GFIO.c: New file.
+ * pge-boot/GFIO.h: New file.
+ * pge-boot/GFormatStrings.h: New file.
+ * pge-boot/GFpuIO.h: New file.
+ * pge-boot/GIO.c: New file.
+ * pge-boot/GIO.h: New file.
+ * pge-boot/GIndexing.c: New file.
+ * pge-boot/GIndexing.h: New file.
+ * pge-boot/GLists.c: New file.
+ * pge-boot/GLists.h: New file.
+ * pge-boot/GM2Dependent.c: New file.
+ * pge-boot/GM2Dependent.h: New file.
+ * pge-boot/GM2EXCEPTION.c: New file.
+ * pge-boot/GM2EXCEPTION.h: New file.
+ * pge-boot/GM2LINK.c: New file.
+ * pge-boot/GM2LINK.h: New file.
+ * pge-boot/GM2RTS.c: New file.
+ * pge-boot/GM2RTS.h: New file.
+ * pge-boot/GNameKey.c: New file.
+ * pge-boot/GNameKey.h: New file.
+ * pge-boot/GNumberIO.c: New file.
+ * pge-boot/GNumberIO.h: New file.
+ * pge-boot/GOutput.c: New file.
+ * pge-boot/GOutput.h: New file.
+ * pge-boot/GPushBackInput.c: New file.
+ * pge-boot/GPushBackInput.h: New file.
+ * pge-boot/GRTExceptions.c: New file.
+ * pge-boot/GRTExceptions.h: New file.
+ * pge-boot/GRTco.c: New file.
+ * pge-boot/GSArgs.h: New file.
+ * pge-boot/GSEnvironment.h: New file.
+ * pge-boot/GSFIO.c: New file.
+ * pge-boot/GSFIO.h: New file.
+ * pge-boot/GSYSTEM.c: New file.
+ * pge-boot/GSYSTEM.h: New file.
+ * pge-boot/GScan.h: New file.
+ * pge-boot/GSelective.c: New file.
+ * pge-boot/GStdIO.c: New file.
+ * pge-boot/GStdIO.h: New file.
+ * pge-boot/GStorage.c: New file.
+ * pge-boot/GStorage.h: New file.
+ * pge-boot/GStrCase.c: New file.
+ * pge-boot/GStrCase.h: New file.
+ * pge-boot/GStrIO.c: New file.
+ * pge-boot/GStrIO.h: New file.
+ * pge-boot/GStrLib.c: New file.
+ * pge-boot/GStrLib.h: New file.
+ * pge-boot/GStringConvert.h: New file.
+ * pge-boot/GSymbolKey.c: New file.
+ * pge-boot/GSymbolKey.h: New file.
+ * pge-boot/GSysExceptions.c: New file.
+ * pge-boot/GSysExceptions.h: New file.
+ * pge-boot/GSysStorage.c: New file.
+ * pge-boot/GSysStorage.h: New file.
+ * pge-boot/GTimeString.h: New file.
+ * pge-boot/GUnixArgs.cc: New file.
+ * pge-boot/GUnixArgs.h: New file.
+ * pge-boot/Gabort.c: New file.
+ * pge-boot/Gbnflex.c: New file.
+ * pge-boot/Gbnflex.h: New file.
+ * pge-boot/Gcbuiltin.c: New file.
+ * pge-boot/Gdtoa.c: New file.
+ * pge-boot/Gdtoa.h: New file.
+ * pge-boot/Gerrno.c: New file.
+ * pge-boot/Gerrno.h: New file.
+ * pge-boot/Gldtoa.c: New file.
+ * pge-boot/Gldtoa.h: New file.
+ * pge-boot/Glibc.c: New file.
+ * pge-boot/Glibc.h: New file.
+ * pge-boot/Glibm.c: New file.
+ * pge-boot/Glibm.h: New file.
+ * pge-boot/Gmcrts.c: New file.
+ * pge-boot/Gmcrts.h: New file.
+ * pge-boot/Gnetwork.h: New file.
+ * pge-boot/Gpge.c: New file.
+ * pge-boot/Gtermios.cc: New file.
+ * pge-boot/Gtermios.h: New file.
+ * pge-boot/Gwrapc.c: New file.
+ * pge-boot/Gwrapc.h: New file.
+ * pge-boot/README: New file.
+ * pge-boot/m2rts.h: New file.
+ * pge-boot/main.c: New file.
+ * pge-boot/network.c: New file.
+ * plugin/README: New file.
+ * plugin/m2rte.cc: New file.
+ * tools-src/README: New file.
+ * tools-src/boilerplate.py: New file.
+ * tools-src/buildpg: New file.
+ * tools-src/calcpath: New file.
+ * tools-src/def2doc.py: New file.
+ * tools-src/makeSystem: New file.
+ * tools-src/mklink.c: New file.
+ * tools-src/tidydates.py: New file.
+ * images/LICENSE.IMG: New file.
+ * images/gnupng: New file.
+ * images/gnu.eps: New file.
+ * version.c: New file.
+ * configure: Rebuilt.
* target-independent/Builtins.texi: New file.
* target-independent/SYSTEM-iso.texi: New file.
* target-independent/SYSTEM-pim.texi: New file.
* target-independent/gm2-libs.texi: New file.
- * target-independent/readme.txt: New file.
\ No newline at end of file
+ * target-independent/readme.txt: New file.
diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog
index a41b607e6db..a3a6de8a59d 100644
--- a/gcc/testsuite/ChangeLog
+++ b/gcc/testsuite/ChangeLog
@@ -30,1674 +30,1678 @@
2022-12-14 Gaius Mulley <gaiusmod2@gmail.com>
- * lib/gm2-dg.exp: (New file).
- * lib/gm2.exp: (New file).
- * lib/gm2-simple.exp: (New file).
- * lib/gm2-torture.exp: (New file).
- * gm2/calling-c/datatypes/unbounded/run/pass/c.c: (New file).
- * gm2/calling-c/datatypes/unbounded/run/pass/c.def: (New file).
+ * lib/gm2-dg.exp: New file.
+ * lib/gm2.exp: New file.
+ * lib/gm2-simple.exp: New file.
+ * lib/gm2-torture.exp: New file.
+ * gm2/calling-c/datatypes/unbounded/run/pass/c.c: New file.
+ * gm2/calling-c/datatypes/unbounded/run/pass/c.def: New file.
* gm2/calling-c/datatypes/unbounded/run/pass/calling-c-datatypes-unbounded-run-pass.exp:
- (New file).
- * gm2/calling-c/datatypes/unbounded/run/pass/m.mod: (New file).
- * gm2/case/pass/case-pass.exp: (New file).
- * gm2/case/pass/testcase1.mod: (New file).
- * gm2/case/pass/testcase2.mod: (New file).
- * gm2/case/pass/testcase3.mod: (New file).
- * gm2/case/pass/testcase4.mod: (New file).
- * gm2/complex/fail/var1.mod: (New file).
- * gm2/complex/pass/arith.mod: (New file).
- * gm2/complex/pass/arith2.mod: (New file).
- * gm2/complex/pass/arith3.mod: (New file).
- * gm2/complex/pass/arith4.mod: (New file).
- * gm2/complex/pass/arith5.mod: (New file).
- * gm2/complex/pass/arith6.mod: (New file).
- * gm2/complex/pass/complex-pass.exp: (New file).
- * gm2/complex/pass/consts.mod: (New file).
- * gm2/complex/pass/consts2.mod: (New file).
- * gm2/complex/pass/consts3.mod: (New file).
- * gm2/complex/pass/tinycabs.mod: (New file).
- * gm2/complex/pass/var1.mod: (New file).
- * gm2/complex/pass/var2.mod: (New file).
- * gm2/complex/pass/var3.mod: (New file).
- * gm2/complex/pass/var4.mod: (New file).
- * gm2/complex/pass/var5.mod: (New file).
- * gm2/complex/pass/var6.mod: (New file).
- * gm2/complex/pass/var7.mod: (New file).
- * gm2/complex/pass/var8.mod: (New file).
- * gm2/complex/run/pass/arith3.mod: (New file).
- * gm2/complex/run/pass/arith4.mod: (New file).
- * gm2/complex/run/pass/arith5.mod: (New file).
- * gm2/complex/run/pass/arith6.mod: (New file).
- * gm2/complex/run/pass/arith7.mod: (New file).
- * gm2/complex/run/pass/arith8.mod: (New file).
- * gm2/complex/run/pass/complex-run-pass.exp: (New file).
- * gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp: (New file).
- * gm2/coroutines/pim/run/pass/testiotransfer.mod: (New file).
- * gm2/coroutines/pim/run/pass/testtransfer.mod: (New file).
- * gm2/cpp/fail/another.h: (New file).
- * gm2/cpp/fail/fail1.mod: (New file).
- * gm2/cpp/longcard2.mod: (New file).
- * gm2/cpp/longstrimp.mod: (New file).
- * gm2/cpp/pass/arrayhuge.mod: (New file).
- * gm2/cpp/pass/arrayhuge2.mod: (New file).
- * gm2/cpp/pass/cpp-pass.exp: (New file).
- * gm2/cpp/pass/cpp.mod: (New file).
- * gm2/cpp/pass/cpph.mod: (New file).
- * gm2/cpp/pass/subaddr.mod: (New file).
- * gm2/cpp/pass/testcpp.mod: (New file).
- * gm2/cpp/pass/testcpp2.mod: (New file).
- * gm2/cpp/setchar2.mod: (New file).
- * gm2/cpp/setchar6.mod: (New file).
- * gm2/cse/fail/cse-fail.exp: (New file).
- * gm2/cse/fail/testcse38.mod: (New file).
- * gm2/cse/pass/cse-pass.exp: (New file).
- * gm2/cse/pass/m2t.c: (New file).
- * gm2/cse/pass/testb.mod: (New file).
- * gm2/cse/pass/testbuiltin.def: (New file).
- * gm2/cse/pass/testbuiltin.mod: (New file).
- * gm2/cse/pass/testcse.def: (New file).
- * gm2/cse/pass/testcse.mod: (New file).
- * gm2/cse/pass/testcse10.mod: (New file).
- * gm2/cse/pass/testcse11.mod: (New file).
- * gm2/cse/pass/testcse12.mod: (New file).
- * gm2/cse/pass/testcse13.mod: (New file).
- * gm2/cse/pass/testcse14.mod: (New file).
- * gm2/cse/pass/testcse15.mod: (New file).
- * gm2/cse/pass/testcse16.mod: (New file).
- * gm2/cse/pass/testcse17.mod: (New file).
- * gm2/cse/pass/testcse18.mod: (New file).
- * gm2/cse/pass/testcse19.mod: (New file).
- * gm2/cse/pass/testcse2.mod: (New file).
- * gm2/cse/pass/testcse20.mod: (New file).
- * gm2/cse/pass/testcse21.mod: (New file).
- * gm2/cse/pass/testcse22.mod: (New file).
- * gm2/cse/pass/testcse23.mod: (New file).
- * gm2/cse/pass/testcse24.mod: (New file).
- * gm2/cse/pass/testcse25.mod: (New file).
- * gm2/cse/pass/testcse26.mod: (New file).
- * gm2/cse/pass/testcse27.mod: (New file).
- * gm2/cse/pass/testcse28.mod: (New file).
- * gm2/cse/pass/testcse29.mod: (New file).
- * gm2/cse/pass/testcse3.mod: (New file).
- * gm2/cse/pass/testcse31.mod: (New file).
- * gm2/cse/pass/testcse32.mod: (New file).
- * gm2/cse/pass/testcse33.mod: (New file).
- * gm2/cse/pass/testcse34.mod: (New file).
- * gm2/cse/pass/testcse35.mod: (New file).
- * gm2/cse/pass/testcse36.mod: (New file).
- * gm2/cse/pass/testcse37.mod: (New file).
- * gm2/cse/pass/testcse39.mod: (New file).
- * gm2/cse/pass/testcse4.c: (New file).
- * gm2/cse/pass/testcse4.mod: (New file).
- * gm2/cse/pass/testcse40.mod: (New file).
- * gm2/cse/pass/testcse41.mod: (New file).
- * gm2/cse/pass/testcse42.mod: (New file).
- * gm2/cse/pass/testcse43.mod: (New file).
- * gm2/cse/pass/testcse44.mod: (New file).
- * gm2/cse/pass/testcse45.mod: (New file).
- * gm2/cse/pass/testcse46.mod: (New file).
- * gm2/cse/pass/testcse47.mod: (New file).
- * gm2/cse/pass/testcse48.mod: (New file).
- * gm2/cse/pass/testcse49.mod: (New file).
- * gm2/cse/pass/testcse5.c: (New file).
- * gm2/cse/pass/testcse5.mod: (New file).
- * gm2/cse/pass/testcse50.def: (New file).
- * gm2/cse/pass/testcse50.mod: (New file).
- * gm2/cse/pass/testcse51.mod: (New file).
- * gm2/cse/pass/testcse52.def: (New file).
- * gm2/cse/pass/testcse52.mod: (New file).
- * gm2/cse/pass/testcse53.def: (New file).
- * gm2/cse/pass/testcse53.mod: (New file).
- * gm2/cse/pass/testcse6.c: (New file).
- * gm2/cse/pass/testcse6.mod: (New file).
- * gm2/cse/pass/testcse7.c: (New file).
- * gm2/cse/pass/testcse7.mod: (New file).
- * gm2/cse/pass/testcse8.c: (New file).
- * gm2/cse/pass/testcse8.mod: (New file).
- * gm2/cse/pass/testcse9.c: (New file).
- * gm2/cse/pass/testsize.mod: (New file).
- * gm2/dynamic/pass/add.mod: (New file).
- * gm2/dynamic/pass/dynamic-pass.exp: (New file).
- * gm2/dynamic/pass/prog21.mod: (New file).
- * gm2/dynamic/pass/testarray.mod: (New file).
- * gm2/dynamic/pass/testarray2.mod: (New file).
- * gm2/dynamic/pass/testarray3.mod: (New file).
- * gm2/dynamic/pass/testarray4.mod: (New file).
- * gm2/dynamic/pass/testarray6.mod: (New file).
- * gm2/dynamic/pass/testbec.mod: (New file).
- * gm2/dynamic/pass/testbec10.mod: (New file).
- * gm2/dynamic/pass/testbec11.mod: (New file).
- * gm2/dynamic/pass/testbec12.mod: (New file).
- * gm2/dynamic/pass/testbec13.mod: (New file).
- * gm2/dynamic/pass/testbec14.mod: (New file).
- * gm2/dynamic/pass/testbec15.mod: (New file).
- * gm2/dynamic/pass/testbec16.mod: (New file).
- * gm2/dynamic/pass/testbec17.mod: (New file).
- * gm2/dynamic/pass/testbec18.mod: (New file).
- * gm2/dynamic/pass/testbec19.mod: (New file).
- * gm2/dynamic/pass/testbec2.mod: (New file).
- * gm2/dynamic/pass/testbec20.mod: (New file).
- * gm2/dynamic/pass/testbec21.mod: (New file).
- * gm2/dynamic/pass/testbec22.mod: (New file).
- * gm2/dynamic/pass/testbec23.mod: (New file).
- * gm2/dynamic/pass/testbec24.mod: (New file).
- * gm2/dynamic/pass/testbec25.mod: (New file).
- * gm2/dynamic/pass/testbec26.mod: (New file).
- * gm2/dynamic/pass/testbec27.mod: (New file).
- * gm2/dynamic/pass/testbec28.mod: (New file).
- * gm2/dynamic/pass/testbec29.mod: (New file).
- * gm2/dynamic/pass/testbec3.mod: (New file).
- * gm2/dynamic/pass/testbec30.mod: (New file).
- * gm2/dynamic/pass/testbec31.mod: (New file).
- * gm2/dynamic/pass/testbec32.mod: (New file).
- * gm2/dynamic/pass/testbec33.mod: (New file).
- * gm2/dynamic/pass/testbec34.mod: (New file).
- * gm2/dynamic/pass/testbec35.mod: (New file).
- * gm2/dynamic/pass/testbec36.mod: (New file).
- * gm2/dynamic/pass/testbec37.mod: (New file).
- * gm2/dynamic/pass/testbec38.mod: (New file).
- * gm2/dynamic/pass/testbec39.mod: (New file).
- * gm2/dynamic/pass/testbec4.mod: (New file).
- * gm2/dynamic/pass/testbec40.mod: (New file).
- * gm2/dynamic/pass/testbec41.mod: (New file).
- * gm2/dynamic/pass/testbec42.mod: (New file).
- * gm2/dynamic/pass/testbec43.mod: (New file).
- * gm2/dynamic/pass/testbec44.mod: (New file).
- * gm2/dynamic/pass/testbec45.mod: (New file).
- * gm2/dynamic/pass/testbec5.mod: (New file).
- * gm2/dynamic/pass/testbec6.mod: (New file).
- * gm2/dynamic/pass/testbec7.mod: (New file).
- * gm2/dynamic/pass/testbec8.mod: (New file).
- * gm2/dynamic/pass/testbec9.mod: (New file).
- * gm2/dynamic/pass/testdavid.mod: (New file).
- * gm2/dynamic/pass/testdiv.mod: (New file).
- * gm2/dynamic/pass/testexp.mod: (New file).
- * gm2/dynamic/pass/testfor.mod: (New file).
- * gm2/dynamic/pass/testfor2.mod: (New file).
- * gm2/dynamic/pass/testfunc.mod: (New file).
- * gm2/dynamic/pass/testfunc2.mod: (New file).
- * gm2/dynamic/pass/testfunc3.mod: (New file).
- * gm2/dynamic/pass/testfunc4.mod: (New file).
- * gm2/dynamic/pass/testfunc5.mod: (New file).
- * gm2/dynamic/pass/testfunc6.mod: (New file).
- * gm2/dynamic/pass/testif.mod: (New file).
- * gm2/dynamic/pass/testit.mod: (New file).
- * gm2/dynamic/pass/testloop.mod: (New file).
- * gm2/dynamic/pass/testloop2.mod: (New file).
- * gm2/dynamic/pass/testloop3.mod: (New file).
- * gm2/dynamic/pass/testloop4.mod: (New file).
- * gm2/dynamic/pass/testloop5.mod: (New file).
- * gm2/dynamic/pass/testmin.mod: (New file).
- * gm2/dynamic/pass/testnum4.mod: (New file).
- * gm2/dynamic/pass/testord.mod: (New file).
- * gm2/dynamic/pass/testparam.mod: (New file).
- * gm2/dynamic/pass/testparam2.mod: (New file).
- * gm2/dynamic/pass/testproc.mod: (New file).
- * gm2/dynamic/pass/testproc2.c: (New file).
- * gm2/dynamic/pass/testproc2.def: (New file).
- * gm2/dynamic/pass/testproc2.mod: (New file).
- * gm2/dynamic/pass/testscn.mod: (New file).
- * gm2/dynamic/pass/testset.mod: (New file).
- * gm2/dynamic/pass/testset2.mod: (New file).
- * gm2/dynamic/pass/testset3.mod: (New file).
- * gm2/dynamic/pass/teststr.c: (New file).
- * gm2/dynamic/pass/teststr.mod: (New file).
- * gm2/dynamic/pass/teststr2.mod: (New file).
- * gm2/dynamic/pass/teststring.mod: (New file).
- * gm2/dynamic/pass/testunbounded.mod: (New file).
- * gm2/dynamic/pass/testwith.mod: (New file).
- * gm2/dynamic/pass/testzero.mod: (New file).
- * gm2/dynamic/pass/wc.mod: (New file).
- * gm2/embedded/pass/embedded-pass.exp: (New file).
- * gm2/embedded/pass/varataddress.mod: (New file).
- * gm2/embedded/pass/varataddress1.mod: (New file).
- * gm2/embedded/pass/varataddress2.mod: (New file).
- * gm2/embedded/pass/varataddress3.mod: (New file).
- * gm2/errors/fail/array1.mod: (New file).
- * gm2/errors/fail/badexpr.mod: (New file).
- * gm2/errors/fail/badfor.mod: (New file).
- * gm2/errors/fail/badhigh.mod: (New file).
- * gm2/errors/fail/badshift.mod: (New file).
- * gm2/errors/fail/badsubexpradr.mod: (New file).
- * gm2/errors/fail/binaryconst.mod: (New file).
- * gm2/errors/fail/binarygeneric.mod: (New file).
- * gm2/errors/fail/binarygenericconst.mod: (New file).
- * gm2/errors/fail/end.mod: (New file).
- * gm2/errors/fail/errors-fail.exp: (New file).
- * gm2/errors/fail/mismatched.mod: (New file).
- * gm2/errors/fail/mismatchedproc.mod: (New file).
- * gm2/errors/fail/nestedproc4.mod: (New file).
- * gm2/errors/fail/nomodule.mod: (New file).
- * gm2/errors/fail/proctype.mod: (New file).
- * gm2/errors/fail/prog110.mod: (New file).
- * gm2/errors/fail/prog111.mod: (New file).
- * gm2/errors/fail/prog113.mod: (New file).
- * gm2/errors/fail/prog114.mod: (New file).
- * gm2/errors/fail/testaddress.mod: (New file).
- * gm2/errors/fail/testarray.mod: (New file).
- * gm2/errors/fail/testbit.mod: (New file).
- * gm2/errors/fail/testbit2.mod: (New file).
- * gm2/errors/fail/testcase.mod: (New file).
- * gm2/errors/fail/testcomment.mod: (New file).
- * gm2/errors/fail/testcomment2.mod: (New file).
- * gm2/errors/fail/testcomment3.mod: (New file).
- * gm2/errors/fail/testconst.mod: (New file).
- * gm2/errors/fail/testdyn.mod: (New file).
- * gm2/errors/fail/testdyn2.mod: (New file).
- * gm2/errors/fail/testdyn3.mod: (New file).
- * gm2/errors/fail/testexp.mod: (New file).
- * gm2/errors/fail/testfio.mod: (New file).
- * gm2/errors/fail/testimport.mod: (New file).
- * gm2/errors/fail/testimport2.def: (New file).
- * gm2/errors/fail/testimport2.mod: (New file).
- * gm2/errors/fail/testinit.mod: (New file).
- * gm2/errors/fail/testmodule.mod: (New file).
- * gm2/errors/fail/testnil.mod: (New file).
- * gm2/errors/fail/testnil2.mod: (New file).
- * gm2/errors/fail/testparam.mod: (New file).
- * gm2/errors/fail/testproc.mod: (New file).
- * gm2/errors/fail/testproc2.mod: (New file).
- * gm2/errors/fail/testsize.mod: (New file).
- * gm2/errors/fail/teststring.mod: (New file).
- * gm2/errors/fail/testsub3.mod: (New file).
- * gm2/errors/fail/testsub4.mod: (New file).
- * gm2/errors/fail/testtype.mod: (New file).
- * gm2/errors/fail/testvar.mod: (New file).
- * gm2/errors/fail/testwith.mod: (New file).
- * gm2/errors/fail/testwrite.mod: (New file).
- * gm2/errors/fail/type.mod: (New file).
- * gm2/errors/fail/unarygeneric.mod: (New file).
- * gm2/errors/mustfail: (New file).
- * gm2/errors/options: (New file).
- * gm2/errors/testchar.mod: (New file).
- * gm2/errors/testsub2.mod: (New file).
- * gm2/examples/callingC/pass/examples-callingC-pass.exp: (New file).
- * gm2/examples/callingC/pass/hello.mod: (New file).
- * gm2/examples/callingC/pass/libprintf.def: (New file).
- * gm2/examples/callingC/run/pass/c.c: (New file).
- * gm2/examples/callingC/run/pass/c.def: (New file).
- * gm2/examples/callingC/run/pass/examples-callingC-run-pass.exp: (New file).
- * gm2/examples/callingC/run/pass/hello.mod: (New file).
- * gm2/examples/callingC/run/pass/libprintf.def: (New file).
- * gm2/examples/callingC/run/pass/m.mod: (New file).
- * gm2/examples/cpp/pass/examples-cpp-pass.exp: (New file).
- * gm2/examples/cpp/pass/hello.mod: (New file).
- * gm2/examples/cppDef/pass/a.def: (New file).
- * gm2/examples/cppDef/pass/a.mod: (New file).
- * gm2/examples/cppDef/pass/b.mod: (New file).
- * gm2/examples/cppDef/pass/examples-cppDef-pass.exp: (New file).
- * gm2/examples/cppDef/pass/libprintf.def: (New file).
- * gm2/examples/hello/pass/examples-hello-pass.exp: (New file).
- * gm2/examples/hello/pass/hello.mod: (New file).
- * gm2/examples/map/pass/AdvMap.def: (New file).
- * gm2/examples/map/pass/AdvMap.mod: (New file).
- * gm2/examples/map/pass/BoxMap.def: (New file).
- * gm2/examples/map/pass/BoxMap.mod: (New file).
- * gm2/examples/map/pass/Chance.def: (New file).
- * gm2/examples/map/pass/Chance.mod: (New file).
- * gm2/examples/map/pass/Find.def: (New file).
- * gm2/examples/map/pass/Find.mod: (New file).
- * gm2/examples/map/pass/Geometry.def: (New file).
- * gm2/examples/map/pass/Geometry.mod: (New file).
- * gm2/examples/map/pass/MakeBoxes.def: (New file).
- * gm2/examples/map/pass/MakeBoxes.mod: (New file).
- * gm2/examples/map/pass/Map.mod: (New file).
- * gm2/examples/map/pass/RoomMap.def: (New file).
- * gm2/examples/map/pass/RoomMap.mod: (New file).
- * gm2/examples/map/pass/Semantic.mod: (New file).
- * gm2/examples/map/pass/StoreCoord.def: (New file).
- * gm2/examples/map/pass/StoreCoord.mod: (New file).
- * gm2/examples/map/pass/StoreCoords.def: (New file).
- * gm2/examples/map/pass/StoreCoords.mod: (New file).
- * gm2/examples/map/pass/WriteMap.def: (New file).
- * gm2/examples/map/pass/WriteMap.mod: (New file).
- * gm2/examples/map/pass/examples-map-pass.exp: (New file).
- * gm2/examples/map/pass/makemaps: (New file).
- * gm2/examples/map/pass/testch2.mod: (New file).
- * gm2/examples/map/pass/testchan.mod: (New file).
- * gm2/examples/map/pass/testcoor.mod: (New file).
- * gm2/examples/map/pass/testmaps: (New file).
- * gm2/exceptions/run/pass/cpp.cpp: (New file).
- * gm2/exceptions/run/pass/cpp.def: (New file).
- * gm2/exceptions/run/pass/exceptions-run-pass.exp: (New file).
- * gm2/exceptions/run/pass/libexcept.mod: (New file).
- * gm2/exceptions/run/pass/m2test.def: (New file).
- * gm2/exceptions/run/pass/m2test.mod: (New file).
- * gm2/exceptions/run/pass/mycpp.cpp: (New file).
- * gm2/exceptions/run/pass/mycpp.def: (New file).
- * gm2/exceptions/run/pass/mym2.mod: (New file).
- * gm2/exceptions/run/pass/mym2a.mod: (New file).
- * gm2/extensions/pass/align.mod: (New file).
- * gm2/extensions/pass/align2.mod: (New file).
- * gm2/extensions/pass/card16p.mod: (New file).
- * gm2/extensions/pass/card32p.mod: (New file).
- * gm2/extensions/pass/card64p.mod: (New file).
- * gm2/extensions/pass/card8p.mod: (New file).
- * gm2/extensions/pass/co.def: (New file).
- * gm2/extensions/pass/co.mod: (New file).
- * gm2/extensions/pass/extensions-pass.exp: (New file).
- * gm2/extensions/pass/frame.mod: (New file).
- * gm2/extensions/pass/hello.mod: (New file).
- * gm2/extensions/pass/int16p.mod: (New file).
- * gm2/extensions/pass/int32p.mod: (New file).
- * gm2/extensions/pass/int64p.mod: (New file).
- * gm2/extensions/pass/int8p.mod: (New file).
- * gm2/extensions/pass/intsize8.mod: (New file).
- * gm2/extensions/pass/jmp.mod: (New file).
- * gm2/extensions/pass/libc.def: (New file).
- * gm2/extensions/pass/optparam.mod: (New file).
- * gm2/extensions/pass/optparam2.mod: (New file).
- * gm2/extensions/pass/return.mod: (New file).
- * gm2/extensions/pass/set8.mod: (New file).
- * gm2/extensions/pass/set8a.mod: (New file).
- * gm2/extensions/pass/set8b.mod: (New file).
- * gm2/extensions/pass/testco.mod: (New file).
- * gm2/extensions/run/fail/extensions-run-fail.exp: (New file).
- * gm2/extensions/run/fail/intsize8.mod: (New file).
- * gm2/extensions/run/pass/align3.mod: (New file).
- * gm2/extensions/run/pass/align4.mod: (New file).
- * gm2/extensions/run/pass/align5.mod: (New file).
- * gm2/extensions/run/pass/align6.mod: (New file).
- * gm2/extensions/run/pass/align7.mod: (New file).
- * gm2/extensions/run/pass/callingc.mod: (New file).
- * gm2/extensions/run/pass/card16p.mod: (New file).
- * gm2/extensions/run/pass/card32p.mod: (New file).
- * gm2/extensions/run/pass/card64p.mod: (New file).
- * gm2/extensions/run/pass/card8p.mod: (New file).
- * gm2/extensions/run/pass/column.mod: (New file).
- * gm2/extensions/run/pass/cvararg.c: (New file).
- * gm2/extensions/run/pass/cvararg.def: (New file).
- * gm2/extensions/run/pass/extensions-run-pass.exp: (New file).
- * gm2/extensions/run/pass/int16p.mod: (New file).
- * gm2/extensions/run/pass/int32p.mod: (New file).
- * gm2/extensions/run/pass/int64p.mod: (New file).
- * gm2/extensions/run/pass/int8field.mod: (New file).
- * gm2/extensions/run/pass/int8p.mod: (New file).
- * gm2/extensions/run/pass/packedrecord.mod: (New file).
- * gm2/extensions/run/pass/packedrecord2.mod: (New file).
- * gm2/extensions/run/pass/real32.mod: (New file).
- * gm2/extensions/run/pass/real32a.mod: (New file).
- * gm2/extensions/run/pass/record.mod: (New file).
- * gm2/extensions/run/pass/testopen.mod: (New file).
- * gm2/extensions/run/pass/vararg.mod: (New file).
- * gm2/extensions/run/pass/vararg2.mod: (New file).
- * gm2/extensions/run/pass/vararg3.mod: (New file).
- * gm2/fpu/pass/five.mod: (New file).
- * gm2/fpu/pass/fp.def: (New file).
- * gm2/fpu/pass/fp.mod: (New file).
- * gm2/fpu/pass/fpu-pass.exp: (New file).
- * gm2/fpu/pass/one.mod: (New file).
- * gm2/fpu/pass/r1.mod: (New file).
- * gm2/fpu/pass/realconst.mod: (New file).
- * gm2/fpu/pass/testfp.mod: (New file).
- * gm2/fpu/pass/testfp2.mod: (New file).
- * gm2/fpu/pass/testfpu1.mod: (New file).
- * gm2/fpu/pass/testfpu2.mod: (New file).
- * gm2/fpu/pass/testfpu3.mod: (New file).
- * gm2/fpu/pass/testsin.mod: (New file).
- * gm2/imports/run/pass/c.def: (New file).
- * gm2/imports/run/pass/c.mod: (New file).
- * gm2/imports/run/pass/imports-run-pass.exp: (New file).
- * gm2/imports/run/pass/innermods.mod: (New file).
- * gm2/imports/run/pass/innermods2.mod: (New file).
- * gm2/imports/run/pass/innermods3.mod: (New file).
- * gm2/imports/run/pass/innermods4.mod: (New file).
- * gm2/imports/run/pass/innermods5.def: (New file).
- * gm2/imports/run/pass/innermods5.mod: (New file).
- * gm2/imports/run/pass/innermods6.mod: (New file).
- * gm2/integer/div.mod: (New file).
- * gm2/integer/expr.mod: (New file).
- * gm2/integer/mod.mod: (New file).
- * gm2/integer/mod2.mod: (New file).
- * gm2/integer/one.mod: (New file).
- * gm2/integer/options: (New file).
- * gm2/integer/zero.mod: (New file).
- * gm2/iso/analysis/fail/Makefile: (New file).
- * gm2/iso/analysis/fail/arithoverflow.mod: (New file).
- * gm2/iso/analysis/fail/arithoverflow2.mod: (New file).
- * gm2/iso/analysis/fail/arithsubcard.mod: (New file).
- * gm2/iso/analysis/fail/arrayrange.mod: (New file).
- * gm2/iso/analysis/fail/assignvalue.mod: (New file).
- * gm2/iso/analysis/fail/callassignment.mod: (New file).
- * gm2/iso/analysis/fail/callassignment2.mod: (New file).
- * gm2/iso/analysis/fail/callassignment3.mod: (New file).
- * gm2/iso/analysis/fail/callassignment4.mod: (New file).
- * gm2/iso/analysis/fail/caserange.mod: (New file).
- * gm2/iso/analysis/fail/decvalue.mod: (New file).
- * gm2/iso/analysis/fail/forloop.mod: (New file).
- * gm2/iso/analysis/fail/incvalue.mod: (New file).
- * gm2/iso/analysis/fail/iso-analysis-fail.exp: (New file).
- * gm2/iso/analysis/fail/noreturn.mod: (New file).
- * gm2/iso/analysis/fail/returnvalue.mod: (New file).
- * gm2/iso/analysis/fail/staticarray.mod: (New file).
- * gm2/iso/check/fail/iso-check-fail.exp: (New file).
- * gm2/iso/check/fail/modulusoverflow.mod: (New file).
- * gm2/iso/fail/badarray.mod: (New file).
- * gm2/iso/fail/badarray2.mod: (New file).
- * gm2/iso/fail/badipv4.mod: (New file).
- * gm2/iso/fail/bug10.mod: (New file).
- * gm2/iso/fail/bug8.mod: (New file).
- * gm2/iso/fail/bug9.mod: (New file).
- * gm2/iso/fail/case.mod: (New file).
- * gm2/iso/fail/case2.mod: (New file).
- * gm2/iso/fail/case3.mod: (New file).
- * gm2/iso/fail/const1.mod: (New file).
- * gm2/iso/fail/constarray.mod: (New file).
- * gm2/iso/fail/constarray2.mod: (New file).
- * gm2/iso/fail/constprocedure.mod: (New file).
- * gm2/iso/fail/constrecord.mod: (New file).
- * gm2/iso/fail/constrecord2.mod: (New file).
- * gm2/iso/fail/constrecord3.mod: (New file).
- * gm2/iso/fail/constsubrange.mod: (New file).
- * gm2/iso/fail/constsubrange2.mod: (New file).
- * gm2/iso/fail/constsubrange3.mod: (New file).
- * gm2/iso/fail/defa.def: (New file).
- * gm2/iso/fail/defa.mod: (New file).
- * gm2/iso/fail/defb.def: (New file).
- * gm2/iso/fail/defb.mod: (New file).
- * gm2/iso/fail/defc.def: (New file).
- * gm2/iso/fail/defc.mod: (New file).
- * gm2/iso/fail/except.mod: (New file).
- * gm2/iso/fail/except2.mod: (New file).
- * gm2/iso/fail/iso-fail.exp: (New file).
- * gm2/iso/fail/isoa.def: (New file).
- * gm2/iso/fail/isoa.mod: (New file).
- * gm2/iso/fail/lengthsubexpr.mod: (New file).
- * gm2/iso/fail/proc.mod: (New file).
- * gm2/iso/fail/realbitscast.mod: (New file).
- * gm2/iso/fail/varient.mod: (New file).
- * gm2/iso/fail/varient2.mod: (New file).
- * gm2/iso/future/builtinlj.mod: (New file).
- * gm2/iso/pass/ChanConsts.def: (New file).
- * gm2/iso/pass/ChanConsts.mod: (New file).
- * gm2/iso/pass/ConvTypes.def: (New file).
- * gm2/iso/pass/ConvTypes.mod: (New file).
- * gm2/iso/pass/addadr1.mod: (New file).
- * gm2/iso/pass/bits32c.mod: (New file).
- * gm2/iso/pass/callwraptime.mod: (New file).
- * gm2/iso/pass/caseiso.mod: (New file).
- * gm2/iso/pass/caseiso2.mod: (New file).
- * gm2/iso/pass/cast.mod: (New file).
- * gm2/iso/pass/cast3.mod: (New file).
- * gm2/iso/pass/castiso.mod: (New file).
- * gm2/iso/pass/const1.mod: (New file).
- * gm2/iso/pass/constreal.mod: (New file).
- * gm2/iso/pass/constructor1.mod: (New file).
- * gm2/iso/pass/constructor2.mod: (New file).
- * gm2/iso/pass/constructor3.mod: (New file).
- * gm2/iso/pass/constructor4.mod: (New file).
- * gm2/iso/pass/constructor5.mod: (New file).
- * gm2/iso/pass/constructor6.mod: (New file).
- * gm2/iso/pass/constsize4.mod: (New file).
- * gm2/iso/pass/delim.mod: (New file).
- * gm2/iso/pass/delim2.mod: (New file).
- * gm2/iso/pass/enummodule.mod: (New file).
- * gm2/iso/pass/except1.mod: (New file).
- * gm2/iso/pass/expproc.mod: (New file).
- * gm2/iso/pass/expproc2.mod: (New file).
- * gm2/iso/pass/iso-pass.exp: (New file).
- * gm2/iso/pass/isob.def: (New file).
- * gm2/iso/pass/isob.mod: (New file).
- * gm2/iso/pass/isobitset.mod: (New file).
- * gm2/iso/pass/isobitset2.mod: (New file).
- * gm2/iso/pass/longm.mod: (New file).
- * gm2/iso/pass/m.mod: (New file).
- * gm2/iso/pass/proccast.mod: (New file).
- * gm2/iso/pass/realbitscast.mod: (New file).
- * gm2/iso/pass/set12.mod: (New file).
- * gm2/iso/pass/stringchar.mod: (New file).
- * gm2/iso/pass/subassign.mod: (New file).
- * gm2/iso/pass/testaddindr.mod: (New file).
- * gm2/iso/pass/testconv.def: (New file).
- * gm2/iso/pass/testconv.mod: (New file).
- * gm2/iso/pass/testconv2.def: (New file).
- * gm2/iso/pass/testconv2.mod: (New file).
- * gm2/iso/pass/testconv3.mod: (New file).
- * gm2/iso/pass/testconv4.mod: (New file).
- * gm2/iso/pass/testconv5.mod: (New file).
- * gm2/iso/pass/testconv6.mod: (New file).
- * gm2/iso/pass/testconv7.mod: (New file).
- * gm2/iso/pass/testconv8.mod: (New file).
- * gm2/iso/pass/testconv9.mod: (New file).
- * gm2/iso/pass/testiso.mod: (New file).
- * gm2/iso/pass/testiso2.mod: (New file).
- * gm2/iso/pass/testisosize.mod: (New file).
- * gm2/iso/pass/testlength.mod: (New file).
- * gm2/iso/pass/testlength2.mod: (New file).
- * gm2/iso/pass/testlength3.mod: (New file).
- * gm2/iso/pass/testlength4.mod: (New file).
- * gm2/iso/pass/testlength5.mod: (New file).
- * gm2/iso/pass/unbounded.mod: (New file).
- * gm2/iso/pass/unbounded2.mod: (New file).
- * gm2/iso/run/pass/adraddress.mod: (New file).
- * gm2/iso/run/pass/adrunbounded3.mod: (New file).
- * gm2/iso/run/pass/baseimport.mod: (New file).
- * gm2/iso/run/pass/compsize.mod: (New file).
- * gm2/iso/run/pass/concurrentstore.mod: (New file).
- * gm2/iso/run/pass/constprocedure.mod: (New file).
- * gm2/iso/run/pass/constructor1.mod: (New file).
- * gm2/iso/run/pass/constructor2.mod: (New file).
- * gm2/iso/run/pass/conststrarray.mod: (New file).
- * gm2/iso/run/pass/contimer.mod: (New file).
- * gm2/iso/run/pass/except.c: (New file).
- * gm2/iso/run/pass/except2.mod: (New file).
- * gm2/iso/run/pass/except3.cpp: (New file).
- * gm2/iso/run/pass/except4.mod: (New file).
- * gm2/iso/run/pass/except5.cpp: (New file).
- * gm2/iso/run/pass/except5.mod: (New file).
- * gm2/iso/run/pass/except6.cpp: (New file).
- * gm2/iso/run/pass/except7.mod: (New file).
- * gm2/iso/run/pass/except8.mod: (New file).
- * gm2/iso/run/pass/fileio.def: (New file).
- * gm2/iso/run/pass/fileio.mod: (New file).
- * gm2/iso/run/pass/hello.mod: (New file).
- * gm2/iso/run/pass/int8field.mod: (New file).
- * gm2/iso/run/pass/iso-run-pass.exp: (New file).
- * gm2/iso/run/pass/long.mod: (New file).
- * gm2/iso/run/pass/long2.mod: (New file).
- * gm2/iso/run/pass/long3.mod: (New file).
- * gm2/iso/run/pass/long4.c: (New file).
- * gm2/iso/run/pass/long4.mod: (New file).
- * gm2/iso/run/pass/minmax.mod: (New file).
- * gm2/iso/run/pass/modulus.mod: (New file).
- * gm2/iso/run/pass/nestediso.mod: (New file).
- * gm2/iso/run/pass/nestedrecord.mod: (New file).
- * gm2/iso/run/pass/onebyte.mod: (New file).
- * gm2/iso/run/pass/onebyte2.mod: (New file).
- * gm2/iso/run/pass/onebyte3.mod: (New file).
- * gm2/iso/run/pass/packed.mod: (New file).
- * gm2/iso/run/pass/proc.c: (New file).
- * gm2/iso/run/pass/proc.mod: (New file).
- * gm2/iso/run/pass/proc2.mod: (New file).
- * gm2/iso/run/pass/returnrecord.mod: (New file).
- * gm2/iso/run/pass/shift.mod: (New file).
- * gm2/iso/run/pass/shift2.mod: (New file).
- * gm2/iso/run/pass/shift3.mod: (New file).
- * gm2/iso/run/pass/shift4.mod: (New file).
- * gm2/iso/run/pass/simple: (New file).
- * gm2/iso/run/pass/simplelarge.mod: (New file).
- * gm2/iso/run/pass/strcons.mod: (New file).
- * gm2/iso/run/pass/strcons2.mod: (New file).
- * gm2/iso/run/pass/t.cpp: (New file).
- * gm2/iso/run/pass/t1.cpp: (New file).
- * gm2/iso/run/pass/testLength.mod: (New file).
- * gm2/iso/run/pass/testarray.mod: (New file).
- * gm2/iso/run/pass/testgeneric.mod: (New file).
- * gm2/iso/run/pass/testlarge.mod: (New file).
- * gm2/iso/run/pass/testsystem.mod: (New file).
- * gm2/iso/run/pass/tinyconst.mod: (New file).
- * gm2/iso/run/pass/tinyconst2.mod: (New file).
- * gm2/iso/run/pass/tinyconst3.mod: (New file).
- * gm2/iso/run/pass/tinyconst4.mod: (New file).
- * gm2/iso/run/pass/tinyconst5.mod: (New file).
- * gm2/iso/run/pass/tinytimer.mod: (New file).
- * gm2/iso/run/pass/trivialmodulus.mod: (New file).
- * gm2/iso/run/pass/tsize.mod: (New file).
- * gm2/iso/run/pass/tsize2.mod: (New file).
- * gm2/iso/run/pass/tstLength.mod: (New file).
- * gm2/iso/run/pass/unbounded.mod: (New file).
- * gm2/iso/run/pass/unbounded2.mod: (New file).
- * gm2/iso/run/pass/unbounded3.mod: (New file).
- * gm2/iso/run/pass/unbounded4.mod: (New file).
- * gm2/iso/run/pass/unbounded5.mod: (New file).
- * gm2/iso/run/pass/unbounded6.mod: (New file).
- * gm2/iso/run/pass/unbounded7.mod: (New file).
- * gm2/iso/run/pass/unbounded8.mod: (New file).
- * gm2/isocoroutines/run/pass/coroutine.mod: (New file).
- * gm2/isocoroutines/run/pass/isocoroutines-run-pass.exp: (New file).
- * gm2/isolib/run/pass/arraycons.mod: (New file).
- * gm2/isolib/run/pass/arraycons2.mod: (New file).
- * gm2/isolib/run/pass/arraycons3.mod: (New file).
- * gm2/isolib/run/pass/arraycons5.mod: (New file).
- * gm2/isolib/run/pass/arraycons6.mod: (New file).
- * gm2/isolib/run/pass/arraycons7.mod: (New file).
- * gm2/isolib/run/pass/arrayconst8.mod: (New file).
- * gm2/isolib/run/pass/exceptiontest.mod: (New file).
- * gm2/isolib/run/pass/filepos.mod: (New file).
- * gm2/isolib/run/pass/hello.mod: (New file).
- * gm2/isolib/run/pass/insert.mod: (New file).
- * gm2/isolib/run/pass/intconv.mod: (New file).
- * gm2/isolib/run/pass/isolib-run-pass.exp: (New file).
- * gm2/isolib/run/pass/longstr.mod: (New file).
- * gm2/isolib/run/pass/openlibc.mod: (New file).
- * gm2/isolib/run/pass/raise.mod: (New file).
- * gm2/isolib/run/pass/raise2.mod: (New file).
- * gm2/isolib/run/pass/readreal.mod: (New file).
- * gm2/isolib/run/pass/real1.mod: (New file).
- * gm2/isolib/run/pass/real2.mod: (New file).
- * gm2/isolib/run/pass/real3.mod: (New file).
- * gm2/isolib/run/pass/realconv.mod: (New file).
- * gm2/isolib/run/pass/realconv2.mod: (New file).
- * gm2/isolib/run/pass/realstr.mod: (New file).
- * gm2/isolib/run/pass/sigfig.mod: (New file).
- * gm2/isolib/run/pass/stringreal2.mod: (New file).
- * gm2/isolib/run/pass/termfile.mod-disabled: (New file).
- * gm2/isolib/run/pass/testappend.mod: (New file).
- * gm2/isolib/run/pass/testinput: (New file).
- * gm2/isolib/run/pass/testio.mod: (New file).
- * gm2/isolib/run/pass/testio2.mod: (New file).
- * gm2/isolib/run/pass/testmem.mod: (New file).
- * gm2/isolib/run/pass/testmem2.mod: (New file).
- * gm2/isolib/run/pass/testnumber: (New file).
- * gm2/isolib/run/pass/tiny.mod: (New file).
- * gm2/isolib/run/pass/tiny2.mod: (New file).
- * gm2/isolib/run/pass/tiny3.mod: (New file).
- * gm2/isolib/run/pass/tiny4.mod: (New file).
- * gm2/isolib/run/pass/tiny5.mod: (New file).
- * gm2/libs/a.def: (New file).
- * gm2/libs/a.mod: (New file).
- * gm2/libs/b.def: (New file).
- * gm2/libs/b.mod: (New file).
- * gm2/libs/testraw.mod: (New file).
- * gm2/link/externalscaffold/pass/hello.mod: (New file).
- * gm2/link/externalscaffold/pass/link-externalscaffold-pass.exp: (New file).
- * gm2/link/externalscaffold/pass/scaffold.c: (New file).
- * gm2/link/pim/fail/import.mod: (New file).
- * gm2/link/pim/fail/link-pim-fail.exp: (New file).
- * gm2/link/pim/pass/link-pim-pass.exp: (New file).
- * gm2/link/pimc/pass/README: (New file).
- * gm2/link/pimc/pass/link-pimc-pass.exp: (New file).
- * gm2/link/pimc/pass/testdtoa.mod: (New file).
- * gm2/link/pimc/pass/testerrno.mod: (New file).
- * gm2/link/pimc/pass/testgetopt.mod: (New file).
- * gm2/link/pimc/pass/testldtoa.mod: (New file).
- * gm2/link/pimc/pass/testlibc.mod: (New file).
- * gm2/link/pimc/pass/testlibc2.mod: (New file).
- * gm2/link/pimc/pass/testsckt.mod: (New file).
- * gm2/link/pimc/pass/testselective.mod: (New file).
- * gm2/link/pimc/pass/testsysexceptions.mod: (New file).
- * gm2/link/pimc/pass/testtermios.mod: (New file).
- * gm2/link/pimc/pass/testunixargs.mod: (New file).
- * gm2/link/pimc/pass/testwrapc.mod: (New file).
- * gm2/linking/libarchive/pass/c.c: (New file).
- * gm2/linking/libarchive/pass/c.def: (New file).
- * gm2/linking/libarchive/pass/d.def: (New file).
- * gm2/linking/libarchive/pass/e.def: (New file).
- * gm2/linking/libarchive/pass/linking-libarchive-pass.exp: (New file).
- * gm2/linking/libarchive/pass/m.mod: (New file).
- * gm2/linking/verbose/pass/hello.mod: (New file).
- * gm2/linking/verbose/pass/linking-verbose-pass.exp: (New file).
- * gm2/pim/fail/TestLong3.mod: (New file).
- * gm2/pim/fail/TestLong6.mod: (New file).
- * gm2/pim/fail/a.def: (New file).
- * gm2/pim/fail/assignbounds.mod: (New file).
- * gm2/pim/fail/assignsubrange.mod: (New file).
- * gm2/pim/fail/assignsubrange2.mod: (New file).
- * gm2/pim/fail/b.def: (New file).
- * gm2/pim/fail/bad.def: (New file).
- * gm2/pim/fail/badconst.mod: (New file).
- * gm2/pim/fail/badfunc.mod: (New file).
- * gm2/pim/fail/badparam.mod: (New file).
- * gm2/pim/fail/badparam2.mod: (New file).
- * gm2/pim/fail/badtype.mod: (New file).
- * gm2/pim/fail/badtypes.mod: (New file).
- * gm2/pim/fail/bits.mod: (New file).
- * gm2/pim/fail/bits2.mod: (New file).
- * gm2/pim/fail/bits3.mod: (New file).
- * gm2/pim/fail/bits4.mod: (New file).
- * gm2/pim/fail/cardword.mod: (New file).
- * gm2/pim/fail/constbec.mod: (New file).
- * gm2/pim/fail/constsize3.mod: (New file).
- * gm2/pim/fail/constvar.mod: (New file).
- * gm2/pim/fail/convert5.mod: (New file).
- * gm2/pim/fail/dupconst.mod: (New file).
- * gm2/pim/fail/dupenum.mod: (New file).
- * gm2/pim/fail/dupfield.mod: (New file).
- * gm2/pim/fail/duptype.mod: (New file).
- * gm2/pim/fail/dupvar.mod: (New file).
- * gm2/pim/fail/expression.mod: (New file).
- * gm2/pim/fail/expression2.mod: (New file).
- * gm2/pim/fail/expression3.mod: (New file).
- * gm2/pim/fail/func.mod: (New file).
- * gm2/pim/fail/good.def: (New file).
- * gm2/pim/fail/good.mod: (New file).
- * gm2/pim/fail/import.mod: (New file).
- * gm2/pim/fail/inserttok.def: (New file).
- * gm2/pim/fail/inserttok.mod: (New file).
- * gm2/pim/fail/integer.mod: (New file).
- * gm2/pim/fail/keyword.mod: (New file).
- * gm2/pim/fail/longtypes2.mod: (New file).
- * gm2/pim/fail/longtypes3.mod: (New file).
- * gm2/pim/fail/multisetf.mod: (New file).
- * gm2/pim/fail/nested3.mod: (New file).
- * gm2/pim/fail/opaque.mod: (New file).
- * gm2/pim/fail/opaque2.mod: (New file).
- * gm2/pim/fail/opasfail.mod: (New file).
- * gm2/pim/fail/opcpfail.mod: (New file).
- * gm2/pim/fail/pim-fail.exp: (New file).
- * gm2/pim/fail/procmod.mod: (New file).
- * gm2/pim/fail/rotate.mod: (New file).
- * gm2/pim/fail/rotate2.mod: (New file).
- * gm2/pim/fail/setbec.mod: (New file).
- * gm2/pim/fail/setequiv.mod: (New file).
- * gm2/pim/fail/setsnulf.mod: (New file).
- * gm2/pim/fail/settype.mod: (New file).
- * gm2/pim/fail/shift.mod: (New file).
- * gm2/pim/fail/shift2.mod: (New file).
- * gm2/pim/fail/subrange7.mod: (New file).
- * gm2/pim/fail/unary.mod: (New file).
- * gm2/pim/fail/undeclared.mod: (New file).
- * gm2/pim/fail/val.mod: (New file).
- * gm2/pim/fail/val2.mod: (New file).
- * gm2/pim/fail/wordconst.mod: (New file).
- * gm2/pim/no-options/run/pass/integer.mod: (New file).
- * gm2/pim/no-options/run/pass/pim-no-options-run-pass.exp: (New file).
- * gm2/pim/options/bounds/fail/IdentifierBug.mod: (New file).
- * gm2/pim/options/bounds/fail/pim-options-bounds-fail.exp: (New file).
- * gm2/pim/options/optimize/run/pass/addition.def: (New file).
- * gm2/pim/options/optimize/run/pass/addition.mod: (New file).
- * gm2/pim/options/optimize/run/pass/concat.mod: (New file).
+ New file.
+ * gm2/calling-c/datatypes/unbounded/run/pass/m.mod: New file.
+ * gm2/case/pass/case-pass.exp: New file.
+ * gm2/case/pass/testcase1.mod: New file.
+ * gm2/case/pass/testcase2.mod: New file.
+ * gm2/case/pass/testcase3.mod: New file.
+ * gm2/case/pass/testcase4.mod: New file.
+ * gm2/complex/fail/var1.mod: New file.
+ * gm2/complex/pass/arith.mod: New file.
+ * gm2/complex/pass/arith2.mod: New file.
+ * gm2/complex/pass/arith3.mod: New file.
+ * gm2/complex/pass/arith4.mod: New file.
+ * gm2/complex/pass/arith5.mod: New file.
+ * gm2/complex/pass/arith6.mod: New file.
+ * gm2/complex/pass/complex-pass.exp: New file.
+ * gm2/complex/pass/consts.mod: New file.
+ * gm2/complex/pass/consts2.mod: New file.
+ * gm2/complex/pass/consts3.mod: New file.
+ * gm2/complex/pass/tinycabs.mod: New file.
+ * gm2/complex/pass/var1.mod: New file.
+ * gm2/complex/pass/var2.mod: New file.
+ * gm2/complex/pass/var3.mod: New file.
+ * gm2/complex/pass/var4.mod: New file.
+ * gm2/complex/pass/var5.mod: New file.
+ * gm2/complex/pass/var6.mod: New file.
+ * gm2/complex/pass/var7.mod: New file.
+ * gm2/complex/pass/var8.mod: New file.
+ * gm2/complex/run/pass/arith3.mod: New file.
+ * gm2/complex/run/pass/arith4.mod: New file.
+ * gm2/complex/run/pass/arith5.mod: New file.
+ * gm2/complex/run/pass/arith6.mod: New file.
+ * gm2/complex/run/pass/arith7.mod: New file.
+ * gm2/complex/run/pass/arith8.mod: New file.
+ * gm2/complex/run/pass/complex-run-pass.exp: New file.
+ * gm2/coroutines/pim/run/pass/coroutines-pim-run-pass.exp: New file.
+ * gm2/coroutines/pim/run/pass/testiotransfer.mod: New file.
+ * gm2/coroutines/pim/run/pass/testtransfer.mod: New file.
+ * gm2/cpp/fail/another.h: New file.
+ * gm2/cpp/fail/fail1.mod: New file.
+ * gm2/cpp/longcard2.mod: New file.
+ * gm2/cpp/longstrimp.mod: New file.
+ * gm2/cpp/pass/arrayhuge.mod: New file.
+ * gm2/cpp/pass/arrayhuge2.mod: New file.
+ * gm2/cpp/pass/cpp-pass.exp: New file.
+ * gm2/cpp/pass/cpp.mod: New file.
+ * gm2/cpp/pass/cpph.mod: New file.
+ * gm2/cpp/pass/subaddr.mod: New file.
+ * gm2/cpp/pass/testcpp.mod: New file.
+ * gm2/cpp/pass/testcpp2.mod: New file.
+ * gm2/cpp/setchar2.mod: New file.
+ * gm2/cpp/setchar6.mod: New file.
+ * gm2/cse/fail/cse-fail.exp: New file.
+ * gm2/cse/fail/testcse38.mod: New file.
+ * gm2/cse/pass/cse-pass.exp: New file.
+ * gm2/cse/pass/m2t.c: New file.
+ * gm2/cse/pass/testb.mod: New file.
+ * gm2/cse/pass/testbuiltin.def: New file.
+ * gm2/cse/pass/testbuiltin.mod: New file.
+ * gm2/cse/pass/testcse.def: New file.
+ * gm2/cse/pass/testcse.mod: New file.
+ * gm2/cse/pass/testcse10.mod: New file.
+ * gm2/cse/pass/testcse11.mod: New file.
+ * gm2/cse/pass/testcse12.mod: New file.
+ * gm2/cse/pass/testcse13.mod: New file.
+ * gm2/cse/pass/testcse14.mod: New file.
+ * gm2/cse/pass/testcse15.mod: New file.
+ * gm2/cse/pass/testcse16.mod: New file.
+ * gm2/cse/pass/testcse17.mod: New file.
+ * gm2/cse/pass/testcse18.mod: New file.
+ * gm2/cse/pass/testcse19.mod: New file.
+ * gm2/cse/pass/testcse2.mod: New file.
+ * gm2/cse/pass/testcse20.mod: New file.
+ * gm2/cse/pass/testcse21.mod: New file.
+ * gm2/cse/pass/testcse22.mod: New file.
+ * gm2/cse/pass/testcse23.mod: New file.
+ * gm2/cse/pass/testcse24.mod: New file.
+ * gm2/cse/pass/testcse25.mod: New file.
+ * gm2/cse/pass/testcse26.mod: New file.
+ * gm2/cse/pass/testcse27.mod: New file.
+ * gm2/cse/pass/testcse28.mod: New file.
+ * gm2/cse/pass/testcse29.mod: New file.
+ * gm2/cse/pass/testcse3.mod: New file.
+ * gm2/cse/pass/testcse31.mod: New file.
+ * gm2/cse/pass/testcse32.mod: New file.
+ * gm2/cse/pass/testcse33.mod: New file.
+ * gm2/cse/pass/testcse34.mod: New file.
+ * gm2/cse/pass/testcse35.mod: New file.
+ * gm2/cse/pass/testcse36.mod: New file.
+ * gm2/cse/pass/testcse37.mod: New file.
+ * gm2/cse/pass/testcse39.mod: New file.
+ * gm2/cse/pass/testcse4.c: New file.
+ * gm2/cse/pass/testcse4.mod: New file.
+ * gm2/cse/pass/testcse40.mod: New file.
+ * gm2/cse/pass/testcse41.mod: New file.
+ * gm2/cse/pass/testcse42.mod: New file.
+ * gm2/cse/pass/testcse43.mod: New file.
+ * gm2/cse/pass/testcse44.mod: New file.
+ * gm2/cse/pass/testcse45.mod: New file.
+ * gm2/cse/pass/testcse46.mod: New file.
+ * gm2/cse/pass/testcse47.mod: New file.
+ * gm2/cse/pass/testcse48.mod: New file.
+ * gm2/cse/pass/testcse49.mod: New file.
+ * gm2/cse/pass/testcse5.c: New file.
+ * gm2/cse/pass/testcse5.mod: New file.
+ * gm2/cse/pass/testcse50.def: New file.
+ * gm2/cse/pass/testcse50.mod: New file.
+ * gm2/cse/pass/testcse51.mod: New file.
+ * gm2/cse/pass/testcse52.def: New file.
+ * gm2/cse/pass/testcse52.mod: New file.
+ * gm2/cse/pass/testcse53.def: New file.
+ * gm2/cse/pass/testcse53.mod: New file.
+ * gm2/cse/pass/testcse6.c: New file.
+ * gm2/cse/pass/testcse6.mod: New file.
+ * gm2/cse/pass/testcse7.c: New file.
+ * gm2/cse/pass/testcse7.mod: New file.
+ * gm2/cse/pass/testcse8.c: New file.
+ * gm2/cse/pass/testcse8.mod: New file.
+ * gm2/cse/pass/testcse9.c: New file.
+ * gm2/cse/pass/testsize.mod: New file.
+ * gm2/dynamic/pass/add.mod: New file.
+ * gm2/dynamic/pass/dynamic-pass.exp: New file.
+ * gm2/dynamic/pass/prog21.mod: New file.
+ * gm2/dynamic/pass/testarray.mod: New file.
+ * gm2/dynamic/pass/testarray2.mod: New file.
+ * gm2/dynamic/pass/testarray3.mod: New file.
+ * gm2/dynamic/pass/testarray4.mod: New file.
+ * gm2/dynamic/pass/testarray6.mod: New file.
+ * gm2/dynamic/pass/testbec.mod: New file.
+ * gm2/dynamic/pass/testbec10.mod: New file.
+ * gm2/dynamic/pass/testbec11.mod: New file.
+ * gm2/dynamic/pass/testbec12.mod: New file.
+ * gm2/dynamic/pass/testbec13.mod: New file.
+ * gm2/dynamic/pass/testbec14.mod: New file.
+ * gm2/dynamic/pass/testbec15.mod: New file.
+ * gm2/dynamic/pass/testbec16.mod: New file.
+ * gm2/dynamic/pass/testbec17.mod: New file.
+ * gm2/dynamic/pass/testbec18.mod: New file.
+ * gm2/dynamic/pass/testbec19.mod: New file.
+ * gm2/dynamic/pass/testbec2.mod: New file.
+ * gm2/dynamic/pass/testbec20.mod: New file.
+ * gm2/dynamic/pass/testbec21.mod: New file.
+ * gm2/dynamic/pass/testbec22.mod: New file.
+ * gm2/dynamic/pass/testbec23.mod: New file.
+ * gm2/dynamic/pass/testbec24.mod: New file.
+ * gm2/dynamic/pass/testbec25.mod: New file.
+ * gm2/dynamic/pass/testbec26.mod: New file.
+ * gm2/dynamic/pass/testbec27.mod: New file.
+ * gm2/dynamic/pass/testbec28.mod: New file.
+ * gm2/dynamic/pass/testbec29.mod: New file.
+ * gm2/dynamic/pass/testbec3.mod: New file.
+ * gm2/dynamic/pass/testbec30.mod: New file.
+ * gm2/dynamic/pass/testbec31.mod: New file.
+ * gm2/dynamic/pass/testbec32.mod: New file.
+ * gm2/dynamic/pass/testbec33.mod: New file.
+ * gm2/dynamic/pass/testbec34.mod: New file.
+ * gm2/dynamic/pass/testbec35.mod: New file.
+ * gm2/dynamic/pass/testbec36.mod: New file.
+ * gm2/dynamic/pass/testbec37.mod: New file.
+ * gm2/dynamic/pass/testbec38.mod: New file.
+ * gm2/dynamic/pass/testbec39.mod: New file.
+ * gm2/dynamic/pass/testbec4.mod: New file.
+ * gm2/dynamic/pass/testbec40.mod: New file.
+ * gm2/dynamic/pass/testbec41.mod: New file.
+ * gm2/dynamic/pass/testbec42.mod: New file.
+ * gm2/dynamic/pass/testbec43.mod: New file.
+ * gm2/dynamic/pass/testbec44.mod: New file.
+ * gm2/dynamic/pass/testbec45.mod: New file.
+ * gm2/dynamic/pass/testbec5.mod: New file.
+ * gm2/dynamic/pass/testbec6.mod: New file.
+ * gm2/dynamic/pass/testbec7.mod: New file.
+ * gm2/dynamic/pass/testbec8.mod: New file.
+ * gm2/dynamic/pass/testbec9.mod: New file.
+ * gm2/dynamic/pass/testdavid.mod: New file.
+ * gm2/dynamic/pass/testdiv.mod: New file.
+ * gm2/dynamic/pass/testexp.mod: New file.
+ * gm2/dynamic/pass/testfor.mod: New file.
+ * gm2/dynamic/pass/testfor2.mod: New file.
+ * gm2/dynamic/pass/testfunc.mod: New file.
+ * gm2/dynamic/pass/testfunc2.mod: New file.
+ * gm2/dynamic/pass/testfunc3.mod: New file.
+ * gm2/dynamic/pass/testfunc4.mod: New file.
+ * gm2/dynamic/pass/testfunc5.mod: New file.
+ * gm2/dynamic/pass/testfunc6.mod: New file.
+ * gm2/dynamic/pass/testif.mod: New file.
+ * gm2/dynamic/pass/testit.mod: New file.
+ * gm2/dynamic/pass/testloop.mod: New file.
+ * gm2/dynamic/pass/testloop2.mod: New file.
+ * gm2/dynamic/pass/testloop3.mod: New file.
+ * gm2/dynamic/pass/testloop4.mod: New file.
+ * gm2/dynamic/pass/testloop5.mod: New file.
+ * gm2/dynamic/pass/testmin.mod: New file.
+ * gm2/dynamic/pass/testnum4.mod: New file.
+ * gm2/dynamic/pass/testord.mod: New file.
+ * gm2/dynamic/pass/testparam.mod: New file.
+ * gm2/dynamic/pass/testparam2.mod: New file.
+ * gm2/dynamic/pass/testproc.mod: New file.
+ * gm2/dynamic/pass/testproc2.c: New file.
+ * gm2/dynamic/pass/testproc2.def: New file.
+ * gm2/dynamic/pass/testproc2.mod: New file.
+ * gm2/dynamic/pass/testscn.mod: New file.
+ * gm2/dynamic/pass/testset.mod: New file.
+ * gm2/dynamic/pass/testset2.mod: New file.
+ * gm2/dynamic/pass/testset3.mod: New file.
+ * gm2/dynamic/pass/teststr.c: New file.
+ * gm2/dynamic/pass/teststr.mod: New file.
+ * gm2/dynamic/pass/teststr2.mod: New file.
+ * gm2/dynamic/pass/teststring.mod: New file.
+ * gm2/dynamic/pass/testunbounded.mod: New file.
+ * gm2/dynamic/pass/testwith.mod: New file.
+ * gm2/dynamic/pass/testzero.mod: New file.
+ * gm2/dynamic/pass/wc.mod: New file.
+ * gm2/embedded/pass/embedded-pass.exp: New file.
+ * gm2/embedded/pass/varataddress.mod: New file.
+ * gm2/embedded/pass/varataddress1.mod: New file.
+ * gm2/embedded/pass/varataddress2.mod: New file.
+ * gm2/embedded/pass/varataddress3.mod: New file.
+ * gm2/errors/fail/array1.mod: New file.
+ * gm2/errors/fail/badexpr.mod: New file.
+ * gm2/errors/fail/badfor.mod: New file.
+ * gm2/errors/fail/badhigh.mod: New file.
+ * gm2/errors/fail/badshift.mod: New file.
+ * gm2/errors/fail/badsubexpradr.mod: New file.
+ * gm2/errors/fail/binaryconst.mod: New file.
+ * gm2/errors/fail/binarygeneric.mod: New file.
+ * gm2/errors/fail/binarygenericconst.mod: New file.
+ * gm2/errors/fail/end.mod: New file.
+ * gm2/errors/fail/errors-fail.exp: New file.
+ * gm2/errors/fail/mismatched.mod: New file.
+ * gm2/errors/fail/mismatchedproc.mod: New file.
+ * gm2/errors/fail/nestedproc4.mod: New file.
+ * gm2/errors/fail/nomodule.mod: New file.
+ * gm2/errors/fail/proctype.mod: New file.
+ * gm2/errors/fail/prog110.mod: New file.
+ * gm2/errors/fail/prog111.mod: New file.
+ * gm2/errors/fail/prog113.mod: New file.
+ * gm2/errors/fail/prog114.mod: New file.
+ * gm2/errors/fail/testaddress.mod: New file.
+ * gm2/errors/fail/testarray.mod: New file.
+ * gm2/errors/fail/testbit.mod: New file.
+ * gm2/errors/fail/testbit2.mod: New file.
+ * gm2/errors/fail/testcase.mod: New file.
+ * gm2/errors/fail/testcomment.mod: New file.
+ * gm2/errors/fail/testcomment2.mod: New file.
+ * gm2/errors/fail/testcomment3.mod: New file.
+ * gm2/errors/fail/testconst.mod: New file.
+ * gm2/errors/fail/testdyn.mod: New file.
+ * gm2/errors/fail/testdyn2.mod: New file.
+ * gm2/errors/fail/testdyn3.mod: New file.
+ * gm2/errors/fail/testexp.mod: New file.
+ * gm2/errors/fail/testfio.mod: New file.
+ * gm2/errors/fail/testimport.mod: New file.
+ * gm2/errors/fail/testimport2.def: New file.
+ * gm2/errors/fail/testimport2.mod: New file.
+ * gm2/errors/fail/testinit.mod: New file.
+ * gm2/errors/fail/testmodule.mod: New file.
+ * gm2/errors/fail/testnil.mod: New file.
+ * gm2/errors/fail/testnil2.mod: New file.
+ * gm2/errors/fail/testparam.mod: New file.
+ * gm2/errors/fail/testproc.mod: New file.
+ * gm2/errors/fail/testproc2.mod: New file.
+ * gm2/errors/fail/testsize.mod: New file.
+ * gm2/errors/fail/teststring.mod: New file.
+ * gm2/errors/fail/testsub3.mod: New file.
+ * gm2/errors/fail/testsub4.mod: New file.
+ * gm2/errors/fail/testtype.mod: New file.
+ * gm2/errors/fail/testvar.mod: New file.
+ * gm2/errors/fail/testwith.mod: New file.
+ * gm2/errors/fail/testwrite.mod: New file.
+ * gm2/errors/fail/type.mod: New file.
+ * gm2/errors/fail/unarygeneric.mod: New file.
+ * gm2/errors/mustfail: New file.
+ * gm2/errors/options: New file.
+ * gm2/errors/testchar.mod: New file.
+ * gm2/errors/testsub2.mod: New file.
+ * gm2/examples/callingC/pass/examples-callingC-pass.exp: New file.
+ * gm2/examples/callingC/pass/hello.mod: New file.
+ * gm2/examples/callingC/pass/libprintf.def: New file.
+ * gm2/examples/callingC/run/pass/c.c: New file.
+ * gm2/examples/callingC/run/pass/c.def: New file.
+ * gm2/examples/callingC/run/pass/examples-callingC-run-pass.exp: New
+ file.
+ * gm2/examples/callingC/run/pass/hello.mod: New file.
+ * gm2/examples/callingC/run/pass/libprintf.def: New file.
+ * gm2/examples/callingC/run/pass/m.mod: New file.
+ * gm2/examples/cpp/pass/examples-cpp-pass.exp: New file.
+ * gm2/examples/cpp/pass/hello.mod: New file.
+ * gm2/examples/cppDef/pass/a.def: New file.
+ * gm2/examples/cppDef/pass/a.mod: New file.
+ * gm2/examples/cppDef/pass/b.mod: New file.
+ * gm2/examples/cppDef/pass/examples-cppDef-pass.exp: New file.
+ * gm2/examples/cppDef/pass/libprintf.def: New file.
+ * gm2/examples/hello/pass/examples-hello-pass.exp: New file.
+ * gm2/examples/hello/pass/hello.mod: New file.
+ * gm2/examples/map/pass/AdvMap.def: New file.
+ * gm2/examples/map/pass/AdvMap.mod: New file.
+ * gm2/examples/map/pass/BoxMap.def: New file.
+ * gm2/examples/map/pass/BoxMap.mod: New file.
+ * gm2/examples/map/pass/Chance.def: New file.
+ * gm2/examples/map/pass/Chance.mod: New file.
+ * gm2/examples/map/pass/Find.def: New file.
+ * gm2/examples/map/pass/Find.mod: New file.
+ * gm2/examples/map/pass/Geometry.def: New file.
+ * gm2/examples/map/pass/Geometry.mod: New file.
+ * gm2/examples/map/pass/MakeBoxes.def: New file.
+ * gm2/examples/map/pass/MakeBoxes.mod: New file.
+ * gm2/examples/map/pass/Map.mod: New file.
+ * gm2/examples/map/pass/RoomMap.def: New file.
+ * gm2/examples/map/pass/RoomMap.mod: New file.
+ * gm2/examples/map/pass/Semantic.mod: New file.
+ * gm2/examples/map/pass/StoreCoord.def: New file.
+ * gm2/examples/map/pass/StoreCoord.mod: New file.
+ * gm2/examples/map/pass/StoreCoords.def: New file.
+ * gm2/examples/map/pass/StoreCoords.mod: New file.
+ * gm2/examples/map/pass/WriteMap.def: New file.
+ * gm2/examples/map/pass/WriteMap.mod: New file.
+ * gm2/examples/map/pass/examples-map-pass.exp: New file.
+ * gm2/examples/map/pass/makemaps: New file.
+ * gm2/examples/map/pass/testch2.mod: New file.
+ * gm2/examples/map/pass/testchan.mod: New file.
+ * gm2/examples/map/pass/testcoor.mod: New file.
+ * gm2/examples/map/pass/testmaps: New file.
+ * gm2/exceptions/run/pass/cpp.cpp: New file.
+ * gm2/exceptions/run/pass/cpp.def: New file.
+ * gm2/exceptions/run/pass/exceptions-run-pass.exp: New file.
+ * gm2/exceptions/run/pass/libexcept.mod: New file.
+ * gm2/exceptions/run/pass/m2test.def: New file.
+ * gm2/exceptions/run/pass/m2test.mod: New file.
+ * gm2/exceptions/run/pass/mycpp.cpp: New file.
+ * gm2/exceptions/run/pass/mycpp.def: New file.
+ * gm2/exceptions/run/pass/mym2.mod: New file.
+ * gm2/exceptions/run/pass/mym2a.mod: New file.
+ * gm2/extensions/pass/align.mod: New file.
+ * gm2/extensions/pass/align2.mod: New file.
+ * gm2/extensions/pass/card16p.mod: New file.
+ * gm2/extensions/pass/card32p.mod: New file.
+ * gm2/extensions/pass/card64p.mod: New file.
+ * gm2/extensions/pass/card8p.mod: New file.
+ * gm2/extensions/pass/co.def: New file.
+ * gm2/extensions/pass/co.mod: New file.
+ * gm2/extensions/pass/extensions-pass.exp: New file.
+ * gm2/extensions/pass/frame.mod: New file.
+ * gm2/extensions/pass/hello.mod: New file.
+ * gm2/extensions/pass/int16p.mod: New file.
+ * gm2/extensions/pass/int32p.mod: New file.
+ * gm2/extensions/pass/int64p.mod: New file.
+ * gm2/extensions/pass/int8p.mod: New file.
+ * gm2/extensions/pass/intsize8.mod: New file.
+ * gm2/extensions/pass/jmp.mod: New file.
+ * gm2/extensions/pass/libc.def: New file.
+ * gm2/extensions/pass/optparam.mod: New file.
+ * gm2/extensions/pass/optparam2.mod: New file.
+ * gm2/extensions/pass/return.mod: New file.
+ * gm2/extensions/pass/set8.mod: New file.
+ * gm2/extensions/pass/set8a.mod: New file.
+ * gm2/extensions/pass/set8b.mod: New file.
+ * gm2/extensions/pass/testco.mod: New file.
+ * gm2/extensions/run/fail/extensions-run-fail.exp: New file.
+ * gm2/extensions/run/fail/intsize8.mod: New file.
+ * gm2/extensions/run/pass/align3.mod: New file.
+ * gm2/extensions/run/pass/align4.mod: New file.
+ * gm2/extensions/run/pass/align5.mod: New file.
+ * gm2/extensions/run/pass/align6.mod: New file.
+ * gm2/extensions/run/pass/align7.mod: New file.
+ * gm2/extensions/run/pass/callingc.mod: New file.
+ * gm2/extensions/run/pass/card16p.mod: New file.
+ * gm2/extensions/run/pass/card32p.mod: New file.
+ * gm2/extensions/run/pass/card64p.mod: New file.
+ * gm2/extensions/run/pass/card8p.mod: New file.
+ * gm2/extensions/run/pass/column.mod: New file.
+ * gm2/extensions/run/pass/cvararg.c: New file.
+ * gm2/extensions/run/pass/cvararg.def: New file.
+ * gm2/extensions/run/pass/extensions-run-pass.exp: New file.
+ * gm2/extensions/run/pass/int16p.mod: New file.
+ * gm2/extensions/run/pass/int32p.mod: New file.
+ * gm2/extensions/run/pass/int64p.mod: New file.
+ * gm2/extensions/run/pass/int8field.mod: New file.
+ * gm2/extensions/run/pass/int8p.mod: New file.
+ * gm2/extensions/run/pass/packedrecord.mod: New file.
+ * gm2/extensions/run/pass/packedrecord2.mod: New file.
+ * gm2/extensions/run/pass/real32.mod: New file.
+ * gm2/extensions/run/pass/real32a.mod: New file.
+ * gm2/extensions/run/pass/record.mod: New file.
+ * gm2/extensions/run/pass/testopen.mod: New file.
+ * gm2/extensions/run/pass/vararg.mod: New file.
+ * gm2/extensions/run/pass/vararg2.mod: New file.
+ * gm2/extensions/run/pass/vararg3.mod: New file.
+ * gm2/fpu/pass/five.mod: New file.
+ * gm2/fpu/pass/fp.def: New file.
+ * gm2/fpu/pass/fp.mod: New file.
+ * gm2/fpu/pass/fpu-pass.exp: New file.
+ * gm2/fpu/pass/one.mod: New file.
+ * gm2/fpu/pass/r1.mod: New file.
+ * gm2/fpu/pass/realconst.mod: New file.
+ * gm2/fpu/pass/testfp.mod: New file.
+ * gm2/fpu/pass/testfp2.mod: New file.
+ * gm2/fpu/pass/testfpu1.mod: New file.
+ * gm2/fpu/pass/testfpu2.mod: New file.
+ * gm2/fpu/pass/testfpu3.mod: New file.
+ * gm2/fpu/pass/testsin.mod: New file.
+ * gm2/imports/run/pass/c.def: New file.
+ * gm2/imports/run/pass/c.mod: New file.
+ * gm2/imports/run/pass/imports-run-pass.exp: New file.
+ * gm2/imports/run/pass/innermods.mod: New file.
+ * gm2/imports/run/pass/innermods2.mod: New file.
+ * gm2/imports/run/pass/innermods3.mod: New file.
+ * gm2/imports/run/pass/innermods4.mod: New file.
+ * gm2/imports/run/pass/innermods5.def: New file.
+ * gm2/imports/run/pass/innermods5.mod: New file.
+ * gm2/imports/run/pass/innermods6.mod: New file.
+ * gm2/integer/div.mod: New file.
+ * gm2/integer/expr.mod: New file.
+ * gm2/integer/mod.mod: New file.
+ * gm2/integer/mod2.mod: New file.
+ * gm2/integer/one.mod: New file.
+ * gm2/integer/options: New file.
+ * gm2/integer/zero.mod: New file.
+ * gm2/iso/analysis/fail/Makefile: New file.
+ * gm2/iso/analysis/fail/arithoverflow.mod: New file.
+ * gm2/iso/analysis/fail/arithoverflow2.mod: New file.
+ * gm2/iso/analysis/fail/arithsubcard.mod: New file.
+ * gm2/iso/analysis/fail/arrayrange.mod: New file.
+ * gm2/iso/analysis/fail/assignvalue.mod: New file.
+ * gm2/iso/analysis/fail/callassignment.mod: New file.
+ * gm2/iso/analysis/fail/callassignment2.mod: New file.
+ * gm2/iso/analysis/fail/callassignment3.mod: New file.
+ * gm2/iso/analysis/fail/callassignment4.mod: New file.
+ * gm2/iso/analysis/fail/caserange.mod: New file.
+ * gm2/iso/analysis/fail/decvalue.mod: New file.
+ * gm2/iso/analysis/fail/forloop.mod: New file.
+ * gm2/iso/analysis/fail/incvalue.mod: New file.
+ * gm2/iso/analysis/fail/iso-analysis-fail.exp: New file.
+ * gm2/iso/analysis/fail/noreturn.mod: New file.
+ * gm2/iso/analysis/fail/returnvalue.mod: New file.
+ * gm2/iso/analysis/fail/staticarray.mod: New file.
+ * gm2/iso/check/fail/iso-check-fail.exp: New file.
+ * gm2/iso/check/fail/modulusoverflow.mod: New file.
+ * gm2/iso/fail/badarray.mod: New file.
+ * gm2/iso/fail/badarray2.mod: New file.
+ * gm2/iso/fail/badipv4.mod: New file.
+ * gm2/iso/fail/bug10.mod: New file.
+ * gm2/iso/fail/bug8.mod: New file.
+ * gm2/iso/fail/bug9.mod: New file.
+ * gm2/iso/fail/case.mod: New file.
+ * gm2/iso/fail/case2.mod: New file.
+ * gm2/iso/fail/case3.mod: New file.
+ * gm2/iso/fail/const1.mod: New file.
+ * gm2/iso/fail/constarray.mod: New file.
+ * gm2/iso/fail/constarray2.mod: New file.
+ * gm2/iso/fail/constprocedure.mod: New file.
+ * gm2/iso/fail/constrecord.mod: New file.
+ * gm2/iso/fail/constrecord2.mod: New file.
+ * gm2/iso/fail/constrecord3.mod: New file.
+ * gm2/iso/fail/constsubrange.mod: New file.
+ * gm2/iso/fail/constsubrange2.mod: New file.
+ * gm2/iso/fail/constsubrange3.mod: New file.
+ * gm2/iso/fail/defa.def: New file.
+ * gm2/iso/fail/defa.mod: New file.
+ * gm2/iso/fail/defb.def: New file.
+ * gm2/iso/fail/defb.mod: New file.
+ * gm2/iso/fail/defc.def: New file.
+ * gm2/iso/fail/defc.mod: New file.
+ * gm2/iso/fail/except.mod: New file.
+ * gm2/iso/fail/except2.mod: New file.
+ * gm2/iso/fail/iso-fail.exp: New file.
+ * gm2/iso/fail/isoa.def: New file.
+ * gm2/iso/fail/isoa.mod: New file.
+ * gm2/iso/fail/lengthsubexpr.mod: New file.
+ * gm2/iso/fail/proc.mod: New file.
+ * gm2/iso/fail/realbitscast.mod: New file.
+ * gm2/iso/fail/varient.mod: New file.
+ * gm2/iso/fail/varient2.mod: New file.
+ * gm2/iso/future/builtinlj.mod: New file.
+ * gm2/iso/pass/ChanConsts.def: New file.
+ * gm2/iso/pass/ChanConsts.mod: New file.
+ * gm2/iso/pass/ConvTypes.def: New file.
+ * gm2/iso/pass/ConvTypes.mod: New file.
+ * gm2/iso/pass/addadr1.mod: New file.
+ * gm2/iso/pass/bits32c.mod: New file.
+ * gm2/iso/pass/callwraptime.mod: New file.
+ * gm2/iso/pass/caseiso.mod: New file.
+ * gm2/iso/pass/caseiso2.mod: New file.
+ * gm2/iso/pass/cast.mod: New file.
+ * gm2/iso/pass/cast3.mod: New file.
+ * gm2/iso/pass/castiso.mod: New file.
+ * gm2/iso/pass/const1.mod: New file.
+ * gm2/iso/pass/constreal.mod: New file.
+ * gm2/iso/pass/constructor1.mod: New file.
+ * gm2/iso/pass/constructor2.mod: New file.
+ * gm2/iso/pass/constructor3.mod: New file.
+ * gm2/iso/pass/constructor4.mod: New file.
+ * gm2/iso/pass/constructor5.mod: New file.
+ * gm2/iso/pass/constructor6.mod: New file.
+ * gm2/iso/pass/constsize4.mod: New file.
+ * gm2/iso/pass/delim.mod: New file.
+ * gm2/iso/pass/delim2.mod: New file.
+ * gm2/iso/pass/enummodule.mod: New file.
+ * gm2/iso/pass/except1.mod: New file.
+ * gm2/iso/pass/expproc.mod: New file.
+ * gm2/iso/pass/expproc2.mod: New file.
+ * gm2/iso/pass/iso-pass.exp: New file.
+ * gm2/iso/pass/isob.def: New file.
+ * gm2/iso/pass/isob.mod: New file.
+ * gm2/iso/pass/isobitset.mod: New file.
+ * gm2/iso/pass/isobitset2.mod: New file.
+ * gm2/iso/pass/longm.mod: New file.
+ * gm2/iso/pass/m.mod: New file.
+ * gm2/iso/pass/proccast.mod: New file.
+ * gm2/iso/pass/realbitscast.mod: New file.
+ * gm2/iso/pass/set12.mod: New file.
+ * gm2/iso/pass/stringchar.mod: New file.
+ * gm2/iso/pass/subassign.mod: New file.
+ * gm2/iso/pass/testaddindr.mod: New file.
+ * gm2/iso/pass/testconv.def: New file.
+ * gm2/iso/pass/testconv.mod: New file.
+ * gm2/iso/pass/testconv2.def: New file.
+ * gm2/iso/pass/testconv2.mod: New file.
+ * gm2/iso/pass/testconv3.mod: New file.
+ * gm2/iso/pass/testconv4.mod: New file.
+ * gm2/iso/pass/testconv5.mod: New file.
+ * gm2/iso/pass/testconv6.mod: New file.
+ * gm2/iso/pass/testconv7.mod: New file.
+ * gm2/iso/pass/testconv8.mod: New file.
+ * gm2/iso/pass/testconv9.mod: New file.
+ * gm2/iso/pass/testiso.mod: New file.
+ * gm2/iso/pass/testiso2.mod: New file.
+ * gm2/iso/pass/testisosize.mod: New file.
+ * gm2/iso/pass/testlength.mod: New file.
+ * gm2/iso/pass/testlength2.mod: New file.
+ * gm2/iso/pass/testlength3.mod: New file.
+ * gm2/iso/pass/testlength4.mod: New file.
+ * gm2/iso/pass/testlength5.mod: New file.
+ * gm2/iso/pass/unbounded.mod: New file.
+ * gm2/iso/pass/unbounded2.mod: New file.
+ * gm2/iso/run/pass/adraddress.mod: New file.
+ * gm2/iso/run/pass/adrunbounded3.mod: New file.
+ * gm2/iso/run/pass/baseimport.mod: New file.
+ * gm2/iso/run/pass/compsize.mod: New file.
+ * gm2/iso/run/pass/concurrentstore.mod: New file.
+ * gm2/iso/run/pass/constprocedure.mod: New file.
+ * gm2/iso/run/pass/constructor1.mod: New file.
+ * gm2/iso/run/pass/constructor2.mod: New file.
+ * gm2/iso/run/pass/conststrarray.mod: New file.
+ * gm2/iso/run/pass/contimer.mod: New file.
+ * gm2/iso/run/pass/except.c: New file.
+ * gm2/iso/run/pass/except2.mod: New file.
+ * gm2/iso/run/pass/except3.cpp: New file.
+ * gm2/iso/run/pass/except4.mod: New file.
+ * gm2/iso/run/pass/except5.cpp: New file.
+ * gm2/iso/run/pass/except5.mod: New file.
+ * gm2/iso/run/pass/except6.cpp: New file.
+ * gm2/iso/run/pass/except7.mod: New file.
+ * gm2/iso/run/pass/except8.mod: New file.
+ * gm2/iso/run/pass/fileio.def: New file.
+ * gm2/iso/run/pass/fileio.mod: New file.
+ * gm2/iso/run/pass/hello.mod: New file.
+ * gm2/iso/run/pass/int8field.mod: New file.
+ * gm2/iso/run/pass/iso-run-pass.exp: New file.
+ * gm2/iso/run/pass/long.mod: New file.
+ * gm2/iso/run/pass/long2.mod: New file.
+ * gm2/iso/run/pass/long3.mod: New file.
+ * gm2/iso/run/pass/long4.c: New file.
+ * gm2/iso/run/pass/long4.mod: New file.
+ * gm2/iso/run/pass/minmax.mod: New file.
+ * gm2/iso/run/pass/modulus.mod: New file.
+ * gm2/iso/run/pass/nestediso.mod: New file.
+ * gm2/iso/run/pass/nestedrecord.mod: New file.
+ * gm2/iso/run/pass/onebyte.mod: New file.
+ * gm2/iso/run/pass/onebyte2.mod: New file.
+ * gm2/iso/run/pass/onebyte3.mod: New file.
+ * gm2/iso/run/pass/packed.mod: New file.
+ * gm2/iso/run/pass/proc.c: New file.
+ * gm2/iso/run/pass/proc.mod: New file.
+ * gm2/iso/run/pass/proc2.mod: New file.
+ * gm2/iso/run/pass/returnrecord.mod: New file.
+ * gm2/iso/run/pass/shift.mod: New file.
+ * gm2/iso/run/pass/shift2.mod: New file.
+ * gm2/iso/run/pass/shift3.mod: New file.
+ * gm2/iso/run/pass/shift4.mod: New file.
+ * gm2/iso/run/pass/simple: New file.
+ * gm2/iso/run/pass/simplelarge.mod: New file.
+ * gm2/iso/run/pass/strcons.mod: New file.
+ * gm2/iso/run/pass/strcons2.mod: New file.
+ * gm2/iso/run/pass/t.cpp: New file.
+ * gm2/iso/run/pass/t1.cpp: New file.
+ * gm2/iso/run/pass/testLength.mod: New file.
+ * gm2/iso/run/pass/testarray.mod: New file.
+ * gm2/iso/run/pass/testgeneric.mod: New file.
+ * gm2/iso/run/pass/testlarge.mod: New file.
+ * gm2/iso/run/pass/testsystem.mod: New file.
+ * gm2/iso/run/pass/tinyconst.mod: New file.
+ * gm2/iso/run/pass/tinyconst2.mod: New file.
+ * gm2/iso/run/pass/tinyconst3.mod: New file.
+ * gm2/iso/run/pass/tinyconst4.mod: New file.
+ * gm2/iso/run/pass/tinyconst5.mod: New file.
+ * gm2/iso/run/pass/tinytimer.mod: New file.
+ * gm2/iso/run/pass/trivialmodulus.mod: New file.
+ * gm2/iso/run/pass/tsize.mod: New file.
+ * gm2/iso/run/pass/tsize2.mod: New file.
+ * gm2/iso/run/pass/tstLength.mod: New file.
+ * gm2/iso/run/pass/unbounded.mod: New file.
+ * gm2/iso/run/pass/unbounded2.mod: New file.
+ * gm2/iso/run/pass/unbounded3.mod: New file.
+ * gm2/iso/run/pass/unbounded4.mod: New file.
+ * gm2/iso/run/pass/unbounded5.mod: New file.
+ * gm2/iso/run/pass/unbounded6.mod: New file.
+ * gm2/iso/run/pass/unbounded7.mod: New file.
+ * gm2/iso/run/pass/unbounded8.mod: New file.
+ * gm2/isocoroutines/run/pass/coroutine.mod: New file.
+ * gm2/isocoroutines/run/pass/isocoroutines-run-pass.exp: New file.
+ * gm2/isolib/run/pass/arraycons.mod: New file.
+ * gm2/isolib/run/pass/arraycons2.mod: New file.
+ * gm2/isolib/run/pass/arraycons3.mod: New file.
+ * gm2/isolib/run/pass/arraycons5.mod: New file.
+ * gm2/isolib/run/pass/arraycons6.mod: New file.
+ * gm2/isolib/run/pass/arraycons7.mod: New file.
+ * gm2/isolib/run/pass/arrayconst8.mod: New file.
+ * gm2/isolib/run/pass/exceptiontest.mod: New file.
+ * gm2/isolib/run/pass/filepos.mod: New file.
+ * gm2/isolib/run/pass/hello.mod: New file.
+ * gm2/isolib/run/pass/insert.mod: New file.
+ * gm2/isolib/run/pass/intconv.mod: New file.
+ * gm2/isolib/run/pass/isolib-run-pass.exp: New file.
+ * gm2/isolib/run/pass/longstr.mod: New file.
+ * gm2/isolib/run/pass/openlibc.mod: New file.
+ * gm2/isolib/run/pass/raise.mod: New file.
+ * gm2/isolib/run/pass/raise2.mod: New file.
+ * gm2/isolib/run/pass/readreal.mod: New file.
+ * gm2/isolib/run/pass/real1.mod: New file.
+ * gm2/isolib/run/pass/real2.mod: New file.
+ * gm2/isolib/run/pass/real3.mod: New file.
+ * gm2/isolib/run/pass/realconv.mod: New file.
+ * gm2/isolib/run/pass/realconv2.mod: New file.
+ * gm2/isolib/run/pass/realstr.mod: New file.
+ * gm2/isolib/run/pass/sigfig.mod: New file.
+ * gm2/isolib/run/pass/stringreal2.mod: New file.
+ * gm2/isolib/run/pass/termfile.mod-disabled: New file.
+ * gm2/isolib/run/pass/testappend.mod: New file.
+ * gm2/isolib/run/pass/testinput: New file.
+ * gm2/isolib/run/pass/testio.mod: New file.
+ * gm2/isolib/run/pass/testio2.mod: New file.
+ * gm2/isolib/run/pass/testmem.mod: New file.
+ * gm2/isolib/run/pass/testmem2.mod: New file.
+ * gm2/isolib/run/pass/testnumber: New file.
+ * gm2/isolib/run/pass/tiny.mod: New file.
+ * gm2/isolib/run/pass/tiny2.mod: New file.
+ * gm2/isolib/run/pass/tiny3.mod: New file.
+ * gm2/isolib/run/pass/tiny4.mod: New file.
+ * gm2/isolib/run/pass/tiny5.mod: New file.
+ * gm2/libs/a.def: New file.
+ * gm2/libs/a.mod: New file.
+ * gm2/libs/b.def: New file.
+ * gm2/libs/b.mod: New file.
+ * gm2/libs/testraw.mod: New file.
+ * gm2/link/externalscaffold/pass/hello.mod: New file.
+ * gm2/link/externalscaffold/pass/link-externalscaffold-pass.exp: New
+ file.
+ * gm2/link/externalscaffold/pass/scaffold.c: New file.
+ * gm2/link/pim/fail/import.mod: New file.
+ * gm2/link/pim/fail/link-pim-fail.exp: New file.
+ * gm2/link/pim/pass/link-pim-pass.exp: New file.
+ * gm2/link/pimc/pass/README: New file.
+ * gm2/link/pimc/pass/link-pimc-pass.exp: New file.
+ * gm2/link/pimc/pass/testdtoa.mod: New file.
+ * gm2/link/pimc/pass/testerrno.mod: New file.
+ * gm2/link/pimc/pass/testgetopt.mod: New file.
+ * gm2/link/pimc/pass/testldtoa.mod: New file.
+ * gm2/link/pimc/pass/testlibc.mod: New file.
+ * gm2/link/pimc/pass/testlibc2.mod: New file.
+ * gm2/link/pimc/pass/testsckt.mod: New file.
+ * gm2/link/pimc/pass/testselective.mod: New file.
+ * gm2/link/pimc/pass/testsysexceptions.mod: New file.
+ * gm2/link/pimc/pass/testtermios.mod: New file.
+ * gm2/link/pimc/pass/testunixargs.mod: New file.
+ * gm2/link/pimc/pass/testwrapc.mod: New file.
+ * gm2/linking/libarchive/pass/c.c: New file.
+ * gm2/linking/libarchive/pass/c.def: New file.
+ * gm2/linking/libarchive/pass/d.def: New file.
+ * gm2/linking/libarchive/pass/e.def: New file.
+ * gm2/linking/libarchive/pass/linking-libarchive-pass.exp: New file.
+ * gm2/linking/libarchive/pass/m.mod: New file.
+ * gm2/linking/verbose/pass/hello.mod: New file.
+ * gm2/linking/verbose/pass/linking-verbose-pass.exp: New file.
+ * gm2/pim/fail/TestLong3.mod: New file.
+ * gm2/pim/fail/TestLong6.mod: New file.
+ * gm2/pim/fail/a.def: New file.
+ * gm2/pim/fail/assignbounds.mod: New file.
+ * gm2/pim/fail/assignsubrange.mod: New file.
+ * gm2/pim/fail/assignsubrange2.mod: New file.
+ * gm2/pim/fail/b.def: New file.
+ * gm2/pim/fail/bad.def: New file.
+ * gm2/pim/fail/badconst.mod: New file.
+ * gm2/pim/fail/badfunc.mod: New file.
+ * gm2/pim/fail/badparam.mod: New file.
+ * gm2/pim/fail/badparam2.mod: New file.
+ * gm2/pim/fail/badtype.mod: New file.
+ * gm2/pim/fail/badtypes.mod: New file.
+ * gm2/pim/fail/bits.mod: New file.
+ * gm2/pim/fail/bits2.mod: New file.
+ * gm2/pim/fail/bits3.mod: New file.
+ * gm2/pim/fail/bits4.mod: New file.
+ * gm2/pim/fail/cardword.mod: New file.
+ * gm2/pim/fail/constbec.mod: New file.
+ * gm2/pim/fail/constsize3.mod: New file.
+ * gm2/pim/fail/constvar.mod: New file.
+ * gm2/pim/fail/convert5.mod: New file.
+ * gm2/pim/fail/dupconst.mod: New file.
+ * gm2/pim/fail/dupenum.mod: New file.
+ * gm2/pim/fail/dupfield.mod: New file.
+ * gm2/pim/fail/duptype.mod: New file.
+ * gm2/pim/fail/dupvar.mod: New file.
+ * gm2/pim/fail/expression.mod: New file.
+ * gm2/pim/fail/expression2.mod: New file.
+ * gm2/pim/fail/expression3.mod: New file.
+ * gm2/pim/fail/func.mod: New file.
+ * gm2/pim/fail/good.def: New file.
+ * gm2/pim/fail/good.mod: New file.
+ * gm2/pim/fail/import.mod: New file.
+ * gm2/pim/fail/inserttok.def: New file.
+ * gm2/pim/fail/inserttok.mod: New file.
+ * gm2/pim/fail/integer.mod: New file.
+ * gm2/pim/fail/keyword.mod: New file.
+ * gm2/pim/fail/longtypes2.mod: New file.
+ * gm2/pim/fail/longtypes3.mod: New file.
+ * gm2/pim/fail/multisetf.mod: New file.
+ * gm2/pim/fail/nested3.mod: New file.
+ * gm2/pim/fail/opaque.mod: New file.
+ * gm2/pim/fail/opaque2.mod: New file.
+ * gm2/pim/fail/opasfail.mod: New file.
+ * gm2/pim/fail/opcpfail.mod: New file.
+ * gm2/pim/fail/pim-fail.exp: New file.
+ * gm2/pim/fail/procmod.mod: New file.
+ * gm2/pim/fail/rotate.mod: New file.
+ * gm2/pim/fail/rotate2.mod: New file.
+ * gm2/pim/fail/setbec.mod: New file.
+ * gm2/pim/fail/setequiv.mod: New file.
+ * gm2/pim/fail/setsnulf.mod: New file.
+ * gm2/pim/fail/settype.mod: New file.
+ * gm2/pim/fail/shift.mod: New file.
+ * gm2/pim/fail/shift2.mod: New file.
+ * gm2/pim/fail/subrange7.mod: New file.
+ * gm2/pim/fail/unary.mod: New file.
+ * gm2/pim/fail/undeclared.mod: New file.
+ * gm2/pim/fail/val.mod: New file.
+ * gm2/pim/fail/val2.mod: New file.
+ * gm2/pim/fail/wordconst.mod: New file.
+ * gm2/pim/no-options/run/pass/integer.mod: New file.
+ * gm2/pim/no-options/run/pass/pim-no-options-run-pass.exp: New file.
+ * gm2/pim/options/bounds/fail/IdentifierBug.mod: New file.
+ * gm2/pim/options/bounds/fail/pim-options-bounds-fail.exp: New file.
+ * gm2/pim/options/optimize/run/pass/addition.def: New file.
+ * gm2/pim/options/optimize/run/pass/addition.mod: New file.
+ * gm2/pim/options/optimize/run/pass/concat.mod: New file.
* gm2/pim/options/optimize/run/pass/pim-options-optimize-run-pass.exp:
- (New file).
- * gm2/pim/options/optimize/run/pass/testadd.mod: (New file).
- * gm2/pim/pass/ABSBug.mod: (New file).
- * gm2/pim/pass/TestLong4.mod: (New file).
- * gm2/pim/pass/TestLong7.mod: (New file).
- * gm2/pim/pass/TestLong8.mod: (New file).
- * gm2/pim/pass/TestLong9.mod: (New file).
- * gm2/pim/pass/another.mod: (New file).
- * gm2/pim/pass/aochar.mod: (New file).
- * gm2/pim/pass/array.mod: (New file).
- * gm2/pim/pass/array2.mod: (New file).
- * gm2/pim/pass/array3.mod: (New file).
- * gm2/pim/pass/array4.mod: (New file).
- * gm2/pim/pass/array5.mod: (New file).
- * gm2/pim/pass/array6.mod: (New file).
- * gm2/pim/pass/arraybool.mod: (New file).
- * gm2/pim/pass/arraychar.mod: (New file).
- * gm2/pim/pass/arraychar2.mod: (New file).
- * gm2/pim/pass/arraychar3.mod: (New file).
- * gm2/pim/pass/arrayconst1.mod: (New file).
- * gm2/pim/pass/arrayconst2.mod: (New file).
- * gm2/pim/pass/arrayconst3.mod: (New file).
- * gm2/pim/pass/arraydecl.mod: (New file).
- * gm2/pim/pass/arraydim.mod: (New file).
- * gm2/pim/pass/arraydyn.mod: (New file).
- * gm2/pim/pass/arrayeqiv.mod: (New file).
- * gm2/pim/pass/arrayfio.mod: (New file).
- * gm2/pim/pass/arrayhuge.mod: (New file).
- * gm2/pim/pass/arrayhuge2.mod: (New file).
- * gm2/pim/pass/arrayindex.mod: (New file).
- * gm2/pim/pass/arrayindirect.mod: (New file).
- * gm2/pim/pass/arrayinproc.mod: (New file).
- * gm2/pim/pass/arrayint.mod: (New file).
- * gm2/pim/pass/arrayofbyte.mod: (New file).
- * gm2/pim/pass/arrayofcard.mod: (New file).
- * gm2/pim/pass/arrayptr.mod: (New file).
- * gm2/pim/pass/arrayptr2.mod: (New file).
- * gm2/pim/pass/arrayptr3.mod: (New file).
- * gm2/pim/pass/arrayptr4.mod: (New file).
- * gm2/pim/pass/arrayptr5.mod: (New file).
- * gm2/pim/pass/arrayptr6.mod: (New file).
- * gm2/pim/pass/arrayrecord.mod: (New file).
- * gm2/pim/pass/arraytiny.c: (New file).
- * gm2/pim/pass/arraytiny.mod: (New file).
- * gm2/pim/pass/arraytype.mod: (New file).
- * gm2/pim/pass/arraytype2.mod: (New file).
- * gm2/pim/pass/arraytype3.mod: (New file).
- * gm2/pim/pass/arraytype4.mod: (New file).
- * gm2/pim/pass/assignment.mod: (New file).
- * gm2/pim/pass/assignment2.mod: (New file).
- * gm2/pim/pass/assignment3.mod: (New file).
- * gm2/pim/pass/assignment4.mod: (New file).
- * gm2/pim/pass/badpointer.mod: (New file).
- * gm2/pim/pass/bits32.def: (New file).
- * gm2/pim/pass/bits32.mod: (New file).
- * gm2/pim/pass/bits32i.mod: (New file).
- * gm2/pim/pass/bitset.mod: (New file).
- * gm2/pim/pass/bitset2.mod: (New file).
- * gm2/pim/pass/bitset3.mod: (New file).
- * gm2/pim/pass/bitset4.mod: (New file).
- * gm2/pim/pass/bitset5.mod: (New file).
- * gm2/pim/pass/bitsetfunc.mod: (New file).
- * gm2/pim/pass/block.mod: (New file).
- * gm2/pim/pass/blockindirect.mod: (New file).
- * gm2/pim/pass/builtin.def: (New file).
- * gm2/pim/pass/builtin.mod: (New file).
- * gm2/pim/pass/builtin2.mod: (New file).
- * gm2/pim/pass/builtinconst.mod: (New file).
- * gm2/pim/pass/bytearray.mod: (New file).
- * gm2/pim/pass/card.mod: (New file).
- * gm2/pim/pass/card2.mod: (New file).
- * gm2/pim/pass/char.mod: (New file).
- * gm2/pim/pass/char2.mod: (New file).
- * gm2/pim/pass/charproc.mod: (New file).
- * gm2/pim/pass/charset.mod: (New file).
- * gm2/pim/pass/charset2.mod: (New file).
- * gm2/pim/pass/charset3.mod: (New file).
- * gm2/pim/pass/checkparm.def: (New file).
- * gm2/pim/pass/checkparm.mod: (New file).
- * gm2/pim/pass/colour.mod: (New file).
- * gm2/pim/pass/comment1.mod: (New file).
- * gm2/pim/pass/complexarray.mod: (New file).
- * gm2/pim/pass/complextypes.mod: (New file).
- * gm2/pim/pass/constcast.mod: (New file).
- * gm2/pim/pass/constmax.mod: (New file).
- * gm2/pim/pass/constset.mod: (New file).
- * gm2/pim/pass/constset2.mod: (New file).
- * gm2/pim/pass/constset3.mod: (New file).
- * gm2/pim/pass/constsize.mod: (New file).
- * gm2/pim/pass/constsize2.mod: (New file).
- * gm2/pim/pass/convert.mod: (New file).
- * gm2/pim/pass/convert2.mod: (New file).
- * gm2/pim/pass/convert3.mod: (New file).
- * gm2/pim/pass/convert4.mod: (New file).
- * gm2/pim/pass/danglingelse.mod: (New file).
- * gm2/pim/pass/debug: (New file).
- * gm2/pim/pass/defset.def: (New file).
- * gm2/pim/pass/defset.mod: (New file).
- * gm2/pim/pass/deftype.mod: (New file).
- * gm2/pim/pass/divaddr.mod: (New file).
- * gm2/pim/pass/enum.mod: (New file).
- * gm2/pim/pass/enum2.mod: (New file).
- * gm2/pim/pass/enum3.mod: (New file).
- * gm2/pim/pass/file.mod: (New file).
- * gm2/pim/pass/filesystem.mod: (New file).
- * gm2/pim/pass/foo.mod: (New file).
- * gm2/pim/pass/foo2.mod: (New file).
- * gm2/pim/pass/for1.mod: (New file).
- * gm2/pim/pass/function.mod: (New file).
- * gm2/pim/pass/function2.mod: (New file).
- * gm2/pim/pass/gcd.def: (New file).
- * gm2/pim/pass/gcd.mod: (New file).
- * gm2/pim/pass/getconst.mod: (New file).
- * gm2/pim/pass/hello.mod: (New file).
- * gm2/pim/pass/impa.mod: (New file).
- * gm2/pim/pass/impb.def: (New file).
- * gm2/pim/pass/impb.mod: (New file).
- * gm2/pim/pass/impc.def: (New file).
- * gm2/pim/pass/impc.mod: (New file).
- * gm2/pim/pass/impd.mod: (New file).
- * gm2/pim/pass/impe.mod: (New file).
- * gm2/pim/pass/impf.mod: (New file).
- * gm2/pim/pass/impg.mod: (New file).
- * gm2/pim/pass/imph.mod: (New file).
- * gm2/pim/pass/impi.mod: (New file).
- * gm2/pim/pass/impj.mod: (New file).
- * gm2/pim/pass/impk.mod: (New file).
- * gm2/pim/pass/impl.mod: (New file).
- * gm2/pim/pass/impm.mod: (New file).
- * gm2/pim/pass/impn.def: (New file).
- * gm2/pim/pass/impn.mod: (New file).
- * gm2/pim/pass/impo.mod: (New file).
- * gm2/pim/pass/imports.mod: (New file).
- * gm2/pim/pass/impp.def: (New file).
- * gm2/pim/pass/impp.mod: (New file).
- * gm2/pim/pass/impq.def: (New file).
- * gm2/pim/pass/impq.mod: (New file).
- * gm2/pim/pass/incompsets.mod: (New file).
- * gm2/pim/pass/index.mod: (New file).
- * gm2/pim/pass/index2.mod: (New file).
- * gm2/pim/pass/indirect.mod: (New file).
- * gm2/pim/pass/inner.mod: (New file).
- * gm2/pim/pass/inner2.mod: (New file).
- * gm2/pim/pass/int.mod: (New file).
- * gm2/pim/pass/largeset.mod: (New file).
- * gm2/pim/pass/largeset1.mod: (New file).
- * gm2/pim/pass/largeset2.mod: (New file).
- * gm2/pim/pass/largeset3.mod: (New file).
- * gm2/pim/pass/largeset4.mod: (New file).
- * gm2/pim/pass/largeset5.mod: (New file).
- * gm2/pim/pass/largeset6.mod: (New file).
- * gm2/pim/pass/largeset7.mod: (New file).
- * gm2/pim/pass/localmod.mod: (New file).
- * gm2/pim/pass/localproc.mod: (New file).
- * gm2/pim/pass/localvar.mod: (New file).
- * gm2/pim/pass/log: (New file).
- * gm2/pim/pass/longint.mod: (New file).
- * gm2/pim/pass/longint2.mod: (New file).
- * gm2/pim/pass/longmm.mod: (New file).
- * gm2/pim/pass/longreal.mod: (New file).
- * gm2/pim/pass/longtypes.mod: (New file).
- * gm2/pim/pass/longtypes3.mod: (New file).
- * gm2/pim/pass/longtypes4.mod: (New file).
- * gm2/pim/pass/longtypes5.mod: (New file).
- * gm2/pim/pass/longtypes6.mod: (New file).
- * gm2/pim/pass/loopexit.mod: (New file).
- * gm2/pim/pass/math.mod: (New file).
- * gm2/pim/pass/maxlongint.mod: (New file).
- * gm2/pim/pass/maxreal.mod: (New file).
- * gm2/pim/pass/maxreal2.mod: (New file).
- * gm2/pim/pass/minmaxconst.mod: (New file).
- * gm2/pim/pass/minmaxconst2.mod: (New file).
- * gm2/pim/pass/modaddr.mod: (New file).
- * gm2/pim/pass/multaddr.mod: (New file).
- * gm2/pim/pass/multiple.mod: (New file).
- * gm2/pim/pass/multiset.mod: (New file).
- * gm2/pim/pass/multtypes.mod: (New file).
- * gm2/pim/pass/mydef.def: (New file).
- * gm2/pim/pass/negatives.def: (New file).
- * gm2/pim/pass/negatives.mod: (New file).
- * gm2/pim/pass/nested.mod: (New file).
- * gm2/pim/pass/nested2.mod: (New file).
- * gm2/pim/pass/nested3.mod: (New file).
- * gm2/pim/pass/nested4.mod: (New file).
- * gm2/pim/pass/nested5.mod: (New file).
- * gm2/pim/pass/nested6.mod: (New file).
- * gm2/pim/pass/nested7.mod: (New file).
- * gm2/pim/pass/nestedfor.mod: (New file).
- * gm2/pim/pass/nestedif.mod: (New file).
- * gm2/pim/pass/nestedset.mod: (New file).
- * gm2/pim/pass/onezero.mod: (New file).
- * gm2/pim/pass/opaque.def: (New file).
- * gm2/pim/pass/opaque.mod: (New file).
- * gm2/pim/pass/opaque2.mod: (New file).
- * gm2/pim/pass/opaquetype.def: (New file).
- * gm2/pim/pass/opaquetype.mod: (New file).
- * gm2/pim/pass/param.mod: (New file).
- * gm2/pim/pass/param2.mod: (New file).
- * gm2/pim/pass/param3.mod: (New file).
- * gm2/pim/pass/parambool.mod: (New file).
- * gm2/pim/pass/paramreal.mod: (New file).
- * gm2/pim/pass/pim-pass.exp: (New file).
- * gm2/pim/pass/pimimp.mod: (New file).
- * gm2/pim/pass/pointer.mod: (New file).
- * gm2/pim/pass/procadr.mod: (New file).
- * gm2/pim/pass/procconv.mod: (New file).
- * gm2/pim/pass/procconv2.mod: (New file).
- * gm2/pim/pass/procedure1.mod: (New file).
- * gm2/pim/pass/procedure2.mod: (New file).
- * gm2/pim/pass/procindirect.mod: (New file).
- * gm2/pim/pass/procmod.mod: (New file).
- * gm2/pim/pass/procmod2.mod: (New file).
- * gm2/pim/pass/procmod3.mod: (New file).
- * gm2/pim/pass/procmod31.mod: (New file).
- * gm2/pim/pass/procmod4.mod: (New file).
- * gm2/pim/pass/procmod5.mod: (New file).
- * gm2/pim/pass/procmod6.def: (New file).
- * gm2/pim/pass/procmod6.mod: (New file).
- * gm2/pim/pass/procmod7.mod: (New file).
- * gm2/pim/pass/procmod8.mod: (New file).
- * gm2/pim/pass/procmod9.mod: (New file).
- * gm2/pim/pass/proctype.mod: (New file).
- * gm2/pim/pass/proctype2.def: (New file).
- * gm2/pim/pass/proctype3.mod: (New file).
- * gm2/pim/pass/proctype4.mod: (New file).
- * gm2/pim/pass/program.mod: (New file).
- * gm2/pim/pass/program2.mod: (New file).
- * gm2/pim/pass/ptrarray.mod: (New file).
- * gm2/pim/pass/ptrarray2.mod: (New file).
- * gm2/pim/pass/ptrarray3.mod: (New file).
- * gm2/pim/pass/ptrcard.mod: (New file).
- * gm2/pim/pass/quads.def: (New file).
- * gm2/pim/pass/quads.mod: (New file).
- * gm2/pim/pass/real.mod: (New file).
- * gm2/pim/pass/real2.mod: (New file).
- * gm2/pim/pass/real3.mod: (New file).
- * gm2/pim/pass/realconst.mod: (New file).
- * gm2/pim/pass/realneg.mod: (New file).
- * gm2/pim/pass/realneg2.mod: (New file).
- * gm2/pim/pass/realone.mod: (New file).
- * gm2/pim/pass/realsize.mod: (New file).
- * gm2/pim/pass/record1.mod: (New file).
- * gm2/pim/pass/record10.mod: (New file).
- * gm2/pim/pass/record11.mod: (New file).
- * gm2/pim/pass/record12.def: (New file).
- * gm2/pim/pass/record13.def: (New file).
- * gm2/pim/pass/record14.def: (New file).
- * gm2/pim/pass/record15.def: (New file).
- * gm2/pim/pass/record16.def: (New file).
- * gm2/pim/pass/record2.mod: (New file).
- * gm2/pim/pass/record3.mod: (New file).
- * gm2/pim/pass/record4.mod: (New file).
- * gm2/pim/pass/record5.mod: (New file).
- * gm2/pim/pass/record6.mod: (New file).
- * gm2/pim/pass/record7.mod: (New file).
- * gm2/pim/pass/record8.mod: (New file).
- * gm2/pim/pass/record9.mod: (New file).
- * gm2/pim/pass/recordarray.c: (New file).
- * gm2/pim/pass/recordarray.mod: (New file).
- * gm2/pim/pass/recordarray2.mod: (New file).
- * gm2/pim/pass/redef.mod: (New file).
- * gm2/pim/pass/set10.mod: (New file).
- * gm2/pim/pass/set11.def: (New file).
- * gm2/pim/pass/set11.mod: (New file).
- * gm2/pim/pass/set12.mod: (New file).
- * gm2/pim/pass/set4.mod: (New file).
- * gm2/pim/pass/set5.mod: (New file).
- * gm2/pim/pass/set6.mod: (New file).
- * gm2/pim/pass/set7.mod: (New file).
- * gm2/pim/pass/set8.mod: (New file).
- * gm2/pim/pass/set9.mod: (New file).
- * gm2/pim/pass/setchar.mod: (New file).
- * gm2/pim/pass/setchar10.mod: (New file).
- * gm2/pim/pass/setchar11.mod: (New file).
- * gm2/pim/pass/setchar3.mod: (New file).
- * gm2/pim/pass/setchar4.mod: (New file).
- * gm2/pim/pass/setchar5.mod: (New file).
- * gm2/pim/pass/setchar7.mod: (New file).
- * gm2/pim/pass/setchar8.mod: (New file).
- * gm2/pim/pass/setchar9.mod: (New file).
- * gm2/pim/pass/setconst.mod: (New file).
- * gm2/pim/pass/setconst2.mod: (New file).
- * gm2/pim/pass/setconst3.mod: (New file).
- * gm2/pim/pass/setenum.mod: (New file).
- * gm2/pim/pass/setimp.mod: (New file).
- * gm2/pim/pass/setimp2.mod: (New file).
- * gm2/pim/pass/setofchar.mod: (New file).
- * gm2/pim/pass/setoverflow.mod: (New file).
- * gm2/pim/pass/sets.mod: (New file).
- * gm2/pim/pass/sets2.mod: (New file).
- * gm2/pim/pass/sets3.mod: (New file).
- * gm2/pim/pass/sets4.mod: (New file).
- * gm2/pim/pass/sets5.mod: (New file).
- * gm2/pim/pass/sets6.mod: (New file).
- * gm2/pim/pass/setsnul.mod: (New file).
- * gm2/pim/pass/settest1.mod: (New file).
- * gm2/pim/pass/settest2.mod: (New file).
- * gm2/pim/pass/settest3.mod: (New file).
- * gm2/pim/pass/simpleproc.mod: (New file).
- * gm2/pim/pass/sizes.mod: (New file).
- * gm2/pim/pass/sizetype.mod: (New file).
- * gm2/pim/pass/smallset1.mod: (New file).
- * gm2/pim/pass/smallset2.mod: (New file).
- * gm2/pim/pass/smallset3.mod: (New file).
- * gm2/pim/pass/smallset4.mod: (New file).
- * gm2/pim/pass/smallset5.mod: (New file).
- * gm2/pim/pass/smallset6.mod: (New file).
- * gm2/pim/pass/smallset7.mod: (New file).
- * gm2/pim/pass/stabs.mod: (New file).
- * gm2/pim/pass/stdio.mod: (New file).
- * gm2/pim/pass/str1.mod: (New file).
- * gm2/pim/pass/str2.mod: (New file).
- * gm2/pim/pass/str3.mod: (New file).
- * gm2/pim/pass/str4.mod: (New file).
- * gm2/pim/pass/str5.mod: (New file).
- * gm2/pim/pass/stressset.mod: (New file).
- * gm2/pim/pass/stringassign.mod: (New file).
- * gm2/pim/pass/stringopaq.mod: (New file).
- * gm2/pim/pass/strings.mod: (New file).
- * gm2/pim/pass/strparam.def: (New file).
- * gm2/pim/pass/strparam.mod: (New file).
- * gm2/pim/pass/subrange.mod: (New file).
- * gm2/pim/pass/subrange10.mod: (New file).
- * gm2/pim/pass/subrange11.mod: (New file).
- * gm2/pim/pass/subrange12.mod: (New file).
- * gm2/pim/pass/subrange14.mod: (New file).
- * gm2/pim/pass/subrange15.mod: (New file).
- * gm2/pim/pass/subrange16.mod: (New file).
- * gm2/pim/pass/subrange17.mod: (New file).
- * gm2/pim/pass/subrange2.mod: (New file).
- * gm2/pim/pass/subrange3.mod: (New file).
- * gm2/pim/pass/subrange4.mod: (New file).
- * gm2/pim/pass/subrange5.mod: (New file).
- * gm2/pim/pass/subrange6.mod: (New file).
- * gm2/pim/pass/subrange7.mod: (New file).
- * gm2/pim/pass/subrange8.mod: (New file).
- * gm2/pim/pass/subrange9.mod: (New file).
- * gm2/pim/pass/test2recursive.mod: (New file).
- * gm2/pim/pass/testabs.mod: (New file).
- * gm2/pim/pass/testbuiltin.mod: (New file).
- * gm2/pim/pass/testbuiltin2.mod: (New file).
- * gm2/pim/pass/testbuiltstr.mod: (New file).
- * gm2/pim/pass/testcap.mod: (New file).
- * gm2/pim/pass/testcap2.mod: (New file).
- * gm2/pim/pass/testcard.mod: (New file).
- * gm2/pim/pass/testcard2.mod: (New file).
- * gm2/pim/pass/testcard3.mod: (New file).
- * gm2/pim/pass/testcard4.mod: (New file).
- * gm2/pim/pass/testcard5.mod: (New file).
- * gm2/pim/pass/testcase.mod: (New file).
- * gm2/pim/pass/testcase2.mod: (New file).
- * gm2/pim/pass/testcase3.mod: (New file).
- * gm2/pim/pass/testcase4.mod: (New file).
- * gm2/pim/pass/testchar.mod: (New file).
- * gm2/pim/pass/testfloat.mod: (New file).
- * gm2/pim/pass/testfloat2.mod: (New file).
- * gm2/pim/pass/testfloat3.mod: (New file).
- * gm2/pim/pass/testfloat4.mod: (New file).
- * gm2/pim/pass/testfor.mod: (New file).
- * gm2/pim/pass/testimpvar.mod: (New file).
- * gm2/pim/pass/testlong3.mod: (New file).
- * gm2/pim/pass/testmod.mod: (New file).
- * gm2/pim/pass/testmod2.mod: (New file).
- * gm2/pim/pass/testodd.mod: (New file).
- * gm2/pim/pass/testopaque.mod: (New file).
- * gm2/pim/pass/testopaque2.mod: (New file).
- * gm2/pim/pass/testopaque3.mod: (New file).
- * gm2/pim/pass/testord.mod: (New file).
- * gm2/pim/pass/testparam.mod: (New file).
- * gm2/pim/pass/testparam2.mod: (New file).
- * gm2/pim/pass/testparam3.mod: (New file).
- * gm2/pim/pass/testpimsize.mod: (New file).
- * gm2/pim/pass/testrecursive.def: (New file).
- * gm2/pim/pass/testrecursive.mod: (New file).
- * gm2/pim/pass/testreturnstr.mod: (New file).
- * gm2/pim/pass/testset.mod: (New file).
- * gm2/pim/pass/testshort.mod: (New file).
- * gm2/pim/pass/testsinf.mod: (New file).
- * gm2/pim/pass/testsinl.mod: (New file).
- * gm2/pim/pass/testsize.mod: (New file).
- * gm2/pim/pass/testvar.mod: (New file).
- * gm2/pim/pass/testvarin.mod: (New file).
- * gm2/pim/pass/timeio.mod: (New file).
- * gm2/pim/pass/timeio2.mod: (New file).
- * gm2/pim/pass/timeio3.mod: (New file).
- * gm2/pim/pass/timeio4.mod: (New file).
- * gm2/pim/pass/timeio5.mod: (New file).
- * gm2/pim/pass/timeio6.mod: (New file).
- * gm2/pim/pass/timeio7.mod: (New file).
- * gm2/pim/pass/timeio8.mod: (New file).
- * gm2/pim/pass/timeio9.mod: (New file).
- * gm2/pim/pass/tinyalloc.mod: (New file).
- * gm2/pim/pass/tinyarray.mod: (New file).
- * gm2/pim/pass/tinyarray2.mod: (New file).
- * gm2/pim/pass/tinyarray3.mod: (New file).
- * gm2/pim/pass/tinyarray4.mod: (New file).
- * gm2/pim/pass/tinyarray5.mod: (New file).
- * gm2/pim/pass/tinyarray6.mod: (New file).
- * gm2/pim/pass/tinyassign.def: (New file).
- * gm2/pim/pass/tinyassign.mod: (New file).
- * gm2/pim/pass/tinyassign2.mod: (New file).
- * gm2/pim/pass/tinyassign3.mod: (New file).
- * gm2/pim/pass/tinyassign4.mod: (New file).
- * gm2/pim/pass/tinyassign5.mod: (New file).
- * gm2/pim/pass/tinybitset.mod: (New file).
- * gm2/pim/pass/tinyelse.mod: (New file).
- * gm2/pim/pass/tinyenum.mod: (New file).
- * gm2/pim/pass/tinyfor.mod: (New file).
- * gm2/pim/pass/tinyfor2.mod: (New file).
- * gm2/pim/pass/tinyfor3.mod: (New file).
- * gm2/pim/pass/tinyhalt.mod: (New file).
- * gm2/pim/pass/tinyhello.mod: (New file).
- * gm2/pim/pass/tinyif.mod: (New file).
- * gm2/pim/pass/tinyif2.mod: (New file).
- * gm2/pim/pass/tinyif3.mod: (New file).
- * gm2/pim/pass/tinyif4.mod: (New file).
- * gm2/pim/pass/tinyif5.mod: (New file).
- * gm2/pim/pass/tinyif6.mod: (New file).
- * gm2/pim/pass/tinyif7.mod: (New file).
- * gm2/pim/pass/tinyif8.mod: (New file).
- * gm2/pim/pass/tinyimp.mod: (New file).
- * gm2/pim/pass/tinylit.mod: (New file).
- * gm2/pim/pass/tinylit2.mod: (New file).
- * gm2/pim/pass/tinymax.mod: (New file).
- * gm2/pim/pass/tinymod.mod: (New file).
- * gm2/pim/pass/tinynode.mod: (New file).
- * gm2/pim/pass/tinyparam.mod: (New file).
- * gm2/pim/pass/tinyparam2.mod: (New file).
- * gm2/pim/pass/tinyplus.mod: (New file).
- * gm2/pim/pass/tinyproc.mod: (New file).
- * gm2/pim/pass/tinyproc2.mod: (New file).
- * gm2/pim/pass/tinyproc3.mod: (New file).
- * gm2/pim/pass/tinyproc4.mod: (New file).
- * gm2/pim/pass/tinyproc5.mod: (New file).
- * gm2/pim/pass/tinyproc6.mod: (New file).
- * gm2/pim/pass/tinyptr.mod: (New file).
- * gm2/pim/pass/tinyreal.mod: (New file).
- * gm2/pim/pass/tinyrecord.mod: (New file).
- * gm2/pim/pass/tinyrepeat.mod: (New file).
- * gm2/pim/pass/tinyset6.mod: (New file).
- * gm2/pim/pass/tinyset7.mod: (New file).
- * gm2/pim/pass/tinystate.mod: (New file).
- * gm2/pim/pass/tinysub.def: (New file).
- * gm2/pim/pass/tinytest.mod: (New file).
- * gm2/pim/pass/tinytrue.mod: (New file).
- * gm2/pim/pass/tinyvar.mod: (New file).
- * gm2/pim/pass/tinyvar2.mod: (New file).
- * gm2/pim/pass/tinyvar3.mod: (New file).
- * gm2/pim/pass/tinyvar4.mod: (New file).
- * gm2/pim/pass/tinyvar5.mod: (New file).
- * gm2/pim/pass/tinyvarient.mod: (New file).
- * gm2/pim/pass/tinyvarient2.mod: (New file).
- * gm2/pim/pass/tinyvarient3.def: (New file).
- * gm2/pim/pass/tinyvarient3.mod: (New file).
- * gm2/pim/pass/tinyvarient4.mod: (New file).
- * gm2/pim/pass/tinyvarient5.mod: (New file).
- * gm2/pim/pass/tinyvarient6.mod: (New file).
- * gm2/pim/pass/tinywhile.mod: (New file).
- * gm2/pim/pass/tinywith.mod: (New file).
- * gm2/pim/pass/tinywith2.mod: (New file).
- * gm2/pim/pass/tinywith3.mod: (New file).
- * gm2/pim/pass/tinywith4.mod: (New file).
- * gm2/pim/pass/tinywith5.mod: (New file).
- * gm2/pim/pass/tinywith6.mod: (New file).
- * gm2/pim/pass/trunc.mod: (New file).
- * gm2/pim/pass/try: (New file).
- * gm2/pim/pass/typeequiv.mod: (New file).
- * gm2/pim/pass/typeequiv2.mod: (New file).
- * gm2/pim/pass/typeequiv3.mod: (New file).
- * gm2/pim/pass/typeonly.def: (New file).
- * gm2/pim/pass/typeonly.mod: (New file).
- * gm2/pim/pass/typesize.mod: (New file).
- * gm2/pim/pass/unbounded.mod: (New file).
- * gm2/pim/pass/unbounded2.mod: (New file).
- * gm2/pim/pass/unbounded3.mod: (New file).
- * gm2/pim/pass/v.def: (New file).
- * gm2/pim/pass/varaddress.mod: (New file).
- * gm2/pim/pass/varaddress2.mod: (New file).
- * gm2/pim/pass/varaddress3.mod: (New file).
- * gm2/pim/pass/varcard.mod: (New file).
- * gm2/pim/pass/variant9.mod: (New file).
- * gm2/pim/pass/varient.mod: (New file).
- * gm2/pim/pass/varient2.mod: (New file).
- * gm2/pim/pass/varient3.mod: (New file).
- * gm2/pim/pass/varient4.mod: (New file).
- * gm2/pim/pass/varient5.mod: (New file).
- * gm2/pim/pass/varient6.mod: (New file).
- * gm2/pim/pass/varient7.mod: (New file).
- * gm2/pim/pass/varient8.mod: (New file).
- * gm2/pim/pass/varin.def: (New file).
- * gm2/pim/pass/varin.mod: (New file).
- * gm2/pim/pass/varint.mod: (New file).
- * gm2/pim/pass/wincat.mod: (New file).
- * gm2/pim/pass/with.mod: (New file).
- * gm2/pim/pass/wordconst.mod: (New file).
- * gm2/pim/run/fail/case.mod: (New file).
- * gm2/pim/run/fail/nil.mod: (New file).
- * gm2/pim/run/fail/pim-run-fail.exp: (New file).
- * gm2/pim/run/pass/Countdown.mod: (New file).
- * gm2/pim/run/pass/EndFor.def: (New file).
- * gm2/pim/run/pass/EndFor.mod: (New file).
- * gm2/pim/run/pass/EnumTest.mod: (New file).
- * gm2/pim/run/pass/For1.mod: (New file).
- * gm2/pim/run/pass/For10.mod: (New file).
- * gm2/pim/run/pass/For11.mod: (New file).
- * gm2/pim/run/pass/For12.mod: (New file).
- * gm2/pim/run/pass/For2.mod: (New file).
- * gm2/pim/run/pass/For3.mod: (New file).
- * gm2/pim/run/pass/For4.mod: (New file).
- * gm2/pim/run/pass/For5.mod: (New file).
- * gm2/pim/run/pass/For6.mod: (New file).
- * gm2/pim/run/pass/For7.mod: (New file).
- * gm2/pim/run/pass/For8.mod: (New file).
- * gm2/pim/run/pass/For9.mod: (New file).
- * gm2/pim/run/pass/FpuIOBug.mod: (New file).
- * gm2/pim/run/pass/MaxReal.mod: (New file).
- * gm2/pim/run/pass/MaxReal2.mod: (New file).
- * gm2/pim/run/pass/TestLong.mod: (New file).
- * gm2/pim/run/pass/TestLong2.mod: (New file).
- * gm2/pim/run/pass/TestLong4.mod: (New file).
- * gm2/pim/run/pass/TestLong5.mod: (New file).
- * gm2/pim/run/pass/addrarray.mod: (New file).
- * gm2/pim/run/pass/arraychar.mod: (New file).
- * gm2/pim/run/pass/arraychar2.mod: (New file).
- * gm2/pim/run/pass/arrayrecord.mod: (New file).
- * gm2/pim/run/pass/bitsettest.def: (New file).
- * gm2/pim/run/pass/bitsettest.mod: (New file).
- * gm2/pim/run/pass/bytearray.mod: (New file).
- * gm2/pim/run/pass/constdynstr.mod: (New file).
- * gm2/pim/run/pass/conststr.mod: (New file).
- * gm2/pim/run/pass/conststr2.mod: (New file).
- * gm2/pim/run/pass/cycles.mod: (New file).
- * gm2/pim/run/pass/dec.mod: (New file).
- * gm2/pim/run/pass/enums.mod: (New file).
- * gm2/pim/run/pass/incsubrange.def: (New file).
- * gm2/pim/run/pass/incsubrange.mod: (New file).
- * gm2/pim/run/pass/index3.mod: (New file).
- * gm2/pim/run/pass/int16.mod: (New file).
- * gm2/pim/run/pass/int32.mod: (New file).
- * gm2/pim/run/pass/int8.mod: (New file).
- * gm2/pim/run/pass/line.mod: (New file).
- * gm2/pim/run/pass/long.mod: (New file).
- * gm2/pim/run/pass/longfor.mod: (New file).
- * gm2/pim/run/pass/longtypes10.mod: (New file).
- * gm2/pim/run/pass/longtypes7.mod: (New file).
- * gm2/pim/run/pass/longtypes8.mod: (New file).
- * gm2/pim/run/pass/longtypes9.mod: (New file).
- * gm2/pim/run/pass/math.mod: (New file).
- * gm2/pim/run/pass/math2.mod: (New file).
- * gm2/pim/run/pass/mathconst.mod: (New file).
- * gm2/pim/run/pass/minhello.mod: (New file).
- * gm2/pim/run/pass/minimal.mod: (New file).
- * gm2/pim/run/pass/nestedproc.mod: (New file).
- * gm2/pim/run/pass/nestedproc2.mod: (New file).
- * gm2/pim/run/pass/nestedproc3.mod: (New file).
- * gm2/pim/run/pass/nestedproc4.mod: (New file).
- * gm2/pim/run/pass/nestedproc5.mod: (New file).
- * gm2/pim/run/pass/nestedproc6.mod: (New file).
- * gm2/pim/run/pass/nestedproc7.mod: (New file).
- * gm2/pim/run/pass/nestedwith.mod: (New file).
- * gm2/pim/run/pass/nestedwith2.mod: (New file).
- * gm2/pim/run/pass/nestedwith3.mod: (New file).
- * gm2/pim/run/pass/nothing.mod: (New file).
- * gm2/pim/run/pass/pim-run-pass.exp: (New file).
- * gm2/pim/run/pass/prog31ex.mod: (New file).
- * gm2/pim/run/pass/rts.mod: (New file).
- * gm2/pim/run/pass/setcritical.mod: (New file).
- * gm2/pim/run/pass/setequiv.mod: (New file).
- * gm2/pim/run/pass/str6.mod: (New file).
- * gm2/pim/run/pass/stringaddr.mod: (New file).
- * gm2/pim/run/pass/stringaddr2.def: (New file).
- * gm2/pim/run/pass/stringaddr2.mod: (New file).
- * gm2/pim/run/pass/stripped.mod: (New file).
- * gm2/pim/run/pass/sys.def: (New file).
- * gm2/pim/run/pass/sys.mod: (New file).
- * gm2/pim/run/pass/t.def: (New file).
- * gm2/pim/run/pass/testaddr.mod: (New file).
- * gm2/pim/run/pass/testaddr2.mod: (New file).
- * gm2/pim/run/pass/testaddr3.mod: (New file).
- * gm2/pim/run/pass/testarray.mod: (New file).
- * gm2/pim/run/pass/testarray2.mod: (New file).
- * gm2/pim/run/pass/testarray3.mod: (New file).
- * gm2/pim/run/pass/testarray4.mod: (New file).
- * gm2/pim/run/pass/testarray5.mod: (New file).
- * gm2/pim/run/pass/testavail.mod: (New file).
- * gm2/pim/run/pass/testdiv.mod: (New file).
- * gm2/pim/run/pass/testfpufunc.mod: (New file).
- * gm2/pim/run/pass/testfpufunc2.mod: (New file).
- * gm2/pim/run/pass/testlarge.mod: (New file).
- * gm2/pim/run/pass/testlarge2.mod: (New file).
- * gm2/pim/run/pass/testnextproc.mod: (New file).
- * gm2/pim/run/pass/testparam.mod: (New file).
- * gm2/pim/run/pass/testreturnstr.mod: (New file).
- * gm2/pim/run/pass/testreturnstr2.mod: (New file).
- * gm2/pim/run/pass/testreturnstr3.def: (New file).
- * gm2/pim/run/pass/testreturnstr3.mod: (New file).
- * gm2/pim/run/pass/testsize.mod: (New file).
- * gm2/pim/run/pass/testsize2.mod: (New file).
- * gm2/pim/run/pass/testsize3.mod: (New file).
- * gm2/pim/run/pass/testsize4.mod: (New file).
- * gm2/pim/run/pass/testtbitsize.mod: (New file).
- * gm2/pim/run/pass/tinywith.mod: (New file).
- * gm2/pim/run/pass/unbounded.mod: (New file).
- * gm2/pim/run/pass/varaddress3.mod: (New file).
- * gm2/pim/run/pass/varparam2.mod: (New file).
- * gm2/pim/run/pass/varparam3.mod: (New file).
- * gm2/pim/run/pass/varparm.mod: (New file).
- * gm2/pim/run/pass/wr.mod: (New file).
- * gm2/pimcoroutines/pass/imports.mod: (New file).
- * gm2/pimcoroutines/pass/imports2.mod: (New file).
- * gm2/pimcoroutines/pass/pimcoroutines-pass.exp: (New file).
- * gm2/pimcoroutines/run/pass/pimcoroutines-run-pass.exp: (New file).
- * gm2/pimcoroutines/run/pass/testtime.mod: (New file).
- * gm2/pimlib/base/run/pass/FIO.mod: (New file).
- * gm2/pimlib/base/run/pass/StrLib.mod: (New file).
- * gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp: (New file).
- * gm2/pimlib/base/run/pass/testconvert.mod: (New file).
- * gm2/pimlib/coroutines/pass/pimlib-coroutines-pass.exp: (New file).
- * gm2/pimlib/coroutines/pass/priority.mod: (New file).
- * gm2/pimlib/coroutines/pass/priority2.mod: (New file).
- * gm2/pimlib/coroutines/pass/priority3.def: (New file).
- * gm2/pimlib/coroutines/pass/priority3.mod: (New file).
- * gm2/pimlib/logitech/pass/LogitechLong.mod: (New file).
- * gm2/pimlib/logitech/pass/hello.mod: (New file).
- * gm2/pimlib/logitech/pass/pimlib-logitech-pass.exp: (New file).
- * gm2/pimlib/logitech/run/pass/bbits.mod: (New file).
- * gm2/pimlib/logitech/run/pass/hello.mod: (New file).
- * gm2/pimlib/logitech/run/pass/helloinout.mod: (New file).
- * gm2/pimlib/logitech/run/pass/intb.mod: (New file).
- * gm2/pimlib/logitech/run/pass/pimlib-logitech-run-pass.exp: (New file).
- * gm2/pimlib/logitech/run/pass/realconv.mod: (New file).
- * gm2/pimlib/logitech/run/pass/realinput.mod: (New file).
- * gm2/pimlib/logitech/run/pass/realinput2.mod: (New file).
- * gm2/pimlib/logitech/run/pass/realinput3.mod: (New file).
- * gm2/pimlib/logitech/run/pass/rename.mod: (New file).
- * gm2/pimlib/logitech/run/pass/timedate.mod: (New file).
- * gm2/pimlib/logitech/run/pass/writeoct.mod: (New file).
- * gm2/pimlib/pass/pimlib-pass.exp: (New file).
- * gm2/pimlib/run/pass/format.mod: (New file).
- * gm2/pimlib/run/pass/limittests.c: (New file).
- * gm2/pimlib/run/pass/limittests.mod: (New file).
- * gm2/pimlib/run/pass/longreal.mod: (New file).
- * gm2/pimlib/run/pass/pimlib-run-pass.exp: (New file).
- * gm2/pimlib/run/pass/test.c: (New file).
- * gm2/pimlib/run/pass/testreal.mod: (New file).
- * gm2/pimlib/run/pass/testreal2.mod: (New file).
- * gm2/pimlib/run/pass/testreal4.mod: (New file).
- * gm2/projects/README: (New file).
- * gm2/projects/iso/run/pass/halma/halma.mod: (New file).
+ New file.
+ * gm2/pim/options/optimize/run/pass/testadd.mod: New file.
+ * gm2/pim/pass/ABSBug.mod: New file.
+ * gm2/pim/pass/TestLong4.mod: New file.
+ * gm2/pim/pass/TestLong7.mod: New file.
+ * gm2/pim/pass/TestLong8.mod: New file.
+ * gm2/pim/pass/TestLong9.mod: New file.
+ * gm2/pim/pass/another.mod: New file.
+ * gm2/pim/pass/aochar.mod: New file.
+ * gm2/pim/pass/array.mod: New file.
+ * gm2/pim/pass/array2.mod: New file.
+ * gm2/pim/pass/array3.mod: New file.
+ * gm2/pim/pass/array4.mod: New file.
+ * gm2/pim/pass/array5.mod: New file.
+ * gm2/pim/pass/array6.mod: New file.
+ * gm2/pim/pass/arraybool.mod: New file.
+ * gm2/pim/pass/arraychar.mod: New file.
+ * gm2/pim/pass/arraychar2.mod: New file.
+ * gm2/pim/pass/arraychar3.mod: New file.
+ * gm2/pim/pass/arrayconst1.mod: New file.
+ * gm2/pim/pass/arrayconst2.mod: New file.
+ * gm2/pim/pass/arrayconst3.mod: New file.
+ * gm2/pim/pass/arraydecl.mod: New file.
+ * gm2/pim/pass/arraydim.mod: New file.
+ * gm2/pim/pass/arraydyn.mod: New file.
+ * gm2/pim/pass/arrayeqiv.mod: New file.
+ * gm2/pim/pass/arrayfio.mod: New file.
+ * gm2/pim/pass/arrayhuge.mod: New file.
+ * gm2/pim/pass/arrayhuge2.mod: New file.
+ * gm2/pim/pass/arrayindex.mod: New file.
+ * gm2/pim/pass/arrayindirect.mod: New file.
+ * gm2/pim/pass/arrayinproc.mod: New file.
+ * gm2/pim/pass/arrayint.mod: New file.
+ * gm2/pim/pass/arrayofbyte.mod: New file.
+ * gm2/pim/pass/arrayofcard.mod: New file.
+ * gm2/pim/pass/arrayptr.mod: New file.
+ * gm2/pim/pass/arrayptr2.mod: New file.
+ * gm2/pim/pass/arrayptr3.mod: New file.
+ * gm2/pim/pass/arrayptr4.mod: New file.
+ * gm2/pim/pass/arrayptr5.mod: New file.
+ * gm2/pim/pass/arrayptr6.mod: New file.
+ * gm2/pim/pass/arrayrecord.mod: New file.
+ * gm2/pim/pass/arraytiny.c: New file.
+ * gm2/pim/pass/arraytiny.mod: New file.
+ * gm2/pim/pass/arraytype.mod: New file.
+ * gm2/pim/pass/arraytype2.mod: New file.
+ * gm2/pim/pass/arraytype3.mod: New file.
+ * gm2/pim/pass/arraytype4.mod: New file.
+ * gm2/pim/pass/assignment.mod: New file.
+ * gm2/pim/pass/assignment2.mod: New file.
+ * gm2/pim/pass/assignment3.mod: New file.
+ * gm2/pim/pass/assignment4.mod: New file.
+ * gm2/pim/pass/badpointer.mod: New file.
+ * gm2/pim/pass/bits32.def: New file.
+ * gm2/pim/pass/bits32.mod: New file.
+ * gm2/pim/pass/bits32i.mod: New file.
+ * gm2/pim/pass/bitset.mod: New file.
+ * gm2/pim/pass/bitset2.mod: New file.
+ * gm2/pim/pass/bitset3.mod: New file.
+ * gm2/pim/pass/bitset4.mod: New file.
+ * gm2/pim/pass/bitset5.mod: New file.
+ * gm2/pim/pass/bitsetfunc.mod: New file.
+ * gm2/pim/pass/block.mod: New file.
+ * gm2/pim/pass/blockindirect.mod: New file.
+ * gm2/pim/pass/builtin.def: New file.
+ * gm2/pim/pass/builtin.mod: New file.
+ * gm2/pim/pass/builtin2.mod: New file.
+ * gm2/pim/pass/builtinconst.mod: New file.
+ * gm2/pim/pass/bytearray.mod: New file.
+ * gm2/pim/pass/card.mod: New file.
+ * gm2/pim/pass/card2.mod: New file.
+ * gm2/pim/pass/char.mod: New file.
+ * gm2/pim/pass/char2.mod: New file.
+ * gm2/pim/pass/charproc.mod: New file.
+ * gm2/pim/pass/charset.mod: New file.
+ * gm2/pim/pass/charset2.mod: New file.
+ * gm2/pim/pass/charset3.mod: New file.
+ * gm2/pim/pass/checkparm.def: New file.
+ * gm2/pim/pass/checkparm.mod: New file.
+ * gm2/pim/pass/colour.mod: New file.
+ * gm2/pim/pass/comment1.mod: New file.
+ * gm2/pim/pass/complexarray.mod: New file.
+ * gm2/pim/pass/complextypes.mod: New file.
+ * gm2/pim/pass/constcast.mod: New file.
+ * gm2/pim/pass/constmax.mod: New file.
+ * gm2/pim/pass/constset.mod: New file.
+ * gm2/pim/pass/constset2.mod: New file.
+ * gm2/pim/pass/constset3.mod: New file.
+ * gm2/pim/pass/constsize.mod: New file.
+ * gm2/pim/pass/constsize2.mod: New file.
+ * gm2/pim/pass/convert.mod: New file.
+ * gm2/pim/pass/convert2.mod: New file.
+ * gm2/pim/pass/convert3.mod: New file.
+ * gm2/pim/pass/convert4.mod: New file.
+ * gm2/pim/pass/danglingelse.mod: New file.
+ * gm2/pim/pass/debug: New file.
+ * gm2/pim/pass/defset.def: New file.
+ * gm2/pim/pass/defset.mod: New file.
+ * gm2/pim/pass/deftype.mod: New file.
+ * gm2/pim/pass/divaddr.mod: New file.
+ * gm2/pim/pass/enum.mod: New file.
+ * gm2/pim/pass/enum2.mod: New file.
+ * gm2/pim/pass/enum3.mod: New file.
+ * gm2/pim/pass/file.mod: New file.
+ * gm2/pim/pass/filesystem.mod: New file.
+ * gm2/pim/pass/foo.mod: New file.
+ * gm2/pim/pass/foo2.mod: New file.
+ * gm2/pim/pass/for1.mod: New file.
+ * gm2/pim/pass/function.mod: New file.
+ * gm2/pim/pass/function2.mod: New file.
+ * gm2/pim/pass/gcd.def: New file.
+ * gm2/pim/pass/gcd.mod: New file.
+ * gm2/pim/pass/getconst.mod: New file.
+ * gm2/pim/pass/hello.mod: New file.
+ * gm2/pim/pass/impa.mod: New file.
+ * gm2/pim/pass/impb.def: New file.
+ * gm2/pim/pass/impb.mod: New file.
+ * gm2/pim/pass/impc.def: New file.
+ * gm2/pim/pass/impc.mod: New file.
+ * gm2/pim/pass/impd.mod: New file.
+ * gm2/pim/pass/impe.mod: New file.
+ * gm2/pim/pass/impf.mod: New file.
+ * gm2/pim/pass/impg.mod: New file.
+ * gm2/pim/pass/imph.mod: New file.
+ * gm2/pim/pass/impi.mod: New file.
+ * gm2/pim/pass/impj.mod: New file.
+ * gm2/pim/pass/impk.mod: New file.
+ * gm2/pim/pass/impl.mod: New file.
+ * gm2/pim/pass/impm.mod: New file.
+ * gm2/pim/pass/impn.def: New file.
+ * gm2/pim/pass/impn.mod: New file.
+ * gm2/pim/pass/impo.mod: New file.
+ * gm2/pim/pass/imports.mod: New file.
+ * gm2/pim/pass/impp.def: New file.
+ * gm2/pim/pass/impp.mod: New file.
+ * gm2/pim/pass/impq.def: New file.
+ * gm2/pim/pass/impq.mod: New file.
+ * gm2/pim/pass/incompsets.mod: New file.
+ * gm2/pim/pass/index.mod: New file.
+ * gm2/pim/pass/index2.mod: New file.
+ * gm2/pim/pass/indirect.mod: New file.
+ * gm2/pim/pass/inner.mod: New file.
+ * gm2/pim/pass/inner2.mod: New file.
+ * gm2/pim/pass/int.mod: New file.
+ * gm2/pim/pass/largeset.mod: New file.
+ * gm2/pim/pass/largeset1.mod: New file.
+ * gm2/pim/pass/largeset2.mod: New file.
+ * gm2/pim/pass/largeset3.mod: New file.
+ * gm2/pim/pass/largeset4.mod: New file.
+ * gm2/pim/pass/largeset5.mod: New file.
+ * gm2/pim/pass/largeset6.mod: New file.
+ * gm2/pim/pass/largeset7.mod: New file.
+ * gm2/pim/pass/localmod.mod: New file.
+ * gm2/pim/pass/localproc.mod: New file.
+ * gm2/pim/pass/localvar.mod: New file.
+ * gm2/pim/pass/log: New file.
+ * gm2/pim/pass/longint.mod: New file.
+ * gm2/pim/pass/longint2.mod: New file.
+ * gm2/pim/pass/longmm.mod: New file.
+ * gm2/pim/pass/longreal.mod: New file.
+ * gm2/pim/pass/longtypes.mod: New file.
+ * gm2/pim/pass/longtypes3.mod: New file.
+ * gm2/pim/pass/longtypes4.mod: New file.
+ * gm2/pim/pass/longtypes5.mod: New file.
+ * gm2/pim/pass/longtypes6.mod: New file.
+ * gm2/pim/pass/loopexit.mod: New file.
+ * gm2/pim/pass/math.mod: New file.
+ * gm2/pim/pass/maxlongint.mod: New file.
+ * gm2/pim/pass/maxreal.mod: New file.
+ * gm2/pim/pass/maxreal2.mod: New file.
+ * gm2/pim/pass/minmaxconst.mod: New file.
+ * gm2/pim/pass/minmaxconst2.mod: New file.
+ * gm2/pim/pass/modaddr.mod: New file.
+ * gm2/pim/pass/multaddr.mod: New file.
+ * gm2/pim/pass/multiple.mod: New file.
+ * gm2/pim/pass/multiset.mod: New file.
+ * gm2/pim/pass/multtypes.mod: New file.
+ * gm2/pim/pass/mydef.def: New file.
+ * gm2/pim/pass/negatives.def: New file.
+ * gm2/pim/pass/negatives.mod: New file.
+ * gm2/pim/pass/nested.mod: New file.
+ * gm2/pim/pass/nested2.mod: New file.
+ * gm2/pim/pass/nested3.mod: New file.
+ * gm2/pim/pass/nested4.mod: New file.
+ * gm2/pim/pass/nested5.mod: New file.
+ * gm2/pim/pass/nested6.mod: New file.
+ * gm2/pim/pass/nested7.mod: New file.
+ * gm2/pim/pass/nestedfor.mod: New file.
+ * gm2/pim/pass/nestedif.mod: New file.
+ * gm2/pim/pass/nestedset.mod: New file.
+ * gm2/pim/pass/onezero.mod: New file.
+ * gm2/pim/pass/opaque.def: New file.
+ * gm2/pim/pass/opaque.mod: New file.
+ * gm2/pim/pass/opaque2.mod: New file.
+ * gm2/pim/pass/opaquetype.def: New file.
+ * gm2/pim/pass/opaquetype.mod: New file.
+ * gm2/pim/pass/param.mod: New file.
+ * gm2/pim/pass/param2.mod: New file.
+ * gm2/pim/pass/param3.mod: New file.
+ * gm2/pim/pass/parambool.mod: New file.
+ * gm2/pim/pass/paramreal.mod: New file.
+ * gm2/pim/pass/pim-pass.exp: New file.
+ * gm2/pim/pass/pimimp.mod: New file.
+ * gm2/pim/pass/pointer.mod: New file.
+ * gm2/pim/pass/procadr.mod: New file.
+ * gm2/pim/pass/procconv.mod: New file.
+ * gm2/pim/pass/procconv2.mod: New file.
+ * gm2/pim/pass/procedure1.mod: New file.
+ * gm2/pim/pass/procedure2.mod: New file.
+ * gm2/pim/pass/procindirect.mod: New file.
+ * gm2/pim/pass/procmod.mod: New file.
+ * gm2/pim/pass/procmod2.mod: New file.
+ * gm2/pim/pass/procmod3.mod: New file.
+ * gm2/pim/pass/procmod31.mod: New file.
+ * gm2/pim/pass/procmod4.mod: New file.
+ * gm2/pim/pass/procmod5.mod: New file.
+ * gm2/pim/pass/procmod6.def: New file.
+ * gm2/pim/pass/procmod6.mod: New file.
+ * gm2/pim/pass/procmod7.mod: New file.
+ * gm2/pim/pass/procmod8.mod: New file.
+ * gm2/pim/pass/procmod9.mod: New file.
+ * gm2/pim/pass/proctype.mod: New file.
+ * gm2/pim/pass/proctype2.def: New file.
+ * gm2/pim/pass/proctype3.mod: New file.
+ * gm2/pim/pass/proctype4.mod: New file.
+ * gm2/pim/pass/program.mod: New file.
+ * gm2/pim/pass/program2.mod: New file.
+ * gm2/pim/pass/ptrarray.mod: New file.
+ * gm2/pim/pass/ptrarray2.mod: New file.
+ * gm2/pim/pass/ptrarray3.mod: New file.
+ * gm2/pim/pass/ptrcard.mod: New file.
+ * gm2/pim/pass/quads.def: New file.
+ * gm2/pim/pass/quads.mod: New file.
+ * gm2/pim/pass/real.mod: New file.
+ * gm2/pim/pass/real2.mod: New file.
+ * gm2/pim/pass/real3.mod: New file.
+ * gm2/pim/pass/realconst.mod: New file.
+ * gm2/pim/pass/realneg.mod: New file.
+ * gm2/pim/pass/realneg2.mod: New file.
+ * gm2/pim/pass/realone.mod: New file.
+ * gm2/pim/pass/realsize.mod: New file.
+ * gm2/pim/pass/record1.mod: New file.
+ * gm2/pim/pass/record10.mod: New file.
+ * gm2/pim/pass/record11.mod: New file.
+ * gm2/pim/pass/record12.def: New file.
+ * gm2/pim/pass/record13.def: New file.
+ * gm2/pim/pass/record14.def: New file.
+ * gm2/pim/pass/record15.def: New file.
+ * gm2/pim/pass/record16.def: New file.
+ * gm2/pim/pass/record2.mod: New file.
+ * gm2/pim/pass/record3.mod: New file.
+ * gm2/pim/pass/record4.mod: New file.
+ * gm2/pim/pass/record5.mod: New file.
+ * gm2/pim/pass/record6.mod: New file.
+ * gm2/pim/pass/record7.mod: New file.
+ * gm2/pim/pass/record8.mod: New file.
+ * gm2/pim/pass/record9.mod: New file.
+ * gm2/pim/pass/recordarray.c: New file.
+ * gm2/pim/pass/recordarray.mod: New file.
+ * gm2/pim/pass/recordarray2.mod: New file.
+ * gm2/pim/pass/redef.mod: New file.
+ * gm2/pim/pass/set10.mod: New file.
+ * gm2/pim/pass/set11.def: New file.
+ * gm2/pim/pass/set11.mod: New file.
+ * gm2/pim/pass/set12.mod: New file.
+ * gm2/pim/pass/set4.mod: New file.
+ * gm2/pim/pass/set5.mod: New file.
+ * gm2/pim/pass/set6.mod: New file.
+ * gm2/pim/pass/set7.mod: New file.
+ * gm2/pim/pass/set8.mod: New file.
+ * gm2/pim/pass/set9.mod: New file.
+ * gm2/pim/pass/setchar.mod: New file.
+ * gm2/pim/pass/setchar10.mod: New file.
+ * gm2/pim/pass/setchar11.mod: New file.
+ * gm2/pim/pass/setchar3.mod: New file.
+ * gm2/pim/pass/setchar4.mod: New file.
+ * gm2/pim/pass/setchar5.mod: New file.
+ * gm2/pim/pass/setchar7.mod: New file.
+ * gm2/pim/pass/setchar8.mod: New file.
+ * gm2/pim/pass/setchar9.mod: New file.
+ * gm2/pim/pass/setconst.mod: New file.
+ * gm2/pim/pass/setconst2.mod: New file.
+ * gm2/pim/pass/setconst3.mod: New file.
+ * gm2/pim/pass/setenum.mod: New file.
+ * gm2/pim/pass/setimp.mod: New file.
+ * gm2/pim/pass/setimp2.mod: New file.
+ * gm2/pim/pass/setofchar.mod: New file.
+ * gm2/pim/pass/setoverflow.mod: New file.
+ * gm2/pim/pass/sets.mod: New file.
+ * gm2/pim/pass/sets2.mod: New file.
+ * gm2/pim/pass/sets3.mod: New file.
+ * gm2/pim/pass/sets4.mod: New file.
+ * gm2/pim/pass/sets5.mod: New file.
+ * gm2/pim/pass/sets6.mod: New file.
+ * gm2/pim/pass/setsnul.mod: New file.
+ * gm2/pim/pass/settest1.mod: New file.
+ * gm2/pim/pass/settest2.mod: New file.
+ * gm2/pim/pass/settest3.mod: New file.
+ * gm2/pim/pass/simpleproc.mod: New file.
+ * gm2/pim/pass/sizes.mod: New file.
+ * gm2/pim/pass/sizetype.mod: New file.
+ * gm2/pim/pass/smallset1.mod: New file.
+ * gm2/pim/pass/smallset2.mod: New file.
+ * gm2/pim/pass/smallset3.mod: New file.
+ * gm2/pim/pass/smallset4.mod: New file.
+ * gm2/pim/pass/smallset5.mod: New file.
+ * gm2/pim/pass/smallset6.mod: New file.
+ * gm2/pim/pass/smallset7.mod: New file.
+ * gm2/pim/pass/stabs.mod: New file.
+ * gm2/pim/pass/stdio.mod: New file.
+ * gm2/pim/pass/str1.mod: New file.
+ * gm2/pim/pass/str2.mod: New file.
+ * gm2/pim/pass/str3.mod: New file.
+ * gm2/pim/pass/str4.mod: New file.
+ * gm2/pim/pass/str5.mod: New file.
+ * gm2/pim/pass/stressset.mod: New file.
+ * gm2/pim/pass/stringassign.mod: New file.
+ * gm2/pim/pass/stringopaq.mod: New file.
+ * gm2/pim/pass/strings.mod: New file.
+ * gm2/pim/pass/strparam.def: New file.
+ * gm2/pim/pass/strparam.mod: New file.
+ * gm2/pim/pass/subrange.mod: New file.
+ * gm2/pim/pass/subrange10.mod: New file.
+ * gm2/pim/pass/subrange11.mod: New file.
+ * gm2/pim/pass/subrange12.mod: New file.
+ * gm2/pim/pass/subrange14.mod: New file.
+ * gm2/pim/pass/subrange15.mod: New file.
+ * gm2/pim/pass/subrange16.mod: New file.
+ * gm2/pim/pass/subrange17.mod: New file.
+ * gm2/pim/pass/subrange2.mod: New file.
+ * gm2/pim/pass/subrange3.mod: New file.
+ * gm2/pim/pass/subrange4.mod: New file.
+ * gm2/pim/pass/subrange5.mod: New file.
+ * gm2/pim/pass/subrange6.mod: New file.
+ * gm2/pim/pass/subrange7.mod: New file.
+ * gm2/pim/pass/subrange8.mod: New file.
+ * gm2/pim/pass/subrange9.mod: New file.
+ * gm2/pim/pass/test2recursive.mod: New file.
+ * gm2/pim/pass/testabs.mod: New file.
+ * gm2/pim/pass/testbuiltin.mod: New file.
+ * gm2/pim/pass/testbuiltin2.mod: New file.
+ * gm2/pim/pass/testbuiltstr.mod: New file.
+ * gm2/pim/pass/testcap.mod: New file.
+ * gm2/pim/pass/testcap2.mod: New file.
+ * gm2/pim/pass/testcard.mod: New file.
+ * gm2/pim/pass/testcard2.mod: New file.
+ * gm2/pim/pass/testcard3.mod: New file.
+ * gm2/pim/pass/testcard4.mod: New file.
+ * gm2/pim/pass/testcard5.mod: New file.
+ * gm2/pim/pass/testcase.mod: New file.
+ * gm2/pim/pass/testcase2.mod: New file.
+ * gm2/pim/pass/testcase3.mod: New file.
+ * gm2/pim/pass/testcase4.mod: New file.
+ * gm2/pim/pass/testchar.mod: New file.
+ * gm2/pim/pass/testfloat.mod: New file.
+ * gm2/pim/pass/testfloat2.mod: New file.
+ * gm2/pim/pass/testfloat3.mod: New file.
+ * gm2/pim/pass/testfloat4.mod: New file.
+ * gm2/pim/pass/testfor.mod: New file.
+ * gm2/pim/pass/testimpvar.mod: New file.
+ * gm2/pim/pass/testlong3.mod: New file.
+ * gm2/pim/pass/testmod.mod: New file.
+ * gm2/pim/pass/testmod2.mod: New file.
+ * gm2/pim/pass/testodd.mod: New file.
+ * gm2/pim/pass/testopaque.mod: New file.
+ * gm2/pim/pass/testopaque2.mod: New file.
+ * gm2/pim/pass/testopaque3.mod: New file.
+ * gm2/pim/pass/testord.mod: New file.
+ * gm2/pim/pass/testparam.mod: New file.
+ * gm2/pim/pass/testparam2.mod: New file.
+ * gm2/pim/pass/testparam3.mod: New file.
+ * gm2/pim/pass/testpimsize.mod: New file.
+ * gm2/pim/pass/testrecursive.def: New file.
+ * gm2/pim/pass/testrecursive.mod: New file.
+ * gm2/pim/pass/testreturnstr.mod: New file.
+ * gm2/pim/pass/testset.mod: New file.
+ * gm2/pim/pass/testshort.mod: New file.
+ * gm2/pim/pass/testsinf.mod: New file.
+ * gm2/pim/pass/testsinl.mod: New file.
+ * gm2/pim/pass/testsize.mod: New file.
+ * gm2/pim/pass/testvar.mod: New file.
+ * gm2/pim/pass/testvarin.mod: New file.
+ * gm2/pim/pass/timeio.mod: New file.
+ * gm2/pim/pass/timeio2.mod: New file.
+ * gm2/pim/pass/timeio3.mod: New file.
+ * gm2/pim/pass/timeio4.mod: New file.
+ * gm2/pim/pass/timeio5.mod: New file.
+ * gm2/pim/pass/timeio6.mod: New file.
+ * gm2/pim/pass/timeio7.mod: New file.
+ * gm2/pim/pass/timeio8.mod: New file.
+ * gm2/pim/pass/timeio9.mod: New file.
+ * gm2/pim/pass/tinyalloc.mod: New file.
+ * gm2/pim/pass/tinyarray.mod: New file.
+ * gm2/pim/pass/tinyarray2.mod: New file.
+ * gm2/pim/pass/tinyarray3.mod: New file.
+ * gm2/pim/pass/tinyarray4.mod: New file.
+ * gm2/pim/pass/tinyarray5.mod: New file.
+ * gm2/pim/pass/tinyarray6.mod: New file.
+ * gm2/pim/pass/tinyassign.def: New file.
+ * gm2/pim/pass/tinyassign.mod: New file.
+ * gm2/pim/pass/tinyassign2.mod: New file.
+ * gm2/pim/pass/tinyassign3.mod: New file.
+ * gm2/pim/pass/tinyassign4.mod: New file.
+ * gm2/pim/pass/tinyassign5.mod: New file.
+ * gm2/pim/pass/tinybitset.mod: New file.
+ * gm2/pim/pass/tinyelse.mod: New file.
+ * gm2/pim/pass/tinyenum.mod: New file.
+ * gm2/pim/pass/tinyfor.mod: New file.
+ * gm2/pim/pass/tinyfor2.mod: New file.
+ * gm2/pim/pass/tinyfor3.mod: New file.
+ * gm2/pim/pass/tinyhalt.mod: New file.
+ * gm2/pim/pass/tinyhello.mod: New file.
+ * gm2/pim/pass/tinyif.mod: New file.
+ * gm2/pim/pass/tinyif2.mod: New file.
+ * gm2/pim/pass/tinyif3.mod: New file.
+ * gm2/pim/pass/tinyif4.mod: New file.
+ * gm2/pim/pass/tinyif5.mod: New file.
+ * gm2/pim/pass/tinyif6.mod: New file.
+ * gm2/pim/pass/tinyif7.mod: New file.
+ * gm2/pim/pass/tinyif8.mod: New file.
+ * gm2/pim/pass/tinyimp.mod: New file.
+ * gm2/pim/pass/tinylit.mod: New file.
+ * gm2/pim/pass/tinylit2.mod: New file.
+ * gm2/pim/pass/tinymax.mod: New file.
+ * gm2/pim/pass/tinymod.mod: New file.
+ * gm2/pim/pass/tinynode.mod: New file.
+ * gm2/pim/pass/tinyparam.mod: New file.
+ * gm2/pim/pass/tinyparam2.mod: New file.
+ * gm2/pim/pass/tinyplus.mod: New file.
+ * gm2/pim/pass/tinyproc.mod: New file.
+ * gm2/pim/pass/tinyproc2.mod: New file.
+ * gm2/pim/pass/tinyproc3.mod: New file.
+ * gm2/pim/pass/tinyproc4.mod: New file.
+ * gm2/pim/pass/tinyproc5.mod: New file.
+ * gm2/pim/pass/tinyproc6.mod: New file.
+ * gm2/pim/pass/tinyptr.mod: New file.
+ * gm2/pim/pass/tinyreal.mod: New file.
+ * gm2/pim/pass/tinyrecord.mod: New file.
+ * gm2/pim/pass/tinyrepeat.mod: New file.
+ * gm2/pim/pass/tinyset6.mod: New file.
+ * gm2/pim/pass/tinyset7.mod: New file.
+ * gm2/pim/pass/tinystate.mod: New file.
+ * gm2/pim/pass/tinysub.def: New file.
+ * gm2/pim/pass/tinytest.mod: New file.
+ * gm2/pim/pass/tinytrue.mod: New file.
+ * gm2/pim/pass/tinyvar.mod: New file.
+ * gm2/pim/pass/tinyvar2.mod: New file.
+ * gm2/pim/pass/tinyvar3.mod: New file.
+ * gm2/pim/pass/tinyvar4.mod: New file.
+ * gm2/pim/pass/tinyvar5.mod: New file.
+ * gm2/pim/pass/tinyvarient.mod: New file.
+ * gm2/pim/pass/tinyvarient2.mod: New file.
+ * gm2/pim/pass/tinyvarient3.def: New file.
+ * gm2/pim/pass/tinyvarient3.mod: New file.
+ * gm2/pim/pass/tinyvarient4.mod: New file.
+ * gm2/pim/pass/tinyvarient5.mod: New file.
+ * gm2/pim/pass/tinyvarient6.mod: New file.
+ * gm2/pim/pass/tinywhile.mod: New file.
+ * gm2/pim/pass/tinywith.mod: New file.
+ * gm2/pim/pass/tinywith2.mod: New file.
+ * gm2/pim/pass/tinywith3.mod: New file.
+ * gm2/pim/pass/tinywith4.mod: New file.
+ * gm2/pim/pass/tinywith5.mod: New file.
+ * gm2/pim/pass/tinywith6.mod: New file.
+ * gm2/pim/pass/trunc.mod: New file.
+ * gm2/pim/pass/try: New file.
+ * gm2/pim/pass/typeequiv.mod: New file.
+ * gm2/pim/pass/typeequiv2.mod: New file.
+ * gm2/pim/pass/typeequiv3.mod: New file.
+ * gm2/pim/pass/typeonly.def: New file.
+ * gm2/pim/pass/typeonly.mod: New file.
+ * gm2/pim/pass/typesize.mod: New file.
+ * gm2/pim/pass/unbounded.mod: New file.
+ * gm2/pim/pass/unbounded2.mod: New file.
+ * gm2/pim/pass/unbounded3.mod: New file.
+ * gm2/pim/pass/v.def: New file.
+ * gm2/pim/pass/varaddress.mod: New file.
+ * gm2/pim/pass/varaddress2.mod: New file.
+ * gm2/pim/pass/varaddress3.mod: New file.
+ * gm2/pim/pass/varcard.mod: New file.
+ * gm2/pim/pass/variant9.mod: New file.
+ * gm2/pim/pass/varient.mod: New file.
+ * gm2/pim/pass/varient2.mod: New file.
+ * gm2/pim/pass/varient3.mod: New file.
+ * gm2/pim/pass/varient4.mod: New file.
+ * gm2/pim/pass/varient5.mod: New file.
+ * gm2/pim/pass/varient6.mod: New file.
+ * gm2/pim/pass/varient7.mod: New file.
+ * gm2/pim/pass/varient8.mod: New file.
+ * gm2/pim/pass/varin.def: New file.
+ * gm2/pim/pass/varin.mod: New file.
+ * gm2/pim/pass/varint.mod: New file.
+ * gm2/pim/pass/wincat.mod: New file.
+ * gm2/pim/pass/with.mod: New file.
+ * gm2/pim/pass/wordconst.mod: New file.
+ * gm2/pim/run/fail/case.mod: New file.
+ * gm2/pim/run/fail/nil.mod: New file.
+ * gm2/pim/run/fail/pim-run-fail.exp: New file.
+ * gm2/pim/run/pass/Countdown.mod: New file.
+ * gm2/pim/run/pass/EndFor.def: New file.
+ * gm2/pim/run/pass/EndFor.mod: New file.
+ * gm2/pim/run/pass/EnumTest.mod: New file.
+ * gm2/pim/run/pass/For1.mod: New file.
+ * gm2/pim/run/pass/For10.mod: New file.
+ * gm2/pim/run/pass/For11.mod: New file.
+ * gm2/pim/run/pass/For12.mod: New file.
+ * gm2/pim/run/pass/For2.mod: New file.
+ * gm2/pim/run/pass/For3.mod: New file.
+ * gm2/pim/run/pass/For4.mod: New file.
+ * gm2/pim/run/pass/For5.mod: New file.
+ * gm2/pim/run/pass/For6.mod: New file.
+ * gm2/pim/run/pass/For7.mod: New file.
+ * gm2/pim/run/pass/For8.mod: New file.
+ * gm2/pim/run/pass/For9.mod: New file.
+ * gm2/pim/run/pass/FpuIOBug.mod: New file.
+ * gm2/pim/run/pass/MaxReal.mod: New file.
+ * gm2/pim/run/pass/MaxReal2.mod: New file.
+ * gm2/pim/run/pass/TestLong.mod: New file.
+ * gm2/pim/run/pass/TestLong2.mod: New file.
+ * gm2/pim/run/pass/TestLong4.mod: New file.
+ * gm2/pim/run/pass/TestLong5.mod: New file.
+ * gm2/pim/run/pass/addrarray.mod: New file.
+ * gm2/pim/run/pass/arraychar.mod: New file.
+ * gm2/pim/run/pass/arraychar2.mod: New file.
+ * gm2/pim/run/pass/arrayrecord.mod: New file.
+ * gm2/pim/run/pass/bitsettest.def: New file.
+ * gm2/pim/run/pass/bitsettest.mod: New file.
+ * gm2/pim/run/pass/bytearray.mod: New file.
+ * gm2/pim/run/pass/constdynstr.mod: New file.
+ * gm2/pim/run/pass/conststr.mod: New file.
+ * gm2/pim/run/pass/conststr2.mod: New file.
+ * gm2/pim/run/pass/cycles.mod: New file.
+ * gm2/pim/run/pass/dec.mod: New file.
+ * gm2/pim/run/pass/enums.mod: New file.
+ * gm2/pim/run/pass/incsubrange.def: New file.
+ * gm2/pim/run/pass/incsubrange.mod: New file.
+ * gm2/pim/run/pass/index3.mod: New file.
+ * gm2/pim/run/pass/int16.mod: New file.
+ * gm2/pim/run/pass/int32.mod: New file.
+ * gm2/pim/run/pass/int8.mod: New file.
+ * gm2/pim/run/pass/line.mod: New file.
+ * gm2/pim/run/pass/long.mod: New file.
+ * gm2/pim/run/pass/longfor.mod: New file.
+ * gm2/pim/run/pass/longtypes10.mod: New file.
+ * gm2/pim/run/pass/longtypes7.mod: New file.
+ * gm2/pim/run/pass/longtypes8.mod: New file.
+ * gm2/pim/run/pass/longtypes9.mod: New file.
+ * gm2/pim/run/pass/math.mod: New file.
+ * gm2/pim/run/pass/math2.mod: New file.
+ * gm2/pim/run/pass/mathconst.mod: New file.
+ * gm2/pim/run/pass/minhello.mod: New file.
+ * gm2/pim/run/pass/minimal.mod: New file.
+ * gm2/pim/run/pass/nestedproc.mod: New file.
+ * gm2/pim/run/pass/nestedproc2.mod: New file.
+ * gm2/pim/run/pass/nestedproc3.mod: New file.
+ * gm2/pim/run/pass/nestedproc4.mod: New file.
+ * gm2/pim/run/pass/nestedproc5.mod: New file.
+ * gm2/pim/run/pass/nestedproc6.mod: New file.
+ * gm2/pim/run/pass/nestedproc7.mod: New file.
+ * gm2/pim/run/pass/nestedwith.mod: New file.
+ * gm2/pim/run/pass/nestedwith2.mod: New file.
+ * gm2/pim/run/pass/nestedwith3.mod: New file.
+ * gm2/pim/run/pass/nothing.mod: New file.
+ * gm2/pim/run/pass/pim-run-pass.exp: New file.
+ * gm2/pim/run/pass/prog31ex.mod: New file.
+ * gm2/pim/run/pass/rts.mod: New file.
+ * gm2/pim/run/pass/setcritical.mod: New file.
+ * gm2/pim/run/pass/setequiv.mod: New file.
+ * gm2/pim/run/pass/str6.mod: New file.
+ * gm2/pim/run/pass/stringaddr.mod: New file.
+ * gm2/pim/run/pass/stringaddr2.def: New file.
+ * gm2/pim/run/pass/stringaddr2.mod: New file.
+ * gm2/pim/run/pass/stripped.mod: New file.
+ * gm2/pim/run/pass/sys.def: New file.
+ * gm2/pim/run/pass/sys.mod: New file.
+ * gm2/pim/run/pass/t.def: New file.
+ * gm2/pim/run/pass/testaddr.mod: New file.
+ * gm2/pim/run/pass/testaddr2.mod: New file.
+ * gm2/pim/run/pass/testaddr3.mod: New file.
+ * gm2/pim/run/pass/testarray.mod: New file.
+ * gm2/pim/run/pass/testarray2.mod: New file.
+ * gm2/pim/run/pass/testarray3.mod: New file.
+ * gm2/pim/run/pass/testarray4.mod: New file.
+ * gm2/pim/run/pass/testarray5.mod: New file.
+ * gm2/pim/run/pass/testavail.mod: New file.
+ * gm2/pim/run/pass/testdiv.mod: New file.
+ * gm2/pim/run/pass/testfpufunc.mod: New file.
+ * gm2/pim/run/pass/testfpufunc2.mod: New file.
+ * gm2/pim/run/pass/testlarge.mod: New file.
+ * gm2/pim/run/pass/testlarge2.mod: New file.
+ * gm2/pim/run/pass/testnextproc.mod: New file.
+ * gm2/pim/run/pass/testparam.mod: New file.
+ * gm2/pim/run/pass/testreturnstr.mod: New file.
+ * gm2/pim/run/pass/testreturnstr2.mod: New file.
+ * gm2/pim/run/pass/testreturnstr3.def: New file.
+ * gm2/pim/run/pass/testreturnstr3.mod: New file.
+ * gm2/pim/run/pass/testsize.mod: New file.
+ * gm2/pim/run/pass/testsize2.mod: New file.
+ * gm2/pim/run/pass/testsize3.mod: New file.
+ * gm2/pim/run/pass/testsize4.mod: New file.
+ * gm2/pim/run/pass/testtbitsize.mod: New file.
+ * gm2/pim/run/pass/tinywith.mod: New file.
+ * gm2/pim/run/pass/unbounded.mod: New file.
+ * gm2/pim/run/pass/varaddress3.mod: New file.
+ * gm2/pim/run/pass/varparam2.mod: New file.
+ * gm2/pim/run/pass/varparam3.mod: New file.
+ * gm2/pim/run/pass/varparm.mod: New file.
+ * gm2/pim/run/pass/wr.mod: New file.
+ * gm2/pimcoroutines/pass/imports.mod: New file.
+ * gm2/pimcoroutines/pass/imports2.mod: New file.
+ * gm2/pimcoroutines/pass/pimcoroutines-pass.exp: New file.
+ * gm2/pimcoroutines/run/pass/pimcoroutines-run-pass.exp: New file.
+ * gm2/pimcoroutines/run/pass/testtime.mod: New file.
+ * gm2/pimlib/base/run/pass/FIO.mod: New file.
+ * gm2/pimlib/base/run/pass/StrLib.mod: New file.
+ * gm2/pimlib/base/run/pass/pimlib-base-run-pass.exp: New file.
+ * gm2/pimlib/base/run/pass/testconvert.mod: New file.
+ * gm2/pimlib/coroutines/pass/pimlib-coroutines-pass.exp: New file.
+ * gm2/pimlib/coroutines/pass/priority.mod: New file.
+ * gm2/pimlib/coroutines/pass/priority2.mod: New file.
+ * gm2/pimlib/coroutines/pass/priority3.def: New file.
+ * gm2/pimlib/coroutines/pass/priority3.mod: New file.
+ * gm2/pimlib/logitech/pass/LogitechLong.mod: New file.
+ * gm2/pimlib/logitech/pass/hello.mod: New file.
+ * gm2/pimlib/logitech/pass/pimlib-logitech-pass.exp: New file.
+ * gm2/pimlib/logitech/run/pass/bbits.mod: New file.
+ * gm2/pimlib/logitech/run/pass/hello.mod: New file.
+ * gm2/pimlib/logitech/run/pass/helloinout.mod: New file.
+ * gm2/pimlib/logitech/run/pass/intb.mod: New file.
+ * gm2/pimlib/logitech/run/pass/pimlib-logitech-run-pass.exp: New file.
+ * gm2/pimlib/logitech/run/pass/realconv.mod: New file.
+ * gm2/pimlib/logitech/run/pass/realinput.mod: New file.
+ * gm2/pimlib/logitech/run/pass/realinput2.mod: New file.
+ * gm2/pimlib/logitech/run/pass/realinput3.mod: New file.
+ * gm2/pimlib/logitech/run/pass/rename.mod: New file.
+ * gm2/pimlib/logitech/run/pass/timedate.mod: New file.
+ * gm2/pimlib/logitech/run/pass/writeoct.mod: New file.
+ * gm2/pimlib/pass/pimlib-pass.exp: New file.
+ * gm2/pimlib/run/pass/format.mod: New file.
+ * gm2/pimlib/run/pass/limittests.c: New file.
+ * gm2/pimlib/run/pass/limittests.mod: New file.
+ * gm2/pimlib/run/pass/longreal.mod: New file.
+ * gm2/pimlib/run/pass/pimlib-run-pass.exp: New file.
+ * gm2/pimlib/run/pass/test.c: New file.
+ * gm2/pimlib/run/pass/testreal.mod: New file.
+ * gm2/pimlib/run/pass/testreal2.mod: New file.
+ * gm2/pimlib/run/pass/testreal4.mod: New file.
+ * gm2/projects/README: New file.
+ * gm2/projects/iso/run/pass/halma/halma.mod: New file.
* gm2/projects/iso/run/pass/halma/projects-iso-run-pass-halma.exp:
- (New file).
- * gm2/projects/iso/run/pass/hello/hello.mod: (New file).
+ New file.
+ * gm2/projects/iso/run/pass/hello/hello.mod: New file.
* gm2/projects/iso/run/pass/hello/projects-iso-run-pass-hello.exp:
- (New file).
- * gm2/projects/log/run/pass/hello/hello.mod: (New file).
+ New file.
+ * gm2/projects/log/run/pass/hello/hello.mod: New file.
* gm2/projects/log/run/pass/hello/projects-log-run-pass-hello.exp:
- (New file).
- * gm2/projects/pim/run/pass/hello/hello.mod: (New file).
+ New file.
+ * gm2/projects/pim/run/pass/hello/hello.mod: New file.
* gm2/projects/pim/run/pass/hello/projects-pim-run-pass-hello.exp:
- (New file).
- * gm2/projects/pim/run/pass/random/AdvMap.def: (New file).
- * gm2/projects/pim/run/pass/random/AdvMap.mod: (New file).
- * gm2/projects/pim/run/pass/random/BoxMap.def: (New file).
- * gm2/projects/pim/run/pass/random/BoxMap.mod: (New file).
- * gm2/projects/pim/run/pass/random/Chance.def: (New file).
- * gm2/projects/pim/run/pass/random/Chance.mod: (New file).
- * gm2/projects/pim/run/pass/random/Geometry.def: (New file).
- * gm2/projects/pim/run/pass/random/Geometry.mod: (New file).
- * gm2/projects/pim/run/pass/random/MakeBoxes.def: (New file).
- * gm2/projects/pim/run/pass/random/MakeBoxes.mod: (New file).
- * gm2/projects/pim/run/pass/random/Map.mod: (New file).
- * gm2/projects/pim/run/pass/random/MapOptions.def: (New file).
- * gm2/projects/pim/run/pass/random/MapOptions.mod: (New file).
- * gm2/projects/pim/run/pass/random/Options.def: (New file).
- * gm2/projects/pim/run/pass/random/Options.mod: (New file).
- * gm2/projects/pim/run/pass/random/RoomMap.def: (New file).
- * gm2/projects/pim/run/pass/random/RoomMap.mod: (New file).
- * gm2/projects/pim/run/pass/random/StoreCoords.def: (New file).
- * gm2/projects/pim/run/pass/random/StoreCoords.mod: (New file).
- * gm2/projects/pim/run/pass/random/WriteMap.def: (New file).
- * gm2/projects/pim/run/pass/random/WriteMap.mod: (New file).
+ New file.
+ * gm2/projects/pim/run/pass/random/AdvMap.def: New file.
+ * gm2/projects/pim/run/pass/random/AdvMap.mod: New file.
+ * gm2/projects/pim/run/pass/random/BoxMap.def: New file.
+ * gm2/projects/pim/run/pass/random/BoxMap.mod: New file.
+ * gm2/projects/pim/run/pass/random/Chance.def: New file.
+ * gm2/projects/pim/run/pass/random/Chance.mod: New file.
+ * gm2/projects/pim/run/pass/random/Geometry.def: New file.
+ * gm2/projects/pim/run/pass/random/Geometry.mod: New file.
+ * gm2/projects/pim/run/pass/random/MakeBoxes.def: New file.
+ * gm2/projects/pim/run/pass/random/MakeBoxes.mod: New file.
+ * gm2/projects/pim/run/pass/random/Map.mod: New file.
+ * gm2/projects/pim/run/pass/random/MapOptions.def: New file.
+ * gm2/projects/pim/run/pass/random/MapOptions.mod: New file.
+ * gm2/projects/pim/run/pass/random/Options.def: New file.
+ * gm2/projects/pim/run/pass/random/Options.mod: New file.
+ * gm2/projects/pim/run/pass/random/RoomMap.def: New file.
+ * gm2/projects/pim/run/pass/random/RoomMap.mod: New file.
+ * gm2/projects/pim/run/pass/random/StoreCoords.def: New file.
+ * gm2/projects/pim/run/pass/random/StoreCoords.mod: New file.
+ * gm2/projects/pim/run/pass/random/WriteMap.def: New file.
+ * gm2/projects/pim/run/pass/random/WriteMap.mod: New file.
* gm2/projects/pim/run/pass/random/projects-pim-run-pass-random.exp:
- (New file).
- * gm2/quads/run/pass/becomes.mod: (New file).
- * gm2/quads/run/pass/param.mod: (New file).
- * gm2/quads/run/pass/quads-run-pass.exp: (New file).
- * gm2/quads/run/pass/return.mod: (New file).
- * gm2/recover/pass/cannot-solve/begin.mod: (New file).
- * gm2/recover/pass/cannot-solve/statementsemi.mod: (New file).
- * gm2/recover/pass/end2.mod: (New file).
- * gm2/recover/pass/of.mod: (New file).
- * gm2/recover/pass/procsemi.mod: (New file).
- * gm2/recover/pass/recover-pass.exp: (New file).
- * gm2/recover/pass/rrbra.mod: (New file).
- * gm2/recover/pass/rsbra.mod: (New file).
- * gm2/recover/pass/semi.mod: (New file).
- * gm2/run/fail/list.mod: (New file).
- * gm2/run/fail/options: (New file).
- * gm2/run/fail/testdec.mod: (New file).
- * gm2/run/fail/testfunc.mod: (New file).
- * gm2/run/pass/cycles.mod: (New file).
- * gm2/run/pass/line.mod: (New file).
- * gm2/run/pass/nestedproc.mod: (New file).
- * gm2/run/pass/nestedproc2.mod: (New file).
- * gm2/run/pass/nestedproc3.mod: (New file).
- * gm2/run/pass/nestedproc5.mod: (New file).
- * gm2/run/pass/nestedset.mod: (New file).
- * gm2/run/pass/nothing.mod: (New file).
- * gm2/run/pass/options: (New file).
- * gm2/run/pass/prog31ex.mod: (New file).
- * gm2/run/pass/rts.mod: (New file).
- * gm2/run/pass/stripped.mod: (New file).
- * gm2/run/pass/testavail.mod: (New file).
- * gm2/run/pass/testfpufunc.mod: (New file).
- * gm2/run/pass/testfpufunc2.mod: (New file).
- * gm2/run/pass/testnextproc.mod: (New file).
- * gm2/run/pass/testparam.mod: (New file).
- * gm2/run/pass/testsize.mod: (New file).
- * gm2/run/pass/testsize2.mod: (New file).
- * gm2/run/pass/testsize3.mod: (New file).
- * gm2/run/pass/wr.mod: (New file).
- * gm2/scripts/addit: (New file).
- * gm2/scripts/comp: (New file).
- * gm2/scripts/compile: (New file).
- * gm2/scripts/compileiso: (New file).
- * gm2/scripts/link: (New file).
- * gm2/scripts/regression: (New file).
- * gm2/scripts/subit: (New file).
- * gm2/sets/run/pass/multisetarith.mod: (New file).
- * gm2/sets/run/pass/multisetarith2.mod: (New file).
- * gm2/sets/run/pass/multisetarith3.mod: (New file).
- * gm2/sets/run/pass/multisetarith4.mod: (New file).
- * gm2/sets/run/pass/multisetrotate.mod: (New file).
- * gm2/sets/run/pass/multisetrotate2.mod: (New file).
- * gm2/sets/run/pass/multisetrotate3.mod: (New file).
- * gm2/sets/run/pass/multisetrotate4.mod: (New file).
- * gm2/sets/run/pass/multisetshift.mod: (New file).
- * gm2/sets/run/pass/multisetshift2.mod: (New file).
- * gm2/sets/run/pass/multisimple.mod: (New file).
- * gm2/sets/run/pass/multisimple2.mod: (New file).
- * gm2/sets/run/pass/multisimple3.mod: (New file).
- * gm2/sets/run/pass/multisimple4.mod: (New file).
- * gm2/sets/run/pass/multisimple5.mod: (New file).
- * gm2/sets/run/pass/multisimple6.mod: (New file).
- * gm2/sets/run/pass/multisimple7.mod: (New file).
- * gm2/sets/run/pass/setarith.mod: (New file).
- * gm2/sets/run/pass/setarith2.mod: (New file).
- * gm2/sets/run/pass/setarith3.mod: (New file).
- * gm2/sets/run/pass/setarith4.mod: (New file).
- * gm2/sets/run/pass/setrotate.mod: (New file).
- * gm2/sets/run/pass/setrotate2.mod: (New file).
- * gm2/sets/run/pass/setrotate3.mod: (New file).
- * gm2/sets/run/pass/setrotate4.mod: (New file).
- * gm2/sets/run/pass/sets-run-pass.exp: (New file).
- * gm2/sets/run/pass/setshift.mod: (New file).
- * gm2/sets/run/pass/setshift2.mod: (New file).
- * gm2/sets/run/pass/simple.mod: (New file).
- * gm2/sets/run/pass/simple2.mod: (New file).
- * gm2/sets/run/pass/simple3.mod: (New file).
- * gm2/sets/run/pass/simple4.mod: (New file).
- * gm2/sets/run/pass/simple5.mod: (New file).
- * gm2/sets/run/pass/simple6.mod: (New file).
- * gm2/sets/run/pass/simple7.mod: (New file).
- * gm2/switches/auto-init/fail/switches-auto-init-fail.exp: (New file).
- * gm2/switches/auto-init/fail/uninitptr.mod: (New file).
- * gm2/switches/auto-init/fail/uninitptr2.mod: (New file).
- * gm2/switches/check-all/pim2/fail/overflow.mod: (New file).
- * gm2/switches/check-all/pim2/fail/overflow2.mod: (New file).
- * gm2/switches/check-all/pim2/fail/overflowdiv1.mod: (New file).
+ New file.
+ * gm2/quads/run/pass/becomes.mod: New file.
+ * gm2/quads/run/pass/param.mod: New file.
+ * gm2/quads/run/pass/quads-run-pass.exp: New file.
+ * gm2/quads/run/pass/return.mod: New file.
+ * gm2/recover/pass/cannot-solve/begin.mod: New file.
+ * gm2/recover/pass/cannot-solve/statementsemi.mod: New file.
+ * gm2/recover/pass/end2.mod: New file.
+ * gm2/recover/pass/of.mod: New file.
+ * gm2/recover/pass/procsemi.mod: New file.
+ * gm2/recover/pass/recover-pass.exp: New file.
+ * gm2/recover/pass/rrbra.mod: New file.
+ * gm2/recover/pass/rsbra.mod: New file.
+ * gm2/recover/pass/semi.mod: New file.
+ * gm2/run/fail/list.mod: New file.
+ * gm2/run/fail/options: New file.
+ * gm2/run/fail/testdec.mod: New file.
+ * gm2/run/fail/testfunc.mod: New file.
+ * gm2/run/pass/cycles.mod: New file.
+ * gm2/run/pass/line.mod: New file.
+ * gm2/run/pass/nestedproc.mod: New file.
+ * gm2/run/pass/nestedproc2.mod: New file.
+ * gm2/run/pass/nestedproc3.mod: New file.
+ * gm2/run/pass/nestedproc5.mod: New file.
+ * gm2/run/pass/nestedset.mod: New file.
+ * gm2/run/pass/nothing.mod: New file.
+ * gm2/run/pass/options: New file.
+ * gm2/run/pass/prog31ex.mod: New file.
+ * gm2/run/pass/rts.mod: New file.
+ * gm2/run/pass/stripped.mod: New file.
+ * gm2/run/pass/testavail.mod: New file.
+ * gm2/run/pass/testfpufunc.mod: New file.
+ * gm2/run/pass/testfpufunc2.mod: New file.
+ * gm2/run/pass/testnextproc.mod: New file.
+ * gm2/run/pass/testparam.mod: New file.
+ * gm2/run/pass/testsize.mod: New file.
+ * gm2/run/pass/testsize2.mod: New file.
+ * gm2/run/pass/testsize3.mod: New file.
+ * gm2/run/pass/wr.mod: New file.
+ * gm2/scripts/addit: New file.
+ * gm2/scripts/comp: New file.
+ * gm2/scripts/compile: New file.
+ * gm2/scripts/compileiso: New file.
+ * gm2/scripts/link: New file.
+ * gm2/scripts/regression: New file.
+ * gm2/scripts/subit: New file.
+ * gm2/sets/run/pass/multisetarith.mod: New file.
+ * gm2/sets/run/pass/multisetarith2.mod: New file.
+ * gm2/sets/run/pass/multisetarith3.mod: New file.
+ * gm2/sets/run/pass/multisetarith4.mod: New file.
+ * gm2/sets/run/pass/multisetrotate.mod: New file.
+ * gm2/sets/run/pass/multisetrotate2.mod: New file.
+ * gm2/sets/run/pass/multisetrotate3.mod: New file.
+ * gm2/sets/run/pass/multisetrotate4.mod: New file.
+ * gm2/sets/run/pass/multisetshift.mod: New file.
+ * gm2/sets/run/pass/multisetshift2.mod: New file.
+ * gm2/sets/run/pass/multisimple.mod: New file.
+ * gm2/sets/run/pass/multisimple2.mod: New file.
+ * gm2/sets/run/pass/multisimple3.mod: New file.
+ * gm2/sets/run/pass/multisimple4.mod: New file.
+ * gm2/sets/run/pass/multisimple5.mod: New file.
+ * gm2/sets/run/pass/multisimple6.mod: New file.
+ * gm2/sets/run/pass/multisimple7.mod: New file.
+ * gm2/sets/run/pass/setarith.mod: New file.
+ * gm2/sets/run/pass/setarith2.mod: New file.
+ * gm2/sets/run/pass/setarith3.mod: New file.
+ * gm2/sets/run/pass/setarith4.mod: New file.
+ * gm2/sets/run/pass/setrotate.mod: New file.
+ * gm2/sets/run/pass/setrotate2.mod: New file.
+ * gm2/sets/run/pass/setrotate3.mod: New file.
+ * gm2/sets/run/pass/setrotate4.mod: New file.
+ * gm2/sets/run/pass/sets-run-pass.exp: New file.
+ * gm2/sets/run/pass/setshift.mod: New file.
+ * gm2/sets/run/pass/setshift2.mod: New file.
+ * gm2/sets/run/pass/simple.mod: New file.
+ * gm2/sets/run/pass/simple2.mod: New file.
+ * gm2/sets/run/pass/simple3.mod: New file.
+ * gm2/sets/run/pass/simple4.mod: New file.
+ * gm2/sets/run/pass/simple5.mod: New file.
+ * gm2/sets/run/pass/simple6.mod: New file.
+ * gm2/sets/run/pass/simple7.mod: New file.
+ * gm2/switches/auto-init/fail/switches-auto-init-fail.exp: New file.
+ * gm2/switches/auto-init/fail/uninitptr.mod: New file.
+ * gm2/switches/auto-init/fail/uninitptr2.mod: New file.
+ * gm2/switches/check-all/pim2/fail/overflow.mod: New file.
+ * gm2/switches/check-all/pim2/fail/overflow2.mod: New file.
+ * gm2/switches/check-all/pim2/fail/overflowdiv1.mod: New file.
* gm2/switches/check-all/pim2/fail/switches-check-all-pim2-fail.exp:
- (New file).
- * gm2/switches/check-all/plugin/iso/fail/divceilposneg.mod: (New file).
- * gm2/switches/check-all/plugin/iso/fail/divceilposneg2.mod: (New file).
- * gm2/switches/check-all/plugin/iso/fail/divceilposnegcall.mod: (New file).
- * gm2/switches/check-all/plugin/iso/fail/divceilposnegcall2.mod: (New file).
- * gm2/switches/check-all/plugin/iso/fail/divfloornegpos.mod: (New file).
- * gm2/switches/check-all/plugin/iso/fail/divfloorpospos.mod: (New file).
- * gm2/switches/check-all/plugin/iso/fail/lowdiv.mod: (New file).
+ New file.
+ * gm2/switches/check-all/plugin/iso/fail/divceilposneg.mod: New file.
+ * gm2/switches/check-all/plugin/iso/fail/divceilposneg2.mod: New file.
+ * gm2/switches/check-all/plugin/iso/fail/divceilposnegcall.mod: New
+ file.
+ * gm2/switches/check-all/plugin/iso/fail/divceilposnegcall2.mod: New
+ file.
+ * gm2/switches/check-all/plugin/iso/fail/divfloornegpos.mod: New file.
+ * gm2/switches/check-all/plugin/iso/fail/divfloorpospos.mod: New file.
+ * gm2/switches/check-all/plugin/iso/fail/lowdiv.mod: New file.
* gm2/switches/check-all/plugin/iso/fail/switches-check-all-plugin-iso-fail.exp:
- (New file).
- * gm2/switches/check-all/plugin/pim2/fail/divceil.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/highdiv.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/modulus.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin1.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin3.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin4.def: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin4.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin5.def: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin5.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin6.def: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin6.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin7.def: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin7.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin8.def: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin8.mod: (New file).
- * gm2/switches/check-all/plugin/pim2/fail/plugin9.mod: (New file).
+ New file.
+ * gm2/switches/check-all/plugin/pim2/fail/divceil.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/highdiv.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/modulus.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin1.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin3.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin4.def: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin4.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin5.def: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin5.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin6.def: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin6.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin7.def: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin7.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin8.def: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin8.mod: New file.
+ * gm2/switches/check-all/plugin/pim2/fail/plugin9.mod: New file.
* gm2/switches/check-all/plugin/pim2/fail/switches-check-all-plugin-pim2-fail.exp:
- (New file).
- * gm2/switches/check-all/run/fail/cardrange.mod: (New file).
- * gm2/switches/check-all/run/fail/cardrange2.mod: (New file).
- * gm2/switches/check-all/run/fail/cardrange3.mod: (New file).
- * gm2/switches/check-all/run/fail/intrange.mod: (New file).
- * gm2/switches/check-all/run/fail/intrange2.mod: (New file).
- * gm2/switches/check-all/run/fail/intrange3.mod: (New file).
- * gm2/switches/check-all/run/fail/intrange4.mod: (New file).
- * gm2/switches/check-all/run/fail/intrange5.mod: (New file).
- * gm2/switches/check-all/run/fail/multint1.mod: (New file).
- * gm2/switches/check-all/run/fail/multint2.mod: (New file).
- * gm2/switches/check-all/run/fail/multint3.mod: (New file).
- * gm2/switches/check-all/run/fail/rangesupport.def: (New file).
- * gm2/switches/check-all/run/fail/rangesupport.mod: (New file).
- * gm2/switches/check-all/run/fail/realrange.mod: (New file).
- * gm2/switches/check-all/run/fail/subrange.mod: (New file).
+ New file.
+ * gm2/switches/check-all/run/fail/cardrange.mod: New file.
+ * gm2/switches/check-all/run/fail/cardrange2.mod: New file.
+ * gm2/switches/check-all/run/fail/cardrange3.mod: New file.
+ * gm2/switches/check-all/run/fail/intrange.mod: New file.
+ * gm2/switches/check-all/run/fail/intrange2.mod: New file.
+ * gm2/switches/check-all/run/fail/intrange3.mod: New file.
+ * gm2/switches/check-all/run/fail/intrange4.mod: New file.
+ * gm2/switches/check-all/run/fail/intrange5.mod: New file.
+ * gm2/switches/check-all/run/fail/multint1.mod: New file.
+ * gm2/switches/check-all/run/fail/multint2.mod: New file.
+ * gm2/switches/check-all/run/fail/multint3.mod: New file.
+ * gm2/switches/check-all/run/fail/rangesupport.def: New file.
+ * gm2/switches/check-all/run/fail/rangesupport.mod: New file.
+ * gm2/switches/check-all/run/fail/realrange.mod: New file.
+ * gm2/switches/check-all/run/fail/subrange.mod: New file.
* gm2/switches/check-all/run/fail/switches-check-all-run-fail.exp:
- (New file).
- * gm2/switches/check-all/run/fail/tinyrange.mod: (New file).
- * gm2/switches/check-all/run/pass/cardrange.mod: (New file).
- * gm2/switches/check-all/run/pass/forcheck.mod: (New file).
- * gm2/switches/check-all/run/pass/subrange.mod: (New file).
+ New file.
+ * gm2/switches/check-all/run/fail/tinyrange.mod: New file.
+ * gm2/switches/check-all/run/pass/cardrange.mod: New file.
+ * gm2/switches/check-all/run/pass/forcheck.mod: New file.
+ * gm2/switches/check-all/run/pass/subrange.mod: New file.
* gm2/switches/check-all/run/pass/switches-check-all-run-pass.exp:
- (New file).
- * gm2/switches/extended-opaque/fail/a.def: (New file).
- * gm2/switches/extended-opaque/fail/a.mod: (New file).
+ New file.
+ * gm2/switches/extended-opaque/fail/a.def: New file.
+ * gm2/switches/extended-opaque/fail/a.mod: New file.
* gm2/switches/extended-opaque/fail/switches-extended-opaque-fail.exp:
- (New file).
- * gm2/switches/extended-opaque/pass/a.def: (New file).
- * gm2/switches/extended-opaque/pass/a.mod: (New file).
- * gm2/switches/extended-opaque/pass/b.mod: (New file).
+ New file.
+ * gm2/switches/extended-opaque/pass/a.def: New file.
+ * gm2/switches/extended-opaque/pass/a.mod: New file.
+ * gm2/switches/extended-opaque/pass/b.mod: New file.
* gm2/switches/extended-opaque/pass/switches-extended-opaque-pass.exp:
- (New file).
- * gm2/switches/iso/run/pass/modulus.mod: (New file).
- * gm2/switches/iso/run/pass/modulus4.mod: (New file).
- * gm2/switches/iso/run/pass/switches-iso-run-pass.exp: (New file).
- * gm2/switches/makeall/fail/switches-makeall-fail.exp: (New file).
- * gm2/switches/makeall/fail/test.def: (New file).
- * gm2/switches/makeall/fail/test.mod: (New file).
- * gm2/switches/makeall/pass/switches-makeall-pass.exp: (New file).
- * gm2/switches/makeall/pass/test.def: (New file).
- * gm2/switches/makeall/pass/test.mod: (New file).
- * gm2/switches/none/run/pass/gm2-none.exp: (New file).
- * gm2/switches/none/run/pass/hello.mod: (New file).
- * gm2/switches/optimization/run/pass/fact.mod: (New file).
+ New file.
+ * gm2/switches/iso/run/pass/modulus.mod: New file.
+ * gm2/switches/iso/run/pass/modulus4.mod: New file.
+ * gm2/switches/iso/run/pass/switches-iso-run-pass.exp: New file.
+ * gm2/switches/makeall/fail/switches-makeall-fail.exp: New file.
+ * gm2/switches/makeall/fail/test.def: New file.
+ * gm2/switches/makeall/fail/test.mod: New file.
+ * gm2/switches/makeall/pass/switches-makeall-pass.exp: New file.
+ * gm2/switches/makeall/pass/test.def: New file.
+ * gm2/switches/makeall/pass/test.mod: New file.
+ * gm2/switches/none/run/pass/gm2-none.exp: New file.
+ * gm2/switches/none/run/pass/hello.mod: New file.
+ * gm2/switches/optimization/run/pass/fact.mod: New file.
* gm2/switches/optimization/run/pass/switches-optimization-run-pass.exp:
- (New file).
- * gm2/switches/pedantic-params/fail/a.def: (New file).
- * gm2/switches/pedantic-params/fail/a.mod: (New file).
+ New file.
+ * gm2/switches/pedantic-params/fail/a.def: New file.
+ * gm2/switches/pedantic-params/fail/a.mod: New file.
* gm2/switches/pedantic-params/fail/switches-pedantic-params-fail.exp:
- (New file).
- * gm2/switches/pedantic-params/pass/Strings.def: (New file).
- * gm2/switches/pedantic-params/pass/Strings.mod: (New file).
- * gm2/switches/pedantic-params/pass/Strings2.def: (New file).
- * gm2/switches/pedantic-params/pass/Strings2.mod: (New file).
+ New file.
+ * gm2/switches/pedantic-params/pass/Strings.def: New file.
+ * gm2/switches/pedantic-params/pass/Strings.mod: New file.
+ * gm2/switches/pedantic-params/pass/Strings2.def: New file.
+ * gm2/switches/pedantic-params/pass/Strings2.mod: New file.
* gm2/switches/pedantic-params/pass/switches-pedantic-params-pass.exp:
- (New file).
- * gm2/switches/pedantic/fail/onlywrite.mod: (New file).
- * gm2/switches/pedantic/fail/readb4.mod: (New file).
- * gm2/switches/pic/run/pass/func.c: (New file).
- * gm2/switches/pic/run/pass/func.mod: (New file).
- * gm2/switches/pic/run/pass/func2.c: (New file).
- * gm2/switches/pic/run/pass/func2.mod: (New file).
- * gm2/switches/pic/run/pass/switches-pic-run-pass.exp: (New file).
- * gm2/switches/pim2/run/pass/modulus.mod: (New file).
- * gm2/switches/pim2/run/pass/switches-pim2-run-pass.exp: (New file).
- * gm2/switches/pim3/run/pass/modulus.mod: (New file).
- * gm2/switches/pim3/run/pass/switches-pim3-run-pass.exp: (New file).
- * gm2/switches/pim4/run/pass/FpuIOBug.mod: (New file).
- * gm2/switches/pim4/run/pass/InOutBug.mod: (New file).
- * gm2/switches/pim4/run/pass/NumberIOBug.mod: (New file).
- * gm2/switches/pim4/run/pass/modulus.mod: (New file).
- * gm2/switches/pim4/run/pass/modulus2.mod: (New file).
- * gm2/switches/pim4/run/pass/switches-pim4-run-pass.exp: (New file).
- * gm2/switches/whole-program/pass/run/hello.mod: (New file).
- * gm2/switches/whole-program/pass/run/hello2.mod: (New file).
+ New file.
+ * gm2/switches/pedantic/fail/onlywrite.mod: New file.
+ * gm2/switches/pedantic/fail/readb4.mod: New file.
+ * gm2/switches/pic/run/pass/func.c: New file.
+ * gm2/switches/pic/run/pass/func.mod: New file.
+ * gm2/switches/pic/run/pass/func2.c: New file.
+ * gm2/switches/pic/run/pass/func2.mod: New file.
+ * gm2/switches/pic/run/pass/switches-pic-run-pass.exp: New file.
+ * gm2/switches/pim2/run/pass/modulus.mod: New file.
+ * gm2/switches/pim2/run/pass/switches-pim2-run-pass.exp: New file.
+ * gm2/switches/pim3/run/pass/modulus.mod: New file.
+ * gm2/switches/pim3/run/pass/switches-pim3-run-pass.exp: New file.
+ * gm2/switches/pim4/run/pass/FpuIOBug.mod: New file.
+ * gm2/switches/pim4/run/pass/InOutBug.mod: New file.
+ * gm2/switches/pim4/run/pass/NumberIOBug.mod: New file.
+ * gm2/switches/pim4/run/pass/modulus.mod: New file.
+ * gm2/switches/pim4/run/pass/modulus2.mod: New file.
+ * gm2/switches/pim4/run/pass/switches-pim4-run-pass.exp: New file.
+ * gm2/switches/whole-program/pass/run/hello.mod: New file.
+ * gm2/switches/whole-program/pass/run/hello2.mod: New file.
* gm2/switches/whole-program/pass/run/switches-whole-program-pass-run.exp:
- (New file).
- * gm2/switches/whole-program/pass/run/tiny.mod: (New file).
- * gm2/switches/whole-program/pass/run/tiny2.mod: (New file).
- * gm2/types/bitset.mod: (New file).
- * gm2/types/bitset2.mod: (New file).
- * gm2/types/bitset3.mod: (New file).
- * gm2/types/charset.mod: (New file).
- * gm2/types/const.mod: (New file).
- * gm2/types/prog35.mod: (New file).
- * gm2/types/real.mod: (New file).
- * gm2/types/run/pass/d.c: (New file).
- * gm2/types/run/pass/d.def: (New file).
- * gm2/types/run/pass/types-run-pass.exp: (New file).
- * gm2/types/run/pass/varient4.mod: (New file).
- * gm2/types/run/pass/varient5.mod: (New file).
- * gm2/types/string.mod: (New file).
- * gm2/types/type1.mod: (New file).
- * gm2/types/type2.mod: (New file).
- * gm2/types/type3.mod: (New file).
- * gm2/types/type4.mod: (New file).
- * gm2/types/varient.mod: (New file).
- * gm2/types/word.mod: (New file).
- * gm2/ulmlib/pass/ulmlib-pass.exp: (New file).
- * gm2/ulmlib/std/pass/ulmlib-std-pass.exp: (New file).
- * gm2/ulmlib/sys/pass/ulmlib-sys-pass.exp: (New file).
- * gm2/warnings/todo/nestedproc6.mod: (New file).
- * gm2/warnings/todo/options: (New file).
- * gm2/warnings/todo/testfor.mod: (New file).
- * gm2/warnings/todo/testfor2.mod: (New file).
- * gm2/warnings/todo/testfor3.mod: (New file).
- * gm2/warnings/todo/testkeywords.mod: (New file).
- * gm2/warnings/todo/testloop.mod: (New file).
- * gm2/warnings/todo/testscope.mod: (New file).
- * gm2/warnings/todo/testscope2.mod: (New file).
- * gm2/x86-asm/asm.mod: (New file).
- * gm2/x86-asm/asm2.mod: (New file).
+ New file.
+ * gm2/switches/whole-program/pass/run/tiny.mod: New file.
+ * gm2/switches/whole-program/pass/run/tiny2.mod: New file.
+ * gm2/types/bitset.mod: New file.
+ * gm2/types/bitset2.mod: New file.
+ * gm2/types/bitset3.mod: New file.
+ * gm2/types/charset.mod: New file.
+ * gm2/types/const.mod: New file.
+ * gm2/types/prog35.mod: New file.
+ * gm2/types/real.mod: New file.
+ * gm2/types/run/pass/d.c: New file.
+ * gm2/types/run/pass/d.def: New file.
+ * gm2/types/run/pass/types-run-pass.exp: New file.
+ * gm2/types/run/pass/varient4.mod: New file.
+ * gm2/types/run/pass/varient5.mod: New file.
+ * gm2/types/string.mod: New file.
+ * gm2/types/type1.mod: New file.
+ * gm2/types/type2.mod: New file.
+ * gm2/types/type3.mod: New file.
+ * gm2/types/type4.mod: New file.
+ * gm2/types/varient.mod: New file.
+ * gm2/types/word.mod: New file.
+ * gm2/ulmlib/pass/ulmlib-pass.exp: New file.
+ * gm2/ulmlib/std/pass/ulmlib-std-pass.exp: New file.
+ * gm2/ulmlib/sys/pass/ulmlib-sys-pass.exp: New file.
+ * gm2/warnings/todo/nestedproc6.mod: New file.
+ * gm2/warnings/todo/options: New file.
+ * gm2/warnings/todo/testfor.mod: New file.
+ * gm2/warnings/todo/testfor2.mod: New file.
+ * gm2/warnings/todo/testfor3.mod: New file.
+ * gm2/warnings/todo/testkeywords.mod: New file.
+ * gm2/warnings/todo/testloop.mod: New file.
+ * gm2/warnings/todo/testscope.mod: New file.
+ * gm2/warnings/todo/testscope2.mod: New file.
+ * gm2/x86-asm/asm.mod: New file.
+ * gm2/x86-asm/asm2.mod: New file.
2022-12-14 Julian Brown <julian@codesourcery.com>
diff --git a/libgm2/ChangeLog b/libgm2/ChangeLog
index 2251fb53907..310ca65ac44 100644
--- a/libgm2/ChangeLog
+++ b/libgm2/ChangeLog
@@ -1,39 +1,39 @@
2022-12-14 Gaius Mulley <gaiusmod2@gmail.com>
- * Makefile.am: (New file).
- * autogen.sh: (New file).
- * config.h.in: (New file).
- * configure.ac: (New file).
- * libm2cor/KeyBoardLEDs.cc: (New file).
- * libm2cor/Makefile.am: (New file).
- * libm2iso/ChanConsts.h: (New file).
- * libm2iso/ErrnoCategory.cc: (New file).
- * libm2iso/Makefile.am: (New file).
- * libm2iso/RTco.cc: (New file).
- * libm2iso/m2rts.h: (New file).
- * libm2iso/wrapsock.c: (New file).
- * libm2iso/wraptime.c: (New file).
- * libm2log/Break.c: (New file).
- * libm2log/Makefile.am: (New file).
- * libm2min/Makefile.am: (New file).
- * libm2min/libc.c: (New file).
- * libm2pim/Makefile.am: (New file).
- * libm2pim/Selective.cc: (New file).
- * libm2pim/SysExceptions.cc: (New file).
- * libm2pim/UnixArgs.cc: (New file).
- * libm2pim/cgetopt.cc: (New file).
- * libm2pim/dtoa.cc: (New file).
- * libm2pim/errno.cc: (New file).
- * libm2pim/ldtoa.cc: (New file).
- * libm2pim/sckt.cc: (New file).
- * libm2pim/target.c: (New file).
- * libm2pim/termios.cc: (New file).
- * libm2pim/wrapc.c: (New file).
- * configure: (Rebuilt).
- * libm2log/Makefile.in: (Rebuilt).
- * libm2min/Makefile.in: (Rebuilt).
- * libm2cor/Makefile.in: (Rebuilt).
- * libm2pim/Makefile.in: (Rebuilt).
- * libm2iso/Makefile.in: (Rebuilt).
+ * Makefile.am: New file.
+ * autogen.sh: New file.
+ * config.h.in: New file.
+ * configure.ac: New file.
+ * libm2cor/KeyBoardLEDs.cc: New file.
+ * libm2cor/Makefile.am: New file.
+ * libm2iso/ChanConsts.h: New file.
+ * libm2iso/ErrnoCategory.cc: New file.
+ * libm2iso/Makefile.am: New file.
+ * libm2iso/RTco.cc: New file.
+ * libm2iso/m2rts.h: New file.
+ * libm2iso/wrapsock.c: New file.
+ * libm2iso/wraptime.c: New file.
+ * libm2log/Break.c: New file.
+ * libm2log/Makefile.am: New file.
+ * libm2min/Makefile.am: New file.
+ * libm2min/libc.c: New file.
+ * libm2pim/Makefile.am: New file.
+ * libm2pim/Selective.cc: New file.
+ * libm2pim/SysExceptions.cc: New file.
+ * libm2pim/UnixArgs.cc: New file.
+ * libm2pim/cgetopt.cc: New file.
+ * libm2pim/dtoa.cc: New file.
+ * libm2pim/errno.cc: New file.
+ * libm2pim/ldtoa.cc: New file.
+ * libm2pim/sckt.cc: New file.
+ * libm2pim/target.c: New file.
+ * libm2pim/termios.cc: New file.
+ * libm2pim/wrapc.c: New file.
+ * configure: Generated.
+ * libm2log/Makefile.in: Generated.
+ * libm2min/Makefile.in: Generated.
+ * libm2cor/Makefile.in: Generated.
+ * libm2pim/Makefile.in: Generated.
+ * libm2iso/Makefile.in: Generated.
* Makefile.in: New file.
* aclocal.m4: New file.
\ No newline at end of file
Jakub
Jakub Jelinek <jakub@redhat.com> writes:
> On Wed, Dec 14, 2022 at 08:35:07AM +0000, Gaius Mulley via Gcc-patches wrote:
>> thanks - this is the last patch tick. So I'll actually do the merge now :-)
>
> I've committed following patch to fix up formatting of ChangeLog entries.
Many thanks and apologies for messing up the house style.
@@ -1263,6 +1263,10 @@
# Bison?
AC_CHECK_PROGS([BISON], bison, [$MISSING bison])
+# Python3?
+AM_PATH_PYTHON(,, [:])
+AM_CONDITIONAL([HAVE_PYTHON], [test "$PYTHON" != :])
+
# Binutils are not build modules, unlike bison/flex/makeinfo. So we
# check for build == host before using them.
@@ -7651,4 +7655,3 @@
],
[subdirs='$subdirs'])
AC_OUTPUT
-
@@ -0,0 +1,2944 @@
+\input texinfo
+@c -*-texinfo-*-
+@c Copyright (C) 2001-2022 Free Software Foundation, Inc.
+@c This is part of the GM2 manual.
+
+@c User level documentation for GNU Modula-2
+@c
+@c header
+
+@setfilename gm2.info
+@settitle The GNU Modula-2 Compiler
+
+@set version-python 3.5
+
+@include gcc-common.texi
+
+@c Copyright years for this manual.
+@set copyrights-gm2 1999-2022
+
+@copying
+@c man begin COPYRIGHT
+Copyright @copyright{} @value{copyrights-gm2} Free Software Foundation, Inc.
+
+Permission is granted to copy, distribute and/or modify this document
+under the terms of the GNU Free Documentation License, Version 1.3 or
+any later version published by the Free Software Foundation; with no
+Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
+A copy of the license is included in the
+@c man end
+section entitled ``GNU Free Documentation License''.
+@ignore
+@c man begin COPYRIGHT
+man page gfdl(7).
+@c man end
+@end ignore
+@end copying
+
+@ifinfo
+@format
+@dircategory Software development
+@direntry
+* gm2: (gm2). A GCC-based compiler for the Modula-2 language
+@end direntry
+@end format
+
+@insertcopying
+@end ifinfo
+
+@titlepage
+@title The GNU Modula-2 Compiler
+@versionsubtitle
+@author Gaius Mulley
+
+@page
+@vskip 0pt plus 1filll
+Published by the Free Software Foundation @*
+51 Franklin Street, Fifth Floor@*
+Boston, MA 02110-1301, USA@*
+@sp 1
+@insertcopying
+@end titlepage
+@contents
+@page
+
+@c `Top' Node and Master Menu
+
+@node Top, Overview, (dir), (dir)
+@top Introduction
+
+@menu
+* Overview:: What is GNU Modula-2.
+* Using:: Using GNU Modula-2.
+* Licence:: Licence of GNU Modula-2
+* Copying:: GNU Public Licence V3.
+* Contributing:: Contributing to GNU Modula-2
+* Internals:: GNU Modula-2 internals.
+* EBNF:: EBNF of GNU Modula-2
+* Libraries:: PIM and ISO library definitions.
+* Indices:: Document and function indices.
+@end menu
+
+@node Overview, Using, Top, Top
+@chapter Overview of GNU Modula-2
+
+@menu
+* What is GNU Modula-2:: Brief description of GNU Modula-2.
+* Why use GNU Modula-2:: Advantages of GNU Modula-2.
+* News:: Latest news about GNU Modula-2.
+* Development:: How to get source code using git.
+* Obtaining:: Where to get the source code using git.
+* Features:: GNU Modula-2 Features
+@end menu
+
+@node What is GNU Modula-2, Why use GNU Modula-2, , Using
+@section What is GNU Modula-2
+
+GNU Modula-2 is a @uref{http://gcc.gnu.org/frontends.html, front end}
+for the GNU Compiler Collection (@uref{http://gcc.gnu.org/, GCC}).
+The GNU Modula-2 compiler is compliant with the PIM2, PIM3, PIM4 and
+ISO dialects. Also implemented are a complete set of free ISO
+libraries and PIM libraries.
+
+@footnote{The four Modula-2 dialects supported are defined in the following
+references:
+
+PIM2: 'Programming in Modula-2', 2nd Edition, Springer Verlag, 1982,
+1983 by Niklaus Wirth (PIM2).
+
+PIM3: 'Programming in Modula-2', 3rd Corrected Edition, Springer Verlag,
+1985 (PIM3).
+
+PIM4: 'Programming in Modula-2', 4th Edition, Springer Verlag, 1988
+(@uref{http://freepages.modula2.org/report4/modula-2.html, PIM4}).
+
+ISO: the ISO Modula-2 language as defined in 'ISO/IEC Information
+technology - programming languages - part 1: Modula-2 Language,
+ISO/IEC 10514-1 (1996)'
+}
+
+@node Why use GNU Modula-2, Release map, What is GNU Modula-2, Using
+@section Why use GNU Modula-2
+
+There are a number of advantages of using GNU Modula-2 rather than
+translate an existing project into another language.
+
+The first advantage is of maintainability of the original sources
+and the ability to debug the original project source code using a
+combination of gm2 and gdb.
+
+The second advantage is that gcc runs on many processors and
+platforms. gm2 builds and runs on powerpc64le, amd64, i386, aarch64
+to name but a few processors.
+
+The compiler provides semantic analysis and runtime checking (full ISO
+Modula-2 checking is implemented) and there is a plugin which can,
+under certain conditions, detect runtime errors at compile time.
+
+gm2 can produce swig interface headers to allow access from Python and
+other scripting languages. The compiler supports PIM2, PIM3, PIM4 and
+ISO dialects of Modula-2, work is underway to implement M2R10. Many
+of the GCC builtins are available and access to assembly programming
+is achieved using the same syntax as that used by GCC.
+
+@node Release map, News, Why use GNU Modula-2, Using
+@section Release map
+
+GNU Modula-2 is now part of GCC and therefore will adopt the GCC
+release schedule with a git branches matching the various GCC release
+numbers. It is intended that GNU Modula-2 implement more of the GCC
+builtins (vararg access) and GCC features.
+
+There is an intention to implement the M2R10 dialect of Modula-2 and
+any of the language changes. If you wish to see something different
+please email @email{gm2@@nongnu.org} with your ideas.
+
+@node News, Features, Release map, Using
+@section News
+
+@table @code
+
+@item gm2 release numbers
+are now superceded by gcc branch numbers as gm2
+is tracking the gcc release model.
+
+@item accuracy of error messages
+has been improved and offending subexpressions are now highlighted.
+
+@item new type checker
+has been implemented which will check
+all data types, including recursive procedure parameter types.
+
+@item libraries
+the gm2 driver program has been enhanced to allow third party
+libraries to be installed alongside gm2 libraries. For example if the
+user specifies library @code{foo} using @code{-flibs=foo} the driver
+will check the standard GCC install directory for a subdirectory
+@code{foo}.
+
+@item libpth
+has been removed from gm2 and the coroutines are now implemented using
+the gcc portable threading library.
+
+@item libulm
+the Ulm libraries have been removed from the gm2 tree as they were not
+GPL3.
+
+@item Talk given at The GNU Tools Cauldron 2018
+here is a talk on GNU Modula-2 given at
+@url{https://gcc.gnu.org/wiki/cauldron2018,The GNU Tools Cauldron},
+Manchester on 8th September 2018.
+The title is, ``GNU Modula-2 update, catching semantic errors post
+code optimisation and improved debugging''
+[@url{https://splendidisolation.ddns.net/Papers/paper23/talk.pdf,slides}
+and @url{https://www.youtube.com/watch?v=6jf6weRuHjk,video}].
+
+@item gm2 1.8.2
+was released on Aug 30th 2018. gm2-1.8.2 grafts onto gcc-8.2.0
+and contains integer overflow detection for addition, subtraction,
+negation and multiplication. It also detects and traps when
+a floating point nan occurs. This is the first release with the
+new semantic checking plugin which checks whether any exception
+will occur post optimization (see -fsoft-check-all). The compiler
+also works well with the automake tools.
+
+@item gm2 1.2.0
+was released on May 11th 2017. gm2-1.2.0 grafts onto gcc-5.2.0 and
+supports much better line number accuracy in debugging output.
+Source to code relationship can be further improved by the new option
+-fm2-g. -fm2-whole-program also provides whole program optimization.
+@item Talk given at The GNU Tools Cauldron 2016
+here is a talk on GNU Modula-2 given at
+@url{https://gcc.gnu.org/wiki/cauldron2016,The GNU Tools Cauldron},
+Hebden Bridge on 9th September 2016.
+The title is, ``GNU Modula-2 status, whole
+program optimisation and language interoperability''
+[@url{https://splendidisolation.ddns.net/Papers/paper22/talk.pdf,slides}
+and @url{https://www.youtube.com/watch?v=8GMyxwHdr1E,video}].
+@item gm2 1.1.6
+was released on February 22nd 2016. gm2-1.1.6 grafts onto gcc-4.7.4.
+@item gm2 1.1.5
+was released on September 3 2015, passes all regression tests and has
+many bug fixes applied. Arrays and Records can be assigned to and from
+WORD, LOC, BYTE providing sizes permit. Also a small number of fixes
+to the library module MemStream.mod. Fixed a number of bugs shown by
+valgrind.
+@item gm2 1.1.3
+was released on April 15 2015. gm2-1.1.3 passes all regression
+tests on Debian Wheezy (x86_64) and (i686). Also passes all regression tests
+under Debian Jessie (x86_64). It also builds on armv7l Ubuntu Trusty Tahr.
+@item gm2 1.1.1
+was released on January 26 2015. gm2-1.1.1 passes all regression
+tests on Debian Wheezy (x86_64) and (i686). Also passes all regression tests
+under Debian Jessie (x86_64).
+@item gm2 1.1.0
+was released on January 02 2015. gm2-1.1.0 passes all regression
+tests on Debian Wheezy (x86_64) and (i686).
+@item gm2 1.0.9
+Beta was released on September 23 2014, all regressions passed on
+x86_64 Debian Wheezy.
+@item gm2 1.0.4
+was released on September 30 2011. This is a bug fix release.
+@item gm2 1.0
+was released on December 11 2010.
+@end table
+
+@node Development, Obtaining, News, Using
+@section How to get source code using git
+
+GNU Modula-2 is in the process of migrating into the
+@url{https://gcc.gnu.org/git.html, GCC git tree}. The development
+branch is available via git:
+
+@example
+$ git clone git://gcc.gnu.org/git/gcc.git gcc-git-devel-modula2
+$ cd gcc-git-devel-modula2
+$ git checkout devel/modula-2
+$ cd ..
+@end example
+
+@node Obtaining, Features, Development, Using
+
+GNU Modula-2 is in the process of migrating into the
+@url{https://gcc.gnu.org/git.html, GCC git tree}.
+@xref{Development, , ,gm2} section in this GM2 documentation for git
+details and @xref{Downloading the source, , ,gcc} in the GCC
+documentation.
+
+@node Features, Documentation, News, Using
+@section GNU Modula-2 Features
+
+@itemize @bullet
+
+@item
+the compiler currently complies with Programming in Modula-2 Edition
+2, 3, 4 and ISO Modula-2. Users can switch on specific language
+features by using: @samp{-fpim}, @samp{-fpim2}, @samp{-fpim3},
+@samp{-fpim4} or @samp{-fiso}.
+
+@item
+the option @samp{-fswig} will automatically create a swig interface
+file which corresponds to the definition module of the file being
+compiled.
+
+@item
+exception handling is compatible with C++ and swig. Modula-2 code can
+be used with C or C++ code.
+
+@item
+Python can call GNU Modula-2 modules via swig.
+
+@item
+shared libraries can be built.
+
+@item
+fixed sized types are now available from @samp{SYSTEM}.
+
+@item
+support for dynamic @code{ARRAY}s has been added into @samp{gdb}.
+
+@item
+variables can be declared at addresses.
+
+@item
+much better dwarf-2 debugging support and when used with
+@samp{gdb} the programmer can display @code{RECORD}s,
+@code{ARRAY}s, @code{SET}s, subranges and constant char literals
+in Modula-2 syntax.
+
+@item
+supports sets of any ordinal size (memory permitting).
+
+@item
+easy interface to C, and varargs can be passed to C routines.
+
+@item
+many Logitech libraries have been implemented and can be accessed via:
+@samp{-flibs=m2log,m2pim,m2iso}.
+
+@item
+coroutines have been implemented in the PIM style and these are
+accessible from SYSTEM. A number of supporting libraries (executive
+and file descriptor mapping to interrupt vector libraries are
+available through the @samp{-flibs=m2iso,m2pim} switch).
+
+@item
+can be built as a cross compiler (for embedded microprocessors
+such as the AVR and the ARM).
+
+@end itemize
+
+@node Documentation, Regression tests, Features, Using
+@section Documentation
+
+The GNU Modula-2 documentation is available on line
+@url{https://www.nongnu.org/gm2/homepage.html,at the gm2 homepage}
+or in the pdf, info, html file format.
+
+@node Regression tests, Limitations, Documentation, Using
+@section Regression tests for gm2 in the repository
+
+The regression testsuite can be run from the gcc build directory:
+
+@example
+$ cd build-gcc
+$ make check -j 24
+@end example
+
+which runs the complete testsuite for all compilers using 24 parallel
+invocations of the compiler. Individual language testsuites can be
+run by specifying the language, for example the Modula-2 testsuite can
+be run using:
+
+@example
+$ cd build-gcc
+$ make check-m2 -j 24
+@end example
+
+Finally the results of the testsuite can be emailed to the
+@url{https://gcc.gnu.org/lists.html, gcc-testresults} list using the
+script:
+
+@example
+$ @file{gccsrcdir/contrib/test_summary}
+@end example
+
+@node Limitations, Objectives, Regression tests, Using
+@section Limitations
+
+Logitech compatibility library is incomplete. The principle modules
+for this platform exist however for a comprehensive list of completed
+modules please check the documentation
+@url{gm2.html}.
+
+@node Objectives, FAQ, , Using
+@section Objectives
+
+@itemize @bullet
+
+@item
+The intention of GNU Modula-2 is to provide a production Modula-2
+front end to GCC.
+
+@item
+It should support all Niklaus Wirth PIM Dialects [234] and also ISO
+Modula-2 including a reimplementation of all the ISO modules.
+
+@item
+There should be an easy interface to C.
+
+@item
+Exploit the features of GCC.
+
+@item
+Listen to the requests of the users.
+@end itemize
+
+@node FAQ, Community, Objectives, Using
+@section FAQ
+
+@subsection Why use the C++ exception mechanism in GCC, rather than a bespoke Modula-2 mechanism?
+
+The C++ mechanism is tried and tested, it also provides GNU Modula-2
+with the ability to link with C++ modules and via swig it can raise
+Python exceptions.
+
+@node Community, Other languages, FAQ, Using
+@section Community
+
+You can subscribe to the GNU Modula-2 mailing by sending an
+email to:
+@email{gm2-subscribe@@nongnu.org}
+or by
+@url{http://lists.nongnu.org/mailman/listinfo/gm2}.
+The mailing list contents can be viewed
+@url{http://lists.gnu.org/archive/html/gm2}.
+
+@node Other languages, , Community, Using
+@section Other languages for GCC
+
+These exist and can be found on the frontends web page on the
+@uref{http://gcc.gnu.org/frontends.html, gcc web site}.
+
+@node Using, , Community, Top
+@chapter Using GNU Modula-2
+
+@menu
+* Example usage:: Example compile and link.
+* Compiler options:: GNU Modula-2 compiler options.
+* Linking:: Linking options in more detail.
+* Elementary data types:: Data types supported by GNU Modula-2.
+* Standard procedures:: Permanently accessible base procedures.
+* Dialect:: GNU Modula-2 supported dialects.
+* Exceptions:: Exception implementation
+* Semantic checking:: How to detect runtime problems at compile time.
+* Extensions:: GNU Modula-2 language extensions.
+* Type compatibility:: Data type compatibility.
+* Unbounded by reference::Explanation of a language optimization.
+* Building a shared library:: How to build a shared library.
+* Interface for Python:: How to produce swig interface files.
+* Producing a Python module:: How to produce a Python module.
+* Interface to C:: Interfacing GNU Modula-2 to C.
+* Assembly language:: Interface to assembly language.
+* Alignment:: Data type alignment.
+* Packed:: Packing data types.
+* Built-ins:: Accessing GNU Modula-2 Built-ins.
+* The PIM system module:: SYSTEM data types and procedures.
+* The ISO system module:: SYSTEM data types, procedures and run time.
+* Other languages:: Other languages for GCC.
+* What is GNU Modula-2:: Brief description of GNU Modula-2.
+* Why use GNU Modula-2:: Advantages of GNU Modula-2.
+@ifnothtml
+@c omit these nodes if generating gm2 webpage as these are hand written.
+* Release map:: Release map.
+* News:: News.
+* Development:: Development.
+* Obtaining:: How to Obtain GNU Modula-2.
+* Features:: Features of the implementation.
+* Documentation:: Placeholder for how to access the documentation online.
+* Regression tests:: How to run the testsuite.
+* Limitations:: Current limitations.
+* Objectives:: Objectives of the implementation.
+* FAQ:: Frequently asked questions.
+* Community:: How to join the community.
+@end ifnothtml
+@end menu
+
+This document contains the user and design issues relevant to the
+Modula-2 front end to gcc.
+
+@node Example usage, Compiler options, Using, Using
+@section Example compile and link
+
+@ignore
+@c man begin SYNOPSIS gm2
+gm2 [@option{-c}|@option{-S}] [@option{-g}] [@option{-pg}]
+ [@option{-O}@var{level}] [@option{-W}@var{warn}@dots{}]
+ [@option{-I}@var{dir}@dots{}] [@option{-L}@var{dir}@dots{}]
+ [@option{-f}@var{option}@dots{}] [@option{-m}@var{machine-option}@dots{}]
+ [@option{-o} @var{outfile}] [@@@var{file}] @var{infile}@dots{}
+
+Only the most useful options are listed here; see below for the
+remainder.
+@c man end
+@c man begin SEEALSO
+gpl(7), gfdl(7), fsf-funding(7), gcc(1)
+and the Info entries for @file{gm2} and @file{gcc}.
+@c man end
+@end ignore
+
+@c man begin DESCRIPTION gm2
+
+The @command{gm2} command is the GNU compiler for the Modula-2 language and
+supports many of the same options as @command{gcc}. @xref{Option Summary, ,
+Option Summary, gcc, Using the GNU Compiler Collection (GCC)}.
+This manual only documents the options specific to @command{gm2}.
+
+@c man end
+
+This section describes how to compile and link a simple hello world
+program. It provides a few examples of using the different options
+mentioned in @pxref{Compiler options, , ,gm2}. Assuming that you have
+a file called @file{hello.mod} in your current directory which
+contains:
+
+@example
+MODULE hello ;
+
+FROM StrIO IMPORT WriteString, WriteLn ;
+
+BEGIN
+ WriteString('hello world') ; WriteLn
+END hello.
+@end example
+
+You can compile and link it by: @samp{gm2 -g hello.mod}.
+The result will be an @samp{a.out} file created in your directory.
+
+You can split this command into two steps if you prefer. The compile
+step can be achieved by: @samp{gm2 -g -c -fscaffold-main hello.mod}
+and the link via: @samp{gm2 -g hello.o}.
+
+@footnote{To see all the compile actions taken by @samp{gm2} users can also
+add the @samp{-v} flag at the command line, for example:
+
+@samp{gm2 -v -g -I. hello.mod}
+
+This displays the subprocesses initiated by @samp{gm2} which can be useful
+when trouble shooting.}
+
+@node Compiler options, Elementary data types, Example usage, Using
+@section Compiler options
+
+This section describes the compiler options specific to GNU Modula-2
+for generic flags details @xref{Invoking GCC, , ,gcc}.
+
+@c man begin OPTIONS
+
+For any given input file, the file name suffix determines what kind of
+compilation is done. The following kinds of input file names are supported:
+
+@table @gcctabopt
+@item @var{file}.mod
+Modula-2 implementation or program source files. See the
+@samp{-fmod=} option if you wish to compile a project which uses a
+different source file extension.
+@item @var{file}.def
+Modula-2 definition module source files. Definition modules are not
+compiled separately, in GNU Modula-2 definition modules are parsed as
+required when program or implementation modules are compiled. See the
+@samp{-fdef=} option if you wish to compile a project which uses a
+different source file extension.
+@end table
+
+You can specify more than one input file on the @command{gm2} command line,
+
+@table @code
+
+@item -g
+create debugging information so that debuggers such as @file{gdb}
+can inspect and control executables.
+
+@item -I
+used to specify the search path for definition and implementation
+modules. An example is: @code{gm2 -g -c -I.:../../libs foo.mod}.
+If this option is not specified then the default path is added
+which consists of the current directory followed by the appropriate
+language dialect library directories.
+
+@c ordered list of options from here.
+
+@item -fauto-init
+turns on auto initialization of pointers to NIL. Whenever a block is
+created all pointers declarated within this scope will have their
+addresses assigned to NIL.
+
+@item -fbounds
+turns on runtime subrange, array index and indirection via @code{NIL}
+pointer checking.
+
+@item -fcase
+turns on compile time checking to check whether a @code{CASE}
+statement requires an @code{ELSE} clause when on was not specified.
+
+@item -fcpp
+preprocess the source with @samp{cpp -lang-asm -traditional-cpp}
+For further details about these options @xref{Invocation, , ,cpp}.
+If @samp{-fcpp} is supplied then all definition modules and
+implementation modules which are parsed will be preprocessed by
+@samp{cpp}.
+
+@c fcpp-end
+@c Modula-2
+@c passed to the preprocessor if -fcpp is used (internal switch)
+
+@c fcpp-begin
+@c Modula-2
+@c passed to the preprocessor if -fcpp is used (internal switch)
+
+@item -fdebug-builtins
+call a real function, rather than the builtin equivalent. This can
+be useful for debugging parameter values to a builtin function as
+it allows users to single step code into a real function.
+
+@c fd
+@c Modula-2
+@c turn on internal debugging of the compiler (internal switch)
+
+@c fdebug-trace-quad
+@c Modula-2
+@c turn on quadruple tracing (internal switch)
+
+@c fdebug-trace-api
+@c Modula-2
+@c turn on the Modula-2 api tracing (internal switch)
+
+@c fdebug-function-line-numbers
+@c Modula-2
+@c turn on the Modula-2 function line number generation (internal switch)
+
+@item -fdef=
+recognise the specified suffix as a definition module filename.
+The default implmentation and module filename suffix is @file{.def}.
+If this option is used GNU Modula-2 will still fall back to this
+default if a requested definition module is not found.
+
+@item -fdump-system-exports
+display all inbuilt system items.
+This is an internal command line option.
+
+@item -fexceptions
+turn on exception handling code. By default this option is on.
+Exception handling can be disabled by @samp{-fno-exceptions}
+and no references are made to the runtime exception libraries.
+
+@item -fextended-opaque
+allows opaque types to be implemented as any type. This is a GNU
+Modula-2 extension and it requires that the implementation module
+defining the opaque type is available so that it can be resolved when
+compiling the module which imports the opaque type.
+
+@item -ffloatvalue
+turns on runtime checking to check whether a floating point number is
+about to exceed range.
+
+@item -fgen-module-list=@file{filename}
+attempt to find all modules when linking and generate a module list.
+If the @file{filename} is @samp{-} then the contents are not written
+and only used to force the linking of all module ctors.
+This option cannot be used if @samp{-fuse-list=} is enabled.
+
+@item -findex
+generate code to check whether array index values are out of bounds.
+Array index checking can be disabled via @samp{-fno-index}.
+
+@item -fiso
+turn on ISO standard features. Currently this enables the ISO
+@code{SYSTEM} module and alters the default library search path so
+that the ISO libraries are searched before the PIM libraries. It also
+effects the behaviour of @code{DIV} and @code{MOD} operators.
+@xref{Dialect, , ,gm2}.
+
+@item -flibs=
+modifies the default library search path. The libraries supplied are:
+m2pim, m2iso, m2min, m2log and m2cor. These map onto the
+Programming in Modula-2 base libraries, ISO standard libraries, minimal
+library support, Logitech compatible library and Programming in
+Modula-2 with coroutines.
+Multiple libraries can be specified and are comma separated with precidence
+going to the first in the list. It is not necessary to use -flibs=m2pim or
+-flibs=m2iso if you also specify -fpim, -fpim2, -fpim3, -fpim4 or
+-fiso. Unless you are using -flibs=m2min you should include m2pim as
+the they provide the base modules which all other dialects utilize.
+The option @samp{-fno-libs=-} disables the @samp{gm2} driver from
+modifying the search and library paths.
+
+@c flocation=
+@c Modula-2 Joined
+@c set all location values to a specific value (internal switch)
+
+@item -fm2-g
+improve the debugging experience for new programmers at the expense
+of generating @code{nop} instructions if necessary to ensure single
+stepping precision over all code related keywords. An example
+of this is in termination of a list of nested @code{IF} statements
+where multiple @code{END} keywords are mapped onto a sequence of
+@code{nop} instructions.
+
+@item -fm2-lower-case
+render keywords in error messages using lower case.
+
+@item -fm2-plugin
+insert plugin to identify runtime errors at compiletime (default on).
+
+@item -fm2-statistics
+generates quadruple information: number of quadruples generated,
+number of quadruples remaining after optimisation and number of source
+lines compiled.
+
+@item -fm2-strict-type
+experimental flag to turn on the new strict type checker.
+
+@item -fm2-whole-program
+compile all implementation modules and program module at once. Notice
+that you need to take care if you are compiling different dialect
+modules (particularly with the negative operands to modulus). But
+this option, when coupled together with @code{-O3}, can deliver huge
+performance improvements.
+
+@item -fmod=
+recognise the specified suffix as implementation and module filenames.
+The default implmentation and module filename suffix is @file{.mod}.
+If this option is used GNU Modula-2 will still fall back to this
+default if it needs to read an implmentation module and the specified
+suffixed filename does not exist.
+
+@item -fnil
+generate code to detect accessing data through a @code{NIL} value
+pointer. Dereferencing checking through a @code{NIL} pointer can be
+disabled by @samp{-fno-nil}.
+
+@item -fpim
+turn on PIM standard features. Currently this enables the PIM
+@code{SYSTEM} module and determines which identifiers are pervasive
+(declared in the base module). If no other @samp{-fpim[234]} switch is
+used then division and modulus operators behave as defined in PIM4.
+@xref{Dialect, , ,gm2}.
+
+@item -fpim2
+turn on PIM-2 standard features. Currently this removes @code{SIZE}
+from being a pervasive identifier (declared in the base module). It
+places @code{SIZE} in the @code{SYSTEM} module. It also effects the
+behaviour of @code{DIV} and @code{MOD} operators.
+@xref{Dialect, , ,gm2}.
+
+@item -fpim3
+turn on PIM-3 standard features. Currently this only effects the
+behaviour of @code{DIV} and @code{MOD} operators.
+@xref{Dialect, , ,gm2}.
+
+@item -fpim4
+turn on PIM-4 standard features. Currently this only effects the
+behaviour of @code{DIV} and @code{MOD} operators.
+@xref{Dialect, , ,gm2}.
+
+@item -fpositive-mod-floor-div
+forces the @code{DIV} and @code{MOD} operators to behave as defined by PIM4.
+All modulus results are positive and the results from the division are
+rounded to the floor.
+@xref{Dialect, , ,gm2}.
+
+@item -fpthread
+link against the pthread library. By default this option is on. It
+can be disabled by @samp{-fno-pthread}. GNU Modula-2 uses the GCC
+pthread libraries to implement coroutines (see the SYSTEM
+implementation module).
+
+@c -fq
+@c -Modula-2
+@c -internal compiler debugging information, dump the list of quadruples
+
+@item -frange
+generate code to check the assignment range, return value range
+set range and constructor range. Range checking can be disabled
+via @samp{-fno-range}.
+
+@item -freturn
+generate code to check that functions always exit with a @code{RETURN}
+and do not fall out at the end. Return checking can be disabled
+via @samp{-fno-return}.
+
+@item -fruntime-modules=
+specify, using a comma separated list, the runtime modules and their
+order. These modules will initialized first before any other modules
+in the application dependency. By default the runtime modules list is
+set to @code{Storage,SYSTEM,M2RTS,RTExceptions,IOLink}. Note that
+these modules will only be linked into your executable if they are
+required. So adding a long list of dependant modules will not effect
+the size of the executable it merely states the initialization order
+should they be required.
+
+@item -fscaffold-dynamic
+the option ensures that @samp{gm2} will generate a dynamic scaffold
+infastructure when compiling implementation and program modules.
+By default this option is on. Use @samp{-fno-scaffold-dynamic}
+to turn it off or select @samp{-fno-scaffold-static}.
+
+@item -fscaffold-c
+generate a C source scaffold for the current module being compiled.
+
+@item -fscaffold-c++
+generate a C++ source scaffold for the current module being compiled.
+
+@item -fscaffold-main
+force the generation of the @samp{main} function. This is not
+necessary if the @samp{-c} is omitted.
+
+@item -fscaffold-static
+the option ensures that @samp{gm2} will generate a static scaffold
+within the program module. The static scaffold consists of sequences
+of calls to all dependent module initialization and finalialization
+procedures. The static scaffold is useful for debugging and single
+stepping the initialization blocks of implementation modules.
+
+@item -fshared
+generate a shared library from the module.
+
+@item -fsoft-check-all
+turns on all runtime checks. This is the same as invoking
+GNU Modula-2 using the command options
+@code{-fnil} @code{-frange} @code{-findex}
+@code{-fwholevalue}
+@code{-fwholediv} @code{-fcase} @code{-freturn}.
+
+@item -fsources
+displays the path to the source of each module. This option
+can be used at compile time to check the correct definition module
+is being used.
+
+@item -fswig
+generate a swig interface file.
+
+@item -funbounded-by-reference
+enable optimization of unbounded parameters by attempting to pass non
+@code{VAR} unbounded parameters by reference. This optimization
+avoids the implicit copy inside the callee procedure. GNU Modula-2
+will only allow unbounded parameters to be passed by reference if,
+inside the callee procedure, they are not written to, no address is
+calculated on the array and it is not passed as a @code{VAR}
+parameter. Note that it is possible to write code to break this
+optimization, therefore this option should be used carefully.
+For example it would be possible to take the address of an array, pass
+the address and the array to a procedure, read from the array in
+the procedure and write to the location using the address parameter.
+
+Due to the dangerous nature of this option it is not enabled
+when the @samp{-O} option is specified.
+
+@item -fuse-list=@file{filename}
+if @samp{-fscaffold-static} is enabled then use the file
+@file{filename} for the initialization order of modules. Whereas if
+@samp{-fscaffold-dynamic} is enabled then use this file to force
+linking of all module ctors.
+This option cannot be used if @samp{-fgen-module-list=} is enabled.
+
+@item -fwholediv
+generate code to detect whole number division by zero or modulus by
+zero.
+
+@item -fwholevalue
+generate code to detect whole number overflow and underflow.
+
+@c the following warning options are complete but need to be
+@c regression tested against all other front ends
+@c to ensure the options do not conflict.
+
+@c @item -Wall
+@c turn on all Modula-2 warnings.
+
+@c @item -Wpedantic
+@c forces the compiler to reject nested @code{WITH} statements
+@c referencing the same record type. Does not allow multiple imports of
+@c the same item from a module. It also checks that: procedure variables
+@c are written to before being read; variables are not only written to
+@c but read from; variables are declared and used. If the compiler
+@c encounters a variable being read before written it will terminate with
+@c a message. It will check that @code{FOR} loop indices are not used
+@c outside the end of this loop without being reset.
+
+@c @item -Wpedantic-cast
+@c warns if the ISO system function is used and if the size of
+@c the variable is different from that of the type. This is legal
+@c in ISO Modula-2, however it can be dangerous. Some users may prefer
+@c to use @code{VAL} instead in these situations and use @code{CAST}
+@c exclusively for changes in type on objects which have the same size.
+
+@c @item -Wpedantic-param-names
+@c procedure parameter names are checked in the definition module
+@c against their implementation module counterpart. This is not
+@c necessary in ISO or PIM versions of Modula-2.
+
+@c @item -Wstyle
+@c checks for poor programming style. This option is aimed at new users of
+@c Modula-2 in that it checks for situations which might cause confusion
+@c and thus mistakes. It checks whether variables of the same name are
+@c declared in different scopes and whether variables look like keywords.
+@c Experienced users might find this option too aggressive.
+
+@c @item -Wunused-variable
+@c warns if a variable has been declared and it not used.
+
+@c @item -Wunused-parameter
+@c warns if a parameter has been declared and it not used.
+
+@c @item -Wverbose-unbounded
+@c inform the user which non @code{VAR} unbounded parameters will be
+@c passed by reference. This only produces output if the option
+@c @samp{-funbounded-by-reference} is also supplied on the command line.
+
+@end table
+
+@c man end
+
+@node Elementary data types, Standard procedures, Compiler options, Using
+@section Elementary data types
+
+This section describes the elementary data types supported by GNU
+Modula-2. It also describes the relationship between these data types
+and the equivalent C data types.
+
+The following data types are supported: @code{INTEGER},
+@code{LONGINT}, @code{SHORTINT}, @code{CARDINAL}, @code{LONGCARD},
+@code{SHORTCARD}, @code{BOOLEAN}, @code{REAL}, @code{LONGREAL},
+@code{SHORTREAL}, @code{COMPLEX}, @code{LONGCOMPLEX},
+@code{SHORTCOMPLEX} and @code{CHAR}.
+
+An equivalence table is given below:
+
+@example
+GNU Modula-2 GNU C
+======================================
+INTEGER int
+LONGINT long long int
+SHORTINT short int
+CARDINAL unsigned int
+LONGCARD long long unsigned int
+SHORTCARD short unsigned int
+BOOLEAN int
+REAL double
+LONGREAL long double
+SHORTREAL float
+CHAR char
+SHORTCOMPLEX complex float
+COMPLEX complex double
+LONGCOMPLEX complex long double
+@end example
+
+Note that GNU Modula-2 also supports fixed sized data types which are
+exported from the @code{SYSTEM} module.
+@xref{The PIM system module, , ,gm2}.
+@xref{The ISO system module, , ,gm2}.
+
+@node Standard procedures, Dialect, Elementary data types, Using
+@section Permanently accessible base procedures.
+
+This section describes the procedures and functions which are
+always visible.
+
+@subsection Standard procedures and functions common to PIM and ISO
+
+The following procedures are implemented and conform with Programming
+in Modula-2 and ISO Modula-2: @code{NEW}, @code{DISPOSE}, @code{INC},
+@code{DEC}, @code{INCL}, @code{EXCL} and @code{HALT}. The standard
+functions are: @code{ABS}, @code{CAP}, @code{CHR}, @code{FLOAT},
+@code{HIGH}, @code{LFLOAT}, @code{LTRUNC}, @code{MIN}, @code{MAX},
+@code{ODD}, @code{SFLOAT}, @code{STRUNC} @code{TRUNC} and
+@code{VAL}. All these functions and procedures (except @code{HALT},
+@code{NEW}, @code{DISPOSE} and, under non constant conditions,
+@code{LENGTH}) generate in-line code for efficiency.
+
+@example
+
+(*
+ ABS - returns the positive value of i.
+*)
+
+@findex ABS
+PROCEDURE ABS (i: <any signed type>) : <any signed type> ;
+
+@end example
+
+@example
+
+(*
+ CAP - returns the capital of character ch providing
+ ch lies within the range 'a'..'z'. Otherwise ch
+ is returned unaltered.
+*)
+
+@findex CAP
+PROCEDURE CAP (ch: CHAR) : CHAR ;
+
+@end example
+
+@example
+
+(*
+ CHR - converts a value of a <whole number type> into a CHAR.
+ CHR(x) is shorthand for VAL(CHAR, x).
+*)
+
+@findex CHR
+PROCEDURE CHR (x: <whole number type>) : CHAR ;
+
+@end example
+
+@example
+
+(*
+ DISPOSE - the procedure DISPOSE is replaced by:
+ DEALLOCATE(p, TSIZE(p^)) ;
+ The user is expected to import the procedure DEALLOCATE
+ (normally found in the module, Storage.)
+
+ In: a variable p: of any pointer type which has been
+ initialized by a call to NEW.
+ Out: the area of memory
+ holding p^ is returned to the system.
+ Note that the underlying procedure DEALLOCATE
+ procedure in module Storage will assign p to NIL.
+*)
+
+@findex DISPOSE
+PROCEDURE DISPOSE (VAR p:<any pointer type>) ;
+@end example
+
+@example
+
+(*
+ DEC - can either take one or two parameters. If supplied
+ with one parameter then on the completion of the call to
+ DEC, v will have its predecessor value. If two
+ parameters are supplied then the value v will have its
+ n'th predecessor. For these reasons the value of n
+ must be >=0.
+*)
+
+@findex DEC
+PROCEDURE DEC (VAR v: <any base type>; [n: <any base type> = 1]) ;
+@end example
+
+@example
+
+(*
+ EXCL - excludes bit element e from a set type s.
+*)
+
+@findex EXCL
+PROCEDURE EXCL (VAR s: <any set type>; e: <element of set type s>) ;
+@end example
+
+@example
+
+(*
+ FLOAT - will return a REAL number whose value is the same as o.
+*)
+
+@findex FLOAT
+PROCEDURE FLOAT (o: <any whole number type>) : REAL ;
+@end example
+
+@example
+
+(*
+ FLOATS - will return a SHORTREAL number whose value is the same as o.
+*)
+
+@findex FLOATS
+PROCEDURE FLOATS (o: <any whole number type>) : REAL ;
+@end example
+
+@example
+
+(*
+ FLOATL - will return a LONGREAL number whose value is the same as o.
+*)
+
+@findex FLOATL
+PROCEDURE FLOATL (o: <any whole number type>) : REAL ;
+@end example
+
+@example
+
+(*
+ HALT - will call the HALT procedure inside the module M2RTS.
+ Users can replace M2RTS.
+*)
+
+@findex HALT
+PROCEDURE HALT ;
+@end example
+
+@example
+
+(*
+ HIGH - returns the last accessible index of an parameter declared as
+ ARRAY OF CHAR. Thus
+
+ PROCEDURE foo (a: ARRAY OF CHAR) ;
+ VAR
+ c: CARDINAL ;
+ BEGIN
+ c := HIGH(a)
+ END foo ;
+
+ BEGIN
+ foo('hello')
+ END
+
+ will cause the local variable c to contain the value 4
+*)
+
+@findex HIGH
+PROCEDURE HIGH (a: ARRAY OF CHAR) : CARDINAL ;
+@end example
+
+@example
+
+(*
+ INC - can either take one or two parameters. If supplied
+ with one parameter then on the completion of the call to
+ INC, v will have its successor value. If two
+ parameters are supplied then the value v will have its
+ n'th successor. For these reasons the value of n
+ must be >=0.
+*)
+
+@findex INC
+PROCEDURE INC (VAR v: <any base type>; [n: <any base type> = 1]) ;
+@end example
+
+@example
+
+(*
+ INCL - includes bit element e to a set type s.
+*)
+
+@findex INCL
+PROCEDURE INCL (VAR s: <any set type>; e: <element of set type s>) ;
+@end example
+
+@example
+
+(*
+ LFLOAT - will return a LONGREAL number whose value is the same as o.
+*)
+
+@findex LFLOAT
+PROCEDURE LFLOAT (o: <any whole number type>) : LONGREAL ;
+@end example
+
+@example
+
+(*
+ LTRUNC - will return a LONG<type> number whose value is the
+ same as o. PIM2, PIM3 and ISO Modula-2 will return
+ a LONGCARD whereas PIM4 returns LONGINT.
+*)
+
+@findex LTRUNC
+PROCEDURE LTRUNC (o: <any floating point type>) : LONG<type> ;
+@end example
+
+@example
+
+(*
+ MIN - returns the lowest legal value of an ordinal type.
+*)
+
+@findex MIN
+PROCEDURE MIN (t: <ordinal type>) : <ordinal type> ;
+
+@end example
+
+@example
+
+(*
+ MAX - returns the largest legal value of an ordinal type.
+*)
+
+@findex MAX
+PROCEDURE MAX (t: <ordinal type>) : <ordinal type> ;
+
+@end example
+
+@example
+
+(*
+ NEW - the procedure NEW is replaced by:
+ ALLOCATE(p, TSIZE(p^)) ;
+ The user is expected to import the procedure ALLOCATE
+ (normally found in the module, Storage.)
+
+ In: a variable p: of any pointer type.
+ Out: variable p is set to some allocated memory
+ which is large enough to hold all the contents of p^.
+*)
+
+@findex NEW
+PROCEDURE NEW (VAR p:<any pointer type>) ;
+@end example
+
+@example
+
+(*
+ ODD - returns TRUE if the value is not divisible by 2.
+*)
+
+@findex ODD
+PROCEDURE ODD (x: <whole number type>) : BOOLEAN ;
+
+@end example
+
+@example
+
+(*
+ SFLOAT - will return a SHORTREAL number whose value is the same
+ as o.
+*)
+
+@findex SFLOAT
+PROCEDURE SFLOAT (o: <any whole number type>) : SHORTREAL ;
+@end example
+
+@example
+
+(*
+ STRUNC - will return a SHORT<type> number whose value is the same
+ as o. PIM2, PIM3 and ISO Modula-2 will return a
+ SHORTCARD whereas PIM4 returns SHORTINT.
+*)
+
+@findex STRUNC
+PROCEDURE STRUNC (o: <any floating point type>) : SHORT<type> ;
+@end example
+
+@example
+
+(*
+ TRUNC - will return a <type> number whose value is the same as o.
+ PIM2, PIM3 and ISO Modula-2 will return a CARDINAL
+ whereas PIM4 returns INTEGER.
+*)
+
+@findex TRUNC
+PROCEDURE TRUNC (o: <any floating point type>) : <type> ;
+@end example
+
+@example
+
+(*
+ TRUNCS - will return a <type> number whose value is the same
+ as o. PIM2, PIM3 and ISO Modula-2 will return a
+ SHORTCARD whereas PIM4 returns SHORTINT.
+*)
+
+@findex TRUNCS
+PROCEDURE TRUNCS (o: <any floating point type>) : <type> ;
+@end example
+
+@example
+
+(*
+ TRUNCL - will return a <type> number whose value is the same
+ as o. PIM2, PIM3 and ISO Modula-2 will return a
+ LONGCARD whereas PIM4 returns LONGINT.
+*)
+
+@findex TRUNCL
+PROCEDURE TRUNCL (o: <any floating point type>) : <type> ;
+@end example
+
+@example
+
+(*
+ VAL - converts data i of <any simple data type 2> to
+ <any simple data type 1> and returns this value.
+ No range checking is performed during this conversion.
+*)
+
+@findex VAL
+PROCEDURE VAL (<any simple data type 1>,
+ i: <any simple data type 2>) : <any simple data type 1> ;
+
+@end example
+
+@subsection ISO specific standard procedures and functions
+
+The standard function @code{LENGTH} is specific to ISO Modula-2 and
+is defined as:
+
+@example
+
+(*
+ IM - returns the imaginary component of a complex type.
+ The return value will the same type as the imaginary field
+ within the complex type.
+*)
+
+@findex IM
+PROCEDURE IM (c: <any complex type>) : <floating point type> ;
+@end example
+
+@example
+
+(*
+ INT - returns an INTEGER value which has the same value as v.
+ This function is equivalent to: VAL(INTEGER, v).
+*)
+
+@findex INT
+PROCEDURE INT (v: <any ordinal type>) : INTEGER ;
+@end example
+
+@example
+
+(*
+ LENGTH - returns the length of string a.
+*)
+
+@findex LENGTH
+PROCEDURE LENGTH (a: ARRAY OF CHAR) : CARDINAL ;
+@end example
+
+This function is evaluated at compile time, providing that string
+@code{a} is a constant. If @code{a} cannot be evaluated then a call is
+made to @code{M2RTS.Length}.
+
+@example
+
+(*
+ ODD - returns a BOOLEAN indicating whether the whole number
+ value, v, is odd.
+*)
+
+@findex ODD
+PROCEDURE ODD (v: <any whole number type>) : BOOLEAN ;
+@end example
+
+@example
+
+(*
+ RE - returns the real component of a complex type.
+ The return value will the same type as the real field
+ within the complex type.
+*)
+
+@findex RE
+PROCEDURE RE (c: <any complex type>) : <floating point type> ;
+@end example
+
+@node Dialect, Exceptions, Standard procedures, Using
+@section GNU Modula-2 supported dialects
+
+This section describes the dialects understood by GNU Modula-2.
+It also describes the differences between the dialects and
+any command line switches which determine dialect behaviour.
+
+The GNU Modula-2 compiler is compliant with four dialects of Modula-2.
+The language as defined in 'Programming in Modula-2' 2nd Edition,
+Springer Verlag, 1982, 1983 by Niklaus Wirth (PIM2), 'Programming in
+Modula-2', 3rd Corrected Edition, Springer Verlag, 1985 (PIM3) and
+'Programming in Modula-2', 4th Edition, Springer Verlag, 1988 (PIM4)
+@uref{http://freepages.modula2.org/report4/modula-2.html} and the ISO
+Modula-2 language as defined in ISO/IEC Information technology -
+programming languages - part 1: Modula-2 Language, ISO/IEC 10514-1
+(1996) (ISO).
+
+The command line switches @samp{-fpim2}, @samp{-fpim3}, @samp{-fpim4}
+and @samp{-fiso} can be used to force mutually exclusive
+features. However by default the compiler will not aggressively fail
+if a non mutually exclusive feature is used from another dialect. For
+example it is possible to specify @samp{-fpim2} and still utilise
+@samp{DEFINITION} @samp{MODULES} which have no export list.
+
+Some dialect differences will force a compile time error, for example
+in PIM2 the user must @code{IMPORT} @code{SIZE} from the module
+@code{SYSTEM}, whereas in PIM3 and PIM4 @code{SIZE} is a pervasive
+function. Thus compiling PIM4 source code with the @samp{-fpim2}
+switch will cause a compile time error. This can be fixed quickly
+with an additional @code{IMPORT} or alternatively by compiling with
+the @samp{-fpim4} switch.
+
+However there are some very important differences between the dialects
+which are mutually exclusive and therefore it is vital that users
+choose the dialects with care when these language features are used.
+
+@subsection Integer division, remainder and modulus
+
+The most dangerous set of mutually exclusive features found in the
+four dialects supported by GNU Modula-2 are the @code{INTEGER}
+division, remainder and modulus arithmetic operators. It is important
+to note that the same source code can be compiled to give different
+runtime results depending upon these switches! The reference manual
+for the various dialects of Modula-2 are quite clear about this
+behaviour and sadly there are three distinct definitions.
+
+The table below illustrates the problem when a negative operand is
+used.
+
+@example
+ Pim2/3 Pim4 ISO
+ ----------- ----------- ----------------------
+lval rval DIV MOD DIV MOD DIV MOD / REM
+ 31 10 3 1 3 1 3 1 3 1
+-31 10 -3 -1 -4 9 -4 9 -3 -1
+ 31 -10 -3 1 -3 1 Exception -3 1
+-31 -10 3 -1 4 9 Exception 3 -1
+@end example
+
+See also P24 of PIM2, P27 of PIM3, P29 of PIM4 and P201 of the ISO
+Standard. At present all dialect division, remainder and modulus are
+implemented as above, apart from the exception calling in the ISO
+dialect. Instead of exception handling the results are the same as the
+PIM4 dialect. This is a temporary implementation situation.
+
+@node Exceptions, Semantic checking, Dialect, Using
+@section Exception implementation
+
+This section describes how exceptions are implemented in GNU Modula-2
+and how command line switches affect their behaviour. The option
+@samp{-fsoft-check-all} enables all software checking of nil
+dereferences, division by zero etc. Additional code is produced to
+check these conditions and exception handlers are invoked if the
+conditions prevail.
+
+Without @samp{-fsoft-check-all} these exceptions will be caught by
+hardware (assuming the hardware support exists) and a signal handler
+is invoked. The signal handler will in turn @code{THROW} an exception
+which will be caught by the appropriate Modula-2 handler. However the
+action of throwing an exception from within a signal handler is
+implementation defined (according to the C++ documentation). For
+example on the x86_64 architecture this works whereas on the i686
+architecture it does not. Therefore to ensure portability it is
+recommended to use @samp{-fsoft-check-all}.
+
+@footnote{@samp{-fsoft-check-all} can be effectively combined with
+@samp{-O2} to semantically analyse source code for possible runtime
+errors at compile time.}
+
+@node Semantic checking, Extensions, Exceptions, Using
+@section How to detect runtime problems at compile time
+
+Consider the following program:
+
+@example
+MODULE assignvalue ; (*!m2iso+gm2*)
+
+PROCEDURE bad () : INTEGER ;
+VAR
+ i: INTEGER ;
+BEGIN
+ i := -1 ;
+ RETURN i
+END bad ;
+
+VAR
+ foo: CARDINAL ;
+BEGIN
+ (* the m2rte plugin will detect this as an error, post
+ optimization. *)
+ foo := bad ()
+END assignvalue.
+@end example
+
+here we see that the programmer has overlooked that the return value
+from @samp{bad} will cause an overflow to @samp{foo}. If we compile
+the code with the following options:
+
+@example
+$ gm2 -g -fsoft-check-all -O2 -c assignvalue.mod
+assignvalue.mod:16:0:inevitable that this error will occur at runtime,
+assignment will result in an overflow
+@end example
+
+The gm2 semantic plugin is automatically run and will generate a
+warning message for every exception call which is known as reachable.
+It is highly advised to run the optimizer (@samp{-O2} or @samp{-O3})
+with @samp{-fsoft-check-all} so that the compiler is able to run the
+optimizer and perform variable and flow analysis before the semantic
+plugin is invoked.
+
+@node Extensions, Type compatibility, Semantic checking, Using
+@section GNU Modula-2 language extensions
+
+This section introduces the GNU Modula-2 language extensions.
+The GNU Modula-2 compiler allows abstract data types to be any type,
+not just restricted to a pointer type providing the
+@samp{-fextended-opaque} option is supplied
+@xref{Compiler options, , ,gm2}.
+
+Declarations can be made in any order, whether they are
+types, constants, procedures, nested modules or variables.
+@c (@xref{Passes, , ,}.)
+
+GNU Modula-2 also allows programmers to interface to @code{C} and
+assembly language.
+
+GNU Modula-2 provides support for the special tokens @code{__LINE__},
+@code{__FILE__}, @code{__FUNCTION__} and @code{__DATE__}. Support for
+these tokens will occur even if the @samp{-fcpp} option is not
+supplied. A table of these identifiers and their data type and values
+is given below:
+
+@example
+Scope GNU Modula-2 token Data type and example value
+
+anywhere __LINE__ Constant Literal compatible
+ with CARDINAL, INTEGER and WORD.
+ Example 1234
+
+anywhere __FILE__ Constant string compatible
+ with parameter ARRAY OF CHAR or
+ an ARRAY whose SIZE is >= string
+ length. Example
+ "hello.mod"
+
+procedure __FUNCTION__ Constant string compatible
+ with parameter ARRAY OF CHAR or
+ an ARRAY whose SIZE is >= string
+ length. Example
+ "calc"
+
+module __FUNCTION__ Example
+ "module hello initialization"
+
+anywhere __DATE__ Constant string compatible
+ with parameter ARRAY OF CHAR or
+ an ARRAY whose SIZE is >= string
+ length. Example
+ "Thu Apr 29 10:07:16 BST 2004"
+
+anywhere __COLUMN__ Gives a contant literal number
+ determining the left hand column
+ where the first _ appears in
+ __COLUMN__. The left most column
+ is 1.
+
+@end example
+
+The preprocessor @samp{cpp} can be invoked via the @samp{-fcpp}
+command line option. This in turn invokes @samp{cpp} with the
+following arguments @samp{-traditional -lang-asm}. These options
+preserve comments and all quotations. @samp{gm2} treats a @samp{#}
+character in the first column as a preprocessor directive.
+
+For example here is a module which calls @code{FatalError}
+via the macro @code{ERROR}.
+
+@example
+MODULE cpp ;
+
+FROM SYSTEM IMPORT ADR, SIZE ;
+FROM libc IMPORT exit, printf, malloc ;
+
+PROCEDURE FatalError (a, file: ARRAY OF CHAR;
+ line: CARDINAL;
+ func: ARRAY OF CHAR) ;
+BEGIN
+ printf("%s:%d:fatal error, %s, in %s\n",
+ ADR(file), line, ADR(a), ADR(func)) ;
+ exit(1)
+END FatalError ;
+
+#define ERROR(X) FatalError(X, __FILE__, __LINE__, __FUNCTION__)
+
+VAR
+ pc: POINTER TO CARDINAL;
+BEGIN
+ pc := malloc(SIZE(CARDINAL)) ;
+ IF pc=NIL
+ THEN
+ ERROR('out of memory')
+ END
+END cpp.
+@end example
+
+Another use for the C preprocessor in Modula-2 might be to turn on
+debugging code. For example the library module
+@file{FormatStrings.mod} uses procedures from @file{DynamicStrings.mod}
+and to track down memory leaks it was useful to track the source file
+and line where each string was created. Here is a section of
+@file{FormatStrings.mod} which shows how the debugging code was
+enabled and disabled by adding @code{-fcpp} to the command line.
+
+@example
+FROM DynamicStrings IMPORT String, InitString, InitStringChar, Mark,
+ ConCat, Slice, Index, char,
+ Assign, Length, Mult, Dup, ConCatChar,
+ PushAllocation, PopAllocationExemption,
+ InitStringDB, InitStringCharStarDB,
+ InitStringCharDB, MultDB, DupDB, SliceDB ;
+
+(*
+#define InitString(X) InitStringDB(X, __FILE__, __LINE__)
+#define InitStringCharStar(X) InitStringCharStarDB(X, __FILE__, \
+ __LINE__)
+#define InitStringChar(X) InitStringCharDB(X, __FILE__, __LINE__)
+#define Mult(X,Y) MultDB(X, Y, __FILE__, __LINE__)
+#define Dup(X) DupDB(X, __FILE__, __LINE__)
+#define Slice(X,Y,Z) SliceDB(X, Y, Z, __FILE__, __LINE__)
+*)
+
+PROCEDURE doDSdbEnter ;
+BEGIN
+ PushAllocation
+END doDSdbEnter ;
+
+PROCEDURE doDSdbExit (s: String) ;
+BEGIN
+ s := PopAllocationExemption(TRUE, s)
+END doDSdbExit ;
+
+PROCEDURE DSdbEnter ;
+BEGIN
+END DSdbEnter ;
+
+PROCEDURE DSdbExit (s: String) ;
+BEGIN
+END DSdbExit ;
+
+(*
+#define DBsbEnter doDBsbEnter
+#define DBsbExit doDBsbExit
+*)
+
+PROCEDURE Sprintf1 (s: String; w: ARRAY OF BYTE) : String ;
+BEGIN
+ DSdbEnter ;
+ s := FormatString(HandleEscape(s), w) ;
+ DSdbExit(s) ;
+ RETURN( s )
+END Sprintf1 ;
+@end example
+
+It is worth noting that the overhead of this code once @code{-fcpp} is
+not present and -O2 is used will be zero since the local empty
+procedures @code{DSdbEnter} and @code{DSdbExit} will be thrown away by
+the optimization passes of the GCC backend.
+
+@subsection Optional procedure parameter
+
+GNU Modula-2 allows the last parameter to a procedure or function
+parameter to be optional. For example in the ISO library
+@file{COROUTINES.def} the procedure @code{NEWCOROUTINE} is defined as
+having an optional fifth argument (@code{initProtection}) which, if
+absent, is automatically replaced by @code{NIL}.
+
+@example
+@findex NEWCOROUTINE
+PROCEDURE NEWCOROUTINE (procBody: PROC; workspace: SYSTEM.ADDRESS;
+ size: CARDINAL; VAR cr: COROUTINE;
+ [initProtection: PROTECTION = NIL]);
+
+ (* Creates a new coroutine whose body is given by procBody,
+ and returns the identity of the coroutine in cr.
+ workspace is a pointer to the work space allocated to
+ the coroutine; size specifies the size of this workspace
+ in terms of SYSTEM.LOC.
+
+ The optional fifth argument may contain a single parameter
+ which specifies the initial protection level of the coroutine.
+ *)
+@end example
+
+The implementation module @file{COROUTINES.mod} implements this
+procedure using the following syntax:
+
+@example
+PROCEDURE NEWCOROUTINE (procBody: PROC; workspace: SYSTEM.ADDRESS;
+ size: CARDINAL; VAR cr: COROUTINE;
+ [initProtection: PROTECTION]);
+BEGIN
+
+END NEWCOROUTINE ;
+@end example
+
+Note that it is illegal for this declaration to contain an initialiser
+value for @code{initProtection}. However it is necessary to surround
+this parameter with the brackets @code{[} and @code{]}. This serves to
+remind the programmer that the last parameter was declared as optional
+in the definition module.
+
+Local procedures can be declared to have an optional final parameter
+in which case the initializer is mandatory in the implementation or
+program module.
+
+GNU Modula-2 also provides additional fixed sized data types which
+are all exported from the @code{SYSTEM} module.
+@xref{The PIM system module, , ,gm2}.
+@xref{The ISO system module, , ,gm2}.
+
+@node Type compatibility, Unbounded by reference, Extensions, Using
+@section Type compatibility
+
+This section discuss the issues surrounding assignment, expression
+and parameter compatibility, their effect of the additional
+fixed sized datatypes and also their effect of runtime checking.
+The data types supported by the compiler are:
+
+@example
+GNU Modula-2 scope switches
+=============================================
+INTEGER pervasive
+LONGINT pervasive
+SHORTINT pervasive
+CARDINAL pervasive
+LONGCARD pervasive
+SHORTCARD pervasive
+BOOLEAN pervasive
+BITSET pervasive
+REAL pervasive
+LONGREAL pervasive
+SHORTREAL pervasive
+CHAR pervasive
+SHORTCOMPLEX pervasive
+COMPLEX pervasive
+LONGCOMPLEX pervasive
+
+LOC SYSTEM -fiso
+BYTE SYSTEM
+WORD SYSTEM
+ADDRESS SYSTEM
+
+The following extensions are supported for
+most architectures (please check SYSTEM.def).
+=============================================
+INTEGER8 SYSTEM
+INTEGER16 SYSTEM
+INTEGER32 SYSTEM
+INTEGER64 SYSTEM
+CARDINAL8 SYSTEM
+CARDINAL16 SYSTEM
+CARDINAL32 SYSTEM
+CARDINAL64 SYSTEM
+BITSET8 SYSTEM
+BITSET16 SYSTEM
+BITSET32 SYSTEM
+WORD16 SYSTEM
+WORD32 SYSTEM
+WORD64 SYSTEM
+REAL32 SYSTEM
+REAL64 SYSTEM
+REAL96 SYSTEM
+REAL128 SYSTEM
+COMPLEX32 SYSTEM
+COMPLEX64 SYSTEM
+COMPLEX96 SYSTEM
+COMPLEX128 SYSTEM
+@end example
+
+The Modula-2 language categorises compatibility between entities of
+possibly differing types into three subcomponents: expressions,
+assignments, and parameters. Parameter compatibility is further
+divided into two sections for pass by reference and pass by value
+compatibility.
+
+For more detail on the Modula-2 type compatibility see the Modula-2
+ISO standard BS ISO/IEC 10514-1:1996 page 121-125. For detail on the
+PIM type compatibility see Programming in Modula-2 Edition 4 page 29,
+(Elementary Data Types).
+
+@subsection Expression compatibility
+
+Modula-2 restricts the types of expressions to the same type.
+Expression compatibility is a symmetric relation.
+
+For example two sub expressions of @code{INTEGER} and @code{CARDINAL}
+are not expression compatible
+(@uref{http://freepages.modula2.org/report4/modula-2.html} and ISO
+Modula-2).
+
+In GNU Modula-2 this rule is also extended across all fixed sized data
+types (imported from SYSTEM).
+
+@subsection Assignment compatibility
+
+This section discusses the assignment issues surrounding assignment
+compatibility of elementary types (@code{INTEGER}, @code{CARDINAL},
+@code{REAL} and @code{CHAR} for example). The information here is
+found in more detail in the Modula-2 ISO standard BS ISO/IEC
+10514-1:1996 page 122.
+
+Assignment compatibility exists between the same sized elementary
+types.
+
+Same type family of different sizes are
+also compatible as long as the @code{MAX(}type@code{)} and
+@code{MIN(}type@code{)} is known. So for example this includes the
+@code{INTEGER} family, @code{CARDINAL} family and the @code{REAL}
+family.
+
+The reason for this is that when the assignment is performed
+the compiler will check to see that the expression (on the right of
+the @code{:=}) lies within the range of the designator type (on the
+left hand side of the @code{:=}). Thus these ordinal types can be
+assignment compatible. However it does mean that @code{WORD32} is not
+compatible with @code{WORD16} as @code{WORD32} does not have a minimum
+or maximum value and therefore cannot be checked. The compiler does
+not know which of the two bytes from @code{WORD32} should be copied
+into @code{WORD16} and which two should be ignored. Currently the
+types @code{BITSET8}, @code{BITSET16} and @code{BITSET32} are
+assignment incompatible. However this restriction maybe lifted when
+further runtime checking is achieved.
+
+Modula-2 does allow @code{INTEGER} to be assignment compatible with
+@code{WORD} as they are the same size. Likewise GNU Modula-2 allows
+@code{INTEGER16} to be compatible with @code{WORD16} and the same for
+the other fixed sized types and their sized equivalent in either
+@code{WORD}n, @code{BYTE} or @code{LOC} types. However it prohibits
+assignment between @code{WORD} and @code{WORD32} even though on many
+systems these sizes will be the same. The reasoning behind this rule
+is that the extended fixed sized types are meant to be used by
+applications requiring fixed sized data types and it is more portable
+to forbid the bluring of the boundaries between fixed sized and
+machine dependant sized types.
+
+Intemediate code runtime checking is always generated by the front
+end. However this intemediate code is only translated into actual
+code if the appropriate command line switches are specified. This
+allows the compiler to perform limited range checking at compile time.
+In the future it will allow the extensive GCC optimisations to
+propagate constant values through to the range checks which if they
+are found to exceed the type range will result in a compile time
+error message.
+
+@subsection Parameter compatibility
+
+Parameter compatibility is divided into two areas, pass by value and
+pass by reference (@code{VAR}). In the case of pass by value the
+rules are exactly the same as assignment. However in the second case,
+pass by reference, the actual parameter and formal parameter must be
+the same size and family. Furthermore @code{INTEGER} and
+@code{CARDINAL}s are not treated as compatible in the pass by
+reference case.
+
+The types @code{BYTE}, @code{LOC}, @code{WORD} and @code{WORD}n
+derivitives are assignment and parameter compatible with any data type
+of the same size.
+
+@node Unbounded by reference, Building a shared library, Type compatibility, Using
+@section Unbounded by reference
+
+This section documents a GNU Modula-2 compiler switch which implements
+a language optimisation surrounding the implementation of unbounded
+arrays. In GNU Modula-2 the unbounded array is implemented by
+utilising an internal structure @code{struct @{dataType *address,
+unsigned int high@}}. So given the Modula-2 procedure declaration:
+
+@example
+PROCEDURE foo (VAR a: ARRAY OF dataType) ;
+BEGIN
+ IF a[2]= (* etc *)
+END foo ;
+@end example
+
+it is translated into GCC @code{tree}s, which can be represented
+in their C form thus:
+
+@example
+void foo (struct @{dataType *address, unsigned int high@} a)
+@{
+ if (a.address[2] == /* etc */
+@}
+@end example
+
+Whereas if the procedure @code{foo} was declared as:
+
+@example
+PROCEDURE foo (a: ARRAY OF dataType) ;
+BEGIN
+ IF a[2]= (* etc *)
+END foo ;
+@end example
+
+then it is implemented by being translated into the following
+GCC @code{tree}s, which can be represented in their C form thus:
+
+@example
+void foo (struct @{dataType *address, unsigned int high@} a)
+@{
+ dataType *copyContents = (dataType *)alloca (a.high+1);
+ memcpy(copyContents, a.address, a.high+1);
+ a.address = copyContents;
+
+ if (a.address[2] == /* etc */
+@}
+@end example
+
+This implementation works, but it makes a copy of each non VAR
+unbounded array when a procedure is entered. If the unbounded array
+is not changed during procedure @code{foo} then this implementation
+will be very inefficient. In effect Modula-2 lacks the @code{REF}
+keyword of Ada. Consequently the programmer maybe tempted to
+sacrifice semantic clarity for greater efficiency by declaring the
+parameter using the @code{VAR} keyword in place of @code{REF}.
+
+The @code{-funbounded-by-reference} switch instructs the compiler to
+check and see if the programmer is modifying the content of any
+unbounded array. If it is modified then a copy will be made upon
+entry into the procedure. Conversely if the content is only read and
+never modified then this non @code{VAR} unbounded array is a candidate
+for being passed by reference. It is only a candidate as it is still
+possible that passing this parameter by reference could alter the
+meaning of the source code. For example consider the following case:
+
+@example
+PROCEDURE StrConCat (VAR a: ARRAY OF CHAR; b, c: ARRAY OF CHAR) ;
+BEGIN
+ (* code which performs string a := b + c *)
+END StrConCat ;
+
+PROCEDURE foo ;
+VAR
+ a: ARRAY [0..3] OF CHAR ;
+BEGIN
+ a := 'q' ;
+ StrConCat(a, a, a)
+END foo ;
+@end example
+
+In the code above we see that the same parameter, @code{a}, is being
+passed three times to @code{StrConCat}. Clearly even though parameters
+@code{b} and @code{c} are never modified it would be incorrect to
+implement them as pass by reference. Therefore the compiler checks to
+see if any non @code{VAR} parameter is type compatible with any
+@code{VAR} parameter and if so it generates runtime procedure entry
+checks to determine whether the contents of parameters @code{b} or
+@code{c} matches the contents of @code{a}. If a match is detected
+then a copy is made and the @code{address} in the unbounded
+@code{struct}ure is modified.
+
+The compiler will check the address range of each candidate against
+the address range of any @code{VAR} parameter, providing they are type
+compatible. For example consider:
+
+@example
+PROCEDURE foo (a: ARRAY OF BYTE; VAR f: REAL) ;
+BEGIN
+ f := 3.14 ;
+ IF a[0]=BYTE(0)
+ THEN
+ (* etc *)
+ END
+END foo ;
+
+PROCEDURE bar ;
+BEGIN
+ r := 2.0 ;
+ foo(r, r)
+END bar ;
+@end example
+
+Here we see that although parameter, @code{a}, is a candidate for the
+passing by reference, it would be incorrect to use this
+transformation. Thus the compiler detects that parameters, @code{a}
+and @code{f} are type compatible and will produce runtime checking
+code to test whether the address range of their respective contents
+intersect.
+
+@node Linking, Building a shared library, Unbounded by reference, Using
+
+This section describes the linking related options. There are three
+linking strategies available which are dynamic scaffold, static
+scaffold and user defined. The dynamic scaffold is enabled by default
+and each module will register itself to the runtime @samp{M2RTS} via
+a constructor. The static scaffold mechanism will invoke each modules
+@samp{_init} and @samp{_finish} function in turn via a sequence of
+calls from within @samp{main}. Lastly the user defined strategy
+can be implemented by turning off the dynamic and static options via
+@samp{-fno-scaffold-dynamic} and @samp{-fno-scaffold-static}.
+
+In the simple test below:
+
+@example
+$ gm2 hello.mod
+@end example
+
+the driver will add the options @samp{-fscaffold-dynamic} and
+@samp{-fgen-module-list=-} which generate a list of application
+modules and also creates the @samp{main} function with calls to
+@samp{M2RTS}. It can be useful to add the option @samp{-fsources}
+which displays the source files as they are parsed and summarizes
+whether the source file is required for compilation or linking.
+
+If you wish to split the above command line into a compile and link
+then you could use these steps:
+
+@example
+$ gm2 -c -fscaffold-main hello.mod
+$ gm2 hello.o
+@end example
+
+The @samp{-fscaffold-main} informs the compiler to generate the
+@samp{main} function and scaffold. You can enable the environment
+variable @samp{GCC_M2LINK_RTFLAG} to trace the construction and
+destruction of the application. The values for
+@samp{GCC_M2LINK_RTFLAG} are shown in the table below:
+
+@example
+value | meaning
+=================
+all | turn on all flags below
+module | trace modules as they register themselves
+pre | generate module list prior to dependency resolution
+dep | trace module dependency resolution
+post | generate module list after dependency resolution
+force | generate a module list after dependency and forced
+ | ordering is complete
+@end example
+
+The values can be combined using a comma separated list.
+
+One of the advantages of the dynamic scaffold is that the driver
+behaves in a similar way to the other front end drivers.
+For example consider a small project consisting of 4 definition
+implementation modules (@samp{a.def}, @samp{a.mod}, @samp{b.def},
+@samp{b.mod}, @samp{c.def}, @samp{c.mod}, @samp{d.def}, @samp{d.mod})
+and a program module @samp{program.mod}.
+
+To link this project we could:
+
+@example
+$ gm2 -g -c a.mod
+$ gm2 -g -c b.mod
+$ gm2 -g -c c.mod
+$ gm2 -g -c d.mod
+$ gm2 -g program.mod a.o b.o c.o d.o
+@end example
+
+The module initialization sequence is defined by the ISO standard to
+follow the import graph traversal. The initialization order is the
+order in which the corresponding separate modules finish the
+processing of their import lists.
+
+However, if required, you can override this using
+@samp{-fruntime-modules=a,b,c,d} for example which forces the
+initialization sequence to @samp{a}, @samp{b}, @samp{c} and @samp{d}.
+
+@node Building a shared library, Interface for Python, Unbounded by reference, Using
+@section Building a shared library
+
+This section describes building a tiny shared library implemented in
+Modula-2 and built with @file{libtool}. Suppose a project consists of
+two definition modules and two implementation modules and a program
+module @file{a.def}, @file{a.mod}, @file{b.def}, @file{b.mod} and
+@file{c.mod}. The first step is to compile the modules using position
+independent code. This can be achieved by the following three
+commands:
+
+@example
+libtool --tag=CC --mode=compile gm2 -g -c a.mod -o a.lo
+libtool --tag=CC --mode=compile gm2 -g -c b.mod -o b.lo
+libtool --tag=CC --mode=compile gm2 -g -c c.mod -o c.lo
+@end example
+
+The second step is to generate the shared library initialization and
+finalization routines. We can do this by asking gm2 to generate a
+list of dependant modules and then use this to generate the scaffold.
+We also must compile the scaffold.
+
+@example
+gm2 -c -g -fmakelist c.mod
+gm2 -c -g -fmakeinit -fshared c.mod
+libtool --tag=CC --mode=compile g++ -g -c c_m2.cpp -o c_m2.lo
+@end example
+
+The third step is to link all these @file{.lo} files.
+
+@example
+libtool --mode=link gcc -g c_m2.lo a.lo b.lo c.lo \
+ -L$(prefix)/lib64 \
+ -rpath `pwd` -lgm2 -lstdc++ -lm -o libabc.la
+@end example
+
+At this point the shared library @file{libabc.so} will have been
+created inside the directory @file{.libs}.
+
+@node Interface for Python, Producing a Python module, Building a shared library, Using
+@section How to produce swig interface files
+
+This section describes how Modula-2 implementation modules can be
+called from Python (and other scripting languages such as TCL and
+Perl). GNU Modula-2 can be instructed to create a swig interface when
+it is compiling an implementation module. Swig then uses the
+interface file to generate all the necessary wrapping to that the
+desired scripting language may access the implementation module.
+
+Here is an example of how you might call upon the services of the
+Modula-2 library module @code{NumberIO} from Python3.
+
+The following commands can be used to generate the Python3 module:
+
+@example
+export src=@samp{directory to the sources}
+export prefix=@samp{directory to where the compiler is installed}
+gm2 -I$@{src@} -c -g -fswig $@{src@}/../../../gm2-libs/NumberIO.mod
+gm2 -I$@{src@} -c -g -fmakelist $@{src@}/../../../gm2-libs/NumberIO.mod
+
+gm2 -I$@{src@} -c -g -fmakeinit -fshared \
+ $@{src@}/../../../gm2-libs/NumberIO.mod
+
+swig -c++ -python3 NumberIO.i
+
+libtool --mode=compile g++ -g -c -I$@{src@} NumberIO_m2.cpp \
+ -o NumberIO_m2.lo
+
+libtool --tag=CC --mode=compile gm2 -g -c \
+ -I$@{src@}../../../gm2-libs \
+ $@{src@}/../../../gm2-libs/NumberIO.mod -o NumberIO.lo
+
+libtool --tag=CC --mode=compile g++ -g -c NumberIO_wrap.cxx \
+ -I/usr/include/python3 -o NumberIO_wrap.lo
+
+libtool --mode=link gcc -g NumberIO_m2.lo NumberIO_wrap.lo \
+ -L$@{prefix@}/lib64 \
+ -rpath `pwd` -lgm2 -lstdc++ -lm -o libNumberIO.la
+
+cp .libs/libNumberIO.so _NumberIO.so
+@end example
+
+The first four commands, generate the swig interface file
+@file{NumberIO.i} and python wrap files @file{NumberIO_wrap.cxx} and
+@file{NumberIO.py}. The next three @file{libtool} commnads compile
+the C++ and Modula-2 source code into @file{.lo} objects. The last
+@file{libtool} command links all the @file{.lo} files into a
+@file{.la} file and includes all shared library dependencies.
+
+Now it is possible to run the following Python script
+(called @file{testnum.py}):
+
+@example
+import NumberIO
+
+print ("1234 x 2 =", NumberIO.NumberIO_StrToInt("1234")*2)
+@end example
+
+like this:
+
+@example
+$ python3 testnum.py
+1234 x 2 = 2468
+@end example
+
+@xref{Producing a Python module, , ,gm2} for another example which
+uses the @code{UNQUALIFIED} keyword to reduce the module name clutter
+from the viewport of Python3.
+
+@subsection Limitations of automatic generated of Swig files
+
+This section discusses the limitations of automatically generating
+swig files. From the previous example we see that the module
+@code{NumberIO} had a swig interface file @file{NumberIO.i}
+automatically generated by the compiler. If we consider three of the
+procedure definitions in @file{NumberIO.def} we can see the
+success and limitations of the automatic interface generation.
+
+@example
+PROCEDURE StrToHex (a: ARRAY OF CHAR; VAR x: CARDINAL) ;
+PROCEDURE StrToInt (a: ARRAY OF CHAR; VAR x: INTEGER) ;
+PROCEDURE ReadInt (VAR x: CARDINAL) ;
+@end example
+
+Below are the swig interface prototypes:
+
+@example
+extern void NumberIO_StrToHex (char *_m2_address_a,
+ int _m2_high_a, unsigned int *OUTPUT);
+/* parameters: x is known to be an OUTPUT */
+extern void NumberIO_StrToInt (char *_m2_address_a,
+ int _m2_high_a, int *OUTPUT);
+/* parameters: x is guessed to be an OUTPUT */
+extern void NumberIO_ReadInt (int *x);
+/* parameters: x is unknown */
+@end example
+
+In the case of @code{StrToHex} it can be seen that the compiler
+detects that the last parameter is an output. It explicitly tells
+swig this by using the parameter name @code{OUTPUT} and in the
+following comment it informs the user that it knows this to be an
+output parameter. In the second procedure @code{StrToInt} it marks
+the final parameter as an output, but it tells the user that this is
+only a guess. Finally in @code{ReadInt} it informs the user that
+it does not know whether the parameter, @code{x}, is an output, input
+or an inout parameter.
+
+The compiler decides whether to mark a parameter as either:
+@code{INPUT}, @code{OUTPUT} or @code{INOUT} if it is read before
+written or visa versa in the first basic block. At this point
+it will write output that the parameter is known. If it is not
+read or written in the first basic block then subsequent basic blocks
+are searched and the result is commented as a guess. Finally if
+no read or write occurs then the parameter is commented as unknown.
+However, clearly it is possible to fool this mechanism. Nevertheless
+automatic generation of implementation module into swig interface files
+was thought sufficiently useful despite these limitations.
+
+In conclusion it would be wise to check all parameters in any
+automatically generated swig interface file. Furthermore you can
+force the automatic mechanism to generate correct interface files by
+reading or writing to the @code{VAR} parameter in the first basic
+block of a procedure.
+
+@node Producing a Python module, Interface to C, Interface for Python, Using
+@section How to produce a Python module
+
+This section descibes how it is possible to produce a Python module
+from Modula-2 code. There are a number of advantages to this
+approach, it ensures your code reaches a wider audience, maybe it is
+easier to initialize your application in Python.
+
+The example application here is a pedagogical two dimensional gravity
+next event simulation. The Python module needs to have a clear API
+which should be placed in a single definition module. Furthermore the
+API should only use fundamental pervasive data types and strings.
+Below the API is contained in the file @file{twoDsim.def}:
+
+@example
+DEFINITION MODULE twoDsim ;
+
+EXPORT UNQUALIFIED gravity, box, poly3, poly5, poly6, mass,
+ fix, circle, pivot, velocity, accel, fps,
+ replayRate, simulateFor ;
+(*
+ gravity - turn on gravity at: g m^2
+*)
+
+PROCEDURE gravity (g: REAL) ;
+
+
+(*
+ box - place a box in the world at (x0,y0),(x0+i,y0+j)
+*)
+
+PROCEDURE box (x0, y0, i, j: REAL) : CARDINAL ;
+
+
+(*
+ poly3 - place a triangle in the world at:
+ (x0,y0),(x1,y1),(x2,y2)
+*)
+
+PROCEDURE poly3 (x0, y0, x1, y1, x2, y2: REAL) : CARDINAL ;
+
+
+(*
+ poly5 - place a pentagon in the world at:
+ (x0,y0),(x1,y1),(x2,y2),(x3,y3),(x4,y4)
+*)
+
+PROCEDURE poly5 (x0, y0, x1, y1,
+ x2, y2, x3, y3, x4, y4: REAL) : CARDINAL ;
+
+
+(*
+ poly6 - place a hexagon in the world at:
+ (x0,y0),(x1,y1),(x2,y2),(x3,y3),(x4,y4),(x5,y5)
+*)
+
+PROCEDURE poly6 (x0, y0, x1, y1,
+ x2, y2, x3, y3,
+ x4, y4, x5, y5: REAL) : CARDINAL ;
+
+
+(*
+ mass - specify the mass of an object and return the, id.
+*)
+
+PROCEDURE mass (id: CARDINAL; m: REAL) : CARDINAL ;
+
+
+(*
+ fix - fix the object to the world.
+*)
+
+PROCEDURE fix (id: CARDINAL) : CARDINAL ;
+
+
+(*
+ circle - adds a circle to the world. Center
+ defined by: x0, y0 radius, r.
+*)
+
+PROCEDURE circle (x0, y0, r: REAL) : CARDINAL ;
+
+
+(*
+ velocity - give an object, id, a velocity, vx, vy.
+*)
+
+PROCEDURE velocity (id: CARDINAL; vx, vy: REAL) : CARDINAL ;
+
+
+(*
+ accel - give an object, id, an acceleration, ax, ay.
+*)
+
+PROCEDURE accel (id: CARDINAL; ax, ay: REAL) : CARDINAL ;
+
+
+(*
+ fps - set frames per second.
+*)
+
+PROCEDURE fps (f: REAL) ;
+
+
+(*
+ replayRate - set frames per second during replay.
+*)
+
+PROCEDURE replayRate (f: REAL) ;
+
+
+(*
+ simulateFor - render for, t, seconds.
+*)
+
+PROCEDURE simulateFor (t: REAL) ;
+
+
+END twoDsim.
+@end example
+
+The keyword @code{UNQUALIFIED} can be used to ensure that the
+compiler will provide externally accessible functions
+@code{gravity}, @code{box}, @code{poly3}, @code{poly5}, @code{poly6},
+@code{mass}, @code{fix}, @code{circle}, @code{pivot}, @code{velocity},
+@code{accel}, @code{fps}, @code{replayRate}, @code{simulateFor}
+rather than name mangled alternatives.
+Hence in our Python3 application we could write:
+
+@example
+#!/usr/bin/env python3
+
+from twoDsim import *
+
+b = box (0.0, 0.0, 1.0, 1.0)
+b = fix (b)
+c1 = circle (0.7, 0.7, 0.05)
+c1 = mass (c1, 0.01)
+c2 = circle (0.7, 0.1, 0.05)
+c2 = mass (c2, 0.01)
+c2 = fix (c2)
+gravity (-9.81)
+fps (24.0*4.0)
+replayRate (24.0)
+print ("creating frames")
+try:
+ simulateFor (1.0)
+ print ("all done")
+except:
+ print ("exception raised")
+@end example
+
+which accesses the various functions defined and implemented by the
+module @code{twoDsim}. The Modula-2 source code is compiled via:
+
+@example
+$ gm2 -g -fiso -c -fswig twoDsim.mod
+$ gm2 -g -fiso -c -fmakelist twoDsim.mod
+$ gm2 -g -fiso -c -fmakeinit twoDsim.mod
+@end example
+
+The first command both compiles the source file creating
+@file{twoDsim.o} and produces a swig interface file @file{swig.i}. We
+now use @code{swig} and @code{g++} to produce and compile the
+interface wrappers:
+
+@example
+$ libtool --mode=compile g++ -g -c twoDsim_m2.cpp -o twoDsim_m2.lo
+$ swig -c++ -python3 twoDsim.i
+$ libtool --mode=compile g++ -c -fPIC twoDsim_wrap.cxx \
+ -I/usr/include/python3 -o twoDsim_wrap.lo
+$ libtool --mode=compile gm2 -g -fPIC -fiso -c deviceGnuPic.mod
+$ libtool --mode=compile gm2 -g -fPIC -fiso -c roots.mod
+$ libtool --mode=compile gm2 -g -fPIC -fiso -c -fswig \
+ twoDsim.mod -o twoDsim.lo
+@end example
+
+Finally the application is linked into a shared library:
+
+@example
+$ libtool --mode=link gcc -g twoDsim_m2.lo twoDsim_wrap.lo \
+ roots.lo deviceGnuPic.lo \
+ -L$@{prefix@}/lib64 \
+ -rpath `pwd` -lgm2 -lstdc++ -lm -o libtwoDsim.la
+cp .libs/libtwoDsim.so _twoDsim.so
+@end example
+
+The library name must start with @code{_} to comply with the Python3
+module naming scheme.
+
+@node Interface to C, Assembly language, Producing a Python module, Using
+@section Interfacing GNU Modula-2 to C
+
+The GNU Modula-2 compiler tries to use the C calling convention
+wherever possible however some parameters have no C equivalent and
+thus a language specific method is used. For example unbounded arrays
+are passed as a @code{struct @{void *address, unsigned int high@}} and
+the contents of these arrays are copied by callee functions when they
+are declared as non @code{VAR} parameters. The @code{VAR} equivalent
+unbounded array parameters need no copy, but still use the
+@code{struct} representation.
+
+The recommended method of interfacing GNU Modula-2 to C is by telling
+the definition module that the implementation is in the C language.
+This is achieved by using the tokens @code{DEFINITION MODULE FOR "C"}.
+Here is an example @file{libprintf.def}.
+
+@example
+DEFINITION MODULE FOR "C" libprintf ;
+
+EXPORT UNQUALIFIED printf ;
+
+PROCEDURE printf (a: ARRAY OF CHAR; ...) : [ INTEGER ] ;
+
+END libprintf.
+@end example
+
+the @code{UNQUALIFIED} keyword in the definition module informs
+GNU Modula-2 not to prefix the module name to exported references
+in the object file.
+
+The @code{printf} declaration states that the first parameter
+semantically matches @code{ARRAY OF CHAR} but since the module is for
+the C language it will be mapped onto @code{char *}. The token
+@code{...} indicates a variable number of arguments (varargs) and all
+parameters passed here are mapped onto their C equivalents. Arrays and
+constant strings are passed as pointers. Lastly @code{[ INTEGER ]}
+states that the caller can ignore the function return result if desired.
+
+The hello world program can be rewritten as:
+
+@example
+MODULE hello ;
+
+FROM libprintf IMPORT printf ;
+
+BEGIN
+ printf("hello world\n")
+END hello.
+@end example
+
+and it can be compiled by:
+
+@samp{gm2 -g -I. hello.mod -lc}
+
+In reality the @samp{-lc} is redundant as libc is always included in the
+linking process. It is shown here to emphasize that the C library or
+object file containing @code{printf} must be present.
+
+If a procedure function is declared using varargs then some parameter
+values are converted. The table below summarises the default conversions
+and default types used.
+
+@example
+Actual Parameter | Default conversion | Type of actual
+ | | value passed
+===============================================================
+123 | none | long long int
+"hello world" | none | const char *
+a: ARRAY OF CHAR | ADR(a) | char *
+a: ARRAY [0..5] OF CHAR| ADR(a) | char *
+3.14 | none | long double
+@end example
+
+If you wish to pass @code{int} values then you should explicitly
+convert the constants using one of the conversion mechanisms.
+For example: @code{INTEGER(10)} or @code{VAL(INTEGER, 10)} or
+@code{CAST(INTEGER, 10)}.
+
+@node Assembly language, Alignment, Interface to C, Using
+@section Interface to assembly language
+
+The interface for GNU Modula-2 to assembly language is almost
+identical to GNU C. The only alterations are that the keywords
+@code{asm} and @code{volatile} are in capitals, following the Modula-2
+convention.
+
+A simple, but highly non optimal, example is given below. Here we want
+to add the two @code{CARDINAL}s @code{foo} and @code{bar} together and
+return the result. The target processor is assumed to be executing
+the x86_64 instruction set.
+
+@example
+PROCEDURE Example (foo, bar: CARDINAL) : CARDINAL ;
+VAR
+ myout: CARDINAL ;
+BEGIN
+ ASM VOLATILE ("movq %1,%%rax; addq %2,%%rax; movq %%rax,%0"
+ : "=rm" (myout) (* outputs *)
+ : "rm" (foo), "rm" (bar) (* inputs *)
+ : "rax") ; (* we trash *)
+ RETURN( myout )
+END Example ;
+@end example
+
+For a full description of this interface we refer the reader to the GNU C manual.
+
+@xref{Extended Asm, ,Extensions to the C Language Family,gcc}.
+
+The same example can be written using the newer extensions of naming
+the operands rather than using numbered arguments.
+
+@example
+PROCEDURE Example (foo, bar: CARDINAL) : CARDINAL ;
+VAR
+ myout: CARDINAL ;
+BEGIN
+ ASM VOLATILE (
+ "movq %[left],%%rax; addq %[right],%%rax; movq %%rax,%[output]"
+ : [output] "=rm" (myout) (* outputs *)
+ : [left] "rm" (foo), [right] "rm" (bar) (* inputs *)
+ : "rax") ; (* we trash *)
+ RETURN( myout )
+END Example ;
+@end example
+
+Both examples generate exactly the same code. It is worth noting that
+the specifier ``rm'' indicates that the operand can be either a
+register or memory. Of course you must choose an instruction which
+can take either, but this allows the compiler to take make more
+efficient choices depending upon the optimization level given to the
+compiler.
+
+@node Alignment, Packed, Assembly language, Using
+@section Data type alignment
+
+GNU Modula-2 allows you to specify alignment for types and variables.
+The syntax for alignment is to use the ISO pragma directives @code{<*}
+@code{bytealignment (} expression @code{)} and @code{*>}. These directives
+can be used after type and variable declarations.
+
+The ebnf of the alignment production is:
+
+@example
+Alignment := [ ByteAlignment ] =:
+ByteAlignment := '<*' AttributeExpression '*>' =:
+AlignmentExpression := "(" ConstExpression ")" =:
+@end example
+
+The @code{Alignment} ebnf statement may be used during contruction of
+types, records, record fields, arrays, pointers and variables. Below
+is an example of aligning a type so that the variable @code{bar} is
+aligned on a 1024 address.
+
+@example
+MODULE align ;
+
+TYPE
+ foo = INTEGER <* bytealignment(1024) *> ;
+
+VAR
+ z : INTEGER ;
+ bar: foo ;
+BEGIN
+END align.
+@end example
+
+The next example aligns a variable on a 1024 byte boundary.
+
+@example
+MODULE align2 ;
+
+VAR
+ x : CHAR ;
+ z : ARRAY [0..255] OF INTEGER <* bytealignment(1024) *> ;
+BEGIN
+END align2.
+@end example
+
+Here the example aligns a pointer on a 1024 byte boundary.
+
+@example
+MODULE align4 ;
+
+FROM SYSTEM IMPORT ADR ;
+FROM libc IMPORT exit ;
+
+VAR
+ x : CHAR ;
+ z : POINTER TO INTEGER <* bytealignment(1024) *> ;
+BEGIN
+ IF ADR(z) MOD 1024=0
+ THEN
+ exit(0)
+ ELSE
+ exit(1)
+ END
+END align4.
+@end example
+
+In example @code{align5} record field @code{y} is aligned on a 1024
+byte boundary.
+
+@example
+MODULE align5 ;
+
+FROM SYSTEM IMPORT ADR ;
+FROM libc IMPORT exit ;
+
+TYPE
+ rec = RECORD
+ x: CHAR ;
+ y: CHAR <* bytealignment(1024) *> ;
+ END ;
+VAR
+ r: rec ;
+BEGIN
+ IF ADR(r.y) MOD 1024=0
+ THEN
+ exit(0)
+ ELSE
+ exit(1)
+ END
+END align5.
+@end example
+
+In the example below module @code{align6} declares @code{foo} as an
+array of 256 @code{INTEGER}s. The array @code{foo} is aligned on a
+1024 byte boundary.
+
+@example
+MODULE align6 ;
+
+FROM SYSTEM IMPORT ADR ;
+FROM libc IMPORT exit ;
+
+TYPE
+ foo = ARRAY [0..255] OF INTEGER <* bytealignment(1024) *> ;
+
+VAR
+ x : CHAR ;
+ z : foo ;
+BEGIN
+ IF ADR(z) MOD 1024=0
+ THEN
+ exit(0)
+ ELSE
+ exit(1)
+ END
+END align6.
+@end example
+
+@node Packed, Built-ins, Alignment, Using
+@section Packing data types
+
+The pragma @code{<* bytealignment(0) *>} can be used to specify that
+the fields within a @code{RECORD} are to be packed. Currently this
+only applies to fields which are declared as subranges, ordinal types
+and enumerated types. Here is an example of how two subranges might
+be packed into a byte.
+
+@example
+TYPE
+ bits3c = [0..7] ;
+ bits3i = [-4..3] ;
+
+ byte = RECORD
+ <* bytealignment(0) *>
+ x: bits3c ;
+ <* bitsunused(2) *>
+ y: bits3i ;
+ END ;
+@end example
+
+Notice that the user has specified that in between fields @code{x} and
+@code{y} there are two bits unused.
+
+Now the user wishes to create a record with byte numbers zero and one
+occupied and then an @code{INTEGER32} field which is four byte
+aligned. In this case byte numbers two and three will be unused. The
+pragma @code{bytealignment} can be issued at the start of the record
+indicating the default alignment for the whole record and this can be
+overridden by individual fields if necessary.
+
+@example
+ rec = RECORD
+ <* bytealignment (1) *> ;
+ a, b: byte ;
+ x: INTEGER32 <* bytealignment(4) *> ;
+ END ;
+@end example
+
+In the following example the user has specified that a record has two
+fields @code{p} and @code{q} but that there are three bytes unused between
+these fields.
+
+@example
+ header = RECORD
+ <* bytealignment(1) *>
+ p: byte ;
+ <* bytesunused(3) *>
+ q: byte ;
+ END ;
+@end example
+
+The pragma @code{<* bytesunused(x) *>} can only be used if the current
+field is on a byte boundary. There is also a @code{SYSTEM} pseudo
+procedure function @code{TBITSIZE(T)} which returns the minimum number of
+bits necessary to represent type @code{T}.
+
+Another example of packing record bit fields is given below:
+
+@example
+MODULE align21 ;
+
+FROM libc IMPORT exit ;
+
+TYPE
+ colour = (red, blue, green, purple, white, black) ;
+
+ soc = PACKEDSET OF colour ;
+
+ rec = RECORD
+ <* bytealignment(0) *>
+ x: soc ;
+ y: [-1..1] ;
+ END ;
+
+VAR
+ r: rec ;
+ v: CARDINAL ;
+BEGIN
+ v := SIZE(r) ;
+ IF SIZE(r)#1
+ THEN
+ exit(1)
+ END ;
+ r.x := soc@{blue@} ;
+ IF r.x#soc@{blue@}
+ THEN
+ exit(2)
+ END
+END align21.
+@end example
+
+Here we see that the total size of this record is one byte and consists
+of a six bit set type followed by a 2 bit integer subrange.
+
+@node Built-ins, The PIM system module, Packed, Using
+@section Accessing GNU Modula-2 Built-ins
+
+This section describes the built-in constants and functions defined in
+GNU Modula-2. The following compiler constants can be accessed using
+the @code{__ATTRIBUTE__} @code{__BUILTIN__} keywords. These are not
+part of the Modula-2 language and they may differ depending upon the
+target architecture but they provide a method whereby common
+libraries can interface to a different underlying architecture.
+
+The built-in constants are: @code{BITS_PER_UNIT}, @code{BITS_PER_WORD},
+@code{BITS_PER_CHAR} and @code{UNITS_PER_WORD}. They are integrated into
+GNU Modula-2 by an extension to the @code{ConstFactor} rule:
+
+@example
+ConstFactor := ConstQualidentOrSet | Number | ConstString |
+ "(" ConstExpression ")" | "NOT" ConstFactor |
+ ConstAttribute =:
+
+ConstAttribute := "__ATTRIBUTE__" "__BUILTIN__" "(" "(" Ident ")" ")" =:
+@end example
+
+Here is an example taken from the ISO library @code{SYSTEM.def}:
+
+@example
+CONST
+ BITSPERLOC = __ATTRIBUTE__ __BUILTIN__ ((BITS_PER_UNIT)) ;
+ LOCSPERWORD = __ATTRIBUTE__ __BUILTIN__ ((UNITS_PER_WORD)) ;
+@end example
+
+Built-in functions are transparent to the end user. All built-in
+functions are declared in @code{DEFINITION MODULE}s and are imported
+as and when required. Built-in functions are declared in definition
+modules by using the @code{__BUILTIN__} keyword. Here is a section of
+the ISO library @code{LongMath.def} which demonstrates this feature.
+
+@example
+PROCEDURE __BUILTIN__ sqrt (x: LONGREAL): LONGREAL;
+ (* Returns the square root of x *)
+@end example
+
+This indicates that the function @code{sqrt} will be implemented using
+the gcc built-in maths library. If gcc cannot utilise the built-in
+function (for example if the programmer requested the address of
+@code{sqrt}) then code is generated to call the alternative function
+implemented in the @code{IMPLEMENTATION} @code{MODULE}.
+
+Sometimes a function exported from the @code{DEFINITION} @code{MODULE}
+will have a different name from the built-in function within gcc. In
+such cases the mapping between the GNU Modula-2 function name and the
+gcc name is expressed using the keywords @code{__ATTRIBUTE__}
+@code{__BUILTIN__} @code{((Ident))}. For example the function
+@code{sqrt} in @code{LongMath.def} maps onto the gcc built-in function
+@code{sqrtl} and this is expressed as:
+
+@example
+PROCEDURE __ATTRIBUTE__ __BUILTIN__ ((sqrtl)) sqrt
+ (x: LONGREAL) : LONGREAL;
+ (* Returns the positive square root of x *)
+@end example
+
+The following module @code{Builtins.def} enumerates the list of
+built-in functions which can be accessed in GNU Modula-2. It also
+serves to define the parameter and return value for each function:
+
+@include m2/Builtins.texi
+
+Although this module exists and will result in the generation of
+in-line code if optimization flags are passed to GNU Modula-2, users
+are advised to utilize the same functions from more generic libraries.
+The built-in mechanism will be applied to these generic
+libraries where appropriate. Note for the mathematical routines to
+be in-lined you need to specify the @samp{-ffast-math -O} options.
+
+@node The PIM system module, The ISO system module, Built-ins, Using
+@section The PIM system module
+
+@include m2/SYSTEM-pim.texi
+
+The different dialects of Modula-2 PIM-[234] and ISO Modula-2 declare
+the function @code{SIZE} in different places. PIM-[34] and ISO
+Modula-2 declare @code{SIZE} as a pervasive function (declared in the
+base module). PIM-2 defined @code{SIZE} in the @code{SYSTEM} module
+(as shown above).
+
+GNU Modula-2 allows users to specify the dialect of Modula-2 by using
+the @code{-fiso} and @code{-fpim2} command line switches.
+
+The data types @code{CSIZE_T} and @code{CSSIZE_T} are also exported from
+the @code{SYSTEM} module. The type @code{CSIZE_T} is unsigned and is
+mapped onto the target C data type @code{size_t} whereas the type
+@code{CSSIZE_T} is mapped onto the signed C data type @code{ssize_t}.
+
+It is anticipated that these should only be used to provide cross
+platform definition modules for C libraries.
+
+There are also a variety of fixed sized @code{INTEGER} and
+@code{CARDINAL} types. The variety of the fixed sized types will
+depend upon the target architecture.
+
+@node The ISO system module, , The PIM system module, Using
+@section The ISO system module
+
+@include m2/SYSTEM-iso.texi
+
+The data types @code{CSIZE_T} and @code{CSSIZE_T} are also exported from
+the @code{SYSTEM} module. The type @code{CSIZE_T} is unsigned and is
+mapped onto the target C data type @code{size_t} whereas the type
+@code{CSSIZE_T} is mapped onto the signed C data type @code{ssize_t}.
+
+It is anticipated that these should only be used to provide cross
+platform definition modules for C libraries.
+
+There are also a variety of fixed sized @code{INTEGER} and
+@code{CARDINAL} types. The variety of the fixed sized types will
+depend upon the target architecture.
+
+@node Licence, Copying, The ISO system module, Top
+@section Licence of GNU Modula-2
+
+GNU Modula-2 is free software, the compiler is held under the GPL v3
+@uref{http://www.gnu.org/licenses/gpl.txt},
+its libraries (pim, iso and Logitech compatible) are under the
+GPL v3 with the GCC runtime library exception clause.
+
+Under Section 7 of GPL version 3, you are granted additional
+permissions described in the GCC Runtime Library Exception, version
+3.1, as published by the Free Software Foundation.
+
+You should have received a copy of the GNU General Public License and
+a copy of the GCC Runtime Library Exception along with this program;
+see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
+<http://www.gnu.org/licenses/>.
+
+More information on how these licences work is available
+@uref{http://www.gnu.org/licenses/licenses.html} on the GNU web site.
+
+@c Copying node is inside the gpl_v3.texi
+@include gpl_v3.texi
+
+@node Contributing, Internals, Copying, Top
+@section Contributing to GNU Modula-2
+
+Please do. But also please read the GNU Emacs info under
+
+@example
+* Standards: (standards). GNU coding standards.
+* Intellectual Property:: Keeping Free Software Free
+* Reading Non-Free Code:: Referring to Proprietary Programs
+* Contributions:: Accepting Contributions
+@end example
+
+You might consider joining the GM2 Mailing list before you start
+coding. The mailing list may be subscribed via a web interface
+@uref{http://lists.nongnu.org/mailman/listinfo/gm2} or via email
+@email{gm2-subscribe@@nongnu.org}.
+
+Many thanks and enjoy your coding!
+
+@node Internals, EBNF, Contributing, Top
+
+This section is still being written.
+@c @include gm2-internals.texi
+
+@node EBNF, Libraries, Internals, Top
+@chapter EBNF of GNU Modula-2
+
+This chapter contains the EBNF of GNU Modula-2. This grammer currently
+supports both PIM and ISO dialects. The rules here are automatically
+extracted from the grammer files in GNU Modula-2 and serve to document
+the syntax of the extensions described earlier and how they fit in
+with the base language.
+
+Note that the first six productions are built into the lexical analysis
+phase.
+
+@include m2/gm2-ebnf.texi
+
+@node Libraries, Indices, EBNF, Top
+@chapter PIM and ISO library definitions
+
+This chapter contains M2F, PIM and ISO libraries.
+
+@c Permission has been kindly granted by
+@c the authors of the ULM libraries to include them with GNU
+@c Modula-2.
+@c These libraries (under the GNU GPL) were written at the
+@c University of Ulm and were originally shipped with the ULM sparc
+@c Modula-2 compiler.
+
+@include m2/gm2-libs.texi
+
+@node Indices, , Libraries, Top
+@section Indices
+
+@ifhtml
+@menu
+* Contents:: Section and subsections.
+* Functions:: Function, constants, types, ebnf indices.
+@end menu
+
+@node Contents, Functions, ,
+@section Section and subsections
+@printindex cp
+
+@node Functions, , Contents,
+@section Function, constants, types, ebnf indices.
+@end ifhtml
+
+@printindex fn
+
+@summarycontents
+@contents
+@bye
@@ -0,0 +1,352 @@
+; Options for the Modula-2 front end.
+;
+; Copyright (C) 2016-2022 Free Software Foundation, Inc.
+; Contributed by Gaius Mulley <gaius.mulley@southwales.ac.uk>.
+;
+; This file is part of GNU Modula-2.
+;
+; GNU Modula-2 is free software; you can redistribute it and/or modify
+; it under the terms of the GNU General Public License as published by
+; the Free Software Foundation; either version 3, or (at your option)
+; any later version.
+;
+; GNU Modula-2 is distributed in the hope that it will be useful, but
+; WITHOUT ANY WARRANTY; without even the implied warranty of
+; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+; General Public License for more details.
+;
+; You should have received a copy of the GNU General Public License
+; along with GNU Modula-2; see the file COPYING. If not,
+; see <https://www.gnu.org/licenses/>. *)
+
+; See the GCC internals manual for a description of this file's format.
+
+; Please try to keep this file in ASCII collating order.
+
+Language
+Modula-2
+
+B
+Modula-2
+; Documented in c.opt
+
+D
+Modula-2
+; Documented in c.opt
+
+E
+Modula-2
+; Documented in c.opt (passed to the preprocessor if -fcpp is used)
+
+I
+Modula-2 Joined Separate
+; Documented in c.opt
+
+L
+Modula-2 Joined Separate
+; Not documented
+
+M
+Modula-2
+; Documented in c.opt
+
+O
+Modula-2
+; Documented in c.opt
+
+Wall
+Modula-2
+; Documented in c.opt
+
+Wpedantic
+Modula-2
+; Documented in common.opt
+
+Wpedantic-param-names
+Modula-2
+compiler checks to force definition module procedure parameter names with their implementation module counterpart
+
+Wpedantic-cast
+Modula-2
+compiler warns if a cast is being used on types of differing sizes
+
+Wverbose-unbounded
+Modula-2
+inform user which parameters will be passed by reference
+
+Wstyle
+Modula-2
+extra compile time semantic checking, typically tries to catch poor programming style
+
+Wunused-variable
+Modula-2
+; Documented in c.opt
+
+Wunused-parameter
+Modula-2
+; Documented in c.opt
+
+c
+Modula-2
+; Documented in c.opt
+
+fauto-init
+Modula-2
+automatically initializes all pointers to NIL
+
+fbounds
+Modula-2
+turns on runtime subrange, array index and indirection via NIL pointer checking
+
+fcase
+Modula-2
+turns on runtime checking to check whether a CASE statement requires an ELSE clause when on was not specified
+
+fobjc-std=objc1
+Modula-2
+; Documented in c.opt
+
+fcpp
+Modula-2
+use cpp to preprocess the module
+
+fcpp-end
+Modula-2
+passed to the preprocessor if -fcpp is used (internal switch)
+
+fcpp-begin
+Modula-2
+passed to the preprocessor if -fcpp is used (internal switch)
+
+fdebug-builtins
+Modula-2
+call a real function, rather than the builtin equivalent
+
+fd
+Modula-2
+turn on internal debugging of the compiler (internal switch)
+
+fdebug-trace-quad
+Modula-2
+turn on quadruple tracing (internal switch)
+
+fdebug-trace-api
+Modula-2
+turn on the Modula-2 api tracing (internal switch)
+
+fdebug-function-line-numbers
+Modula-2
+turn on the Modula-2 function line number generation (internal switch)
+
+fdef=
+Modula-2 Joined
+recognise the specified suffix as a definition module filename
+
+fdump-system-exports
+Modula-2
+display all inbuilt system items
+
+fexceptions
+Modula-2
+; Documented in common.opt
+
+fextended-opaque
+Modula-2
+allows opaque types to be implemented as any type (a GNU Modula-2 extension)
+
+ffloatvalue
+Modula-2
+turns on runtime checking to check whether a floating point number is about to exceed range
+
+fgen-module-list=
+Modula-2 Joined
+create a topologically sorted module list from all dependent modules used in the application
+
+findex
+Modula-2
+turns on all range checking for numerical values
+
+fiso
+Modula-2
+use ISO dialect of Modula-2
+
+flibs=
+Modula-2 Joined
+specify the library order, currently legal entries include: log, min, pim, iso or their directory name equivalent m2log, m2min, m2pim, m2iso.
+
+flocation=
+Modula-2 Joined
+set all location values to a specific value (internal switch)
+
+fm2-g
+Modula-2
+generate extra nops to improve debugging, producing an instruction for every code related keyword
+
+fm2-lower-case
+Modula-2
+generate error messages which render keywords in lower case
+
+fm2-plugin
+Modula-2
+insert plugin to identify runtime errors at compiletime (default on)
+
+fm2-statistics
+Modula-2
+display statistics about the amount of source lines compiled and symbols used
+
+fm2-strict-type
+Modula-2
+experimental flag to turn on the new strict type checker
+
+fm2-whole-program
+Modula-2
+compile all implementation modules and program module at once
+
+fmod=
+Modula-2 Joined
+recognise the specified suffix as implementation and module filenames
+
+fnil
+Modula-2
+turns on runtime checking to detect accessing data through a NIL value pointer
+
+fpim
+Modula-2
+use PIM [234] dialect of Modula-2
+
+fpim2
+Modula-2
+use PIM 2 dialect of Modula-2
+
+fpim3
+Modula-2
+use PIM 3 dialect of Modula-2
+
+fpim4
+Modula-2
+use PIM 4 dialect of Modula-2
+
+fpositive-mod-floor-div
+Modula-2
+force positive result from MOD and DIV result floor
+
+fpthread
+Modula-2
+link against the pthread library (default on)
+
+fq
+Modula-2
+internal compiler debugging information, dump the list of quadruples
+
+frange
+Modula-2
+turns on all range checking for numerical values
+
+freturn
+Modula-2
+turns on runtime checking for functions which finish without executing a RETURN statement
+
+fruntime-modules=
+Modula-2 Joined
+specify the list of runtime modules and their initialization order
+
+fscaffold-dynamic
+Modula-2
+the modules initialization order is dynamically determined by M2RTS and application dependancies
+
+fscaffold-c
+Modula-2
+generate a C source scaffold for the current module being compiled
+
+fscaffold-c++
+Modula-2
+generate a C++ source scaffold for the current module being compiled
+
+fscaffold-main
+Modula-2
+generate the main function
+
+fscaffold-static
+Modula-2
+generate static scaffold initialization and finalization for every module inside main
+
+fshared
+Modula-2
+generate a shared library from the module
+
+fsoft-check-all
+Modula-2
+turns on all software runtime checking (an abbreviation for -fnil -frange -findex -fwholediv -fcase -freturn -fwholevalue -ffloatvalue)
+
+fsources
+Modula-2
+display the location of module source files as they are compiled
+
+fswig
+Modula-2
+create a swig interface file for the module
+
+funbounded-by-reference
+Modula-2
+optimize non var unbounded parameters by passing it by reference, providing it is not written to within the callee procedure.
+
+fuse-list=
+Modula-2 Joined
+orders the initialization/finalializations for scaffold-static or force linking of modules if scaffold-dynamic
+
+fversion
+Modula-2
+; Documented in common.opt
+
+fwholediv
+Modula-2
+turns on all division and modulus by zero checking for ordinal values
+
+fwholevalue
+Modula-2
+turns on runtime checking to check whether a whole number is about to exceed range
+
+iprefix
+Modula-2
+; Documented in c.opt
+
+isystem
+Modula-2
+; Documented in c.opt
+
+idirafter
+Modula-2
+; Documented in c.opt
+
+imultilib
+Modula-2
+; Documented in c.opt
+
+lang-asm
+Modula-2
+; Documented in c.opt
+
+-save-temps
+Modula-2 Alias(save-temps)
+
+save-temps
+Modula-2
+save temporary preprocessed files
+
+save-temps=
+Modula-2 Joined
+save temporary preprocessed files
+
+traditional-cpp
+Modula-2
+; Documented in c.opt
+
+v
+Modula-2
+; Documented in c.opt
+
+x
+Modula-2 Joined
+specify the language from the compiler driver
+
+; This comment is to ensure we retain the blank line above.
@@ -0,0 +1,892 @@
+/* gm2-lang.cc language-dependent hooks for GNU Modula-2.
+
+Copyright (C) 2002-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley <gaius@glam.ac.uk>.
+
+This file is part of GNU Modula-2.
+
+GNU Modula-2 is free software; you can redistribute it and/or modify
+it under the terms of the GNU General Public License as published by
+the Free Software Foundation; either version 3, or (at your option)
+any later version.
+
+GNU Modula-2 is distributed in the hope that it will be useful, but
+WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+General Public License for more details.
+
+You should have received a copy of the GNU General Public License
+along with GNU Modula-2; see the file COPYING. If not, write to the
+Free Software Foundation, 51 Franklin Street, Fifth Floor, Boston, MA
+02110-1301, USA. */
+
+#include "gm2-gcc/gcc-consolidation.h"
+
+#include "langhooks-def.h" /* FIXME: for lhd_set_decl_assembler_name. */
+#include "tree-pass.h" /* FIXME: only for PROP_gimple_any. */
+#include "toplev.h"
+#include "debug.h"
+
+#include "opts.h"
+
+#define GM2_LANG_C
+#include "gm2-lang.h"
+#include "m2block.h"
+#include "dynamicstrings.h"
+#include "m2options.h"
+#include "m2convert.h"
+#include "m2linemap.h"
+#include "init.h"
+#include "m2-tree.h"
+#include "convert.h"
+#include "rtegraph.h"
+
+static void write_globals (void);
+
+static int insideCppArgs = FALSE;
+
+#define EXPR_STMT_EXPR(NODE) TREE_OPERAND (EXPR_STMT_CHECK (NODE), 0)
+
+/* start of new stuff. */
+
+/* Language-dependent contents of a type. */
+
+struct GTY (()) lang_type
+{
+ char dummy;
+};
+
+/* Language-dependent contents of a decl. */
+
+struct GTY (()) lang_decl
+{
+ char dummy;
+};
+
+/* Language-dependent contents of an identifier. This must include a
+ tree_identifier. */
+
+struct GTY (()) lang_identifier
+{
+ struct tree_identifier common;
+};
+
+/* The resulting tree type. */
+
+union GTY ((desc ("TREE_CODE (&%h.generic) == IDENTIFIER_NODE"),
+ chain_next ("CODE_CONTAINS_STRUCT (TREE_CODE (&%h.generic), "
+ "TS_COMMON) ? ((union lang_tree_node *) TREE_CHAIN "
+ "(&%h.generic)) : NULL"))) lang_tree_node
+{
+ union tree_node GTY ((tag ("0"),
+ desc ("tree_node_structure (&%h)"))) generic;
+ struct lang_identifier GTY ((tag ("1"))) identifier;
+};
+
+struct GTY (()) language_function
+{
+
+ /* While we are parsing the function, this contains information about
+ the statement-tree that we are building. */
+ /* struct stmt_tree_s stmt_tree; */
+ tree stmt_tree;
+};
+
+/* Language hooks. */
+
+bool
+gm2_langhook_init (void)
+{
+ build_common_tree_nodes (false);
+ build_common_builtin_nodes ();
+
+ /* The default precision for floating point numbers. This is used
+ for floating point constants with abstract type. This may eventually
+ be controllable by a command line option. */
+ mpfr_set_default_prec (256);
+
+ /* GNU Modula-2 uses exceptions. */
+ using_eh_for_cleanups ();
+ return true;
+}
+
+/* The option mask. */
+
+static unsigned int
+gm2_langhook_option_lang_mask (void)
+{
+ return CL_ModulaX2;
+}
+
+/* Initialize the options structure. */
+
+static void
+gm2_langhook_init_options_struct (struct gcc_options *opts)
+{
+ /* Default to avoiding range issues for complex multiply and divide. */
+ opts->x_flag_complex_method = 2;
+
+ /* The builtin math functions should not set errno. */
+ opts->x_flag_errno_math = 0;
+ opts->frontend_set_flag_errno_math = true;
+
+ /* Exceptions are used. */
+ opts->x_flag_exceptions = 1;
+ init_FrontEndInit ();
+}
+
+/* Infrastructure for a VEC of bool values. */
+
+/* This array determines whether the filename is associated with the
+ C preprocessor. */
+
+static vec<bool> filename_cpp;
+
+void
+gm2_langhook_init_options (unsigned int decoded_options_count,
+ struct cl_decoded_option *decoded_options)
+{
+ unsigned int i;
+ bool in_cpp_args = false;
+
+ for (i = 1; i < decoded_options_count; i++)
+ {
+ switch (decoded_options[i].opt_index)
+ {
+ case OPT_fcpp_begin:
+ in_cpp_args = true;
+ break;
+ case OPT_fcpp_end:
+ in_cpp_args = false;
+ break;
+ case OPT_SPECIAL_input_file:
+ case OPT_SPECIAL_program_name:
+ filename_cpp.safe_push (in_cpp_args);
+ }
+ }
+ filename_cpp.safe_push (false);
+}
+
+static bool
+is_cpp_filename (unsigned int i)
+{
+ gcc_assert (i < filename_cpp.length ());
+ return filename_cpp[i];
+}
+
+/* Handle gm2 specific options. Return 0 if we didn't do anything. */
+
+bool
+gm2_langhook_handle_option (
+ size_t scode, const char *arg, HOST_WIDE_INT value, int kind ATTRIBUTE_UNUSED,
+ location_t loc ATTRIBUTE_UNUSED,
+ const struct cl_option_handlers *handlers ATTRIBUTE_UNUSED)
+{
+ enum opt_code code = (enum opt_code)scode;
+
+ /* ignore file names. */
+ if (code == N_OPTS)
+ return 1;
+
+ switch (code)
+ {
+ case OPT_B:
+ M2Options_SetB (arg);
+ return 1;
+ case OPT_c:
+ M2Options_Setc (value);
+ return 1;
+ case OPT_I:
+ if (insideCppArgs)
+ {
+ const struct cl_option *option = &cl_options[scode];
+ const char *opt = (const char *)option->opt_text;
+ M2Options_CppArg (opt, arg, TRUE);
+ }
+ else
+ M2Options_SetSearchPath (arg);
+ return 1;
+ case OPT_fiso:
+ M2Options_SetISO (value);
+ return 1;
+ case OPT_fpim:
+ M2Options_SetPIM (value);
+ return 1;
+ case OPT_fpim2:
+ M2Options_SetPIM2 (value);
+ return 1;
+ case OPT_fpim3:
+ M2Options_SetPIM3 (value);
+ return 1;
+ case OPT_fpim4:
+ M2Options_SetPIM4 (value);
+ return 1;
+ case OPT_fpositive_mod_floor_div:
+ M2Options_SetPositiveModFloor (value);
+ return 1;
+ case OPT_flibs_:
+ /* handled in the gm2 driver. */
+ return 1;
+ case OPT_fgen_module_list_:
+ M2Options_SetGenModuleList (value, arg);
+ return 1;
+ case OPT_fnil:
+ M2Options_SetNilCheck (value);
+ return 1;
+ case OPT_fwholediv:
+ M2Options_SetWholeDiv (value);
+ return 1;
+ case OPT_findex:
+ M2Options_SetIndex (value);
+ return 1;
+ case OPT_frange:
+ M2Options_SetRange (value);
+ return 1;
+ case OPT_ffloatvalue:
+ M2Options_SetFloatValueCheck (value);
+ return 1;
+ case OPT_fwholevalue:
+ M2Options_SetWholeValueCheck (value);
+ return 1;
+ case OPT_freturn:
+ M2Options_SetReturnCheck (value);
+ return 1;
+ case OPT_fcase:
+ M2Options_SetCaseCheck (value);
+ return 1;
+ case OPT_fd:
+ M2Options_SetCompilerDebugging (value);
+ return 1;
+ case OPT_fdebug_trace_quad:
+ M2Options_SetDebugTraceQuad (value);
+ return 1;
+ case OPT_fdebug_trace_api:
+ M2Options_SetDebugTraceAPI (value);
+ return 1;
+ case OPT_fdebug_function_line_numbers:
+ M2Options_SetDebugFunctionLineNumbers (value);
+ return 1;
+ case OPT_fauto_init:
+ M2Options_SetAutoInit (value);
+ return 1;
+ case OPT_fsoft_check_all:
+ M2Options_SetCheckAll (value);
+ return 1;
+ case OPT_fexceptions:
+ M2Options_SetExceptions (value);
+ return 1;
+ case OPT_Wstyle:
+ M2Options_SetStyle (value);
+ return 1;
+ case OPT_Wpedantic:
+ M2Options_SetPedantic (value);
+ return 1;
+ case OPT_Wpedantic_param_names:
+ M2Options_SetPedanticParamNames (value);
+ return 1;
+ case OPT_Wpedantic_cast:
+ M2Options_SetPedanticCast (value);
+ return 1;
+ case OPT_fextended_opaque:
+ M2Options_SetExtendedOpaque (value);
+ return 1;
+ case OPT_Wverbose_unbounded:
+ M2Options_SetVerboseUnbounded (value);
+ return 1;
+ case OPT_Wunused_variable:
+ M2Options_SetUnusedVariableChecking (value);
+ return 1;
+ case OPT_Wunused_parameter:
+ M2Options_SetUnusedParameterChecking (value);
+ return 1;
+ case OPT_fm2_strict_type:
+ M2Options_SetStrictTypeChecking (value);
+ return 1;
+ case OPT_Wall:
+ M2Options_SetWall (value);
+ return 1;
+#if 0
+ /* Not yet implemented. */
+ case OPT_fxcode:
+ M2Options_SetXCode (value);
+ return 1;
+#endif
+ case OPT_fm2_lower_case:
+ M2Options_SetLowerCaseKeywords (value);
+ return 1;
+ case OPT_fuse_list_:
+ M2Options_SetUselist (value, arg);
+ return 1;
+ case OPT_fruntime_modules_:
+ M2Options_SetRuntimeModuleOverride (arg);
+ return 1;
+ case OPT_fpthread:
+ /* Handled in the driver. */
+ return 1;
+ case OPT_fm2_plugin:
+ /* Handled in the driver. */
+ return 1;
+ case OPT_fscaffold_dynamic:
+ M2Options_SetScaffoldDynamic (value);
+ return 1;
+ case OPT_fscaffold_static:
+ M2Options_SetScaffoldStatic (value);
+ return 1;
+ case OPT_fscaffold_main:
+ M2Options_SetScaffoldMain (value);
+ return 1;
+ case OPT_fcpp:
+ M2Options_SetCpp (value);
+ return 1;
+ case OPT_fcpp_begin:
+ insideCppArgs = TRUE;
+ return 1;
+ case OPT_fcpp_end:
+ insideCppArgs = FALSE;
+ return 1;
+ case OPT_fq:
+ M2Options_SetQuadDebugging (value);
+ return 1;
+ case OPT_fsources:
+ M2Options_SetSources (value);
+ return 1;
+ case OPT_funbounded_by_reference:
+ M2Options_SetUnboundedByReference (value);
+ return 1;
+ case OPT_fdef_:
+ M2Options_setdefextension (arg);
+ return 1;
+ case OPT_fmod_:
+ M2Options_setmodextension (arg);
+ return 1;
+ case OPT_fdump_system_exports:
+ M2Options_SetDumpSystemExports (value);
+ return 1;
+ case OPT_fswig:
+ M2Options_SetSwig (value);
+ return 1;
+ case OPT_fshared:
+ M2Options_SetShared (value);
+ return 1;
+ case OPT_fm2_statistics:
+ M2Options_SetStatistics (value);
+ return 1;
+ case OPT_fm2_g:
+ M2Options_SetM2g (value);
+ return 1;
+ case OPT_O:
+ M2Options_SetOptimizing (value);
+ return 1;
+ case OPT_quiet:
+ M2Options_SetQuiet (value);
+ return 1;
+ case OPT_fm2_whole_program:
+ M2Options_SetWholeProgram (value);
+ return 1;
+ case OPT_flocation_:
+ if (strcmp (arg, "builtins") == 0)
+ {
+ M2Options_SetForcedLocation (BUILTINS_LOCATION);
+ return 1;
+ }
+ else if (strcmp (arg, "unknown") == 0)
+ {
+ M2Options_SetForcedLocation (UNKNOWN_LOCATION);
+ return 1;
+ }
+ else if ((arg != NULL) && (ISDIGIT (arg[0])))
+ {
+ M2Options_SetForcedLocation (atoi (arg));
+ return 1;
+ }
+ else
+ return 0;
+ case OPT_save_temps:
+ M2Options_SetSaveTemps (value);
+ return 1;
+ case OPT_save_temps_:
+ M2Options_SetSaveTempsDir (arg);
+ return 1;
+ default:
+ if (insideCppArgs)
+ {
+ const struct cl_option *option = &cl_options[scode];
+ const char *opt = (const char *)option->opt_text;
+
+ M2Options_CppArg (opt, arg, TRUE);
+ return 1;
+ }
+ return 0;
+ }
+ return 0;
+}
+
+/* Run after parsing options. */
+
+static bool
+gm2_langhook_post_options (const char **pfilename)
+{
+ const char *filename = *pfilename;
+ flag_excess_precision = EXCESS_PRECISION_FAST;
+ M2Options_SetCC1Quiet (quiet_flag);
+ M2Options_FinaliseOptions ();
+ main_input_filename = filename;
+
+ /* Returning false means that the backend should be used. */
+ return false;
+}
+
+/* Call the compiler for every source filename on the command line. */
+
+static void
+gm2_parse_input_files (const char **filenames, unsigned int filename_count)
+{
+ unsigned int i;
+ gcc_assert (filename_count > 0);
+
+ for (i = 0; i < filename_count; i++)
+ if (!is_cpp_filename (i))
+ {
+ main_input_filename = filenames[i];
+ init_PerCompilationInit (filenames[i]);
+ }
+}
+
+static void
+gm2_langhook_parse_file (void)
+{
+ gm2_parse_input_files (in_fnames, num_in_fnames);
+ write_globals ();
+}
+
+static tree
+gm2_langhook_type_for_size (unsigned int bits, int unsignedp)
+{
+ return gm2_type_for_size (bits, unsignedp);
+}
+
+static tree
+gm2_langhook_type_for_mode (machine_mode mode, int unsignedp)
+{
+ tree type;
+
+ for (int i = 0; i < NUM_INT_N_ENTS; i ++)
+ if (int_n_enabled_p[i]
+ && mode == int_n_data[i].m)
+ return (unsignedp ? int_n_trees[i].unsigned_type
+ : int_n_trees[i].signed_type);
+
+ if (VECTOR_MODE_P (mode))
+ {
+ tree inner;
+
+ inner = gm2_langhook_type_for_mode (GET_MODE_INNER (mode), unsignedp);
+ if (inner != NULL_TREE)
+ return build_vector_type_for_mode (inner, mode);
+ return NULL_TREE;
+ }
+
+ scalar_int_mode imode;
+ if (is_int_mode (mode, &imode))
+ return gm2_langhook_type_for_size (GET_MODE_BITSIZE (imode), unsignedp);
+
+ if (mode == TYPE_MODE (float_type_node))
+ return float_type_node;
+
+ if (mode == TYPE_MODE (double_type_node))
+ return double_type_node;
+
+ if (mode == TYPE_MODE (long_double_type_node))
+ return long_double_type_node;
+
+ if (COMPLEX_MODE_P (mode))
+ {
+ if (mode == TYPE_MODE (complex_float_type_node))
+ return complex_float_type_node;
+ if (mode == TYPE_MODE (complex_double_type_node))
+ return complex_double_type_node;
+ if (mode == TYPE_MODE (complex_long_double_type_node))
+ return complex_long_double_type_node;
+ }
+
+#if HOST_BITS_PER_WIDE_INT >= 64
+ /* The middle-end and some backends rely on TImode being supported
+ for 64-bit HWI. */
+ if (mode == TImode)
+ {
+ type = build_nonstandard_integer_type (GET_MODE_BITSIZE (TImode),
+ unsignedp);
+ if (type && TYPE_MODE (type) == TImode)
+ return type;
+ }
+#endif
+ return NULL_TREE;
+}
+
+/* Record a builtin function. We just ignore builtin functions. */
+
+static tree
+gm2_langhook_builtin_function (tree decl)
+{
+ return decl;
+}
+
+/* Return true if we are in the global binding level. */
+
+static bool
+gm2_langhook_global_bindings_p (void)
+{
+ return current_function_decl == NULL_TREE;
+}
+
+/* Unused langhook. */
+
+static tree
+gm2_langhook_pushdecl (tree decl ATTRIBUTE_UNUSED)
+{
+ gcc_unreachable ();
+}
+
+/* This hook is used to get the current list of declarations as trees.
+ We don't support that; instead we use write_globals. This can't
+ simply crash because it is called by -gstabs. */
+
+static tree
+gm2_langhook_getdecls (void)
+{
+ return NULL;
+}
+
+/* m2_write_global_declarations writes out globals creating an array
+ of the declarations and calling wrapup_global_declarations. */
+
+static void
+m2_write_global_declarations (tree globals)
+{
+ auto_vec<tree> global_decls;
+ tree decl = globals;
+ int n = 0;
+
+ while (decl != NULL)
+ {
+ global_decls.safe_push (decl);
+ decl = TREE_CHAIN (decl);
+ n++;
+ }
+ wrapup_global_declarations (global_decls.address (), n);
+}
+
+/* Write out globals. */
+
+static void
+write_globals (void)
+{
+ tree t;
+ unsigned i;
+
+ m2block_finishGlobals ();
+
+ /* Process all file scopes in this compilation, and the
+ external_scope, through wrapup_global_declarations and
+ check_global_declarations. */
+ FOR_EACH_VEC_ELT (*all_translation_units, i, t)
+ m2_write_global_declarations (BLOCK_VARS (DECL_INITIAL (t)));
+}
+
+
+/* Gimplify an EXPR_STMT node. */
+
+static void
+gimplify_expr_stmt (tree *stmt_p)
+{
+ gcc_assert (EXPR_STMT_EXPR (*stmt_p) != NULL_TREE);
+ *stmt_p = EXPR_STMT_EXPR (*stmt_p);
+}
+
+/* Genericize a TRY_BLOCK. */
+
+static void
+genericize_try_block (tree *stmt_p)
+{
+ tree body = TRY_STMTS (*stmt_p);
+ tree cleanup = TRY_HANDLERS (*stmt_p);
+
+ *stmt_p = build2 (TRY_CATCH_EXPR, void_type_node, body, cleanup);
+}
+
+/* Genericize a HANDLER by converting to a CATCH_EXPR. */
+
+static void
+genericize_catch_block (tree *stmt_p)
+{
+ tree type = HANDLER_TYPE (*stmt_p);
+ tree body = HANDLER_BODY (*stmt_p);
+
+ /* FIXME should the caught type go in TREE_TYPE? */
+ *stmt_p = build2 (CATCH_EXPR, void_type_node, type, body);
+}
+
+/* Convert the tree representation of FNDECL from m2 frontend trees
+ to GENERIC. */
+
+extern void pf (tree);
+
+void
+gm2_genericize (tree fndecl)
+{
+ tree t;
+ struct cgraph_node *cgn;
+
+#if 0
+ pf (fndecl);
+#endif
+ /* Fix up the types of parms passed by invisible reference. */
+ for (t = DECL_ARGUMENTS (fndecl); t; t = DECL_CHAIN (t))
+ if (TREE_ADDRESSABLE (TREE_TYPE (t)))
+ {
+
+ /* If a function's arguments are copied to create a thunk, then
+ DECL_BY_REFERENCE will be set -- but the type of the argument will be
+ a pointer type, so we will never get here. */
+ gcc_assert (!DECL_BY_REFERENCE (t));
+ gcc_assert (DECL_ARG_TYPE (t) != TREE_TYPE (t));
+ TREE_TYPE (t) = DECL_ARG_TYPE (t);
+ DECL_BY_REFERENCE (t) = 1;
+ TREE_ADDRESSABLE (t) = 0;
+ relayout_decl (t);
+ }
+
+ /* Dump all nested functions now. */
+ cgn = cgraph_node::get_create (fndecl);
+ for (cgn = first_nested_function (cgn);
+ cgn != NULL; cgn = next_nested_function (cgn))
+ gm2_genericize (cgn->decl);
+}
+
+/* gm2 gimplify expression, currently just change THROW in the same
+ way as C++ */
+
+static int
+gm2_langhook_gimplify_expr (tree *expr_p, gimple_seq *pre_p ATTRIBUTE_UNUSED,
+ gimple_seq *post_p ATTRIBUTE_UNUSED)
+{
+ enum tree_code code = TREE_CODE (*expr_p);
+
+ switch (code)
+ {
+ case THROW_EXPR:
+
+ /* FIXME communicate throw type to back end, probably by moving
+ THROW_EXPR into ../tree.def. */
+ *expr_p = TREE_OPERAND (*expr_p, 0);
+ return GS_OK;
+
+ case EXPR_STMT:
+ gimplify_expr_stmt (expr_p);
+ return GS_OK;
+
+ case TRY_BLOCK:
+ genericize_try_block (expr_p);
+ return GS_OK;
+
+ case HANDLER:
+ genericize_catch_block (expr_p);
+ return GS_OK;
+
+ default:
+ return GS_UNHANDLED;
+ }
+}
+
+static GTY(()) tree gm2_eh_personality_decl;
+
+static tree
+gm2_langhook_eh_personality (void)
+{
+ if (!gm2_eh_personality_decl)
+ gm2_eh_personality_decl = build_personality_function ("gxx");
+
+ return gm2_eh_personality_decl;
+}
+
+/* Functions called directly by the generic backend. */
+
+tree
+convert_loc (location_t location, tree type, tree expr)
+{
+ if (type == error_mark_node || expr == error_mark_node
+ || TREE_TYPE (expr) == error_mark_node)
+ return error_mark_node;
+
+ if (type == TREE_TYPE (expr))
+ return expr;
+
+ gcc_assert (TYPE_MAIN_VARIANT (type) != NULL);
+ if (TYPE_MAIN_VARIANT (type) == TYPE_MAIN_VARIANT (TREE_TYPE (expr)))
+ return fold_convert (type, expr);
+
+ expr = m2convert_GenericToType (location, type, expr);
+ switch (TREE_CODE (type))
+ {
+ case VOID_TYPE:
+ case BOOLEAN_TYPE:
+ return fold_convert (type, expr);
+ case INTEGER_TYPE:
+ return fold (convert_to_integer (type, expr));
+ case POINTER_TYPE:
+ return fold (convert_to_pointer (type, expr));
+ case REAL_TYPE:
+ return fold (convert_to_real (type, expr));
+ case COMPLEX_TYPE:
+ return fold (convert_to_complex (type, expr));
+ case ENUMERAL_TYPE:
+ return fold (convert_to_integer (type, expr));
+ default:
+ error_at (location, "cannot convert expression, only base types can be converted");
+ break;
+ }
+ return error_mark_node;
+}
+
+/* Functions called directly by the generic backend. */
+
+tree
+convert (tree type, tree expr)
+{
+ return convert_loc (m2linemap_UnknownLocation (), type, expr);
+}
+
+/* Mark EXP saying that we need to be able to take the address of it;
+ it should not be allocated in a register. Returns true if
+ successful. */
+
+bool
+gm2_mark_addressable (tree exp)
+{
+ tree x = exp;
+
+ while (TRUE)
+ switch (TREE_CODE (x))
+ {
+ case COMPONENT_REF:
+ if (DECL_PACKED (TREE_OPERAND (x, 1)))
+ return false;
+ x = TREE_OPERAND (x, 0);
+ break;
+
+ case ADDR_EXPR:
+ case ARRAY_REF:
+ case REALPART_EXPR:
+ case IMAGPART_EXPR:
+ x = TREE_OPERAND (x, 0);
+ break;
+
+ case COMPOUND_LITERAL_EXPR:
+ case CONSTRUCTOR:
+ case STRING_CST:
+ case VAR_DECL:
+ case CONST_DECL:
+ case PARM_DECL:
+ case RESULT_DECL:
+ case FUNCTION_DECL:
+ TREE_ADDRESSABLE (x) = 1;
+ return true;
+ default:
+ return true;
+ }
+ /* Never reach here. */
+ gcc_unreachable ();
+}
+
+/* Return an integer type with BITS bits of precision, that is
+ unsigned if UNSIGNEDP is nonzero, otherwise signed. */
+
+tree
+gm2_type_for_size (unsigned int bits, int unsignedp)
+{
+ tree type;
+
+ if (unsignedp)
+ {
+ if (bits == INT_TYPE_SIZE)
+ type = unsigned_type_node;
+ else if (bits == CHAR_TYPE_SIZE)
+ type = unsigned_char_type_node;
+ else if (bits == SHORT_TYPE_SIZE)
+ type = short_unsigned_type_node;
+ else if (bits == LONG_TYPE_SIZE)
+ type = long_unsigned_type_node;
+ else if (bits == LONG_LONG_TYPE_SIZE)
+ type = long_long_unsigned_type_node;
+ else
+ type = build_nonstandard_integer_type (bits,
+ unsignedp);
+ }
+ else
+ {
+ if (bits == INT_TYPE_SIZE)
+ type = integer_type_node;
+ else if (bits == CHAR_TYPE_SIZE)
+ type = signed_char_type_node;
+ else if (bits == SHORT_TYPE_SIZE)
+ type = short_integer_type_node;
+ else if (bits == LONG_TYPE_SIZE)
+ type = long_integer_type_node;
+ else if (bits == LONG_LONG_TYPE_SIZE)
+ type = long_long_integer_type_node;
+ else
+ type = build_nonstandard_integer_type (bits,
+ unsignedp);
+ }
+ return type;
+}
+
+/* Allow the analyzer to understand Storage ALLOCATE/DEALLOCATE. */
+
+bool
+gm2_langhook_new_dispose_storage_substitution (void)
+{
+ return true;
+}
+
+#undef LANG_HOOKS_NAME
+#undef LANG_HOOKS_INIT
+#undef LANG_HOOKS_INIT_OPTIONS
+#undef LANG_HOOKS_OPTION_LANG_MASK
+#undef LANG_HOOKS_INIT_OPTIONS_STRUCT
+#undef LANG_HOOKS_HANDLE_OPTION
+#undef LANG_HOOKS_POST_OPTIONS
+#undef LANG_HOOKS_PARSE_FILE
+#undef LANG_HOOKS_TYPE_FOR_MODE
+#undef LANG_HOOKS_TYPE_FOR_SIZE
+#undef LANG_HOOKS_BUILTIN_FUNCTION
+#undef LANG_HOOKS_GLOBAL_BINDINGS_P
+#undef LANG_HOOKS_PUSHDECL
+#undef LANG_HOOKS_GETDECLS
+#undef LANG_HOOKS_GIMPLIFY_EXPR
+#undef LANG_HOOKS_EH_PERSONALITY
+#undef LANG_HOOKS_NEW_DISPOSE_STORAGE_SUBSTITUTION
+
+#define LANG_HOOKS_NAME "GNU Modula-2"
+#define LANG_HOOKS_INIT gm2_langhook_init
+#define LANG_HOOKS_INIT_OPTIONS gm2_langhook_init_options
+#define LANG_HOOKS_OPTION_LANG_MASK gm2_langhook_option_lang_mask
+#define LANG_HOOKS_INIT_OPTIONS_STRUCT gm2_langhook_init_options_struct
+#define LANG_HOOKS_HANDLE_OPTION gm2_langhook_handle_option
+#define LANG_HOOKS_POST_OPTIONS gm2_langhook_post_options
+#define LANG_HOOKS_PARSE_FILE gm2_langhook_parse_file
+#define LANG_HOOKS_TYPE_FOR_MODE gm2_langhook_type_for_mode
+#define LANG_HOOKS_TYPE_FOR_SIZE gm2_langhook_type_for_size
+#define LANG_HOOKS_BUILTIN_FUNCTION gm2_langhook_builtin_function
+#define LANG_HOOKS_GLOBAL_BINDINGS_P gm2_langhook_global_bindings_p
+#define LANG_HOOKS_PUSHDECL gm2_langhook_pushdecl
+#define LANG_HOOKS_GETDECLS gm2_langhook_getdecls
+#define LANG_HOOKS_GIMPLIFY_EXPR gm2_langhook_gimplify_expr
+#define LANG_HOOKS_EH_PERSONALITY gm2_langhook_eh_personality
+#define LANG_HOOKS_NEW_DISPOSE_STORAGE_SUBSTITUTION \
+ gm2_langhook_new_dispose_storage_substitution
+
+struct lang_hooks lang_hooks = LANG_HOOKS_INITIALIZER;
+
+#include "gt-m2-gm2-lang.h"
+#include "gtype-m2.h"