[m-rev.] diff: fix GCC reg problem on ender
Fergus Henderson
fjh at cs.mu.OZ.AU
Sun Feb 8 10:17:17 AEDT 2004
Estimated hours taken: 0.5
Branches: main
Fix a problem where `mmake check_namespace' got a compile error when
compiling mercury_univ.check_hdr.c on ender, due to system headers
getting included before GCC global register variable declarations.
runtime/mercury_univ.h:
Include "mercury_regs.h", before any other #includes.
Workspace: /home/jupiter/fjh/ws-jupiter/mercury
Index: runtime/mercury_univ.h
===================================================================
RCS file: /home/mercury1/repository/mercury/runtime/mercury_univ.h,v
retrieving revision 1.1
diff -u -d -r1.1 mercury_univ.h
--- runtime/mercury_univ.h 20 Oct 2003 07:29:33 -0000 1.1
+++ runtime/mercury_univ.h 7 Feb 2004 23:13:45 -0000
@@ -14,6 +14,7 @@
#ifndef MERCURY_UNIV_H
#define MERCURY_UNIV_H
+#include "mercury_regs.h" /* must come first (see mercury_imp.h) */
#include "mercury_conf_param.h" /* for MR_RECORD_TERM_SIZES */
#include "mercury_tags.h" /* for MR_field */
#include "mercury_heap.h" /* for MR_tag_offset_incr_hp_msg */
--
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