OSDN Git Service

Fix ia64 libunwind gnatmake link error.
authorwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Nov 2003 08:23:23 +0000 (08:23 +0000)
committerwilson <wilson@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 30 Nov 2003 08:23:23 +0000 (08:23 +0000)
* gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
instead of in shared_name.

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

gcc/ChangeLog
gcc/gcc.c

index 22908de..af48992 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 b54fc07..f6f0ec1 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;
          }