diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-15 01:16:28 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-06-15 01:16:28 +0000 |
commit | 5f989906919c2c4be43c67769841bd721be260f6 (patch) | |
tree | ff4bb4af1a2979e613506a7af4473ef62ebe2689 /gcc/cp | |
parent | a22e3dfa0b89b630518417da71e5060580f7c6cd (diff) | |
download | gcc-5f989906919c2c4be43c67769841bd721be260f6.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@54636 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/cp')
-rw-r--r-- | gcc/cp/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/cp/g++spec.c | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index bfbe11f6579..870107044e7 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -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. diff --git a/gcc/cp/g++spec.c b/gcc/cp/g++spec.c index c0e5c73410c..4087e4ae1c4 100644 --- a/gcc/cp/g++spec.c +++ b/gcc/cp/g++spec.c @@ -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; |