X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=libgcc%2Fconfigure.ac;h=fc157d30a794206a7c6f7e2c6e101fe7e6d447f3;hb=b12676a5853278cf006fbc0908d35cb9d5ba7adc;hp=b055dbaca13f48b02dd231b544ca0ceb8c35d50a;hpb=a2655af126b7d95fd7824291b5b1be33518c8e7c;p=pf3gnuchains%2Fgcc-fork.git diff --git a/libgcc/configure.ac b/libgcc/configure.ac index b055dbaca13..fc157d30a79 100644 --- a/libgcc/configure.ac +++ b/libgcc/configure.ac @@ -5,8 +5,9 @@ sinclude(../config/tls.m4) sinclude(../config/acx.m4) sinclude(../config/no-executables.m4) sinclude(../config/override.m4) +sinclude(../config/dfp.m4) -AC_PREREQ(2.59) +AC_PREREQ(2.64) AC_INIT([GNU C Runtime Library], 1.0,,[libgcc]) AC_CONFIG_SRCDIR([static-object.mk]) @@ -125,41 +126,7 @@ AC_CACHE_CHECK([whether decimal floating point is supported], [libgcc_cv_dfp], decimal_float=$libgcc_cv_dfp AC_SUBST(decimal_float) -AC_ARG_ENABLE(decimal-float, -[ --enable-decimal-float={no,yes,bid,dpd} - enable decimal float extension to C. Selecting 'bid' - or 'dpd' choses which decimal floating point format - to use], -[ - case $enable_decimal_float in - yes | no | bid | dpd) ;; - *) AC_MSG_ERROR(['$enable_decimal_float' is an invalid value for --enable-decimal-float. -Valid choices are 'yes', 'bid', 'dpd', and 'no'.]) ;; - esac -], -[ - case $host in - powerpc*-*-linux* | i?86*-*-linux* | x86_64*-*-linux*) - enable_decimal_float=yes - ;; - *) - enable_decimal_float=no - ;; - esac -]) - -# x86's use BID format instead of DPD -if test x$enable_decimal_float = xyes; then - case $host in - i?86*-*-linux* | x86_64*-*-linux*) - enable_decimal_float=bid - ;; - *) - enable_decimal_float=dpd - ;; - esac -fi -AC_SUBST(enable_decimal_float) +GCC_AC_ENABLE_DECIMAL_FLOAT([$host]) # Check for fixed-point support. AC_CACHE_CHECK([whether fixed-point is supported], [libgcc_cv_fixed_point], @@ -168,6 +135,17 @@ AC_CACHE_CHECK([whether fixed-point is supported], [libgcc_cv_fixed_point], fixed_point=$libgcc_cv_fixed_point AC_SUBST(fixed_point) +# Check for assembler CFI support. +AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi], + [AC_COMPILE_IFELSE( +[asm("\n\ + .text\n\ + .cfi_startproc\n\ + .cfi_personality 0, symbol\n\ + .cfi_endproc");], + [libgcc_cv_cfi=yes], + [libgcc_cv_cfi=no])]) + # Check 32bit or 64bit for x86. case ${host} in i?86*-*-* | x86_64*-*-*) @@ -191,7 +169,7 @@ esac # Link with -nostartfiles -nodefaultlibs since neither are present while # building libgcc. case ${host} in -i?86-*-solaris2.1[[0-9]]*) +i?86-*-solaris2*) cat > conftest.s <