configure.in (USE_UNWIND_EXCEPTIONS): Add support to set USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.

* configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
        USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
        * configure, config.in: Regenerate.

        * g++spec.c (LIBUNWIND): New.
        (lang_specific_driver): Add it if USE_UNWIND_EXCEPTIONS is set.

From-SVN: r54636
This commit is contained in:
Steve Ellcey 2002-06-15 01:16:28 +00:00 committed by Richard Henderson
parent 045d7161a0
commit 893a047c65
6 changed files with 364 additions and 314 deletions

View File

@ -1,3 +1,9 @@
2002-06-14 Steve Ellcey <sje@cup.hp.com>
* configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
* configure, config.in: Regenerate.
2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
* loop.c (check_final_value): Use v->always_executed

View File

@ -1,4 +1,4 @@
/* config.in. Generated automatically from configure.in by autoheader 2.13. */
/* config.in. Generated automatically from configure.in by autoheader. */
/* Define if using alloca.c. */
#undef C_ALLOCA
@ -482,14 +482,14 @@
/* Define if host mkdir takes a single argument. */
#undef MKDIR_TAKES_ONE_ARG
/* Define if the target architecture needs extra machine modes to represent
the results of comparisons. */
#undef EXTRA_CC_MODES
/* Define to the name of a file containing a list of extra machine modes
for this architecture. */
#undef EXTRA_MODES_FILE
/* Define if the target architecture needs extra machine modes to represent
the results of comparisons. */
#undef EXTRA_CC_MODES
/* Define if you have the iconv() function. */
#undef HAVE_ICONV
@ -582,6 +582,9 @@
/* Define 0/1 to force the choice for exception handling model. */
#undef CONFIG_SJLJ_EXCEPTIONS
/* Define if gcc should use -lunwind. */
#undef USE_LIBUNWIND_EXCEPTIONS
/* Bison unconditionally undefines `const' if neither `__STDC__' nor
__cplusplus are defined. That's a problem since we use `const' in

636
gcc/configure vendored

File diff suppressed because it is too large Load Diff

View File

@ -2336,6 +2336,16 @@ AC_ARG_ENABLE(sjlj-exceptions,
AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj,
[Define 0/1 to force the choice for exception handling model.])])
# Use libunwind based exception handling.
AC_ARG_ENABLE(libunwind-exceptions,
[ --enable-libunwind-exceptions force use libunwind for exceptions],
use_libunwind_exceptions=$enableval,
use_libunwind_exceptions=no)
if test x"$use_libunwind_exceptions" = xyes; then
AC_DEFINE(USE_LIBUNWIND_EXCEPTIONS, 1,
[Define if gcc should use -lunwind.])
fi
# Make empty files to contain the specs and options for each language.
# Then add #include lines to for a compiler that has specs and/or options.

View File

@ -1,3 +1,8 @@
2002-06-14 Steve Ellcey <sje@cup.hp.com>
* g++spec.c (LIBUNWIND): New.
(lang_specific_driver): Add it if USE_UNWIND_EXCEPTIONS is set.
2002-06-13 Jessica Han <jessica@cup.hp.com>
* class.c (build_vtable): Use TARGET_VTABLE_ENTRY_ALIGN.

View File

@ -43,6 +43,10 @@ Boston, MA 02111-1307, USA. */
#define LIBSTDCXX_PROFILE "-lstdc++"
#endif
#ifndef LIBUNWIND
#define LIBUNWIND "-lunwind"
#endif
void
lang_specific_driver (in_argc, in_argv, in_added_libraries)
int *in_argc;
@ -272,6 +276,10 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
{
arglist[j++] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
added_libraries++;
#ifdef USE_LIBUNWIND_EXCEPTIONS
arglist[j++] = LIBUNWIND;
added_libraries++;
#endif
}
if (saw_math)
arglist[j++] = saw_math;