[m-dev.] oops - the diff

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Jun 11 13:41:16 AEST 1998


On 11-Jun-1998, Thomas Charles CONWAY <conway at cs.mu.OZ.AU> wrote:
> diff -u -r1.21 gc.h
> --- gc.h	1998/06/09 02:11:47	1.21
> extern void GC_thr_init(void);	/* Needed for Solaris/X86	*/
...
>  #if defined(SOLARIS_THREADS) || defined(IRIX_THREADS) || \
>  	defined(LINUX_THREADS)
> -extern void GC_thr_init();	/* Needed for Solaris/X86	*/
> +extern void GC_thr_init(void);	/* Needed for Solaris/X86	*/

Why is GC_thr_init() declared twice, once inside the #ifdef
and once outside?

> +++ mgnuc.in	1998/06/09 05:10:00
> @@ -260,7 +260,15 @@
>  esac
>  
>  case $thread_safe in
> -	true)		THREAD_OPTS="-DMR_THREAD_SAFE -DSOLARIS_THREADS -D_SOLARIS_PTHREADS -D_REENTRANT";;
> +	true)
> +	case $FULLARCH in
> +		*solaris*) THREAD_OPTS="-DMR_THREAD_SAFE -DSOLARIS_THREADS \
> +				-D_SOLARIS_PTHREADS -D_REENTRANT";;
> +
> +		*linux*) THREAD_OPTS="-DMR_THREAD_SAFE -DLINUX_THREADS";;
> +
> +		*)		THREAD_OPTS="" ;;
> +	esac ;;
>  	false)		THREAD_OPTS="" ;;
>  esac

I think that code needs to be duplicated in compiler/mercury_compile.m.

-- 
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.



More information about the developers mailing list