[Liboil-commit] 2 commits - liboil/liboilfault.c m4/as-host-defines.m4 testsuite/stack_align.c
David Schleef
ds at kemper.freedesktop.org
Fri May 9 18:45:56 PDT 2008
liboil/liboilfault.c | 2 ++
m4/as-host-defines.m4 | 14 ++++++++++++++
testsuite/stack_align.c | 9 +++++++++
3 files changed, 25 insertions(+)
New commits:
commit 7db7295a332f4a12307fff586ab374ac8d6a11dc
Author: David Schleef <ds at ginger.bigkitten.com>
Date: Fri May 9 18:43:17 2008 -0700
use an underscore for architectures that require it
diff --git a/testsuite/stack_align.c b/testsuite/stack_align.c
index a6f9e78..b2c1a69 100644
--- a/testsuite/stack_align.c
+++ b/testsuite/stack_align.c
@@ -239,7 +239,11 @@ void realign(int align)
#ifdef HAVE_I386
__asm__ __volatile__ (
" sub %%ebx, %%esp\n"
+#ifdef HAVE_SYMBOL_UNDERSCORE
+ " call _check_class_with_alignment\n"
+#else
" call check_class_with_alignment\n"
+#endif
" add %%ebx, %%esp\n"
:: "b" (align)
);
@@ -247,7 +251,11 @@ void realign(int align)
#ifdef HAVE_AMD64
__asm__ __volatile__ (
" sub %%rbx, %%rsp\n"
+#ifdef HAVE_SYMBOL_UNDERSCORE
+ " call _check_class_with_alignment\n"
+#else
" call check_class_with_alignment\n"
+#endif
" add %%rbx, %%rsp\n"
:: "b" (align)
);
@@ -266,6 +274,7 @@ void check_class_with_alignment (void)
test = oil_test_new(klass);
oil_test_set_iterations(test, 1);
+ test->n = 100;
impl = klass->reference_impl;
oil_test_check_impl (test, impl);
commit 7fcab0a153e89678bf69c3dec6ac77b100bfbcae
Author: Damien Lespiau <damien.lespiau at gmail.com>
Date: Sun May 4 02:29:47 2008 +0200
Windows does not support POSIX signals
Signed-off-by: Damien Lespiau <damien.lespiau at gmail.com>
diff --git a/liboil/liboilfault.c b/liboil/liboilfault.c
index de0b66a..aac387f 100644
--- a/liboil/liboilfault.c
+++ b/liboil/liboilfault.c
@@ -53,10 +53,12 @@ static void
illegal_instruction_handler (int num)
{
if (in_try_block) {
+#ifndef HAVE_OS_WIN32
sigset_t set;
sigemptyset (&set);
sigaddset (&set, SIGILL);
sigprocmask (SIG_UNBLOCK, &set, NULL);
+#endif
longjmp (jump_env, 1);
} else {
abort ();
diff --git a/m4/as-host-defines.m4 b/m4/as-host-defines.m4
index 57f924e..8b813bb 100644
--- a/m4/as-host-defines.m4
+++ b/m4/as-host-defines.m4
@@ -34,5 +34,19 @@ AM_CONDITIONAL(HAVE_AMD64, test "x$HAVE_AMD64" = "xyes")
AM_CONDITIONAL(HAVE_POWERPC, test "x$HAVE_POWERPC" = "xyes")
AM_CONDITIONAL(HAVE_ARM, test "x$HAVE_ARM" = "xyes")
+ case "${host_os}" in
+ mingw*)
+ HAVE_OS_WIN32=yes
+ AC_DEFINE(HAVE_OS_WIN32, 1, [Defined if host OS is MS Windows])
+ ;;
+ linux*)
+ HAVE_OS_LINUX=yes
+ AC_DEFINE(HAVE_OS_LINUX, 1, [Defined if host OS is linux])
+ ;;
+ esac
+
+AM_CONDITIONAL(HAVE_OS_WIN32, test "$HAVE_WIN32" = "yes")
+AM_CONDITIONAL(HAVE_OS_LINUX, test "$HAVE_LINUX" = "yes")
+
])
More information about the Liboil-commit
mailing list