From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1499) id 50B9F3844B06; Wed, 14 Dec 2022 14:28:42 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 50B9F3844B06 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1671028122; bh=HvrdKNpptZfSy8yGCvnRsjDP+Sji9oP0/oHE6fWCla0=; h=From:To:Subject:Date:From; b=OGtqwfWjGfFj/BC6oLrPSIMZOF9dR/sWQi4ot5v7WOZvVGmgADmueTFK9PtgFyZSD zUws/7/dhRXwlK+6eOMGWUGD57BLVTJp0PfTdG/o8+zokAH6VsupIP7JVdGCFY34VM nFZfH5f2VFmsqNvO9ikLXqPL24o92A69TNPLQKf4= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Gaius Mulley To: gcc-cvs@gcc.gnu.org Subject: [gcc/devel/modula-2] Add modula-2 into doc/install.texi and doc/sourcebuild.texi. X-Act-Checkin: gcc X-Git-Author: Gaius Mulley X-Git-Refname: refs/heads/devel/modula-2 X-Git-Oldrev: fb2a3f470856ac36a0b85f05b3555178250d2ad1 X-Git-Newrev: 2e0ff34783ac0fc03ebcfd964bbb650d8779120f Message-Id: <20221214142842.50B9F3844B06@sourceware.org> Date: Wed, 14 Dec 2022 14:28:42 +0000 (GMT) List-Id: https://gcc.gnu.org/g:2e0ff34783ac0fc03ebcfd964bbb650d8779120f commit 2e0ff34783ac0fc03ebcfd964bbb650d8779120f Author: Gaius Mulley Date: Wed Dec 14 13:55:22 2022 +0000 Add modula-2 into doc/install.texi and doc/sourcebuild.texi. Add modula-2 into doc/install.texi and doc/sourcebuild.texi. gcc/ChangeLog: * 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. (gcc/m2) Added. Signed-off-by: Gaius Mulley Diff: --- gcc/doc/install.texi | 10 ++++++++-- gcc/doc/sourcebuild.texi | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/gcc/doc/install.texi b/gcc/doc/install.texi index a085f65bbcb..8d66f2034cb 100644 --- a/gcc/doc/install.texi +++ b/gcc/doc/install.texi @@ -1888,11 +1888,13 @@ grep ^language= */config-lang.in @end smallexample Currently, you can use any of the following: @code{all}, @code{default}, @code{ada}, @code{c}, @code{c++}, @code{d}, -@code{fortran}, @code{go}, @code{jit}, @code{lto}, @code{objc}, @code{obj-c++}. +@code{fortran}, @code{go}, @code{jit}, @code{lto}, @code{m2}, +@code{objc}, @code{obj-c++}. Building the Ada compiler has special requirements, see below. If you do not pass this flag, or specify the option @code{default}, then the default languages available in the @file{gcc} sub-tree will be configured. -Ada, D, Go, Jit, and Objective-C++ are not default languages. LTO is not a +Ada, D, Go, Jit, Objective-C++ and Modula-2 are not default languages. +LTO is not a default language, but is built by default because @option{--enable-lto} is enabled by default. The other languages are default languages. If @code{all} is specified, then all available languages are built. An @@ -1920,6 +1922,10 @@ be built. This can be useful for debugging, or for compatibility with previous Ada build procedures, when it was required to explicitly do a @samp{make -C gcc gnatlib_and_tools}. +@item --disable-libgm2 +Specify that the run-time libraries and tools used by Modula-2 should not +be built. This can be useful for debugging. + @item --disable-libsanitizer Specify that the run-time libraries for the various sanitizers should not be built. diff --git a/gcc/doc/sourcebuild.texi b/gcc/doc/sourcebuild.texi index ffe69d6fcb9..562be485ce8 100644 --- a/gcc/doc/sourcebuild.texi +++ b/gcc/doc/sourcebuild.texi @@ -97,6 +97,9 @@ The GCC runtime library. @item libgfortran The Fortran runtime library. +@item libgm2 +The Modula-2 runtime library. + @item libgo The Go runtime library. The bulk of this library is mirrored from the @uref{https://github.com/@/golang/go, master Go repository}. @@ -184,7 +187,8 @@ The @file{gcc} directory contains the following subdirectories: @item @var{language} Subdirectories for various languages. Directories containing a file @file{config-lang.in} are language subdirectories. The contents of -the subdirectories @file{c} (for C), @file{cp} (for C++), +the subdirectories @file{c} (for C), @file{cp} (for C++), @file{m2} +(for Modula-2), @file{objc} (for Objective-C), @file{objcp} (for Objective-C++), and @file{lto} (for LTO) are documented in this manual (@pxref{Passes, , Passes and Files of the Compiler});