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

Fergus Henderson fjh at cs.mu.OZ.AU
Fri Jul 27 16:18:33 AEST 2001


Branches: main
Estimated hours taken: 1

Fix another problem with the GCC back-end Mmake support that seems to have been
caused by stayl's .c_date changes.

library/Mmakefile:
	Add a pic_ss target.  We need to explicitly mention
	$(library.pic_ss) somewhere in the Mmakefile, otherwise it
	won't build properly with --target asm: GNU Make's pattern rule
	algorithm will try to use the .m -> .c -> .pic_o rule chain
	rather than the .m -> .pic_s_date -> .pic_s -> .pic_o chain.

Workspace: /home/hg2/public/test_mercury/test_dirs/hg/mercury
Index: library/Mmakefile
===================================================================
RCS file: /home/staff/zs/imp/mercury/library/Mmakefile,v
retrieving revision 1.74
diff -u -d -r1.74 Mmakefile
--- library/Mmakefile	2001/07/23 10:11:54	1.74
+++ library/Mmakefile	2001/07/27 06:15:52
@@ -189,10 +189,17 @@
 
 #-----------------------------------------------------------------------------#
 
-.PHONY: os cs ss ils 
+# Note that we need to explicitly mention $(library.pic_ss) somewhere
+# in the Mmakefile, otherwise it won't build properly with --target asm:
+# GNU Make's pattern rule algorithm will try to use the .m -> .c -> .pic_o
+# rule chain rather than the .m -> .pic_s_date -> .pic_s -> .pic_o chain.
+# So don't remove the pic_ss target here.
+
+.PHONY: os cs ss pic_ss ils 
 os: $(library.os)
 cs: $(library.cs)
 ss: $(library.ss)
+pic_ss: $(library.pic_ss)
 ils: $(library.ils)
 
 #-----------------------------------------------------------------------------#

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  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