[m-rev.] diff: MacOS changes

Fergus Henderson fjh at cs.mu.OZ.AU
Tue Sep 10 03:18:22 AEST 2002


Estimated hours taken: 2
Branches: main

Some changes needed to support grade reg.gc on MacOS/PPC.

runtime/mercury_regs.h:
	Allow "__ppc__" as another alternative to "__powerpc__" and "_POWER"
	for recognizing Power PC processors.

scripts/mgnuc.in:
	If $COMPILER is "unknown" (e.g. because $CC is "cc"),
	don't disable grades such as "reg.gc".

Workspace: /mnt/ceres/home/ceres/fjh/mercury
Index: runtime/mercury_regs.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_regs.h,v
retrieving revision 1.20
diff -u -d -r1.20 mercury_regs.h
--- runtime/mercury_regs.h	2002/02/13 09:56:41	1.20
+++ runtime/mercury_regs.h	2002/09/09 17:01:02
@@ -102,7 +102,7 @@
     #include "machdeps/alpha_regs.h"
   #elif defined(__hppa__)
     #include "machdeps/pa_regs.h"
-  #elif defined(_POWER) || defined(__powerpc__)
+  #elif defined(_POWER) || defined(__powerpc__) || defined(__ppc__)
     #include "machdeps/rs6000_regs.h"
   #else
     #error "MR_USE_GCC_GLOBAL_REGISTERS not yet supported on this machine."
Index: scripts/mgnuc.in
===================================================================
RCS file: /home/mercury1/repository/mercury/scripts/mgnuc.in,v
retrieving revision 1.91
diff -u -d -r1.91 mgnuc.in
--- scripts/mgnuc.in	2002/09/01 06:05:19	1.91
+++ scripts/mgnuc.in	2002/09/09 17:15:43
@@ -387,7 +387,8 @@
 
 # check that special grades are only used with gcc
 case $COMPILER in
-	gcc)	;;
+	gcc|unknown)
+		;;
 	*)	case "$GCC_OPTS" in
 			*USE_GCC*)
 		echo "$0: For compilers other than GNU C, the only" 1>&2

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



More information about the reviews mailing list