[m-dev.] diff: fix for gcc 2.7.2.3

Zoltan Somogyi zs at cs.mu.OZ.AU
Wed Feb 21 15:58:50 AEDT 2001


On 21-Feb-2001, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> configure.in:
> 	Don't pass `-fno-gcse' for gcc versions < 2.8, since some
> 	of them (e.g. gcc 2.7.2.3) complain about that option.
> 
> Index: configure.in
> ===================================================================
> RCS file: /home/mercury1/repository/mercury/configure.in,v
> retrieving revision 1.247
> diff -u -u -r1.247 configure.in
> --- configure.in	2001/02/08 16:48:31	1.247
> +++ configure.in	2001/02/21 04:37:51
> @@ -1481,7 +1481,7 @@
>  LIBRARY_PATH_FOR_GOTOS=
>  case $ac_cv_prog_gcc in yes)
>      case "`$CC --version < /dev/null`" in
> -	2.8*) CFLAGS_FOR_GOTOS="-fno-defer-pop -fno-function-cse" ;;
> +	2.[0-8]*) CFLAGS_FOR_GOTOS="-fno-defer-pop -fno-function-cse" ;;

This is inconsistent with the log message. It looks like an off-by-one error,
since it doesn't pass -fno-gcse even to version 2.8.*.

Zoltan.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list