On powerpc-unknown-linux-gnuspe SPE is used for floating point.
authorMonty <xiphmont@xiph.org>
Wed, 24 Mar 2010 09:27:43 +0000 (09:27 +0000)
committerMonty <xiphmont@xiph.org>
Wed, 24 Mar 2010 09:27:43 +0000 (09:27 +0000)
-mcpu=970 disables the usage of the SPU unit and enables the "normal"
floating
point unit. This results either in slow code (kernel floating point
emulation)
or in SIGILL.

Closes #1614

svn path=/trunk/vorbis/; revision=17020

configure.ac

index 70ee762..de3ddf7 100644 (file)
@@ -172,6 +172,10 @@ else
                CFLAGS=${OPT}" -D__NO_MATH_INLINES"
                PROFILE=${PROFILE}" -D__NO_MATH_INLINES"
                fi;;
+        powerpc-*-linux*spe) 
+               DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES" 
+               CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -D_REENTRANT" 
+               PROFILE="-pg -g -O3 -ffast-math -mfused-madd -D_REENTRANT";; 
        powerpc-*-linux*)
                DEBUG="-g -Wall -Wextra -D_REENTRANT -D__NO_MATH_INLINES"
                CFLAGS="-O3 -Wall -Wextra -ffast-math -mfused-madd -mcpu=750 -D_REENTRANT"