[compiler-rt] r179088 - [asan] relax Linux/zero-base-shadow.cc to make it pass on newer Ubuntu; fix lint
Kostya Serebryany
kcc at google.com
Tue Apr 9 00:08:05 PDT 2013
Author: kcc
Date: Tue Apr 9 02:08:05 2013
New Revision: 179088
URL: http://llvm.org/viewvc/llvm-project?rev=179088&view=rev
Log:
[asan] relax Linux/zero-base-shadow.cc to make it pass on newer Ubuntu; fix lint
Modified:
compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc
compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.cc
compiler-rt/trunk/lib/tsan/lit_tests/load_shared_lib.cc
Modified: compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc?rev=179088&r1=179087&r2=179088&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc (original)
+++ compiler-rt/trunk/lib/asan/lit_tests/Linux/zero-base-shadow.cc Tue Apr 9 02:08:05 2013
@@ -22,7 +22,7 @@ int main(int argc, char **argv) {
// CHECK: main
// Check that shadow for stack memory occupies lower part of address space.
- // CHECK-64: =>0x0f{{.*}}
- // CHECK-32: =>0x1f{{.*}}
+ // CHECK-64: =>0x0f
+ // CHECK-32: =>0x1
return res;
}
Modified: compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.cc?rev=179088&r1=179087&r2=179088&view=diff
==============================================================================
--- compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.cc (original)
+++ compiler-rt/trunk/lib/sanitizer_common/sanitizer_symbolizer.cc Tue Apr 9 02:08:05 2013
@@ -239,7 +239,7 @@ class InternalSymbolizer {
class Symbolizer {
public:
- Symbolizer() : modules_fresh_(false) { };
+ Symbolizer() : modules_fresh_(false) { }
uptr SymbolizeCode(uptr addr, AddressInfo *frames, uptr max_frames) {
if (max_frames == 0)
return 0;
Modified: compiler-rt/trunk/lib/tsan/lit_tests/load_shared_lib.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/load_shared_lib.cc?rev=179088&r1=179087&r2=179088&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/load_shared_lib.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/load_shared_lib.cc Tue Apr 9 02:08:05 2013
@@ -19,7 +19,7 @@ void *write_glob(void *unused) {
return NULL;
}
-void race_two_threads(void *(*access_callback)(void *)) {
+void race_two_threads(void *(*access_callback)(void *unused)) {
pthread_t t1, t2;
pthread_create(&t1, NULL, access_callback, NULL);
pthread_create(&t2, NULL, access_callback, NULL);
@@ -36,7 +36,7 @@ int main(int argc, char *argv[]) {
printf("error in dlopen(): %s\n", dlerror());
return 1;
}
- void *(*write_from_so)(void *);
+ void *(*write_from_so)(void *unused);
*(void **)&write_from_so = dlsym(lib, "write_from_so");
race_two_threads(write_from_so);
// CHECK: write_from_so
More information about the llvm-commits
mailing list