Commit 893a047c by Steve Ellcey Committed by Richard Henderson

configure.in (USE_UNWIND_EXCEPTIONS): Add support to set USE_UNWIND_EXCEPTIONS…

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
parent 045d7161
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> 2002-06-14 Eric Botcazou <ebotcazou@multimania.com>
* loop.c (check_final_value): Use v->always_executed * loop.c (check_final_value): Use v->always_executed
......
/* 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. */ /* Define if using alloca.c. */
#undef C_ALLOCA #undef C_ALLOCA
...@@ -482,14 +482,14 @@ ...@@ -482,14 +482,14 @@
/* Define if host mkdir takes a single argument. */ /* Define if host mkdir takes a single argument. */
#undef MKDIR_TAKES_ONE_ARG #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 /* Define to the name of a file containing a list of extra machine modes
for this architecture. */ for this architecture. */
#undef EXTRA_MODES_FILE #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. */ /* Define if you have the iconv() function. */
#undef HAVE_ICONV #undef HAVE_ICONV
...@@ -582,6 +582,9 @@ ...@@ -582,6 +582,9 @@
/* Define 0/1 to force the choice for exception handling model. */ /* Define 0/1 to force the choice for exception handling model. */
#undef CONFIG_SJLJ_EXCEPTIONS #undef CONFIG_SJLJ_EXCEPTIONS
/* Define if gcc should use -lunwind. */
#undef USE_LIBUNWIND_EXCEPTIONS
/* Bison unconditionally undefines `const' if neither `__STDC__' nor /* Bison unconditionally undefines `const' if neither `__STDC__' nor
__cplusplus are defined. That's a problem since we use `const' in __cplusplus are defined. That's a problem since we use `const' in
......
...@@ -2336,6 +2336,16 @@ AC_ARG_ENABLE(sjlj-exceptions, ...@@ -2336,6 +2336,16 @@ AC_ARG_ENABLE(sjlj-exceptions,
AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj, AC_DEFINE_UNQUOTED(CONFIG_SJLJ_EXCEPTIONS, $sjlj,
[Define 0/1 to force the choice for exception handling model.])]) [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. # 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. # Then add #include lines to for a compiler that has specs and/or options.
......
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> 2002-06-13 Jessica Han <jessica@cup.hp.com>
* class.c (build_vtable): Use TARGET_VTABLE_ENTRY_ALIGN. * class.c (build_vtable): Use TARGET_VTABLE_ENTRY_ALIGN.
......
...@@ -43,6 +43,10 @@ Boston, MA 02111-1307, USA. */ ...@@ -43,6 +43,10 @@ Boston, MA 02111-1307, USA. */
#define LIBSTDCXX_PROFILE "-lstdc++" #define LIBSTDCXX_PROFILE "-lstdc++"
#endif #endif
#ifndef LIBUNWIND
#define LIBUNWIND "-lunwind"
#endif
void void
lang_specific_driver (in_argc, in_argv, in_added_libraries) lang_specific_driver (in_argc, in_argv, in_added_libraries)
int *in_argc; int *in_argc;
...@@ -272,6 +276,10 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries) ...@@ -272,6 +276,10 @@ lang_specific_driver (in_argc, in_argv, in_added_libraries)
{ {
arglist[j++] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX; arglist[j++] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
added_libraries++; added_libraries++;
#ifdef USE_LIBUNWIND_EXCEPTIONS
arglist[j++] = LIBUNWIND;
added_libraries++;
#endif
} }
if (saw_math) if (saw_math)
arglist[j++] = saw_math; arglist[j++] = saw_math;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment