[m-rev.] diff: disable backwards compatibility macros

Simon Taylor stayl at cs.mu.OZ.AU
Fri Feb 22 17:37:17 AEDT 2002


Estimated hours taken: 0.1
Branches: main

runtime/Mmakefile:
trace/Mmakefile:
	Disable all backwards compatibility macros when
	compiling in these directories. This can't be
	done in the directories containing Mercury sources
	because if the C files are generated by an old
	version of the compiler they may contain references
	to symbols defined in mercury_bootstrap.h.

Index: runtime/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/Mmakefile,v
retrieving revision 1.84
diff -u -u -r1.84 Mmakefile
--- runtime/Mmakefile	19 Feb 2002 08:35:33 -0000	1.84
+++ runtime/Mmakefile	22 Feb 2002 06:29:28 -0000
@@ -14,7 +14,9 @@
 
 #-----------------------------------------------------------------------------#
 
-CFLAGS		= -g $(DLL_CFLAGS)
+CFLAGS		= -g $(DLL_CFLAGS) -DMR_NO_CONF_BACKWARDS_COMPAT \
+			-DMR_NO_BACKWARDS_COMPAT
+
 MGNUC		= MERCURY_ALL_C_INCL_DIRS=" \
 			-I$(RUNTIME_DIR) \
 			-I$(BOEHM_GC_DIR) \
Index: trace/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/trace/Mmakefile,v
retrieving revision 1.24
diff -u -u -r1.24 Mmakefile
--- trace/Mmakefile	31 Oct 2001 17:53:51 -0000	1.24
+++ trace/Mmakefile	22 Feb 2002 06:28:50 -0000
@@ -22,7 +22,8 @@
 			-I$(BOEHM_GC_DIR) \
 			-I$(BOEHM_GC_DIR)/include \
 		  "
-CFLAGS		= -g $(DLL_CFLAGS)
+CFLAGS		= -g $(DLL_CFLAGS) -DMR_NO_CONF_BACKWARDS_COMPAT \
+				-DMR_NO_BACKWARDS_COMPAT
 MGNUC		= $(M_ENV) $(SCRIPTS_DIR)/mgnuc
 MGNUCFLAGS	= --no-ansi
 
--------------------------------------------------------------------------
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