[PATCH] [dfsan] Runtime support for -dfsan-debug-nonzero-labels feature.

Peter Collingbourne peter at pcc.me.uk
Wed Aug 14 14:49:50 PDT 2013


Hi eugenis,

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

Files:
  lib/dfsan/dfsan.cc

Index: lib/dfsan/dfsan.cc
===================================================================
--- lib/dfsan/dfsan.cc
+++ lib/dfsan/dfsan.cc
@@ -136,6 +136,11 @@
          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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D1406.1.patch
Type: text/x-patch
Size: 624 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130814/84ecb53d/attachment.bin>


More information about the llvm-commits mailing list