[PATCH] [Sanitizer] Get the Linux ptrace test working on PowerPC64
Kostya Serebryany
kcc at google.com
Tue Nov 4 13:02:05 PST 2014
================
Comment at: test/sanitizer_common/TestCases/Linux/ptrace.cc:36
@@ -33,1 +35,3 @@
printf("%x\n", fpregs.mxcsr);
+#endif
+
----------------
#endif // __x86_64__
================
Comment at: test/sanitizer_common/TestCases/Linux/ptrace.cc:46
@@ +45,3 @@
+ elf_fpregset_t fpregs;
+ res = ptrace((enum __ptrace_request)PTRACE_GETFPREGS, pid, NULL, &fpregs);
+ assert(!res);
----------------
Can you file a bug against clang?
It should not issue a waning here even w/o the explicit cast.
The bug may end up being in the Linux headers, not in clang)
================
Comment at: test/sanitizer_common/TestCases/Linux/ptrace.cc:50
@@ -34,1 +49,3 @@
+ printf("%lx\n", (elf_greg_t)fpregs[32]);
+#endif
----------------
#endif // __powerpc64__
http://reviews.llvm.org/D6108
More information about the llvm-commits
mailing list