This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
IA64 hpux.h patch
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: gcc-patches at gcc dot gnu dot org
- Date: Wed, 18 Sep 2002 08:20:41 -0700 (PDT)
- Subject: IA64 hpux.h patch
- Reply-to: sje at cup dot hp dot com
This is a patch to update some of the SPEC's in config/ia64/hpux.h.
Steve Ellcey
sje@cup.hp.com
2002-09-16 Steve Ellcey <sje@cup.hp.com>
* config/ia64/hpux.h (STARTFILE_SPEC): Modify.
(LINK_SPEC): Ditto.
(LIB_SPEC): Ditto.
(LIBGCC_SPEC): New.
*** gcc.orig/gcc/config/ia64/hpux.h Tue Sep 17 13:37:03 2002
--- gcc/gcc/config/ia64/hpux.h Tue Sep 17 14:37:32 2002
*************** do { \
*** 56,64 ****
#undef STARTFILE_SPEC
#ifdef CROSS_COMPILE
! #define STARTFILE_SPEC "%{!shared:crt0%O%s}"
#else
! #define STARTFILE_SPEC "/usr/ccs/lib/hpux64/crt0%O"
#endif
#undef LINK_SPEC
--- 56,64 ----
#undef STARTFILE_SPEC
#ifdef CROSS_COMPILE
! #define STARTFILE_SPEC "%{!shared:%{static:crt0%O%s}}"
#else
! #define STARTFILE_SPEC "%{!shared:%{static:/usr/ccs/lib/%{mlp64:hpux64}%{!mlp64:hpux32}/crt0%O}}"
#endif
#undef LINK_SPEC
*************** do { \
*** 67,78 ****
%{shared:-b} \
%{!shared: \
-u main \
! %{!static: \
! %{rdynamic:-export-dynamic}} \
! %{static:-static}}"
#undef LIB_SPEC
! #define LIB_SPEC "%{!shared:%{!symbolic:-lc}}"
#undef SUBTARGET_SWITCHES
#define SUBTARGET_SWITCHES \
--- 67,89 ----
%{shared:-b} \
%{!shared: \
-u main \
! %{static:-noshared}}"
#undef LIB_SPEC
! #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 \