[m-dev.] diff: fix for boehm_gc & lcc

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Dec 10 02:24:09 AEDT 2000


Estimated hours taken: 0.25

boehm_gc/gcconfig.h:
	Fix a problem in my previous change that was noticed by
	Hans Boehm: the code which tells us to use the generic
	C version of push_regs with lcc is only appropriate for
	specific platforms, i.e. x86, not for other platforms.

Workspace: /home/pgrad/fjh/ws/hg4
Index: boehm_gc/gcconfig.h
===================================================================
RCS file: /home/mercury1/repository/mercury/boehm_gc/gcconfig.h,v
retrieving revision 1.5
diff -u -d -r1.5 gcconfig.h
--- boehm_gc/gcconfig.h	2000/12/01 03:22:11	1.5
+++ boehm_gc/gcconfig.h	2000/12/09 15:18:50
@@ -1315,7 +1315,7 @@
 
 # if defined(HP_PA) || defined(M88K) || defined(POWERPC) \
      || (defined(I386) && defined(OS2)) || defined(UTS4) \
-     || defined(__LCC__) || defined(LINT)
+     || (defined(I386) && defined(__LCC__)) || defined(LINT)
 	/* Use setjmp based hack to mark from callee-save registers. */
 #	define USE_GENERIC_PUSH_REGS
 # endif

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
                                    |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
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