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

Fergus Henderson fjh at cs.mu.OZ.AU
Tue May 8 18:55:59 AEST 2001


Estimated hours taken: 1

Fix a bug in the GCC back-end Mmake support.

compiler/modules.m:
	When generating rules to build `.pic_s' files,
	use `--pic' rather than `--pic-reg'.

Workspace: /mnt/hg/home/hg/fjh/gcc-cvs/gcc/mercury
Index: compiler/modules.m
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/modules.m,v
retrieving revision 1.159
diff -u -d -r1.159 modules.m
--- compiler/modules.m	2001/05/02 17:34:40	1.159
+++ compiler/modules.m	2001/05/08 08:55:32
@@ -1962,7 +1962,7 @@
 				PicAsmFileName, " : ", SourceFileName, "\n",
 				"\trm -f ", PicAsmFileName, "\n",
 				"\t$(MCG) $(ALL_GRADEFLAGS) $(ALL_MCGFLAGS) ",
-					"--target-code-only --pic-reg ",
+					"--target-code-only --pic ",
 					"\\\n",
 				"\t\t--cflags ""$(GCCFLAGS_FOR_PIC)"" ",
 					"$< > ", ErrFileName,

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