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

Søren Sandmann soren.sandmann at gmail.com
Fri Apr 11 12:13:11 PDT 2014


This patch needs information about what build restrictions were removed
and why, and what was wrong with the compiler's check and how the patch
fixed it.

Søren

Nemanja Lukic <nemanja.lukic at rt-rk.com> writes:

> ---
>  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__ (
> +        ".set        arch=mips32r2             \n\t"
> +        ".set        dspr2                     \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],


More information about the Pixman mailing list