[Pixman] [PATCH 02/11] MIPS: dspr2: Removed build restrictions and repair compiler's check

2014-03-13 Thread Nemanja Lukic
---
 configure.ac |8 ++--
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 6327972..5229032 100644
--- a/configure.ac
+++ b/configure.ac
@@ -720,25 +720,21 @@ dnl Check if assembler is gas compatible and supports 
MIPS DSPr2 instructions
 
 have_mips_dspr2=no
 AC_MSG_CHECKING(whether to use MIPS DSPr2 assembler)
-xserver_save_CFLAGS=$CFLAGS
-CFLAGS=-mdspr2 $CFLAGS
 
 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
-#if !(defined(__mips__)   __mips_isa_rev = 2)
-#error MIPS DSPr2 is currently only available on MIPS32r2 platforms.
-#endif
 int
 main ()
 {
 int c = 0, a = 0, b = 0;
 __asm__ __volatile__ (
+.setarch=mips32r2 \n\t
+.setdspr2 \n\t
 precr.qb.ph %[c], %[a], %[b]  \n\t
 : [c] =r (c)
 : [a] r (a), [b] r (b)
 );
 return c;
 }]])], have_mips_dspr2=yes)
-CFLAGS=$xserver_save_CFLAGS
 
 AC_ARG_ENABLE(mips-dspr2,
[AC_HELP_STRING([--disable-mips-dspr2],
-- 
1.7.3

___
Pixman mailing list
Pixman@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pixman


[Pixman] [PATCH 02/11] MIPS: DSPr2: Removed build restrictions and repair compiler's check

2013-10-28 Thread Nemanja Lukic
---
 configure.ac |8 ++--
 1 files changed, 2 insertions(+), 6 deletions(-)

diff --git a/configure.ac b/configure.ac
index 8a3b622..8764f7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -719,25 +719,21 @@ dnl Check if assembler is gas compatible and supports 
MIPS DSPr2 instructions
 
 have_mips_dspr2=no
 AC_MSG_CHECKING(whether to use MIPS DSPr2 assembler)
-xserver_save_CFLAGS=$CFLAGS
-CFLAGS=-mdspr2 $CFLAGS
 
 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
-#if !(defined(__mips__)   __mips_isa_rev = 2)
-#error MIPS DSPr2 is currently only available on MIPS32r2 platforms.
-#endif
 int
 main ()
 {
 int c = 0, a = 0, b = 0;
 __asm__ __volatile__ (
+.setarch=mips32r2 \n\t
+.setdspr2 \n\t
 precr.qb.ph %[c], %[a], %[b]  \n\t
 : [c] =r (c)
 : [a] r (a), [b] r (b)
 );
 return c;
 }]])], have_mips_dspr2=yes)
-CFLAGS=$xserver_save_CFLAGS
 
 AC_ARG_ENABLE(mips-dspr2,
[AC_HELP_STRING([--disable-mips-dspr2],
-- 
1.7.3

___
Pixman mailing list
Pixman@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/pixman