This is the mail archive of the gcc-patches@gcc.gnu.org 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]

Patch to gcc-3.0.1 for hppa64-hp-hpux11.00



A) Patch motivation, and description. 
--

1) The flag for HPUX ld to create shared libraries is -b, not -shared. 
   
   The first part of this patch changes that. ( case for gnu ld? ) 

2) The build process assumes that you have the HP ansi C installed, and 
   looks in /opt/langtools/.. for the startfiles/executables. If the HP ansi
   C compiler is not installed, then the startfiles/executables are not there. 
   They are at /usr/ccs/.. 

   The second part of this patch prepends /usr/ccs/lib/pa20_64 to the 
   search path for crt0.o, etc. 

B) List of hosts survivng a bootstrap with this patch:
--

hppa64-hp-hpux11.00. ( well, no bootstrap.. ) 


C) Patch


*** gcc-3.0.1.old/gcc/config/pa/pa-64.h Fri Jan 26 10:37:25 2001
--- gcc-3.0.1/gcc/config/pa/pa-64.h     Tue Sep  4 10:20:20 2001
*************** Boston, MA 02111-1307, USA.  */
*** 23,29 ****
     want dereferencing of a NULL pointer to cause a SEGV.  */
  #undef LINK_SPEC
  #define LINK_SPEC \
!   "-E %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-shared}"

  /* Like the default, except no -lg.  */
  #undef LIB_SPEC
--- 23,29 ----
     want dereferencing of a NULL pointer to cause a SEGV.  */
  #undef LINK_SPEC
  #define LINK_SPEC \
!   "-E %{mlinker-opt:-O} %{!shared:-u main} %{static:-a archive} %{shared:-b}"

  /* Like the default, except no -lg.  */
  #undef LIB_SPEC
*************** Boston, MA 02111-1307, USA.  */
*** 41,47 ****

  #ifndef CROSS_COMPILE
  #undef MD_EXEC_PREFIX
! #define MD_EXEC_PREFIX "/opt/langtools/bin"
  #endif

  /* Under hpux11 the normal location of the various *crt*.o files is the
--- 41,48 ----

  #ifndef CROSS_COMPILE
  #undef MD_EXEC_PREFIX
! #define MD_EXEC_PREFIX "/usr/ccs/bin"
! #define MD_EXEC_PREFIX_1 "/opt/langtools/bin"
  #endif

  /* Under hpux11 the normal location of the various *crt*.o files is the
*************** Boston, MA 02111-1307, USA.  */
*** 49,55 ****

  #ifndef CROSS_COMPILE
  #undef MD_STARTFILE_PREFIX
! #define MD_STARTFILE_PREFIX "/opt/langtools/lib/pa20_64/"
  #endif

  /* hpux11 has the new HP assembler.  It's still lousy, but it's a whole lot
--- 50,57 ----

  #ifndef CROSS_COMPILE
  #undef MD_STARTFILE_PREFIX
! #define MD_STARTFILE_PREFIX "/usr/ccs/lib/pa20_64/"
! #define MD_STARTFILE_PREFIX_1 "/opt/langtools/lib/pa20_64/"
  #endif

  /* hpux11 has the new HP assembler.  It's still lousy, but it's a whole lot


--
John ( Jack ) Cummings                     http://mudshark.org/jack 
Key fingerprint: 945A 89EB CA2D 6D93 7F15  5C97 1028 194E 5E7A 62DD
Now playing: Tool - sober


--
John ( Jack ) Cummings                     http://mudshark.org/jack 
Key fingerprint: 945A 89EB CA2D 6D93 7F15  5C97 1028 194E 5E7A 62DD
Now playing: Tool - sober


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