[m-rev.] trivial diff: GCC back-end fix

Fergus Henderson fjh at cs.mu.OZ.AU
Fri May 11 11:02:31 AEST 2001


It passed all the tests in my workspace (at -O2),
but for some reason failed in the nightly build (at -O4).
I think this will fix it.

----------

Estimated hours taken: 1
Branches: main

compiler/Mmakefile:
	Back out previous change, i.e. reinstate the code to pass the
	C compiler options needed for the GCC back-end when compiling
	mlds_to_gcc.m.	Even though mlds_to_gcc.m no longer contains any
	C code that references the GCC back-end headers, this still seems
	to be needed, at least at higher optimization levels, because
	compiler/mlds_to_gcc.c includes compiler/gcc.h.

Workspace: /home/hg/fjh/gcc-cvs/gcc/mercury
Index: compiler/Mmakefile
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/Mmakefile,v
retrieving revision 1.42
diff -u -d -r1.42 Mmakefile
--- compiler/Mmakefile	2001/05/08 05:36:49	1.42
+++ compiler/Mmakefile	2001/05/11 00:49:16
@@ -110,6 +110,8 @@
 		-I$(GCC_SRC_DIR)/gcc/config \
 		-I$(GCC_SRC_DIR)/include \
 		-I$(GCC_SRC_DIR)
+# Likewise for mlds_to_gcc.m
+CFLAGS-mlds_to_gcc = $(CFLAGS-gcc)
 
 #-----------------------------------------------------------------------------#
 

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