[llvm-commits] [PATCH] [msan] MemorySanitizer runtime
Michael Spencer
bigcheesegs at gmail.com
Sun Dec 9 00:59:14 PST 2012
This doesn't compile with -Werror with latest clang.
Here are the first few errors.
michael at michael-VirtualBox:~/build/llvm+clang-release$ ninja
[4/9] Building CXX object projects/compiler-rt/lib/msan/CMakeFiles/clang_rt.msan-x86_64.dir/msan_interceptors.cc.o
FAILED: /usr/local/bin/clang++ -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -fPIC -fvisibility-inlines-hidden -O3 -DNDEBUG -Iprojects/compiler-rt/lib/msan -I/mnt/Projects/llvm-project/compiler-rt/lib/msan -Iinclude -I/mnt/Projects/llvm-project/llvm/include -I/mnt/Projects/llvm-project/compiler-rt/include -I/mnt/Projects/llvm-project/compiler-rt/lib/msan/.. -Wall -W -Wno-unused-parameter -Wwrite-strings -pedantic -Wno-long-long -Werror -fPIC -fno-builtin -fno-exceptions -fomit-frame-pointer -funwind-tables -O3 -fvisibility=hidden -gline-tables-only -Wno-variadic-macros -Wno-c99-extensions -fPIE -ffreestanding -MMD -MT projects/compiler-rt/lib/msan/CMakeFiles/clang_rt.msan-x86_64.dir/msan_interceptors.cc.o -MF "projects/compiler-rt/lib/msan/CMakeFiles/clang_rt.msan-x86_64.dir/msan_interceptors.cc.o.d" -o projects/compiler-rt/lib/msan/CMakeFiles/clang_rt.msan-x86_64.dir/msan_interceptors.cc.o -c /mnt/Projects/llvm-project/compiler-!
rt/lib/ms
an/msan_interceptors.cc
In file included from /mnt/Projects/llvm-project/compiler-rt/lib/msan/msan_interceptors.cc:17:
/mnt/Projects/llvm-project/compiler-rt/lib/msan/msan_platform_limits.h:32:2: error: extra ';' outside of a function is a C++11 extension [-Werror,-Wc++11-extra-semi]
};
^
/mnt/Projects/llvm-project/compiler-rt/lib/msan/msan_interceptors.cc:138:3: error: unused variable 'sp' [-Werror,-Wunused-variable]
CHECK_UNPOISONED(s, res + 1);
^
/mnt/Projects/llvm-project/compiler-rt/lib/msan/msan_interceptors.cc:43:7: note: expanded from macro 'CHECK_UNPOISONED'
GET_CALLER_PC_BP_SP; \
^
/mnt/Projects/llvm-project/compiler-rt/lib/msan/../sanitizer_common/sanitizer_stacktrace.h:66:8: note: expanded from macro 'GET_CALLER_PC_BP_SP'
uptr sp = (uptr)&local_stack
^
http://llvm-reviews.chandlerc.com/D191
More information about the llvm-commits
mailing list