OSDN Git Service

* config/ia64/hpux.h (STARTFILE_SPEC): Modify.
authorsje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Sep 2002 16:53:25 +0000 (16:53 +0000)
committersje <sje@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 20 Sep 2002 16:53:25 +0000 (16:53 +0000)
(STARTFILE_PREFIX_SPEC): New.
(LINK_SPEC): Modify.
(LIB_SPEC): Modify.
(LIBGCC_SPEC): New.

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

gcc/ChangeLog
gcc/config/ia64/hpux.h

index 83d3813..6e0e49b 100644 (file)
@@ -1,3 +1,11 @@
+2002-09-20  Steve Ellcey  <sje@cup.hp.com>
+
+       * config/ia64/hpux.h (STARTFILE_SPEC): Modify.
+       (STARTFILE_PREFIX_SPEC): New.
+       (LINK_SPEC): Modify.
+       (LIB_SPEC): Modify.
+       (LIBGCC_SPEC): New.
+
 2002-09-20  Jakub Jelinek  <jakub@redhat.com>
 
        * config/i386/i386.c (legitimate_pic_address_disp_p): Allow
index e83728f..68fad57 100644 (file)
@@ -55,24 +55,37 @@ do {                                                        \
 #undef ENDFILE_SPEC
 
 #undef STARTFILE_SPEC
-#ifdef CROSS_COMPILE
-#define STARTFILE_SPEC "%{!shared:crt0%O%s}"
-#else
-#define STARTFILE_SPEC "/usr/ccs/lib/hpux64/crt0%O"
+#define STARTFILE_SPEC "%{!shared:%{static:crt0%O%s}}"
+
+#ifndef CROSS_COMPILE
+#define STARTFILE_PREFIX_SPEC \
+  "%{mlp64: /usr/ccs/lib/hpux64/} \
+   %{!mlp64: /usr/ccs/lib/hpux32/}"
 #endif
 
 #undef LINK_SPEC
-#define LINK_SPEC "\
-  +Accept TypeMismatch \
-  %{shared:-b} \
-  %{!shared: \
-    -u main \
-    %{!static: \
-      %{rdynamic:-export-dynamic}} \
-      %{static:-static}}"
+#define LINK_SPEC \
+  "+Accept TypeMismatch \
+   %{shared:-b} \
+   %{!shared: \
+     -u main \
+     %{static:-noshared}}"
 
 #undef  LIB_SPEC
-#define LIB_SPEC "%{!shared:%{!symbolic:-lc}}"
+#define LIB_SPEC \
+  "%{!shared: \
+     %{p:%{!mlp64:-L/usr/lib/hpux32/libp} \
+        %{mlp64:-L/usr/lib/hpux64/libp} -lprof} \
+     %{pg:%{!mlp64:-L/usr/lib/hpux32/libp} \
+         %{mlp64:-L/usr/lib/hpux64/libp} -lgprof} \
+     %{!symbolic:-lc}}"
+
+#ifndef CROSS_COMPILE
+#undef LIBGCC_SPEC
+#define LIBGCC_SPEC \
+  "%{shared-libgcc:%{!mlp64:-lgcc_s_hpux32}%{mlp64:-lgcc_s_hpux64} -lgcc} \
+   %{!shared-libgcc:-lgcc}"
+#endif
 
 #undef SUBTARGET_SWITCHES
 #define SUBTARGET_SWITCHES \