[comp.lang.modula3] Problems with beta4

RHOOVER@IBM.COM (Roger Hoover) (02/22/91)

I've been compiling beta4 on a Sparcstation 1 using gcc.

1) builtin_driver_args in m3.c writes into its argument, which
can be a string constant.  This requires the gcc
-fwritable-strings flag.  Are writable strings required for the
target code as well?

2) I've been getting nondeterministic runtime errors from the m3
compiler.  Anyone else see this?  They go away if you retry the
compile.  For example:

.ROOT/system/driver/m3.local -D.ROOT/libs/Xlib/Interfaces:.ROOT/libs/Xt/Interfac
es:.ROOT/libs/Xaw/Interfaces -g -c xboxes.m3
M3 runtime error: Value out of range
Program .ROOT/system/compiler/m3compiler got fatal signal 3.
*** Error code 1

% make demos
--- X11R4 starting on Thu Feb 21 18:46:29 EST 1991
------ examples starting on Thu Feb 21 18:46:31 EST 1991
.ROOT/system/driver/m3.local -D.ROOT/libs/Xlib/Interfaces:.ROOT/libs/Xt/Interfac
es:.ROOT/libs/Xaw/Interfaces -g -c xboxes.m3
.ROOT/system/driver/m3.local -D.ROOT/libs/Xlib/Interfaces:.ROOT/libs/Xt/Interfac
es:.ROOT/libs/Xaw/Interfaces -g -o xboxes xboxes.mo  .ROOT/libs/Xaw/libm3Xaw.a .
ROOT/libs/Xt/libm3Xt.a  .ROOT/libs/Xlib/libm3X11.a        /usr/lib/libXaw.a /usr

I also got the same error with Xlib/X.i3.  Anyone else see this?

roger hoover
rhoover@ibm.com

muller@src.dec.com (Eric Muller) (02/23/91)

In article <9102220004.AA28265@cirrus.watson.ibm.com>, Roger Hoover
reports some problems with 1.6beta4:
 
 > 1) builtin_driver_args in m3.c writes into its argument, which
> can be a string constant.  This requires the gcc
> -fwritable-strings flag.  Are writable strings required for the
> target code as well?

I fixed that routine so that it doesn't write into its argument. I am
not sure about generated code, but I would guess that we don't try to
modify it. 

> 2) I've been getting nondeterministic runtime errors from the m3
> compiler.

I haven't seen this (but we don't have Sparcstations). Looks like an
uninitialized variable somewhere, but where ?

Eric.