libunwind cleanup
authorJames E Wilson <wilson@specifixinc.com>
Thu, 4 Dec 2003 06:07:03 +0000 (06:07 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Thu, 4 Dec 2003 06:07:03 +0000 (22:07 -0800)
libunwind cleanup
* gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
* g++spec.c (lang_specific_driver): Delete USE_LIBUNWIND_EXCEPTIONS
support.

From-SVN: r74273

gcc/ChangeLog
gcc/cp/ChangeLog
gcc/cp/g++spec.c
gcc/gcc.c

index 98e7534aeb74856bc5dabb94b370967bfa8f815d..2e6321468537c05c74e6cfcdf282ac8858ac5168 100644 (file)
@@ -7,6 +7,8 @@
 
 2003-12-03  James E Wilson  <wilson@specifixinc.com>
 
+       * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
+
        * gcc-page.c (extra_order_size_tab): Correct comment.
 
 2003-12-03  Kazu Hirata  <kazu@cs.umass.edu>
index dbb0d003772d929d5d4421dfcd4b4d45746ca04c..451b459c323f44d0c9d56ff474a86fbb3dddfb9f 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-03  James E Wilson  <wilson@specifixinc.com>
+
+       * g++spec.c (lang_specific_driver): Delete USE_LIBUNWIND_EXCEPTIONS
+       support.
+
 2003-12-03  Mark Mitchell  <mark@codesourcery.com>
 
        PR c++/13179
index 4951ff3211e9ed391f480bc6022c9ae308e6f202..e6c9ee6892a0dfd685c12f1457a243f7267101c4 100644 (file)
@@ -302,13 +302,6 @@ lang_specific_driver (int *in_argc, const char *const **in_argv,
     {
       arglist[j++] = saw_profile_flag ? LIBSTDCXX_PROFILE : LIBSTDCXX;
       added_libraries++;
-#ifdef USE_LIBUNWIND_EXCEPTIONS
-# ifndef LIBUNWIND
-#  define LIBUNWIND "-lunwind"
-# endif
-      arglist[j++] = LIBUNWIND;
-      added_libraries++;
-#endif
     }
   if (saw_math)
     arglist[j++] = saw_math;
index f6f0ec15f41ebc83cef7498c3195163dc99bdc14..7b9ea63e97127f48256777993af8993c20269cce 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1656,7 +1656,11 @@ init_spec (void)
 #endif
                            ,
                            "libgcc.a%s",
-                           "libgcc_eh.a%s");
+                           "libgcc_eh.a%s"
+#ifdef USE_LIBUNWIND_EXCEPTIONS
+                           " -lunwind"
+#endif
+                           );
            p += 10;
            in_sep = 0;
          }