<div dir="ltr"><div dir="ltr"><div dir="ltr"><br></div><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 27 Jan 2026 at 22:02, Zoltan Somogyi <<a href="mailto:zoltan.somogyi@runbox.com" target="_blank">zoltan.somogyi@runbox.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">For review by Peter, since it implements his feature request.<br>
The diff is with -b.<br>
<br>
Note that this diff does not update many .err_exp[23] files that hold<br>
warnings expected in C# and Java grades. The reason is that<br>
when I implement the change I proposed last night in note<br>
on issue #580, those files would go away.<br></blockquote><div><br></div><div>This change has broken compilation of the standard library in deep profiling grades.</div><div>It changes the CSD argument of many of the foreign_procs in library/profiling_builtin.m</div><div>to be a don't-care variable, but all references to that argument in the foreign proc body</div><div>are #included from the runtime.</div><div><br></div>/home/jfischer/mercury-builds/mercury-1.git/stage2/install_grade_dir.asm_fast.gc.profdeep.tr.stseg/scripts/mgnuc --grade asm_fast.gc.profdeep.tr.stseg       --      -c profiling_builtin.c -o profiling_builtin.o<br>In file included from profiling_builtin.m:973:<br>../runtime/mercury_deep_rec_depth_body.h: In function ‘profiling_builtin_module14’:<br>../runtime/mercury_deep_rec_depth_body.h:38:11: error: ‘CSD’ undeclared (first use in this function); did you mean ‘CSN’?<br>../runtime/mercury_deep_rec_depth_body.h:38:11: note: each undeclared identifier is reported only once for each function it appears in<br>In file included from profiling_builtin.m:994:<br>../runtime/mercury_deep_rec_depth_body.h: In function ‘profiling_builtin_module15’:<br>../runtime/mercury_deep_rec_depth_body.h:38:11: error: ‘CSD’ undeclared (first use in this function)<br>In file included from profiling_builtin.m:1017:<br>../runtime/mercury_deep_rec_depth_body.h: In function ‘profiling_builtin_module16’:<br>../runtime/mercury_deep_rec_depth_body.h:38:11: error: ‘CSD’ undeclared (first use in this function)<br>In file included from profiling_builtin.m:1043:<br>../runtime/mercury_deep_rec_depth_body.h: In function ‘profiling_builtin_module17’:<br>../runtime/mercury_deep_rec_depth_body.h:38:11: error: ‘CSD’ undeclared (first use in this function)<br>In file included from profiling_builtin.m:1071:<br>../runtime/mercury_deep_rec_depth_body.h: In function ‘profiling_builtin_module18’:<br>../runtime/mercury_deep_rec_depth_body.h:38:11: error: ‘CSD’ undeclared (first use in this function)<br>In file included from profiling_builtin.m:1101:<br>../runtime/mercury_deep_rec_depth_body.h: In function ‘profiling_builtin_module19’:<br>../runtime/mercury_deep_rec_depth_body.h:38:11: error: ‘CSD’ undeclared (first use in this function)<br>In file included from profiling_builtin.m:1134:<br>../runtime/mercury_deep_rec_depth_body.h: In function ‘profiling_builtin_module20’:<br>../runtime/mercury_deep_rec_depth_body.h:38:11: error: ‘CSD’ undeclared (first use in this function)<br><div> </div><div>Julien.</div></div></div>
</div>