This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

yet another libunwind configure patch


This fixes a problem I reported earlier, which is that the new test for
libunwind_has_eh_support does not work because it always gets linked against
libgcc_eh which does have eh support.  This test was supposed to allow gcc to
work with libunwind versions 0.95 and earlier.

There was support for dropping the test and requiring a libunwind version 0.96
or better.  So that is what this patch does.

2003-12-19  James E. Wilson  <wilson@specifixinc.com>

	* configure.in: Delete libunwind_has_eh_support test.
	* configure: Regenerate.
	* config.gcc (ia64*-*-linux*): Delete reference to t-libunwind-no-eh
	and libunwind_has_eh_support check.
	* config/t-libunwind-no-eh: Delete.

Index: config.gcc
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config.gcc,v
retrieving revision 1.414
diff -p -r1.414 config.gcc
*** config.gcc	12 Dec 2003 21:11:50 -0000	1.414
--- config.gcc	19 Dec 2003 08:45:18 -0000
*************** ia64*-*-linux*)
*** 1244,1254 ****
  	target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
  	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
  	if test x"$use_libunwind_exceptions" = xyes; then
! 	  if test x"$libunwind_has_eh_support" = xyes; then
! 	    tmake_file="$tmake_file t-libunwind"
! 	  else
! 	    tmake_file="$tmake_file t-libunwind-no-eh"
! 	  fi
  	fi
  	;;
  ia64*-*-hpux*)
--- 1244,1250 ----
  	target_cpu_default="MASK_GNU_AS|MASK_GNU_LD"
  	extra_parts="crtbegin.o crtend.o crtbeginS.o crtendS.o crtfastmath.o"
  	if test x"$use_libunwind_exceptions" = xyes; then
! 	  tmake_file="$tmake_file t-libunwind"
  	fi
  	;;
  ia64*-*-hpux*)
Index: configure.in
===================================================================
RCS file: /cvs/gcc/gcc/gcc/configure.in,v
retrieving revision 1.761
diff -p -r1.761 configure.in
*** configure.in	17 Dec 2003 06:32:52 -0000	1.761
--- configure.in	19 Dec 2003 08:54:04 -0000
*************** use_libunwind_exceptions=$use_libunwind_
*** 957,964 ****
  if test x"$use_libunwind_exceptions" = xyes; then
     AC_DEFINE(USE_LIBUNWIND_EXCEPTIONS, 1,
  	[Define if gcc should use -lunwind.])
-    AC_CHECK_LIB(unwind, _Unwind_Resume, libunwind_has_eh_support=yes,
- 	libunwind_has_eh_support=no)
  fi
  
  # --------------------------------------------------------
--- 957,962 ----
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]