[mercury-users] Issues with gcc 2.95.2?

Fergus Henderson fjh at cs.mu.OZ.AU
Sat Nov 6 14:09:19 AEDT 1999


On 06-Nov-1999, Tyson Dowd <trd at cs.mu.OZ.AU> wrote:
> 
> You need to use a recent version of the Mercury compiler, support for
> compiling under gcc 2.95.2 wasn't added until recently.

Right.

> Also, even if you have a recent version, if you go and change the C
> compiler behind Mercury's back, it won't know about it.  So you may have
> to re-cofigure, re-compile and re-install.

That should only occur if upgrading to or from gcc 2.8.*.
And there is a fairly simple work-around that is easier than
reconfiguring and reinstalling:
	- if changing from gcc 2.8, then add `-fno-gcse'
	  to CFLAGS_FOR_GOTOS in the `mmc' and `mgnuc' scripts
	- if changing _to_ gcc 2.8, then remove `-fno-gcse'
	  from CFLAGS_FOR_GOTOS in the `mmc' and `mgnuc' scripts

If you're changing to/from gcc 2.6.3, 2.7.*, 2.95.*, or egcs 1.*,
then there shouldn't be any problems.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh>  |  of excellence is a lethal habit"
PGP: finger fjh at 128.250.37.3        |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list