Fix ia64 libunwind gnatmake link error.
authorJames E Wilson <wilson@specifixinc.com>
Sun, 30 Nov 2003 08:23:23 +0000 (08:23 +0000)
committerJim Wilson <wilson@gcc.gnu.org>
Sun, 30 Nov 2003 08:23:23 +0000 (00:23 -0800)
* gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
instead of in shared_name.

From-SVN: r74054

gcc/ChangeLog
gcc/gcc.c

index 22908dedea9cdbaf293b5ee542819793e712dec1..af4899252603d130d529c346b9c8b5657c97c67d 100644 (file)
@@ -1,5 +1,8 @@
 2003-11-29  James E Wilson  <wilson@specifixinc.com>
 
+       * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
+       instead of in shared_name.
+
        * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
        * reload1.c (reload): Re-add it here.
 
index b54fc0796f789b3bd96a1c59e38e75b85d3f471d..f6f0ec15f41ebc83cef7498c3195163dc99bdc14 100644 (file)
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -1633,12 +1633,14 @@ init_spec (void)
 #else
                            "-lgcc_s%M"
 #endif
+                           ,
+                           "-lgcc",
+                           "-lgcc_eh"
 #ifdef USE_LIBUNWIND_EXCEPTIONS
                            " -lunwind"
 #endif
-                           ,
-                           "-lgcc",
-                           "-lgcc_eh");
+                           );
+
            p += 5;
            in_sep = 0;
          }