[mercury-users] Odd behaviour...
Fergus Henderson
fjh at cs.mu.OZ.AU
Thu Feb 25 02:32:57 AEDT 1999
On 24-Feb-1999, Ralph Becket <rwab1 at cam.sri.com> wrote:
> This always worked before, but now...
>
> $ mmake hello_world
> mgnuc --grade asm_fast.gc -I. -c Mercury/cs/hello_world.c -o
> Mercury/os/hello_world.o
> cc1: Invalid option `-fno-gcse'
> Any clues? I've a funny idea that we had an OS upgrade recently -
> does that sound a likely cause? If so, I presume recompiling will do
> the trick.
You must have just upgraded to gcc 2.8.*.
Mercury 0.8 and 0.8.1 have a bug where they pass `-fno-gcse' to gcc,
which is accepted by gcc 2.7.* and by egcs 1.0.* and 1.1.*,
but not by gcc 2.8.*. I posted a patch for that to this list
sometime in the last few months. But you can also fix it simply
by editing the `mgnuc' script and deleting the `-fno-gcse'.
--
Fergus Henderson <fjh at cs.mu.oz.au> | "Binaries may die
WWW: <http://www.cs.mu.oz.au/~fjh> | but source code lives forever"
PGP: finger fjh at 128.250.37.3 | -- leaked Microsoft memo.
More information about the users
mailing list