Mercurial > mplayer.hg
comparison configure @ 27757:b5a46071062a
Replace all occurrences of '__volatile__' and '__volatile' by plain 'volatile'.
We were using an inconsistent mix of the three variants and 'volatile' should
be the most correct and portable variant.
author | diego |
---|---|
date | Thu, 16 Oct 2008 20:17:56 +0000 |
parents | 08d18fe9da52 |
children | 7929bcb921e9 |
comparison
equal
deleted
inserted
replaced
27756:1266470a5651 | 27757:b5a46071062a |
---|---|
1593 #include <stdlib.h> | 1593 #include <stdlib.h> |
1594 #include <signal.h> | 1594 #include <signal.h> |
1595 void catch() { exit(1); } | 1595 void catch() { exit(1); } |
1596 int main(void) { | 1596 int main(void) { |
1597 signal(SIGILL, catch); | 1597 signal(SIGILL, catch); |
1598 __asm__ __volatile__ ("$3":::"memory"); return 0; | 1598 __asm__ volatile ("$3":::"memory"); return 0; |
1599 } | 1599 } |
1600 EOF | 1600 EOF |
1601 | 1601 |
1602 if cc_check && tmp_run ; then | 1602 if cc_check && tmp_run ; then |
1603 eval _$2=yes | 1603 eval _$2=yes |
2441 | 2441 |
2442 if arm ; then | 2442 if arm ; then |
2443 echocheck "ARMv5TE (Enhanced DSP Extensions)" | 2443 echocheck "ARMv5TE (Enhanced DSP Extensions)" |
2444 if test $_armv5te = "auto" ; then | 2444 if test $_armv5te = "auto" ; then |
2445 cat > $TMPC << EOF | 2445 cat > $TMPC << EOF |
2446 int main(void) { __asm__ __volatile__ ("qadd r0, r0, r0"); return 0; } | 2446 int main(void) { __asm__ volatile ("qadd r0, r0, r0"); return 0; } |
2447 EOF | 2447 EOF |
2448 _armv5te=no | 2448 _armv5te=no |
2449 cc_check && _armv5te=yes | 2449 cc_check && _armv5te=yes |
2450 fi | 2450 fi |
2451 echores "$_armv5te" | 2451 echores "$_armv5te" |
2452 | 2452 |
2453 echocheck "ARMv6 (SIMD instructions)" | 2453 echocheck "ARMv6 (SIMD instructions)" |
2454 if test $_armv6 = "auto" ; then | 2454 if test $_armv6 = "auto" ; then |
2455 cat > $TMPC << EOF | 2455 cat > $TMPC << EOF |
2456 int main(void) { __asm__ __volatile__ ("sadd16 r0, r0, r0"); return 0; } | 2456 int main(void) { __asm__ volatile ("sadd16 r0, r0, r0"); return 0; } |
2457 EOF | 2457 EOF |
2458 _armv6=no | 2458 _armv6=no |
2459 cc_check && _armv6=yes | 2459 cc_check && _armv6=yes |
2460 fi | 2460 fi |
2461 echores "$_armv6" | 2461 echores "$_armv6" |
2462 | 2462 |
2463 echocheck "ARM VFP" | 2463 echocheck "ARM VFP" |
2464 if test $_armvfp = "auto" ; then | 2464 if test $_armvfp = "auto" ; then |
2465 cat > $TMPC << EOF | 2465 cat > $TMPC << EOF |
2466 int main(void) { __asm__ __volatile__ ("fadds s0, s0, s0"); return 0; } | 2466 int main(void) { __asm__ volatile ("fadds s0, s0, s0"); return 0; } |
2467 EOF | 2467 EOF |
2468 _armvfp=no | 2468 _armvfp=no |
2469 cc_check && _armvfp=yes | 2469 cc_check && _armvfp=yes |
2470 fi | 2470 fi |
2471 echores "$_armvfp" | 2471 echores "$_armvfp" |
2472 | 2472 |
2473 echocheck "iWMMXt (Intel XScale SIMD instructions)" | 2473 echocheck "iWMMXt (Intel XScale SIMD instructions)" |
2474 if test $_iwmmxt = "auto" ; then | 2474 if test $_iwmmxt = "auto" ; then |
2475 cat > $TMPC << EOF | 2475 cat > $TMPC << EOF |
2476 int main(void) { __asm__ __volatile__ ("wunpckelub wr6, wr4"); return 0; } | 2476 int main(void) { __asm__ volatile ("wunpckelub wr6, wr4"); return 0; } |
2477 EOF | 2477 EOF |
2478 _iwmmxt=no | 2478 _iwmmxt=no |
2479 cc_check && _iwmmxt=yes | 2479 cc_check && _iwmmxt=yes |
2480 fi | 2480 fi |
2481 echores "$_iwmmxt" | 2481 echores "$_iwmmxt" |