comparison configure @ 33682:bcb85e10eff7

configure: Remove check for compiler support of 10 assembler operands. This was done to accomodate legacy compilers that are no longer supported.
author diego
date Wed, 29 Jun 2011 10:12:12 +0000
parents 02cc94c80367
children e86e784f5f62
comparison
equal deleted inserted replaced
33681:82cc91442a07 33682:bcb85e10eff7
2690 echores $pic 2690 echores $pic
2691 2691
2692 2692
2693 def_bswap='#define HAVE_BSWAP 0' 2693 def_bswap='#define HAVE_BSWAP 0'
2694 def_ebx_available='#define HAVE_EBX_AVAILABLE 0' 2694 def_ebx_available='#define HAVE_EBX_AVAILABLE 0'
2695 def_ten_operands='#define HAVE_TEN_OPERANDS 0'
2696 def_xmm_clobbers='#define HAVE_XMM_CLOBBERS 0' 2695 def_xmm_clobbers='#define HAVE_XMM_CLOBBERS 0'
2697 2696
2698 if x86 ; then 2697 if x86 ; then
2699 2698
2700 echocheck ".align is a power of two" 2699 echocheck ".align is a power of two"
2707 else 2706 else
2708 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"' 2707 def_asmalign_pot='#define ASMALIGN(ZEROBITS) ".align 1<<" #ZEROBITS "\n\t"'
2709 fi 2708 fi
2710 echores $_asmalign_pot 2709 echores $_asmalign_pot
2711 2710
2712
2713 echocheck "10 assembler operands"
2714 ten_operands=no
2715 cat > $TMPC << EOF
2716 int main(void) {
2717 int x=0;
2718 __asm__ volatile(
2719 ""
2720 :"+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x), "+&rm"(x)
2721 );
2722 return 0;
2723 }
2724 EOF
2725 cc_check && ten_operands=yes && def_ten_operands='#define HAVE_TEN_OPERANDS 1'
2726 echores $ten_operands
2727 2711
2728 echocheck "ebx availability" 2712 echocheck "ebx availability"
2729 ebx_available=no 2713 ebx_available=no
2730 cat > $TMPC << EOF 2714 cat > $TMPC << EOF
2731 int main(void) { 2715 int main(void) {
8649 $def_poll_h 8633 $def_poll_h
8650 $def_posix_memalign 8634 $def_posix_memalign
8651 $def_pthreads 8635 $def_pthreads
8652 $def_round 8636 $def_round
8653 $def_roundf 8637 $def_roundf
8654 $def_ten_operands
8655 $def_threads 8638 $def_threads
8656 $def_truncf 8639 $def_truncf
8657 $def_xform_asm 8640 $def_xform_asm
8658 $def_xmm_clobbers 8641 $def_xmm_clobbers
8659 $def_yasm 8642 $def_yasm