[m-rev.] diff: Fix a coverage profiling regression.

Paul Bone pbone at csse.unimelb.edu.au
Mon Nov 9 18:25:47 AEDT 2009

Fix bootstrap failures when coverage profiling is enabled in the deep profiler.

This was noticed on taura's nightly builds, it looks like it was a regression
caused by some recent refactoring.

    Terminate an array declaration in the generated C code properly.

Index: compiler/layout_out.m
RCS file: /home/mercury1/repository/mercury/compiler/layout_out.m,v
retrieving revision 1.106
diff -u -p -b -r1.106 layout_out.m
--- compiler/layout_out.m	4 Nov 2009 03:44:47 -0000	1.106
+++ compiler/layout_out.m	9 Nov 2009 05:24:10 -0000
@@ -300,6 +300,7 @@ output_layout_array_decls(Info, PseudoTy
         CoveragePointsDynamicArrayName = proc_static_cp_dynamic_array,
             CoveragePointsStaticArrayName, not_being_defined, !IO),
+        io.write_string("[];\n", !IO),
             CoveragePointsDynamicArrayName, not_being_defined, !IO),
         io.write_string("[];\n", !IO)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 489 bytes
Desc: Digital signature
URL: <http://lists.mercurylang.org/archives/reviews/attachments/20091109/e340028b/attachment.sig>

More information about the reviews mailing list