From MAILER-DAEMON Wed Jul 02 03:49:34 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KDx5q-0003t9-P2 for mharc-gm2@gnu.org; Wed, 02 Jul 2008 03:49:34 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KDx5p-0003sx-As for gm2@nongnu.org; Wed, 02 Jul 2008 03:49:33 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KDx5m-0003si-Qg for gm2@nongnu.org; Wed, 02 Jul 2008 03:49:32 -0400 Received: from [199.232.76.173] (port=49941 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KDx5m-0003sf-NE for gm2@nongnu.org; Wed, 02 Jul 2008 03:49:30 -0400 Received: from mx20.gnu.org ([199.232.41.8]:19929) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KDx5m-0001EO-N2 for gm2@nongnu.org; Wed, 02 Jul 2008 03:49:30 -0400 Received: from jess.glam.ac.uk ([193.63.147.97]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KDx5k-00036N-A3 for gm2@nongnu.org; Wed, 02 Jul 2008 03:49:28 -0400 Received: from j228-gm.comp.glam.ac.uk ([193.63.148.84]) by jess.glam.ac.uk with esmtp (Exim 3.35 #1) id 1KDx4y-0001Dv-00; Wed, 02 Jul 2008 08:48:40 +0100 Received: from gaius by j228-gm.comp.glam.ac.uk with local (Exim 4.63) (envelope-from ) id 1KDx5b-0001kF-Mk; Wed, 02 Jul 2008 08:49:19 +0100 Sender: gaius@j228-gm.comp.glam.ac.uk To: eirsch@yahoo.de References: <639052.86638.qm@web26607.mail.ukl.yahoo.com> From: Gaius Mulley Date: 02 Jul 2008 08:49:19 +0100 In-Reply-To: <639052.86638.qm@web26607.mail.ukl.yahoo.com> Message-ID: <878wwkk9og.fsf@j228-gm.comp.glam.ac.uk> Lines: 21 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-kernel: by mx20.gnu.org: Solaris 2.5-7 (2) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Cc: gm2@nongnu.org Subject: [Gm2] Re: Great problems with gm2 X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 02 Jul 2008 07:49:33 -0000 Erik Irsch writes: > Hello, > =A0 > I have great problems to get gm2 working. I am using Solaris 10 on a SPAR= C maschine > (Ultra 10). I am able to compile a program, but=A0 allways get an=A0asser= t and a abort core > at the end of the program.=A0The hello sample from examples compile and r= un without > problems. Any idea? > =A0 > Best regards, > =A0 > Erik Hi Erik, thanks for the bug report. I've just fixed two bugs in gm2/gm2-libs/FIO.mod and gm2/gm2-libs-pim/FileSystem.mod and there is a new gcc-4.1.2+gm2 tarball available regards, Gaius From MAILER-DAEMON Mon Jul 07 17:05:10 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KFxtW-0004nj-St for mharc-gm2@gnu.org; Mon, 07 Jul 2008 17:05:10 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFxtV-0004nd-9Q for gm2@nongnu.org; Mon, 07 Jul 2008 17:05:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFxtU-0004nN-RJ for gm2@nongnu.org; Mon, 07 Jul 2008 17:05:08 -0400 Received: from [199.232.76.173] (port=42036 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFxtU-0004nK-If for gm2@nongnu.org; Mon, 07 Jul 2008 17:05:08 -0400 Received: from jess.glam.ac.uk ([193.63.147.97]:45580) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFxtT-0005AZ-Tm for gm2@nongnu.org; Mon, 07 Jul 2008 17:05:08 -0400 Received: from j228-gm.comp.glam.ac.uk ([193.63.148.84]) by jess.glam.ac.uk with esmtp (Exim 3.35 #1) id 1KFxsi-0002LN-00 for gm2@nongnu.org; Mon, 07 Jul 2008 22:04:20 +0100 Received: from gaius by j228-gm.comp.glam.ac.uk with local (Exim 4.63) (envelope-from ) id 1KFxtE-0005IK-3d for gm2@nongnu.org; Mon, 07 Jul 2008 22:04:52 +0100 Sender: gaius@j228-gm.comp.glam.ac.uk To: gm2@nongnu.org From: Gaius Mulley Date: 07 Jul 2008 22:04:52 +0100 Message-ID: <87y74de77v.fsf@j228-gm.comp.glam.ac.uk> Lines: 83 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Solaris 2.5-7 (2) Subject: [Gm2] status report X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jul 2008 21:05:09 -0000 Hi, Currently I'm working on implementing exception handling, which I believe is easier than I first thought :-). The model being used can be seen here: http://cvs.savannah.gnu.org/viewvc/testsuite/gm2/iso/run/pass/except2.mod?root=gm2&view=markup http://cvs.savannah.gnu.org/viewvc/testsuite/gm2/iso/run/pass/except.c?revision=1.1&root=gm2&view=markup&pathrev=MAIN GM2 understands the EXCEPT block and produces a local procedure (to be used as the exception handler). However none of the calls to longjmp/setjmp are in the compiler yet. Nevertheless the concept appears to work. I think after exception handling only complex numbers, keyword PACKED and dynamic multidimensional arrays parameters remain to be implemented before ISO M2 is complete. Finally here are the latest change log entries: * gm2/Make-lang.in: add new rules for building shared libraries with -O2 and -O0. They are now stored in separate directories and gm2 will link against the appropriate variety given the command line options. * gm2/NEWS: updated to reflect 0.63 and the new features. * gm2/TODO: updated and removed completed tasks and introduced new tasks. * gm2/gm2.texi: updated internal runtime section which now matches the new exception handling code. Also introduced a section on how exception handling is implemented in GNU Modula-2 (using the setjmp/longjmp mechanism). * gm2/gm2builtins.c: added setjmp, longjmp to the builtins. * gm2/gm2spec.c: detect -O2 and modify the link path accordingly. * gm2/m2.flex: add RETRY and EXCEPT keywords. * gm2/m2pp.c: fixed pretty printing of GCC Trees (in Modula-2 syntax) so that nested procedures are displayed correctly. * gm2/bnf/gm2l.bnf: add RETRY and EXCEPT keywords. * gm2/bnf/gm2m.bnf: add RETRY and EXCEPT keywords. * gm2/bnf/m2-2.bnf: add RETRY and EXCEPT keywords. * gm2/bnf/m2-3.bnf: add RETRY and EXCEPT keywords. * gm2/bnf/m2-h.bnf: add RETRY and EXCEPT keywords. * gm2/bnf/m2.bnf: add RETRY and EXCEPT keywords. * gm2/el/g-mode.el: add indent support for EXCEPT block. * gm2/gm2-compiler/M2ALU.def: fixed date in comment. * gm2/gm2-compiler/M2ALU.mod: fixed date in comment. * gm2/gm2-compiler/M2GCCDeclare.def: fixed date in comment. * gm2/gm2-compiler/M2GCCDeclare.mod: fixed date in comment. * gm2/gm2-compiler/M2GenGCC.def: fixed date in comment. * gm2/gm2-compiler/M2GenGCC.mod: fixed date in comment. * gm2/gm2-compiler/M2Quads.def: introduced BuildExcept procedures. * gm2/gm2-compiler/M2Quads.mod: implement BuildExcept procedures. Fixed GetNextQuad to do this and not skip a DummyOp quadruple. Except block builds a local nested procedure for the exception block. The retry code is currently broken. * gm2/gm2-compiler/M2Reserved.def: added RetryTok and ExceptTok. * gm2/gm2-compiler/NameKey.def: fixed spacing. * gm2/gm2-libs/Break.mod: fixed comment. * gm2/gm2-libs/Builtins.def: define and export longjmp and setjmp. * gm2/gm2-libs/M2EXCEPTION.def: fixed comment dates. * gm2/gm2-libs/M2RTS.def: fixed comment dates. * gm2/gm2-libs/RTExceptions.def: fixed indentation. * gm2/tools-src/createUlmSys: now creates a _M2_SYSTEM_finish section to the C SYSTEM implementation module. * gm2/ulm-lib-gm2/sys/termios.c: added a _M2_termios_finish section. * gm2/gm2builtins.c: fixed bug in longjump prototype and included setjmp into the table of builtins. Also fixed gm2builtins_BuildBuiltinTree to set the last function to NULL_TREE if the function returns void. * gm2/gm2-compiler/M2GenGCC.mod: refactored CodeDirectCall. * gm2/gm2-libs/Builtins.def: added comment about internal longjmp's restriction. * gm2/gm2-libs/libc.def: added setjmp/longjmp definitions. regards, Gaius From MAILER-DAEMON Thu Jul 10 06:54:54 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KGtna-0006Fp-6q for mharc-gm2@gnu.org; Thu, 10 Jul 2008 06:54:54 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGtnY-0006Ez-Eo for gm2@nongnu.org; Thu, 10 Jul 2008 06:54:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGtnV-0006DV-Re for gm2@nongnu.org; Thu, 10 Jul 2008 06:54:51 -0400 Received: from [199.232.76.173] (port=42470 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGtnV-0006D4-Cg for gm2@nongnu.org; Thu, 10 Jul 2008 06:54:49 -0400 Received: from jess.glam.ac.uk ([193.63.147.97]:42184) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGtnU-00021E-Ss for gm2@nongnu.org; Thu, 10 Jul 2008 06:54:49 -0400 Received: from j228-gm.comp.glam.ac.uk ([193.63.148.84]) by jess.glam.ac.uk with esmtp (Exim 3.35 #1) id 1KGtmg-000252-00 for gm2@nongnu.org; Thu, 10 Jul 2008 11:53:58 +0100 Received: from gaius by j228-gm.comp.glam.ac.uk with local (Exim 4.63) (envelope-from ) id 1KGtnL-0001Ui-6N for gm2@nongnu.org; Thu, 10 Jul 2008 11:54:39 +0100 Sender: gaius@j228-gm.comp.glam.ac.uk To: gm2@nongnu.org From: Gaius Mulley Date: 10 Jul 2008 11:54:39 +0100 Message-ID: <87hcay3t74.fsf@j228-gm.comp.glam.ac.uk> Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Solaris 2.5-7 (2) Subject: [Gm2] frame and return address of functions X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 10:54:52 -0000 Hi, these can now be obtained by the new builtin functions (frame_address and return_address). So for example the following code sets the return address in 'a'. The parameter indicates how many levels you wish to go back up the call stack. MODULE return ; FROM SYSTEM IMPORT ADDRESS ; FROM Builtins IMPORT return_address ; PROCEDURE foo ; VAR a: ADDRESS ; BEGIN a := return_address (0) END foo ; BEGIN foo END return. regards, Gaius From MAILER-DAEMON Thu Jul 10 09:26:37 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KGwAP-00076U-7t for mharc-gm2@gnu.org; Thu, 10 Jul 2008 09:26:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGwAM-00076A-Uk for gm2@nongnu.org; Thu, 10 Jul 2008 09:26:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGwAL-00075m-Ro for gm2@nongnu.org; Thu, 10 Jul 2008 09:26:34 -0400 Received: from [199.232.76.173] (port=54577 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGwAL-00075j-O1 for gm2@nongnu.org; Thu, 10 Jul 2008 09:26:33 -0400 Received: from smtp-relay2h.uniserve.ca ([216.113.194.206]:59549 helo=smtp-relay2.uniserve.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGwAL-0007MW-Ca for gm2@nongnu.org; Thu, 10 Jul 2008 09:26:33 -0400 Received: from gw1.certicom.com ([38.113.160.194] helo=[10.0.4.95]) by smtp-relay2.uniserve.ca with esmtpa (Exim 4.63) (envelope-from ) id 1KGwAA-0001dx-UK for gm2@nongnu.org; Thu, 10 Jul 2008 06:26:23 -0700 Message-ID: <48760DD4.4010709@ca.inter.net> Date: Thu, 10 Jul 2008 09:25:40 -0400 From: John O Goyo User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: GM2 References: <87hcay3t74.fsf@j228-gm.comp.glam.ac.uk> In-Reply-To: <87hcay3t74.fsf@j228-gm.comp.glam.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: OK. Scanned. X-Uniserve-Spam-Score: 0.0 0 (/) X-Uniserve-Spam-Report: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: [Gm2] Re: frame and return address of functions X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jgoyo@ca.inter.net List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 13:26:35 -0000 Gaius Mulley wrote: > Hi, > > these can now be obtained by the new builtin functions (frame_address > and return_address). So for example the following code sets the > return address in 'a'. The parameter indicates how many levels you > wish to go back up the call stack. I am curious as to why these were added. john From MAILER-DAEMON Thu Jul 10 10:10:56 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KGwrI-0007F6-Ai for mharc-gm2@gnu.org; Thu, 10 Jul 2008 10:10:56 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGwrG-0007DS-Iy for gm2@nongnu.org; Thu, 10 Jul 2008 10:10:54 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGwrE-0007BQ-Fn for gm2@nongnu.org; Thu, 10 Jul 2008 10:10:53 -0400 Received: from [199.232.76.173] (port=39126 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGwrE-0007BE-8b for gm2@nongnu.org; Thu, 10 Jul 2008 10:10:52 -0400 Received: from jess.glam.ac.uk ([193.63.147.97]:49046) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGwrD-0000vt-WD for gm2@nongnu.org; Thu, 10 Jul 2008 10:10:52 -0400 Received: from j228-gm.comp.glam.ac.uk ([193.63.148.84]) by jess.glam.ac.uk with esmtp (Exim 3.35 #1) id 1KGwqQ-0004Pr-00; Thu, 10 Jul 2008 15:10:02 +0100 Received: from gaius by j228-gm.comp.glam.ac.uk with local (Exim 4.63) (envelope-from ) id 1KGwr2-0001d9-R0; Thu, 10 Jul 2008 15:10:40 +0100 Sender: gaius@j228-gm.comp.glam.ac.uk To: jgoyo@ca.inter.net Subject: Re: [Gm2] Re: frame and return address of functions References: <87hcay3t74.fsf@j228-gm.comp.glam.ac.uk> <48760DD4.4010709@ca.inter.net> From: Gaius Mulley Date: 10 Jul 2008 15:10:40 +0100 In-Reply-To: <48760DD4.4010709@ca.inter.net> Message-ID: <874p6xg78f.fsf@j228-gm.comp.glam.ac.uk> Lines: 19 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Solaris 2.5-7 (2) Cc: GM2 X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 14:10:55 -0000 John O Goyo writes: > Gaius Mulley wrote: > > Hi, > > these can now be obtained by the new builtin functions (frame_address > > and return_address). So for example the following code sets the > > return address in 'a'. The parameter indicates how many levels you > > wish to go back up the call stack. > > I am curious as to why these were added. Hi John, at present, only for completeness as they were commented out in gm2/gm2builtins.c (all the work is done by the GCC backend). They might be useful for embedded systems I guess, regards, Gaius From MAILER-DAEMON Thu Jul 10 11:04:22 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KGxh0-0002Zp-H5 for mharc-gm2@gnu.org; Thu, 10 Jul 2008 11:04:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGxgz-0002ZJ-AQ for gm2@nongnu.org; Thu, 10 Jul 2008 11:04:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGxgy-0002YE-1z for gm2@nongnu.org; Thu, 10 Jul 2008 11:04:20 -0400 Received: from [199.232.76.173] (port=50940 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGxgx-0002YB-SL for gm2@nongnu.org; Thu, 10 Jul 2008 11:04:19 -0400 Received: from jess.glam.ac.uk ([193.63.147.97]:51636) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGxgx-0004OX-5o for gm2@nongnu.org; Thu, 10 Jul 2008 11:04:19 -0400 Received: from j228-gm.comp.glam.ac.uk ([193.63.148.84]) by jess.glam.ac.uk with esmtp (Exim 3.35 #1) id 1KGxgB-0005NG-00 for gm2@nongnu.org; Thu, 10 Jul 2008 16:03:31 +0100 Received: from gaius by j228-gm.comp.glam.ac.uk with local (Exim 4.63) (envelope-from ) id 1KGxgm-0001f5-CZ for gm2@nongnu.org; Thu, 10 Jul 2008 16:04:08 +0100 Sender: gaius@j228-gm.comp.glam.ac.uk To: gm2@nongnu.org From: Gaius Mulley Date: 10 Jul 2008 16:04:08 +0100 Message-ID: <87lk09zspj.fsf@j228-gm.comp.glam.ac.uk> Lines: 18 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Solaris 2.5-7 (2) Subject: [Gm2] exception examples X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 15:04:21 -0000 Hi, I've added some exception examples into testsuite/gm2/iso/run/pass. except2.mod # ISO Modula-2 exception example code except.c # GNU C implementation of the same code except3.cpp # C++ implementation of the same code it looks as if gm2 will follow the C++ mechanics (internally to GCC - rather than the longjmp/setjmp solution). As such if there are any C++ programmers on the list (who have also used ISO M2 exception handlers) - I'd value you checking the except3.cpp to ensures that it is semantically the same and that the C++ code is sensible. It certainly gives the same output as except.c. regards, Gaius From MAILER-DAEMON Thu Jul 10 11:44:34 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KGyJt-0001Et-Rm for mharc-gm2@gnu.org; Thu, 10 Jul 2008 11:44:33 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KGyJr-0001EB-VE for gm2@nongnu.org; Thu, 10 Jul 2008 11:44:32 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KGyJq-0001De-8n for gm2@nongnu.org; Thu, 10 Jul 2008 11:44:31 -0400 Received: from [199.232.76.173] (port=41337 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KGyJq-0001Db-1g for gm2@nongnu.org; Thu, 10 Jul 2008 11:44:30 -0400 Received: from smtp-relay2h.uniserve.ca ([216.113.194.206]:48103 helo=smtp-relay2.uniserve.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KGyJp-0004Gk-JT for gm2@nongnu.org; Thu, 10 Jul 2008 11:44:29 -0400 Received: from gw1.certicom.com ([38.113.160.194] helo=[10.0.4.95]) by smtp-relay2.uniserve.ca with esmtpa (Exim 4.63) (envelope-from ) id 1KGyJl-0000S5-Oj for gm2@nongnu.org; Thu, 10 Jul 2008 08:44:26 -0700 Message-ID: <48762E2E.607@ca.inter.net> Date: Thu, 10 Jul 2008 11:43:42 -0400 From: John O Goyo User-Agent: Thunderbird 2.0.0.12 (X11/20080213) MIME-Version: 1.0 To: GM2 References: <87lk09zspj.fsf@j228-gm.comp.glam.ac.uk> In-Reply-To: <87lk09zspj.fsf@j228-gm.comp.glam.ac.uk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: OK. Scanned. X-Uniserve-Spam-Score: 0.0 0 (/) X-Uniserve-Spam-Report: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: [Gm2] Re: exception examples X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jgoyo@ca.inter.net List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 15:44:32 -0000 Gaius Mulley wrote: > Hi, > > I've added some exception examples into testsuite/gm2/iso/run/pass. > > except2.mod # ISO Modula-2 exception example code > except.c # GNU C implementation of the same code > except3.cpp # C++ implementation of the same code I only build the C and gm2 portions. Will this be detected or will this C++ test always fail. john > > it looks as if gm2 will follow the C++ mechanics (internally to GCC - > rather than the longjmp/setjmp solution). As such if there are any > C++ programmers on the list (who have also used ISO M2 exception > handlers) - I'd value you checking the except3.cpp to ensures that it > is semantically the same and that the C++ code is sensible. > It certainly gives the same output as except.c. > > regards, > Gaius From MAILER-DAEMON Thu Jul 10 14:26:11 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KH0qJ-0002Dl-LR for mharc-gm2@gnu.org; Thu, 10 Jul 2008 14:26:11 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KH0qG-0002CU-AY for gm2@nongnu.org; Thu, 10 Jul 2008 14:26:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KH0qC-0002Bv-MN for gm2@nongnu.org; Thu, 10 Jul 2008 14:26:07 -0400 Received: from [199.232.76.173] (port=46677 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KH0qC-0002Bs-Fh for gm2@nongnu.org; Thu, 10 Jul 2008 14:26:04 -0400 Received: from jess.glam.ac.uk ([193.63.147.97]:56126) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KH0qC-0007XQ-8q for gm2@nongnu.org; Thu, 10 Jul 2008 14:26:04 -0400 Received: from j228-gm.comp.glam.ac.uk ([193.63.148.84]) by jess.glam.ac.uk with esmtp (Exim 3.35 #1) id 1KH0pQ-0007Ud-00; Thu, 10 Jul 2008 19:25:16 +0100 Received: from gaius by j228-gm.comp.glam.ac.uk with local (Exim 4.63) (envelope-from ) id 1KH0py-0001ke-Ih; Thu, 10 Jul 2008 19:25:50 +0100 Sender: gaius@j228-gm.comp.glam.ac.uk To: jgoyo@ca.inter.net Subject: Re: [Gm2] Re: exception examples References: <87lk09zspj.fsf@j228-gm.comp.glam.ac.uk> <48762E2E.607@ca.inter.net> From: Gaius Mulley Date: 10 Jul 2008 19:25:50 +0100 In-Reply-To: <48762E2E.607@ca.inter.net> Message-ID: <87zlop4mvl.fsf@j228-gm.comp.glam.ac.uk> Lines: 16 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-detected-kernel: by monty-python.gnu.org: Solaris 2.5-7 (2) Cc: GM2 X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Jul 2008 18:26:09 -0000 John O Goyo writes: > Gaius Mulley wrote: > > except2.mod # ISO Modula-2 exception example code > > except.c # GNU C implementation of the same code > > except3.cpp # C++ implementation of the same code > > I only build the C and gm2 portions. Will this be detected or will > this C++ test always fail. Hi, it should be ignored as the tcl scripts only invoke gm2 for *.mod. regards, Gaius From MAILER-DAEMON Tue Jul 29 11:42:44 2008 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KNrLY-0003tc-Cq for mharc-gm2@gnu.org; Tue, 29 Jul 2008 11:42:44 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KNrLW-0003qe-L4 for gm2@nongnu.org; Tue, 29 Jul 2008 11:42:42 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KNrLW-0003qJ-2o for gm2@nongnu.org; Tue, 29 Jul 2008 11:42:42 -0400 Received: from [199.232.76.173] (port=51960 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KNrLV-0003qG-RR for gm2@nongnu.org; Tue, 29 Jul 2008 11:42:41 -0400 Received: from smtp-relay2g.uniserve.ca ([216.113.194.205]:38574 helo=smtp-relay2.uniserve.ca) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KNrLV-0006cg-FI for gm2@nongnu.org; Tue, 29 Jul 2008 11:42:41 -0400 Received: from 1cust22.tnt12.dial.tor2.uunet.ca ([66.48.181.22]) by smtp-relay2.uniserve.ca with esmtp (Exim 4.63) (envelope-from ) id 1KNrLQ-0008IH-M8 for gm2@nongnu.org; Tue, 29 Jul 2008 08:42:38 -0700 Message-ID: <488F3A34.5050809@ca.inter.net> Date: Tue, 29 Jul 2008 11:41:40 -0400 From: John O Goyo User-Agent: Thunderbird 2.0.0.14 (X11/20080421) MIME-Version: 1.0 To: GM2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanner: OK. Scanned. X-Uniserve-Spam-Score: 0.0 0 (/) X-Uniserve-Spam-Report: Content analysis details: (0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: [Gm2] Summary report of gm2 of 2008-07-10 on HP-UX 11.11 on PA X-BeenThere: gm2@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jgoyo@ca.inter.net List-Id: GNU Modula-2 development and user list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Jul 2008 15:42:43 -0000 I am pleased to report a successful build (with one caveat, below), a successful gm2.paranoid, and the following summary of check-gm2. === gm2 Summary === # of expected passes 14160 # of unexpected failures 246 # of unresolved testcases 120 (Full results to be mailed to Gaius separately.) The binaries are LP64: heap: ~% file gm2/bin/gm2* gm2/bin/gm2: ELF-64 executable object file - PA-RISC 2.0 (LP64) gm2/bin/gm2m: ELF-64 executable object file - PA-RISC 2.0 (LP64) The configuration line is the following: CC=gcc CONFIG_SHELL=/usr/local/bin/bash ../../src/gcc-4.1.2/configure --prefix=/home/build/gm2 --exec-prefix=/home/build/gm2 --without-gnu-as --with-as=/opt/hp-gcc64/bin/as --without-gnu-ld --with-ld=/usr/ccs/bin/ld --without-dwarf2 --enable-languages=c,gm2 Finally, the caveat: createUlmSys insists that getdents exists. There is no such function in HP-UX. Getdents is a BSD function. I finally removed the line that refers to it and all went well thereafter. john