[compiler-rt] r314200 - [mips][asan] Fix preinstalled_signal.cc test for mips
Simon Dardis via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 26 04:49:04 PDT 2017
Author: sdardis
Date: Tue Sep 26 04:49:04 2017
New Revision: 314200
URL: http://llvm.org/viewvc/llvm-project?rev=314200&view=rev
Log:
[mips][asan] Fix preinstalled_signal.cc test for mips
Linux for mips has a non-standard layout for the kernel sigaction struct.
Adjust the layout by the minimally amount to get the test to pass, as we
don't require the usage of the restorer function.
Modified:
compiler-rt/trunk/test/asan/TestCases/Linux/preinstalled_signal.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Linux/preinstalled_signal.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Linux/preinstalled_signal.cc?rev=314200&r1=314199&r2=314200&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Linux/preinstalled_signal.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Linux/preinstalled_signal.cc Tue Sep 26 04:49:04 2017
@@ -32,8 +32,14 @@ void SigHandler(int signum) { handler =
void SigAction(int, siginfo_t *, void *) { handler = "TestSigAction"; }
struct KernelSigaction {
+
+#if defined(__mips__)
+ unsigned long flags;
+ __sighandler_t handler;
+#else
__sighandler_t handler;
unsigned long flags;
+#endif
void (*restorer)();
char unused[1024];
};
More information about the llvm-commits
mailing list