[compiler-rt] r200686 - [sanitizer] Resubmit r200683: disable -ffunction-sections.
Justin Bogner
mail at justinbogner.com
Mon Feb 3 13:41:03 PST 2014
Evgeniy Stepanov <eugeni.stepanov at gmail.com> writes:
> [sanitizer] Resubmit r200683: disable -ffunction-sections.
>
> Added:
> compiler-rt/trunk/lib/asan/lit_tests/TestCases/Linux/function-sections-are-bad.cc
> (with props)
> Modified:
> compiler-rt/trunk/CMakeLists.txt
>
> Modified: compiler-rt/trunk/CMakeLists.txt
> URL:
> http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=200686&r1=200685&r2=200686&view=diff==============================================================================
> --- compiler-rt/trunk/CMakeLists.txt (original)
> +++ compiler-rt/trunk/CMakeLists.txt Mon Feb 3 05:16:41 2014
> @@ -142,6 +142,7 @@ if (NOT MSVC)
> -fno-stack-protector
> -Wno-gnu # Variadic macros with 0 arguments for ...
> -fvisibility=hidden
> + -fno-function-sections
> )
> if (NOT COMPILER_RT_DEBUG)
> list(APPEND SANITIZER_COMMON_CFLAGS -O3)
This breaks the build with -WERROR when building with clang (unless it's
ToT), and spews warnings without -WERROR.
More information about the llvm-commits
mailing list