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

            Bug ID: 23604
           Summary: Warning when -fsanitize-coverage= is followed by
                    -fno-sanitize=all
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Driver
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

If sanitizers are turned off using -fno-sanitize=all, but -fsanitize-coverage=
flags were specified, we get a warning about an unused argument:

  % clang++ -fsanitize=address,undefined
-fsanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp
-fno-sanitize=all -x c++ -c /dev/null -o /dev/null       
  clang-3.7: warning: argument unused during compilation:
'-fsanitize-coverage=edge,indirect-calls,8bit-counters,trace-cmp'

This is poor behaviour since the -fsanitize-coverage flag was valid where it
was used, and it makes it difficult to disable sanitizers in a makefile using
-fno-sanitize=all.

You'll hit this issue if you build llvm using a cmake invocation including
"-DLLVM_USE_SANITIZER=Address;Undefined -DLLVM_USE_SANITIZE_COVERAGE=ON
-DLLVM_ENABLE_WERROR=ON".

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to