Why can't GHC print out these strings?

1999-01-03 Thread George Russell
Attached are two programs, both of which are supposed to print a string. Long.hs looks fairly simple to me. However when compiled with ghc -O2, I get a segmentation fault: > ghc Long.hs -o long -O2 > ./long > Segmentation Fault With ghc -O or ghc it works. I suppose this is probably a memory pr

Re: Why can't GHC print out these strings?

1999-01-03 Thread Michael Weber
On Fri, Nov 05, 1999 at 15:59:29 +0100, George Russell wrote: > Long.hs looks fairly simple to me. However when compiled with > ghc -O2, I get a segmentation fault: > > ghc Long.hs -o long -O2 > > ./long > > Segmentation Fault works, regardless of '', '-O', '-O2'... > ABC.hs is a little more co

RE: Why can't GHC print out these strings?

1999-11-07 Thread Simon Marlow
> Attached are two programs, both of which are supposed to > print a string. > > Long.hs looks fairly simple to me. However when compiled with > ghc -O2, I get a segmentation fault: > > ghc Long.hs -o long -O2 > > ./long > > Segmentation Fault > With ghc -O or ghc it works. I suppose this is p

Re: Why can't GHC print out these strings?

1999-11-08 Thread George Russell
Simon Marlow wrote: > This one is probably fixed by the commit I made last thing Friday; > non-blocking writes weren't happening properly. I'll take a look at your > other problem on Monday - I assume this is a ghc built from recently > checked-out CVS sources? If so, what date? Yes it is. They

RE: Why can't GHC print out these strings?

1999-11-08 Thread Simon Marlow
> Simon Marlow wrote: > > This one is probably fixed by the commit I made last thing Friday; > > non-blocking writes weren't happening properly. I'll take > a look at your > > other problem on Monday - I assume this is a ghc built from recently > > checked-out CVS sources? If so, what date? > Y

Re: Why can't GHC print out these strings?

1999-11-09 Thread George Russell
Simon Marlow wrote: [snip] > I can't reproduce either of these bugs with the current sources. The first > one may be dependent on your gcc version - I'm using gcc 2.95.2 here > (earlier versions have known optimiser bugs). The second bug was fixed late > last week. I have now recompiled GHC from

RE: Why can't GHC print out these strings?

1999-11-09 Thread Simon Marlow
> I have now recompiled GHC from the latest CVS sources. This > does indeed fix the > first bug. The second (the one which caused the segmentation > fault) is still > there, but I am only using gcc 2.95.1. But it only happens > with -O2, which > is not a very useful option anyway, so perhap