trivial diff: boehm_gc/config.h DEC Alpha & `cc -std1' portability fix

Fergus Henderson fjh at cs.mu.OZ.AU
Wed Oct 28 10:17:57 AEDT 1998


Estimated hours taken: 0.25

boehm_gc/config.h:
	Fix a portability problem: on alphas, it was using `end',
	which is undefined if you link with `cc -std1'.  I changed
	it to use `_end', which is always defined.

Index: boehm_gc/config.h
===================================================================
RCS file: /home/mercury1/repository/mercury/boehm_gc/config.h,v
retrieving revision 1.17
diff -u -r1.17 config.h
--- config.h	1998/10/27 23:16:41	1.17
+++ config.h	1998/10/27 23:16:49
@@ -838,6 +838,8 @@
 #   ifdef OSF1
 #	define OS_TYPE "OSF1"
 #   	define DATASTART ((ptr_t) 0x140000000)
+	extern _end;
+#   	define DATAEND ((ptr_t) &_end)
 #   	define HEURISTIC2
 	/* Normally HEURISTIC2 is too conervative, since		*/
 	/* the text segment immediately follows the stack.		*/

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