configure.ac (gcc_cv_as_cfi_advance_working): Use objdump instead of readelf in the test.

* configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
	instead of readelf in the test.
	(gcc_cv_as_cfi_sections_directive): Check for correct relocation
	in the .debug_frame section for coff targets.
	* configure: Rebuild.

From-SVN: r163793
This commit is contained in:
Richard Henderson 2010-09-02 17:02:53 -07:00 committed by Richard Henderson
parent 36d9e52fff
commit 92053f386a
3 changed files with 47 additions and 8 deletions

View File

@ -1,3 +1,11 @@
2010-09-02 Richard Henderson <rth@redhat.com>
* configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
instead of readelf in the test.
(gcc_cv_as_cfi_sections_directive): Check for correct relocation
in the .debug_frame section for coff targets.
* configure: Rebuild.
2010-09-02 Anatoly Sokolov <aesok@post.ru>
* config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.

21
gcc/configure vendored
View File

@ -21585,7 +21585,7 @@ fi
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_as_cfi_directive" >&5
$as_echo "$gcc_cv_as_cfi_directive" >&6; }
if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler for working cfi advance" >&5
$as_echo_n "checking assembler for working cfi advance... " >&6; }
if test "${gcc_cv_as_cfi_advance_working+set}" = set; then :
@ -21607,7 +21607,7 @@ else
test $ac_status = 0; }; }
then
if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
| grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
gcc_cv_as_cfi_advance_working=yes
fi
@ -21623,7 +21623,7 @@ fi
$as_echo "$gcc_cv_as_cfi_advance_working" >&6; }
else
# no readelf, err on the side of caution
# no objdump, err on the side of caution
gcc_cv_as_cfi_advance_working=no
fi
@ -21687,7 +21687,22 @@ else
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
test $ac_status = 0; }; }
then
case $target_os in
win32 | pe | cygwin* | mingw32* | uwin*)
# Need to check that we generated the correct relocation for the
# .debug_frame section. This was fixed for binutils 2.21.
gcc_cv_as_cfi_sections_directive=no
if test "x$gcc_cv_objdump" != x; then
if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
grep secrel > /dev/null; then
gcc_cv_as_cfi_sections_directive=yes
fi
fi
;;
*)
gcc_cv_as_cfi_sections_directive=yes
;;
esac
else
echo "configure: failed program was" >&5
cat conftest.s >&5

View File

@ -2405,7 +2405,7 @@ gcc_GAS_CHECK_FEATURE([cfi directives], gcc_cv_as_cfi_directive,
gcc_cv_as_cfi_directive=yes
;;
esac])
if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_readelf != x; then
if test $gcc_cv_as_cfi_directive = yes && test x$gcc_cv_objdump != x; then
gcc_GAS_CHECK_FEATURE([working cfi advance], gcc_cv_as_cfi_advance_working,
,,
[ .text
@ -2415,13 +2415,13 @@ gcc_GAS_CHECK_FEATURE([working cfi advance], gcc_cv_as_cfi_advance_working,
.cfi_adjust_cfa_offset 128
.cfi_endproc],
[[
if $gcc_cv_readelf -wf conftest.o 2>/dev/null \
if $gcc_cv_objdump -Wf conftest.o 2>/dev/null \
| grep 'DW_CFA_advance_loc[24]:[ ][ ]*75040[ ]' >/dev/null; then
gcc_cv_as_cfi_advance_working=yes
fi
]])
else
# no readelf, err on the side of caution
# no objdump, err on the side of caution
gcc_cv_as_cfi_advance_working=no
fi
AC_DEFINE_UNQUOTED(HAVE_GAS_CFI_DIRECTIVE,
@ -2445,7 +2445,23 @@ gcc_GAS_CHECK_FEATURE([cfi sections directive],
[ .text
.cfi_sections .debug_frame, .eh_frame
.cfi_startproc
.cfi_endproc])
.cfi_endproc],
[case $target_os in
win32 | pe | cygwin* | mingw32* | uwin*)
# Need to check that we generated the correct relocation for the
# .debug_frame section. This was fixed for binutils 2.21.
gcc_cv_as_cfi_sections_directive=no
if test "x$gcc_cv_objdump" != x; then
if $gcc_cv_objdump -j .debug_frame -r conftest.o 2>/dev/null | \
grep secrel > /dev/null; then
gcc_cv_as_cfi_sections_directive=yes
fi
fi
;;
*)
gcc_cv_as_cfi_sections_directive=yes
;;
esac])
AC_DEFINE_UNQUOTED(HAVE_GAS_CFI_SECTIONS_DIRECTIVE,
[`if test $gcc_cv_as_cfi_sections_directive = yes;
then echo 1; else echo 0; fi`],