On Sat, 10 Oct 1998, Frank Heckenbach wrote:
differently so the problem did not occur? If you still have that version installed, can you compare the -S output of the previous and the current GPC version to see what's different? (Just to be sure it really isn't a code generation problem...)
I re-installed the previous version exactly as I had it before with GCC 2.7.2.1 and everything, but could not reproduce the error! It's a miracle that it never crashed before.. There is one thing tho, it seems that variables declared within the program are not properly exported outside of the source module. I attatched a simple example program to show what I mean.
See ya! Orlando Llanes
"Meine Damen und Herren, Elvis hat soeben das Gebaeude verlassen!"
"Look out fo' flyeeng feet" O__/ a010111t@bc.seflin.org /|____. O <__. /> / \ ____________|_________ http://ourworld.compuserve.com/homepages/Monkey414
.globl _setcommonvar
.lcomm _Commonvar 4
.globl _globalvar
.globl _foo
.text
_setcommonvar:
movl (_globalvar), %eax
movl %eax, (_Commonvar)
movl %eax, (_foo)
ret
.data
_globalvar: .long 714
_foo: .long 0
PROGRAM COM;
VAR
{ GPC declared variable }
CommonVar : Cardinal;
{ Externally declared variables }
GlobalVar : ASMName 'globalvar' Cardinal;
Foo : ASMName 'foo' Cardinal;
{ External assembly routine }
PROCEDURE SetCommonVar; C;
BEGIN
CommonVar := 0;
GlobalVar := 714;
SetCommonVar;
WriteLn;
WriteLn( 'CommonVar = ', CommonVar:4, ' should be ', GlobalVar );
WriteLn( ' Foo = ', Foo:4, ' should be ', GlobalVar );
WriteLn;
END.