OSDN Git Service

* gcc.c (init_spec): Add -lunwind to shared case too if
authorzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Dec 2003 21:30:22 +0000 (21:30 +0000)
committerzack <zack@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 31 Dec 2003 21:30:22 +0000 (21:30 +0000)
USE_LIBUNWIND_EXCEPTIONS.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@75276 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/gcc.c

index 499ba14..9b0ec54 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-31  Zack Weinberg  <zack@codesourcery.com>
+
+       * gcc.c (init_spec): Add -lunwind to shared case too if
+       USE_LIBUNWIND_EXCEPTIONS.
+
 2003-12-31  Joseph S. Myers  <jsm@polyomino.org.uk>
 
        * doc/include/texinfo.tex: Update to version 2003-12-21.10.
 2003-12-25  Andrew Pinski  <pinskia@physics.uc.edu>
 
        PR C++/13429, C/11944
-       * c-common.c (c_build_qualified_type): Return early when type is 
+       * c-common.c (c_build_qualified_type): Return early when type is
        error_mark_node.
        (c_apply_type_quals_to_decl): Likewise.
 
index bc6d4c4..27024fa 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1633,6 +1633,9 @@ init_spec (void)
 #else
                            "-lgcc_s%M"
 #endif
+#ifdef USE_LIBUNWIND_EXCEPTIONS
+                           " -lunwind"
+#endif
                            ,
                            "-lgcc",
                            "-lgcc_eh"
@@ -1654,6 +1657,9 @@ init_spec (void)
 #else
                            "-lgcc_s%M"
 #endif
+#ifdef USE_LIBUNWIND_EXCEPTIONS
+                           " -lunwind"
+#endif
                            ,
                            "libgcc.a%s",
                            "libgcc_eh.a%s"