[m-rev.] diff: fix compilation error with --intermodule-optimization

Fergus Henderson fjh at cs.mu.OZ.AU
Sun Nov 24 17:03:21 AEDT 2002


Estimated hours taken: 0.5
Branches: main, release

compiler/Mercury.options:
	Compile make.module_dep_file, make.module_target, and
	make.program_target with `--no-ansi'.  This is needed
	with --intermodule-optimization, because they use
	process_util.m which uses non-ANSI features of <signal.h>.

Workspace: /home/earth/test_mercury_earth/build.latest.gcc/mercury
Index: compiler/Mercury.options
===================================================================
RCS file: /home/mercury1/repository/mercury/compiler/Mercury.options,v
retrieving revision 1.1
diff -u -d -r1.1 Mercury.options
--- compiler/Mercury.options	22 Jun 2002 19:15:54 -0000	1.1
+++ compiler/Mercury.options	24 Nov 2002 05:46:00 -0000
@@ -17,6 +17,11 @@
 # process_util.m uses `kill' and `struct sigaction' from <signal.h>,
 # which are not available with `--ansi'.
 MGNUCFLAGS-libs.process_util = --no-ansi
+# If intermodule optimization is enabled, we also need to use `--no-ansi'
+# for the following modules, because they import process_util.
+MGNUCFLAGS-make.module_dep_file = --no-ansi
+MGNUCFLAGS-make.module_target = --no-ansi
+MGNUCFLAGS-make.program_target = --no-ansi
 
 # The c_code in the module gcc.m needs the header files from the GNU C
 # distribution.

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