summaryrefslogtreecommitdiff
path: root/packages/liboil/liboil-0.3.11/ppc-detect-fpu.patch
blob: 49485e36483c5af9bf30cfe8fe1953916584d6ee (plain)
1
2
3
4
5
6
7
8
9
10
11
--- /m4/orig-as-gcc-inline-assembly.m4	2007-03-17 04:03:30.000000000 +0200
+++ /m4/as-gcc-inline-assembly.m4	2007-11-20 12:20:24.000000000 +0200
@@ -38,7 +38,7 @@
 [
   AC_MSG_CHECKING([if compiler supports FPU instructions on PowerPC])
 
-  AC_TRY_COMPILE([], [__asm__ ("fadd 0,0,0"::) ], [flag_ok=yes], [flag_ok=no])
+  AC_TRY_COMPILE([], [double x = 0; __asm__ ("fadd 0,0,0"::"f" (x):"32") ], [flag_ok=yes], [flag_ok=no])
 
   if test "X$flag_ok" = Xyes ; then
     $1