https://bugs.llvm.org/show_bug.cgi?id=45831

            Bug ID: 45831
           Summary: fsanitize-coverage=trace-pc incompatible with
                    -fsanitze=bounds and -fsanitize=thread
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected], [email protected],
                    [email protected], [email protected]

clang disables '-fsanitize-coverage=trace-pc' whenever '-fsanitize=bounds' or
'-fsanitize=thread' are also passed, but the Linux kernel tries to use both
together:

$ clang-11 -Werror=unused-command-line-argument -fsanitize-coverage=trace-pc
-fsanitize=bounds -fsanitize=thread -xc /dev/null 
clang: error: argument unused during compilation:
'-fsanitize-coverage=trace-pc' [-Werror,-Wunused-command-line-argument]

According to the discussion at
https://lore.kernel.org/lkml/[email protected]/T/
we really want to use them -fsanitize-coverage=trace-pc together with one or
both of the other two, as we do with gcc. So far we have not been able to
determine whether disallowing the combination is an intentional restriction or
just a mistake in the handling of the command line arguments.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to