[PATCH] Use libunwind library when linking g++

Richard Henderson rth@redhat.com
Mon Jun 10 18:35:00 GMT 2002


On Wed, Jun 05, 2002 at 12:11:22PM -0700, Steve Ellcey wrote:
> 	* gcc/configure.in (CONFIG_UNWIND_EXCEPTIONS): Add support to set
> 	CONFIG_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
> 	* gcc/config.in (CONFIG_UNWIND_EXCEPTIONS): Ditto.
> 	* gcc/cp/g++spec.c (lang_specific_driver): Add -lunwind if
> 	CONFIG_UNWIND_EXCEPTIONS is set.

Changelog doesn't match the code.

> + if test x"$use_libunwind_exceptions" = xyes; then
> +    AC_DEFINE_UNQUOTED(CONFIG_LIBUNWIND_EXCEPTIONS, 1)

s/CONFIG_LIBUNWIND_EXCEPTIONS/USE_LIBUNWIND_EXCEPTIONS/g

Use AC_DEFINE.

> *** gcc.orig/gcc/config.in	Mon Mar 11 10:55:57 2002
> --- gcc/gcc/config.in	Thu Jan 10 14:21:38 2002

Never include generated files in the diff.

The patch is incomplete, since it doesn't modify Java.
It would be nice if this were handled independent of 
the language, but I'm not sure how to do that without
adding unnecessary dependencies to C.

The patch doesn't control the generation of libgcc_eh.
What's going to happen when both libgcc_eh and libunwind
appear on the same link line?  Are we absolutely certain
that libunwind is a superset of libgcc_eh and so having
the both cannot result in multiply defined symbols?


r~



More information about the Gcc-patches mailing list