You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ccomp -dalloctrace writes traces from multiple input files to the same file #620
$ echo'extern int ga(void); int a(void) { return ga(); }'> a.c
$ echo'extern int gb(void); int b(void) { return gb(); }'> b.c
$ ccomp -dalloctrace -S a.c b.c
$ ls *.alloctracea.alloctrace
a.alloctrace contains calls to both ga and gb. Compiling the files separately produces one trace per input. If b.alloctrace already exists, the combined invocation leaves its old contents in place.
I get the same result with -dall. Tested on 2685140 (aarch64-macos).
Is this really a problem for you? Most runs of a C compiler are for a single .c source file, and the various -d options are intended to be used by CompCert developers, not so much by end-users. As a CompCert developer, I'm not going to use -dalloctrace and multiple .c source files at the same time.
hi, not a big deal for me, i just try to modify compcert by myself and find this behavior... i dont find it strange, after re-reding, probably we can close it...
Activity
xavierleroy commentedon Nov 24, 2026
Is this really a problem for you? Most runs of a C compiler are for a single
.csource file, and the various-doptions are intended to be used by CompCert developers, not so much by end-users. As a CompCert developer, I'm not going to use-dalloctraceand multiple.csource files at the same time.haskiindahouse commentedon Nov 24, 2026
hi, not a big deal for me, i just try to modify compcert by myself and find this behavior... i dont find it strange, after re-reding, probably we can close it...
thank you for comment