[PATCH] D50483: [SanitizerCoverage] Add associated metadata to PC guards.
Matt Morehouse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 14 15:05:21 PDT 2018
This revision was automatically updated to reflect the committed changes.
Closed by commit rCRT339733: [SanitizerCoverage] Add associated metadata to PC guards. (authored by morehouse, committed by ).
Herald added a subscriber: Sanitizers.
Changed prior to commit:
https://reviews.llvm.org/D50483?vs=160131&id=160700#toc
Repository:
rCRT Compiler Runtime
https://reviews.llvm.org/D50483
Files:
test/fuzzer/gc-sections.test
Index: test/fuzzer/gc-sections.test
===================================================================
--- test/fuzzer/gc-sections.test
+++ test/fuzzer/gc-sections.test
@@ -8,8 +8,13 @@
RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -fuse-ld=lld -ffunction-sections -Wl,-gc-sections
RUN: nm %t | not grep UnusedFunctionShouldBeRemovedByLinker
RUN: %run %t -runs=0 2>&1 | FileCheck %s
-CHECK-NOT: ERROR: The size of coverage PC tables does not match
With gc sections, with trace-pc. Unused code is removed.
RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -fsanitize-coverage=0 -fsanitize-coverage=trace-pc -ffunction-sections -Wl,-gc-sections
RUN: nm %t | not grep UnusedFunctionShouldBeRemovedByLinker
+
+RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -fsanitize-coverage=0 -fsanitize-coverage=trace-pc-guard,pc-table -fuse-ld=lld -ffunction-sections -Wl,-gc-sections
+RUN: nm %t | not grep UnusedFunctionShouldBeRemovedByLinker
+RUN: %run %t -runs=0 2>&1 | FileCheck %s
+
+CHECK-NOT: ERROR: The size of coverage PC tables does not match
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50483.160700.patch
Type: text/x-patch
Size: 1046 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180814/5c361f3f/attachment.bin>
More information about the llvm-commits
mailing list