[mercury-users] [OT] Building gcc-4.1 for Mac?
Julien Fischer
juliensf at csse.unimelb.edu.au
Tue Oct 10 13:37:29 AEST 2006
On Mon, 9 Oct 2006 doug.auclair at logicaltypes.com wrote:
> diff -u -r1.96 compile_target_code.m
> --- compiler/compile_target_code.m 5 Oct 2006 04:45:31 -0000 1.96
> +++ compiler/compile_target_code.m 6 Oct 2006 13:48:08 -0000
> @@ -711,9 +711,12 @@
>
> globals.io_lookup_string_option(fullarch, FullArch, !IO),
> (
> + % XXX Check if the above bug occurs on x86/darwin.
> HighLevelCode = no,
> GCC_Regs = yes,
> - string.prefix(FullArch, "powerpc-apple-darwin")
> + ( string.prefix(FullArch, "powerpc-apple-darwin")
> + ; string.prefix(FullArch, "i686-apple-darwin")
> + )
> ->
> AppleGCCRegWorkaroundOpt = "-fno-loop-optimize"
> ;
>
> -----
>
> The architecture that configure sees (according to my libtiff install) is:
>
> checking build system type... i386-apple-darwin8.8.1
> checking host system type... i386-apple-darwin8.8.1
> checking target system type... i386-apple-darwin8.8.1
>
> So, will the above test fail (because it's looking for i686, not i386 (or, even
> more simply: '86'))?
Yes it will fail. The above bug doesn't cause compilation problems
though and I'm not even sure that it is an issue on the x86 (hence the
XXX).
Is that the same architecture that Mercury's configuration script sees?
(In that case i686-apple-darwin* in the configure script should be
changed to i*86-apple-darwin*).
Julien.
--------------------------------------------------------------------------
mercury-users mailing list
Post messages to: mercury-users at csse.unimelb.edu.au
Administrative Queries: owner-mercury-users at csse.unimelb.edu.au
Subscriptions: mercury-users-request at csse.unimelb.edu.au
--------------------------------------------------------------------------
More information about the users
mailing list