[m-rev.] diff: fix standard library build error

Julien Fischer juliensf at csse.unimelb.edu.au
Tue Sep 20 01:24:47 AEST 2011


Branches: main

Fix a linking problem in the standrard library in the hlc.gc.memprof grade.
The external predicate par_builtin.lc_finish/1 lacks a definition in the hlc
grades, but in profiling grades we take its address.

library/par_builtin.m:
 	Add a dummy definition of lc_finish/1 for when --highlevel-code
 	is enabled.

Julien.

Index: library/par_builtin.m
===================================================================
RCS file: /home/mercury/mercury1/repository/mercury/library/par_builtin.m,v
retrieving revision 1.28
diff -u -r1.28 par_builtin.m
--- library/par_builtin.m	12 Sep 2011 08:09:21 -0000	1.28
+++ library/par_builtin.m	19 Sep 2011 15:11:27 -0000
@@ -316,7 +316,16 @@
      FILE *procrep_fp);
  #endif

-#ifndef MR_HIGHLEVEL_CODE
+
+#ifdef MR_HIGHLEVEL_CODE
+
+void MR_CALL
+mercury__par_builtin__lc_finish_1_p_0(MR_Box lc)
+{
+    MR_fatal_error(""lc_finish is unavailable with --highlevel-code"");
+}
+
+#else /* ! MR_HIGHLEVEL_CODE */

  MR_def_extern_entry(par_builtin__lc_finish_1_0)



--------------------------------------------------------------------------
mercury-reviews mailing list
Post messages to:       mercury-reviews at csse.unimelb.edu.au
Administrative Queries: owner-mercury-reviews at csse.unimelb.edu.au
Subscriptions:          mercury-reviews-request at csse.unimelb.edu.au
--------------------------------------------------------------------------



More information about the reviews mailing list