m2/gm2-gcc/init.cc2022-12-06
02:56:51.344774733 +
@@ -0,0 +1,196 @@
+/* init.cc initializes the modules of the GNU Modula-2 front end.
+
+Copyright (C) 2012-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+This file is part of GNU Modula-2.
+
+GNU Modula-2 is free
g.cc2022-12-06 18:18:32.612239623
+
@@ -0,0 +1,889 @@
+/* gm2-lang.cc language-dependent hooks for GNU Modula-2.
+
+Copyright (C) 2002-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+This file is part of GNU Modula-2.
+
+GNU Modula-2 is free software; you can redi
Martin Liška writes:
> On 12/6/22 15:47, Gaius Mulley wrote:
>> |Hi Martin, here is the revised patch having applied all previous
>> recommendations:
>> https://gcc.gnu.org/pipermail/gcc-patches/2022-October/603436.html. Is
>> this ok now? Thanks for the improvem
anguage
+@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@*
+@s
Martin Liška writes:
> Note I've just converted the current Modula-2 manual to RST (Sphinx):
> https://splichal.eu/scripts/sphinx/
>
> It contains some minor issues, but in general it should be pretty fine. Note
> pygments
> contains a corresponding lexer:
> https://pygments.org/docs/lexers/#mul
Martin Liška writes:
>> gm2.texi. I see a few missing options (missing from gm2.texi) and also
>
> Do you have an example, please?
-fscaffold-main was missing from gcc/doc/gm2.texi. I've git pushed a
correction (and alphabetically sorted all options).
>> I see problems with the libraries - m
Here are the latest modula-2 front end patches for review.
The status of the patches and their contents are also contained at:
https://splendidisolation.ddns.net/public/modula2/patchsummary.html
where they are also broken down into topic groups.
In summary the high level changes from the la
(C) 2004-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+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 vers
ithin GNU Modula-2.
+
+Copyright (C) 2007-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+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 S
t; ; exit 1 ; \
+ fi ; \
+ chmod 644 $(DESTDIR)$(inst_libdir)/$(MULTIDIR)$(M2LIBDIR)$$i ; \
+ done
+
+force:
diff -ruw /dev/null gcc-git-devel-modula2/libgm2/libm2min/libc.c
--- /dev/null 2022-08-24 16:22:16.88870 +0100
+++ gcc-git-devel-modula2/libgm2/libm2min/libc.c
The makefile fragment for modula2 which builds the gm2 driver and cc1gm2.
--8<--8<--8<--8<--8<--8<
diff -ruw /dev/null gcc-git-devel-modula2/gcc/m2/Make-lang.in
--- /dev/null 2022-08-24 16:22:16.88870 +0100
+++ gcc-git-devel-modula2/gcc/m
eLog
--- /dev/null 2022-08-24 16:22:16.88870 +0100
+++ gcc-git-devel-modula2/libgm2/ChangeLog 2022-10-07 20:21:18.730097923
+0100
@@ -0,0 +1,506 @@
+2022-05-18 Gaius Mulley
+
+ * Corrected dates on all source files.
+ * libm2pim/Selective.c: Reformatted comments.
This patch set contains the non machine generated changes found in /
for example the language die and documentation changes. It also
contains the changes to the top level build Makefile infastructure
and the install.texi sourcebuild.texi documentation.
--8<--8<--8<---
m2/gm2-gcc/init.cc2022-10-07
20:21:18.650096940 +0100
@@ -0,0 +1,199 @@
+/* init.cc initializes the modules of the GNU Modula-2 front end.
+
+Copyright (C) 2012-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+This file is part of GNU Modula-2.
+
+GNU Modula-2 is free
New linking implementation is complete, gcc bootstraps and hello
world links. I'll git push the changes, then test/debug/polish and
produce new patch sets
regards,
Gaius
ained by
+mailto:gaius.mul...@southwales.ac.uk";>Gaius Mulley.
+Patches should be
+prefixed with [m2link] in the subject line.
+
coarray_native
This branch is for implementation of a shared memory
implementation of Fortran coarrays. It is maintained by
Gerald Pfeifer writes:
> Hi Gaius,
>
> On Tue, 21 Jun 2022, Gaius Mulley wrote:
>> here is a proposed entry describing a new branch m2link containing the
>> new scaffold development for modula-2. As the description says it is
>> expected that this branch be sho
Hi,
all 11k regression tests pass with the new linking implementation (on
devel/m2link). I plan to migrate the patches back to devel/modula-2 and
then remove devel/m2link. Thereafter {polish,test} and generate new
patch sets. Thanks for the clear explanation on how the dynamic
scaffold should
A very brief update to say that I've merged the new linking
implementation back onto the devel/modula-2 branch,
regards,
Gaius
Rainer Orth writes:
> Hi Gaius,
>
>> A very brief update to say that I've merged the new linking
>> implementation back onto the devel/modula-2 branch,
>
> unfortunately, that branch doesn't bootstrap for me anywere:
>
> * On both x86_64-pc-linux-gnu and i386-pc-solaris2.11:
>
> libtool: compile:
Rainer Orth writes:
Hi Rainer,
many thanks for the patch and log of the failures. I've committed the
patch and rebuilt all Makefile.in's which are affected by m2.
I think this just leaves:
> * While this lets the build finish on all of i386-pc-solaris2.11,
> sparcv9-sun-solaris2.11, and x86
Rainer Orth writes:
>> I think this just leaves:
>>
>>> * While this lets the build finish on all of i386-pc-solaris2.11,
>>> sparcv9-sun-solaris2.11, and x86_64-pc-linux-gnu, I get thousands of
>>> testsuite failures, all of the same kind:
>>>
>>> Undefined first refere
Jakub Jelinek writes:
> Hi!
>
> internal-fn.h since yesterday includes insn-opinit.h, which is a generated
> header.
> One of my bootstraps today failed because some m2 sources started compiling
> before insn-opinit.h has been generated.
>
> Normally, gcc/Makefile.in has
> # In order for parallel
Iain Sandoe writes:
> Tested on various affected Darwin versions and on x86_64-linux-gnu
> OK for trunk?
> OK for 13.2?
> thanks
> Iain
lgtm - many thanks,
regards,
Gaius
Rainer Orth writes:
> When trying to bootstrap current trunk on macOS 14.0 beta 3 with Xcode
> 15 beta 4, the build failed running mklink in stage 2:
>
> unset CC ; m2/boot-bin/mklink -s --langc++ --exit --name m2/mc-boot/main.cc
> /vol/gcc/src/hg/master/darwin/gcc/m2/init/mcinit
> dyld[55825]:
Hello,
the non shared library linking is complete and the gm2 driver has been
rewritten using the fortran/c++ code base. Once the shared library
scaffold is complete the focus will be on tidying up and
platform/architecture testing.
All 11.7k tests pass on amd64 and aarch64 debian
regards,
Ga
Another very brief update to say that I'm now tidying up the code and
primary platform testing
regards,
Gaius
Martin Liška writes:
> On 8/30/22 13:03, Gaius Mulley via Gcc-patches wrote:
>>
>> Another very brief update to say that I'm now tidying up the code and
>> primary platform testing
>>
>> regards,
>> Gaius
>
> Hello.
>
> As you may know I&
Martin Liška writes:
> How do you mean that? You should ideally generate .rst (Sphinx markup)
> instead of the *.texi files. These will be then included in the converted
> Sphinx manual similarly to how you include it now to the Texinfo manual.
>
> Does it make sense?
>
> Cheers,
> Martin
ah rig
Martin Liška writes:
> So please fix the crash I reported and I can convert GM2 texi manual.
will do,
regards,
Gaius
Eric Botcazou writes:
> Hi Gaius,
>
>> yes indeed and thanks for the patch!
>
> You're welcome. The documentation was slightly broken again in the meantime,
> but nothing really serious this time.
>
> Again tested with a modern and an old version of Makeinfo. OK for mainline?
>
>
> 2023-03-27
Thomas Schwinge writes:
> Hi!
>
> On 2022-12-06T14:47:26+0000, Gaius Mulley via Gcc-patches
> wrote:
>> This patch set consists of the libgm2 makefile, autoconf sources
>> necessary to build the libm2pim, libm2iso, libm2min, libm2cor
>> and libm2log.
>
> N
Arsen Arsenović writes:
> $(P) seems to have been a workaround for some old, proprietary make
> implementations that we no longer support. It was removed in
> r0-31149-gb8dad04b688e9c.
>
> gcc/m2/ChangeLog:
>
> * Make-lang.in: Remove references to $(P).
> * Make-maintainer.in: Ditto.
evelopment
+@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
Richard Biener writes:
> On Sat, Dec 10, 2022 at 12:29 PM Gaius Mulley via Gcc-patches
> wrote:
>>
>>
>> This patch contains a replacement doc/gm2.texi which uses American
>> spelling, all references to gm2 outside the gcc tree purged and the
>> News/
Richard Biener writes:
> On Sat, Dec 10, 2022 at 1:49 AM Gaius Mulley via Gcc-patches
> 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
>> t
Richard Biener writes:
> On Wed, Dec 14, 2022 at 8:48 AM Gaius Mulley 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 i
Jakub Jelinek 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
It can be replaced by a subshell'd cd just fine.
(cd gcc/m2; autoconf-2.69)
gcc/m2/ChangeLog:
* configure.ac: Stop probing for realpath.
* tools-src/calcpath: Break dependency on realpath, cut
and echo.
* configure: Rebuilt
---
gcc/m2/config
Add missing profile and feedback hooks consistent with
all other frontends.
gcc/m2/ChangeLog:
* Make-lang.in (m2.stageprofile): Added.
(m2.stagefeedback) Added.
Bootstrapped and tested using
configure --with-build-config=bootstrap-lto-lean --enable-languages=m2
make profiledbo
PR-108122 Reduce sleep times in gm2/pimcoroutines/run/pass/testtime.mod
Change time unit to 1 jiffy (with respect to TimerHandler.def) rather
than a second.
gcc/testsuite/ChangeLog:
* gm2/pimcoroutines/run/pass/testtime.mod: Reduce sleep times in
the test by a factor of 25.
Te
Jakub Jelinek writes:
> Hi!
>
> As mentioned in the PR, bootstrap with m2 enabled currently fails
> on powerpc64le-linux, we get weird ICE after printing some diagnostics.
> The problem is that mc creates from *.def prototypes like
> extern void m2linemap_WarningAtf (m2linemap_location_t location
Jakub Jelinek writes:
> Hi!
>
> On top of the just posted patch, this patch makes sure that
> any % chars in message strings aren't treated as format chars.
> None of these functions take variable number of arguments, so for
> most of format specifiers there is nowhere to take arguments from,
> i
Hello,
PR-108119 Disable m2 plugin m2rte (provide --enable-m2plugin configure option).
The m2 plugin m2rte attempts to find reachable calls to the m2 exception
handler, but it identifies the m2 exception calls by procedure name.
As this won't work with other languages it should be disabled by d
Jakub Jelinek writes:
> Hi!
>
> Lto profiledbootstrap was failing for me on {powerpc64le,s390x}-linux with
> modula 2 enabled, with:
> cc1gm2: internal compiler error: the location value is corrupt
> 0x11a3d2d m2assert_AssertLocation(unsigned int)
> ../../gcc/m2/gm2-gcc/m2assert.cc:40
> 0
Richard Biener writes:
>>
>> ChangeLog:
>>
>> * Makefile.def (extra_configure_flags): Add @enable_m2plugin@.
>> * Makefile.in : Rebuilt.
>> * configure : Rebuilt.
>> * configure.ac (host_tools): Remove unused gm2tools.
>> (m2plugin) New AC_ARG_ENABLE.
>>
Rainer Orth writes:
> Hi Gaius,
>
> Btw., you've got a couple of formatting errors in your ChangeLog entires:
>
ChangeLog:
* Makefile.def (extra_configure_flags): Add @enable_m2plugin@.
* Makefile.in : Rebuilt.
> ^ no blank here. Besid
Hello,
Bootstrapped on amd64 GNU/Linux. Ok for trunk?
regards,
Gaius
--- 8< ---
PR-108142 Remove empty directories created in the build directory.
This patch removes empty directories created in the build directory.
Directories are only created if required and all modula-2 build output
is c
heck cxxobj1 having been rebuilt by the
relevant g++/gcc.
I propose to rework the patch (renaming the directories) and ensure that
Canadian cross works (currently it doesn't) - although it was tested for
classic cross (build == host != target).
regards,
Gaius
>> On 26 Dec 2022, at 1
Iain Sandoe writes:
> There are several modula-2 issues on Darwin, some blocking bootstrap on
> one or more system versions.
>
> This has been tested on powerpc/i688-darwin9 .. x86_64-darwin10,17,21 and
> the prototype aarch64-darwin branch on darwin21.
>
> OK for trunk?
> thanks
> Iain
>
> NOTE:
Iain Sandoe writes:
> Tested on x86_64 and aarch64 Darwin,
> OK for master?
> thanks
> Iain
>
> --- 8< ---
>
> The realbitscast.mod is currently failing on x86_64 and aarch64
> Darwin since they do not have a 96b floating type. Disable the
> type for all Darwin arches.
>
> gcc/testsuite/ChangeL
Iain Sandoe writes:
> Tested on darwin21 with "make m2.pdf" and "make m2.dvi".
> OK for trunk?
> thanks.
> Iain
>
> --- 8< ---
>
> This also uses the configured $(TEXI2DVI) and $(TEXI2PDF) to deal with those
> targets (since we cannot assume to know what the user might have installed).
>
> gcc/m2
Iain Sandoe writes:
> When I first made this patch I had a question as to what should be
> done for registration CTORs generated by the compiler for .mod files.
> I've now answered that question (the code that makes the GCC decl
> has also be updated in a separately posted patch).
>
> teste
Iain Sandoe writes:
> Tested on x86_64-linux-gnu, x86_64,aarch64-darwin21.
> There remain issues with shared libraries, but the link fails are fixed
> by this.
>
> OK for master?
> Thanks
> Iain
>
> --- 8< ---
>
> In the current design the main executable links explicitly to the module
> registra
Iain Sandoe writes:
> tested on x86_64-linux-gnu, x86_64,aarch64-darwin21,
> OK for trunk?
> thanks,
> Iain
>
> --- 8< ---
>
> This was unimplemented so far.
>
> gcc/ChangeLog:
>
> * common.opt: Add -static-libgm2.
> * config/darwin.h (LINK_SPEC): Handle static-libgm2.
>
> gcc/m2/Chan
version.
+#
+# This program 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 Ge
Iain Sandoe writes:
> Oops pressed ‘send' too soon - this is part of the series for Darwin:
>
> There are several modula-2 issues on Darwin, some blocking bootstrap on
> one or more system versions.
>
> This has been tested on powerpc/i688-darwin9 .. x86_64-darwin10,17,21 and
> the prototype aarc
Iain Sandoe writes:
> Hi Gaius,
>
>> On 4 Jan 2023, at 12:11, Gaius Mulley wrote:
>>
>> Iain Sandoe writes:
>>
>>> tested on x86_64-linux-gnu, x86_64,aarch64-darwin21,
>
>>
>> yes LGTM - it was unimplemented - thanks!
>
> My apolo
Iain Sandoe writes:
> Tested on x86_64-darwin21 and x86_64-linux-gnu without any m2 regressions.
> OK for trunk?
> thanks
> Iain
yes sure LGTM
thank you!
Gaius
Hi,
here are some patches which attempt to allow target specific include
paths and library paths in the gm2 driver. I admit that the patch has
flaws in that it only processes options -f, -m in the lang_specific_driver.
[Called after driver::set_up_specs but before read_specs is called].
I susp
ChangeLog entry follows:
regards,
Gaius
[PATCH, modula2] PR-108182 gm2 driver mishandles target and multilib options
here are some patches which attempt to allow target specific include
paths and library paths in the gm2 driver. I admit that the patch has
flaws in that it only processes op
Iain Sandoe writes:
> Tested with a build on x86_64-darwin21, the build warnings are gone and
> the build completed as normal.
> OK for master?
> thanks
> Iain
>
> --- 8< ---
>
> The build is currently emitting a warning that abort() is declared differently
> from the built-in. This updates the
Hi,
This is version 2 with the SKIPOPT applied to every option given to
save_switch.
ok for master? Bootstrapped on x86_64 gnu/linux and darwin.
regards,
Gaius
PR-108182 gm2 driver mishandles target and multilib options
here are some patches which attempt to allow target specific include
Jeff Law via Gcc-patches writes:
> I've been getting sporatic errors like this since the introduction of
> the modula-2 front-end:
>
>> In file included from ../../..//gcc/gcc/m2/mc-boot/GSFIO.c:29:
>> ../../..//gcc/gcc/system.h:556:20: error: conflicting declaration of C
>> function 'const char
Eric Botcazou writes:
> Hi,
>
> the Modula-2 documentation is rejected by older versions of Makeinfo because
> the web of @node markers is fairly broken, apparently some subsections were
> moved around, most notably between the Overview and Using sections, and the
> @node markers were not (pro
PR-108142 Modula-2 configure generates many subdirectories in the top
build directory. This patch dynamically creates subdirectories under
gcc/m2 if and when required.
Bootstrapped on x86_64 gnu/linux, ok for master?
regards,
Gaius
gcc/m2/ChangeLog:
* Make-lang.in (GM2_1): Change -B
Jeff Law writes:
> I'm still seeing it as of about 2 hours ago:
>
> http://law-sandy.freeddns.org:8080/job/avr-elf/2125/console
>
> A good run (yesterday):
>
> http://law-sandy.freeddns.org:8080/job/avr-elf/2124/console
>
>
Hi Jeff,
many thanks for the urls above - useful I'll attempt to reprodu
Jakub Jelinek writes:
> On Tue, Jan 10, 2023 at 11:16:28AM +0100, Richard Biener via Gcc-patches
> wrote:
>> > @@ -424,7 +388,7 @@ override PLUGINCFLAGS := $(filter-out
>> > -mdynamic-no-pic,$(PLUGINCFLAGS))
>> >
>> > plugin/m2rte$(soext): $(srcdir)/m2/plugin/m2rte.cc
>> > $(GCC_HEADER_DEPEND
Jason Merrill writes:
> On 12/6/22 09:47, Gaius Mulley via Gcc-patches wrote:
>> Here are the dejagnu expect library scripts for the gm2
>> testsuite.
>
> A couple of weeks ago I noticed on a testrun that the modula tests
> didn't seem to be timing out properl
Iain Sandoe writes:
> Tested on x86-64-darwin21.
> OK for trunk?
> Iain
yes LGTM,
thanks,
Gaius
> --- 8< ---
>
> Somehow this setting had been missed, and we really need the verbose
> flag to enable useful debug output.
>
> Signed-off-by: Iain Sandoe
>
> gcc/m2/ChangeLog:
>
> * gm2-gcc/
Jakub Jelinek writes:
> Hi!
>
> As mentioned on IRC or in PR108413, the last update-copyright.py --this year
> failed and that is why we are in a strange state where some copyrights have
> been updated and others have not.
> The full list of errors I got was I think:
> gcc/m2/mc-boot/GmcOptions.c
Richard Biener writes:
> The following fixes --enable-version-specific-runtime-libs for
> the modula2 target libraries. The issue is that the install
> happens via for example
>
> toolexeclib_LTLIBRARIES = libm2cor.la
>
> and toolexeclibdir is set to $(toolexecdir)/$(gcc_version)$(MULTISUBDIR)
>
Iain Sandoe writes:
> Tested on x86_64-linux-gnu (with a 32b multilib), powerpc, i686 and
> x86_64-darwin. OK for trunk?
> thanks,
> Iain
LGTM, thank you
regards,
Gaius
Richard Biener writes:
> The following adjusts libgm2 to properly use the multilib build
> infrastructure, thereby fixing the install with
> --enable-version-specific-runtime-libs
>
> In particular config-ml.pl needs to be applied to generated Makefiles
> as documented in the manual and we have t
Iain Sandoe writes:
> tested on x86_64-darwin21 with an updated compiler that does not support
> the path concatentation and on an unpatched trunk.
> OK for trunk?
> thanks
> Iain
>
> --- 8< ---
>
> The original implementation for Modula-2 search paths allows things like
> '-I/path/a:/path/b'. S
Gerald Pfeifer writes:
> I pushed this for now.
>
> Gaius, if you want to make changes to that section of readings.html,
> absolutely be free doing so (and I'll be happy help, too).
>
> Gerald
>
> ---
> htdocs/readings.html | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/htdocs/readings.
Thomas Schwinge writes:
> Hi!
>
> On 2023-04-14T13:49:20+0100, Gaius Mulley via Gcc-patches
> wrote:
>> Thomas Schwinge writes:
>>> Separately, given that plain 'autoreconf' works, why have 'autogen.sh' at
>>> all?
>>
>> If
Bernhard Reutner-Fischer via Gcc-patches
writes:
> From: Bernhard Reutner-Fischer
>
> gcc/m2/ChangeLog:
>
> * gm2-gcc/m2builtins.cc (doradix): Use _P defines from tree.h.
> (doplaces): Ditto.
> (doexponentmin): Ditto.
> (doexponentmax): Ditto.
> (dolarge): Ditto.
>
Bernhard Reutner-Fischer via Gcc-patches
writes:
> From: Bernhard Reutner-Fischer
>
> gcc/m2/ChangeLog:
>
> * gm2-gcc/m2builtins.cc (doradix): Use _P defines from tree.h.
> (doplaces): Ditto.
> (doexponentmin): Ditto.
> (doexponentmax): Ditto.
> (dolarge): Ditto.
>
hTidy)
+visitDir(".", ".py", bashTidy)
+visitDir(".", ".c", cTidy)
+visitDir(".", ".h", cTidy)
+visitDir(".", ".def", m2Tidy)
+visitDir(".", ".mod", m2Tidy)
+
+
+main()
diff -ruw /d
Martin Liška writes:
> 1) I would prefer using ' instead of ":
>
> $ flake8 ./gcc/m2/tools-src/tidydates.py
> ...
> ./gcc/m2/tools-src/tidydates.py:124:30: Q000 Double quotes found but single
> quotes preferred
> ./gcc/m2/tools-src/tidydates.py:127:27: Q000 Double quotes found but single
> quot
Richard Biener writes:
> On Mon, Oct 10, 2022 at 5:36 PM Gaius Mulley via Gcc-patches
> wrote:
>>
>>
>>
>> This patch set contains the non machine generated changes found in /
>> for example the language die and documentation changes. It also
>> c
Richard Biener writes:
>> +M2_MAINTAINER = no
>> +
>> +CPP_GM2=-fpermissive -DIN_GCC -g
>
> Do we really need -fpermissive here?
no not needed (and now removed) - thanks for spotting it.
>> +GM2_1 = ./gm2 -B./stage1/m2 -g -fm2-g
>> +
>> +GM2_FOR_TARGET = $(STAGE_CC_WRAPPER) ./gm2 -B./ -B$(build
Richard Biener writes:
> On Mon, Oct 10, 2022 at 5:32 PM Gaius Mulley via Gcc-patches
> wrote:
>>
>>
>> Here are the latest modula-2 front end patches for review.
>> The status of the patches and their contents are also contained at:
>>
>>https:/
Hello,
bootstrapped on gcc master x86_64 and no extra failures generated on all
front ends.
Would this be ok for trunc?
regards,
Gaius
Allow front ends to register spec functions gcc/{gcc.cc,gcc.h} [PR108261]
This patch allows front ends to register spec functions. It is motivated
by PR108
Hello,
bootstrapped on gcc master x86_64 and no extra failures generated on all
front ends.
Would this be ok for trunc?
regards,
Gaius
Allow front ends to register spec functions gcc/{gcc.cc,gcc.h} [PR108261]
This patch allows front ends to register spec functions. It is motivated
by PR108
Gerald Pfeifer writes:
> Hi Gaius,
>
> apologies, I thought you had pushed the updated patch and only now
> realized it's not in yet.
>
> Please look into the few bits below and then go ahead and push.
>
> On Mon, 6 Feb 2023, Gaius Mulley wrote:
>> * htdo
Gerald Pfeifer writes:
> Note that in HTML < and > have a special meaning, so we cannot simply
> write "<* noreturn *>", but need to escape it as "<* noreturn *>".
>
> Pushed.
>
> Gerald
apologies and thanks for correcting this bug
regards,
Gaius
Gerald Pfeifer writes:
> The patch is now in, alas all the GNU M2 manual links now point to
> non-existant locations.
>
> Does maintainer-scripts/update_web_docs_git require an update to cover
> Modula-2 and actually build the manual we are now linking to (or rather
> trying to)?
>
> Gerald
Ap
0070 +0100
+++ gcc-git-devel-modula2/gcc/m2/plugin/m2rte.cc2022-10-07
20:21:18.682097332 +0100
@@ -0,0 +1,335 @@
+/* m2rte.cc a plugin to detect runtime exceptions at compiletime.
+
+Copyright (C) 2017-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+This file is pa
la2/gcc/m2/gm2-gcc/m2linemap.cc 2022-10-07
20:21:18.650096940 +0100
@@ -0,0 +1,254 @@
+/* m2linemap.cc provides an interface to GCC linemaps.
+
+Copyright (C) 2012-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+This file is part of GNU Modula-2.
+
+GNU Modula-2 is free software; you c
E. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GCC; see the file COPYING3. If not see
+# <http://www.gnu.org/licenses/>.
+
+# This file was written by Gaius Mulley (gaius.mul...@southwales.ac
lated system calls.
+
+Copyright (C) 2008-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+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
s to miscellaneous math functions.
+
+Copyright (C) 2005-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+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 publ
m2-gcc/m2assert.cc2022-10-07
20:21:18.650096940 +0100
@@ -0,0 +1,41 @@
+/* m2assert.cc provides a simple assertion for location.
+
+Copyright (C) 2012-2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+This file is part of GNU Modula-2.
+
+GNU Modula-2 is free software; you c
visitDir('.', '.mod', m2Tidy)
+
+
+main ()
diff -ruw /dev/null gcc-git-devel-modula2/gcc/m2/tools-src/boilerplate.py
--- /dev/null 2022-08-24 16:22:16.88870 +0100
+++ gcc-git-devel-modula2/gcc/m2/tools-src/boilerplate.py 2022-10-07
20:21:18.682097332 +0100
@@ -0,0 +1,
2022 Free Software Foundation, Inc.
+Contributed by Gaius Mulley .
+
+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
Rainer Orth writes:
> Hi Gaius,
>
>> Testing
>> ===
> [...]
>> The devel/modula-2 branch has been bootstrapped on:
>>
> [...]
>>sparc64 solaris
>>sparc32 solaris
>
> which versions exactly did you run those bootstraps on? I'm asking
> because for Solaris 11.4/SPARCV9 (sparcv9-sun-sol
David Malcolm writes:
> On Thu, 2022-10-13 at 11:44 +0200, Gerald Pfeifer wrote:
>> Hi Martin,
>>
>> On Thu, 13 Oct 2022, Martin Liška wrote:
>> > I think we should add how Python scripts should be formatted. I
>> > noticed
>> > that while reading the Modula-2 patchset where it follows the C/C++
outfile.write(l[n])
>> +n += 1
>> +outfile.close()
>
> ... will be closed automatically by 'with' statement.
>
>> +sys.stdout.write("%s:1:1 needs a Copyright notice..\n" % file)
>> +
>> +
>> +#
101 - 200 of 230 matches
Mail list logo