Skip to content

ccomp -dalloctrace writes traces from multiple input files to the same file #620

Open

Description

@haskiindahouse
$ 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 *.alloctrace
a.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).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions