[patch] DWARF2 unwind info check

Jakub Jelinek jakub@redhat.com
Sat Feb 9 02:26:00 GMT 2002


On Fri, Feb 08, 2002 at 05:15:20PM -0800, Richard Henderson wrote:
> This test has been failing since Jakub broke the EH routines
> out into libgcc_eh.a.  The following works against gcc 3.1
> as of today; I don't know if you want to make this more 
> complicated to cater to gcc 3.0.3...

Ouch, sorry. But IMHO we have to cater to gcc-2.95+.
So, IMHO following would be better (note that I think it is not necessary to
add -lgcc_eh to __register_frame check, since either they are both present
in gcc 3.1+, or none.

	* configure.in (check DWARF2 unwind info): Define dl_iterate_phdr.
	Add -lgcc_eh.

--- libc/configure.in.jj	Sat Feb  9 11:22:37 2002
+++ libc/configure.in	Sat Feb  9 11:25:51 2002
@@ -1348,12 +1348,17 @@ memset () {}
 free () {}
 abort () {}
 __bzero () {}
+dl_iterate_phdr () {}
 EOF
 dnl No \ in command here because it ends up inside ''.
 if AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
 			    -nostdlib -nostartfiles
 			    -o conftest conftest.c -lgcc >&AC_FD_CC]); then
   libc_cv_gcc_dwarf2_unwind_info=static
+elif AC_TRY_COMMAND([${CC-cc} $CFLAGS -DCHECK__register_frame_info
+			    -nostdlib -nostartfiles
+			    -o conftest conftest.c -lgcc -lgcc_eh >&AC_FD_CC]); then
+  libc_cv_gcc_dwarf2_unwind_info=static
 else
   libc_cv_gcc_dwarf2_unwind_info=no
 fi


	Jakub



More information about the Libc-hacker mailing list