This is the mail archive of the mailing list for the GCC project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

HP-UX IA64 Patch

Due to a change in gcc.c, GCC was not working on HP-UX IA64 when called
with an absolute path name (couldn't find shared libgcc or shared
libstdc++).  I tracked this down to my use of STARTFILE_PREFIX_SPEC and
removing this macro fixes the problem.

I am curious if this macro is being phased out, as it is not documented.
Also the various *STARTFILE*PREFIX macros don't seem to offer the same
functionality as you can't vary the *PREFIX* macros based on options the
way you can with a *SPEC* macro.  I have different startfiles in
different directories for ILP32 mode and LP64 mode.  Things work OK by
just not setting any of the STARTFILE*PREFIX macros because I get
different library search paths in the different modes and so the right
crt0 file is found because the library search path is used to find the
appropriate crt0 file.

Anyway, the following patch seems to work fine for me and I would like
to check it in on the 3.3 branch and the mainline if it is approved.

Steve Ellcey
sje at cup dot hp dot com

2003-02-19  Steve Ellcey  <sje at cup dot hp dot com>

	* config/ia64/hpux.h (STARTFILE_PREFIX_SPEC): Remove.

*** gcc.orig/gcc/config/ia64/hpux.h	Wed Feb 19 13:54:07 2003
--- gcc/gcc/config/ia64/hpux.h	Wed Feb 19 13:54:36 2003
*************** do {							\
*** 57,68 ****
  #define STARTFILE_SPEC "%{!shared:%{static:crt0%O%s}}"
-   "%{mlp64: /usr/ccs/lib/hpux64/} \
-    %{!mlp64: /usr/ccs/lib/hpux32/}"
- #endif
  #undef LINK_SPEC
  #define LINK_SPEC \
    "+Accept TypeMismatch \
--- 57,62 ----

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]