diff options
author | Steve Ellcey <sje@cup.hp.com> | 2002-09-20 16:53:25 +0000 |
---|---|---|
committer | Steve Ellcey <sje@gcc.gnu.org> | 2002-09-20 16:53:25 +0000 |
commit | 40ad65d05ee933ba6d04684e9ddaa6e841c5e4a6 (patch) | |
tree | 997f526b7adccf9ac74df5905edf3147724acfa3 | |
parent | 600f3392f849f037464d1b3e9b5f4ec806fcaa2d (diff) | |
download | gcc-40ad65d05ee933ba6d04684e9ddaa6e841c5e4a6.zip gcc-40ad65d05ee933ba6d04684e9ddaa6e841c5e4a6.tar.gz gcc-40ad65d05ee933ba6d04684e9ddaa6e841c5e4a6.tar.bz2 |
hpux.h (STARTFILE_SPEC): Modify.
* config/ia64/hpux.h (STARTFILE_SPEC): Modify.
(STARTFILE_PREFIX_SPEC): New.
(LINK_SPEC): Modify.
(LIB_SPEC): Modify.
(LIBGCC_SPEC): New.
From-SVN: r57352
-rw-r--r-- | gcc/ChangeLog | 8 | ||||
-rw-r--r-- | gcc/config/ia64/hpux.h | 39 |
2 files changed, 34 insertions, 13 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 83d3813..6e0e49b 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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 diff --git a/gcc/config/ia64/hpux.h b/gcc/config/ia64/hpux.h index e83728f..68fad57 100644 --- a/gcc/config/ia64/hpux.h +++ b/gcc/config/ia64/hpux.h @@ -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 \ |