[Liboil] alignment problems with sse2

Matthias Drochner M.Drochner at fz-juelich.de
Tue Oct 17 11:38:06 PDT 2006


ds at schleef.org said:
> the easiest way to bash this bug into submission is to write a test
> for the testsuite which tests all the implementations under adverse
> stack alignment conditions

Independantly of the alignment fixes or at least detection,
there is a little favour you could do to NetBSD users:
sse (ie fxsave) is usually supported by NetBSD on i386 and amd64.

thanks & best regards
Matthias


-------------- next part --------------
$NetBSD$

--- liboil/liboilcpu.c.orig	2006-05-23 02:07:56.000000000 +0200
+++ liboil/liboilcpu.c
@@ -542,7 +542,7 @@ oil_cpu_detect_kernel_support (void)
 		       OIL_IMPL_FLAG_MMXEXT | OIL_IMPL_FLAG_SSE3);
   }
 #endif
-#if !defined(__linux__) && !defined(__FreeBSD__)
+#if !defined(__linux__) && !defined(__FreeBSD__) && !defined(__NetBSD__)
   /* If we don't know that the operating system supports SSE, don't trust that
    * it will properly support it.
    */


More information about the Liboil mailing list