[compiler-rt] r188471 - [dfsan] Runtime support for -dfsan-debug-nonzero-labels feature.

Peter Collingbourne peter at pcc.me.uk
Thu Aug 15 11:51:07 PDT 2013


Author: pcc
Date: Thu Aug 15 13:51:07 2013
New Revision: 188471

URL: http://llvm.org/viewvc/llvm-project?rev=188471&view=rev
Log:
[dfsan] Runtime support for -dfsan-debug-nonzero-labels feature.

Reviewers: eugenis

CC: llvm-commits

Differential Revision: http://llvm-reviews.chandlerc.com/D1406

Modified:
    compiler-rt/trunk/lib/dfsan/dfsan.cc

Modified: compiler-rt/trunk/lib/dfsan/dfsan.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/dfsan/dfsan.cc?rev=188471&r1=188470&r2=188471&view=diff
==============================================================================
--- compiler-rt/trunk/lib/dfsan/dfsan.cc (original)
+++ compiler-rt/trunk/lib/dfsan/dfsan.cc Thu Aug 15 13:51:07 2013
@@ -136,6 +136,11 @@ void __dfsan_unimplemented(char *fname)
          fname);
 }
 
+// Use '-mllvm -dfsan-debug-nonzero-labels' and break on this function
+// to try to figure out where labels are being introduced in a nominally
+// label-free program.
+extern "C" SANITIZER_INTERFACE_ATTRIBUTE void __dfsan_nonzero_label() {}
+
 // Like __dfsan_union, but for use from the client or custom functions.  Hence
 // the equality comparison is done here before calling __dfsan_union.
 SANITIZER_INTERFACE_ATTRIBUTE dfsan_label





More information about the llvm-commits mailing list