This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: IA64 hpux.h patch
- From: Steve Ellcey <sje at cup dot hp dot com>
- To: rth at redhat dot com, gcc-patches at gcc dot gnu dot org
- Date: Fri, 20 Sep 2002 09:23:29 -0700 (PDT)
- Subject: Re: IA64 hpux.h patch
Here is a reworking of my *SPEC changes to use STARTFILE_PREFIX_SPEC
instead of specifying the directories in STARTFILE_SPEC.
2002-09-16 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.
*** gcc.orig/gcc/config/ia64/hpux.h Fri Sep 20 09:10:59 2002
--- gcc/gcc/config/ia64/hpux.h Fri Sep 20 09:21:48 2002
*************** do { \
*** 55,78 ****
#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"
#endif
#undef LINK_SPEC
! #define LINK_SPEC "\
! +Accept TypeMismatch \
! %{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 \
--- 55,91 ----
#undef ENDFILE_SPEC
#undef STARTFILE_SPEC
! #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:-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 \