[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] GM2 build: M2Size
From: |
Iztok |
Subject: |
[Gm2] GM2 build: M2Size |
Date: |
Fri, 09 May 2003 11:43:10 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.1) Gecko/20020903 |
M2Size has been left out from the make process.
I have been compiling and linking it by hand and built gm2 successfully.
Still causing errors:
MODULE bits32;
FROM SYSTEM IMPORT BITSET,CAST;
TYPE BITS32 = BITSET;
VAR b : BITSET;
b32 : BITS32;
PROCEDURE f1 (b : BITSET) : BITS32;
BEGIN
RETURN CAST(BITS32,b);
END f1;
BEGIN
b := BITSET{};
b32 := CAST(BITS32,BITSET{3}) + f1(BITSET{3});
END bits32.
> gm2 -c -Wiso -I. -save-temps bits32.mod
../../gcc-3.2+gm2-20030412/gcc/gm2/gm2-compiler/M2Base.mod:534:***
internal error *** unexpected base type
MODULE realbitscast;
FROM SYSTEM IMPORT CAST;
TYPE
BITS32 = SET OF [0..31];
BITS64 = SET OF [0..63];
REAL32 = SHORTREAL;
REAL64 = REAL;
VAR
b32 : BITS32;
b64 : BITS64;
r32 : REAL32;
r64 : REAL64;
BEGIN
b32 := CAST(BITS32,r32);
b64 := CAST(BITS32,r64);
END realbitscast.
> gm2 -c -Wiso -I. -save-temps realbitscast.mod
realbitscast.mod: In function `_M2_realbitscast_init':
realbitscast.mod:17: Internal compiler error in convert_move, at expr.c:502
Please report this crash to the GNU Modula-2 mailing list <address@hidden>
It comes to:
realbitscast.s:
.file "realbitscast.mod"
.local b32
.comm b32,4,4
.local b64
.comm b64,8,4
.local r32
.comm r32,4,4
.local r64
.comm r64,8,8
.local _T9
.comm _T9,4,4
.local _T10
.comm _T10,4,4
I.
- [Gm2] GM2 build: M2Size,
Iztok <=