[compiler-rt] r334864 - [libFuzzer] Avoid -fuse-ld=lld on gc-sections.
Matt Morehouse via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 15 14:01:57 PDT 2018
Author: morehouse
Date: Fri Jun 15 14:01:56 2018
New Revision: 334864
URL: http://llvm.org/viewvc/llvm-project?rev=334864&view=rev
Log:
[libFuzzer] Avoid -fuse-ld=lld on gc-sections.
The bot doesn't recognize lld as a linker even though it has the
property lld-available.
Modified:
compiler-rt/trunk/test/fuzzer/gc-sections.test
Modified: compiler-rt/trunk/test/fuzzer/gc-sections.test
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/fuzzer/gc-sections.test?rev=334864&r1=334863&r2=334864&view=diff
==============================================================================
--- compiler-rt/trunk/test/fuzzer/gc-sections.test (original)
+++ compiler-rt/trunk/test/fuzzer/gc-sections.test Fri Jun 15 14:01:56 2018
@@ -1,11 +1,11 @@
-REQUIRES: linux, lld-available
+REQUIRES: linux, lld
No gc-sections:
RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t
RUN: nm %t | grep UnusedFunctionShouldBeRemovedByLinker | count 1
With gc-sections. Currently, we can't remove unused code.
-RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -ffunction-sections -Wl,-gc-sections -fuse-ld=lld
+RUN: %cpp_compiler %S/GcSectionsTest.cpp -o %t -ffunction-sections -Wl,-gc-sections
RUN: nm %t | not grep UnusedFunctionShouldBeRemovedByLinker
With gc sections, with trace-pc. Unused code is removed.
More information about the llvm-commits
mailing list