diff: Fix a coverage profiling regression.

View: New views
1 Messages — Rating Filter:   Alert me  

diff: Fix a coverage profiling regression.

by Paul Bone :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


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.

compiler/layout_out.m:
    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,
         output_layout_array_name_storage_type_name(MangledModuleName,
             CoveragePointsStaticArrayName, not_being_defined, !IO),
+        io.write_string("[];\n", !IO),
         output_layout_array_name_storage_type_name(MangledModuleName,
             CoveragePointsDynamicArrayName, not_being_defined, !IO),
         io.write_string("[];\n", !IO)


signature.asc (500 bytes) Download Attachment