configure.ac: Adjust CFI test to test assembler directly rather than checking gcc...
* configure.ac: Adjust CFI test to test assembler directly rather than checking gcc preprocessor macro. * configure: Rebuild. From-SVN: r164713
This commit is contained in:
parent
f6a0745f17
commit
6dace308de
|
@ -1,3 +1,9 @@
|
||||||
|
2010-09-28 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
|
* configure.ac: Adjust CFI test to test assembler directly rather
|
||||||
|
than checking gcc preprocessor macro.
|
||||||
|
* configure: Rebuild.
|
||||||
|
|
||||||
2010-09-27 Ian Lance Taylor <iant@google.com>
|
2010-09-27 Ian Lance Taylor <iant@google.com>
|
||||||
|
|
||||||
* configure.ac: Test whether assembler supports CFI directives.
|
* configure.ac: Test whether assembler supports CFI directives.
|
||||||
|
|
|
@ -3715,7 +3715,11 @@ if test "${libgcc_cv_cfi+set}" = set; then :
|
||||||
else
|
else
|
||||||
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
cat confdefs.h - <<_ACEOF >conftest.$ac_ext
|
||||||
/* end confdefs.h. */
|
/* end confdefs.h. */
|
||||||
int i = __GCC_HAVE_DWARF2_CFI_ASM;
|
asm("\n\
|
||||||
|
.text\n\
|
||||||
|
.cfi_startproc\n\
|
||||||
|
.cfi_personality 0, symbol\n\
|
||||||
|
.cfi_endproc");
|
||||||
_ACEOF
|
_ACEOF
|
||||||
if ac_fn_c_try_compile "$LINENO"; then :
|
if ac_fn_c_try_compile "$LINENO"; then :
|
||||||
libgcc_cv_cfi=yes
|
libgcc_cv_cfi=yes
|
||||||
|
|
|
@ -137,9 +137,14 @@ AC_SUBST(fixed_point)
|
||||||
|
|
||||||
# Check for assembler CFI support.
|
# Check for assembler CFI support.
|
||||||
AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi],
|
AC_CACHE_CHECK([whether assembler supports CFI directives], [libgcc_cv_cfi],
|
||||||
[AC_COMPILE_IFELSE([int i = __GCC_HAVE_DWARF2_CFI_ASM;],
|
[AC_COMPILE_IFELSE(
|
||||||
[libgcc_cv_cfi=yes],
|
[asm("\n\
|
||||||
[libgcc_cv_cfi=no])])
|
.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.
|
# Check 32bit or 64bit for x86.
|
||||||
case ${host} in
|
case ${host} in
|
||||||
|
|
Loading…
Reference in New Issue