[PATCH] [msan] -fsanitize-memory-track-origins=[level] flag and docs.
samsonov at google.com
Thu Mar 20 02:28:59 PDT 2014
Comment at: test/Driver/fsanitize.c:78
@@ -77,3 +77,3 @@
// RUN: %clang -target x86_64-linux-gnu -fsanitize-memory-track-origins -pie %s -### 2>&1 | FileCheck %s --check-prefix=CHECK-ONLY-TRACK-ORIGINS
-// CHECK-ONLY-TRACK-ORIGINS: warning: argument unused during compilation: '-fsanitize-memory-track-origins'
+// CHECK-ONLY-TRACK-ORIGINS: warning: argument unused during compilation: '-fsanitize-memory-track-origins=1'
Evgeniy Stepanov wrote:
> Alexey Samsonov wrote:
> > This is confusing. We should try to print the flag the user has provided in command line.
> That's how this Alias thing works...
> We can stop using it, of course, and check all 3 flags manually.
If we can silently drop support for -fno-sanitize-memory-track-origins, I think it's fine to check two flags manually.
More information about the cfe-commits