hpux profiling

Jeffrey A Law law@cygnus.com
Thu Mar 9 17:08:00 GMT 2000


This is the other half of the recent changes to fix a minor profiling
problem on hpux.  Specifically someone installed changes to fix the
problem on hpux11, but did not take the time to see if the fix was
also applicable to hpux10 (it is).

        * config/pa/pa-hpux10.h (LIB_SPEC): Correct typo in !p case.
        (MD_STARTFILE_PREFIX_1): New macro.


Index: pa-hpux10.h
===================================================================
RCS file: /cvs/gcc/egcs/gcc/config/pa/pa-hpux10.h,v
retrieving revision 1.9
diff -c -3 -p -r1.9 pa-hpux10.h
*** pa-hpux10.h	1999/07/08 13:45:10	1.9
--- pa-hpux10.h	2000/03/10 01:05:13
***************
*** 1,5 ****
  /* Definitions of target machine for GNU compiler, for HP PA-RISC 1.1
!    Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
     Contributed by Tim Moore (moore@defmacro.cs.utah.edu)
  
  This file is part of GNU CC.
--- 1,5 ----
  /* Definitions of target machine for GNU compiler, for HP PA-RISC 1.1
!    Copyright (C) 1995, 1996, 1997, 2000 Free Software Foundation, Inc.
     Contributed by Tim Moore (moore@defmacro.cs.utah.edu)
  
  This file is part of GNU CC.
*************** Boston, MA 02111-1307, USA.  */
*** 34,45 ****
  #undef LIB_SPEC
  #define LIB_SPEC \
    "%{!shared:\
!      %{!p:\
!        %{!pg:\
!          %{!threads:-lc}\
!          %{threads:-lcma -lc_r}}\
!        %{p: -L/lib/libp/ -lc}\
!        %{pg: -L/lib/libp/ -lc}}}"
  
  /* Under hpux10, the normal location of the `ld' and `as' programs is the
     /usr/ccs/bin directory.  */
--- 34,44 ----
  #undef LIB_SPEC
  #define LIB_SPEC \
    "%{!shared:\
!      %{!p:%{!pg:\
!        %{!threads:-lc}\
!        %{threads:-lcma -lc_r}}}\
!      %{p: -L/lib/libp/ -lc}\
!      %{pg: -L/lib/libp/ -lc}}"
  
  /* Under hpux10, the normal location of the `ld' and `as' programs is the
     /usr/ccs/bin directory.  */
*************** Boston, MA 02111-1307, USA.  */
*** 49,60 ****
  #define MD_EXEC_PREFIX "/usr/ccs/bin/"
  #endif
  
! /* Under hpux10, the normal location of the various *crt*.o files is the
!    /usr/ccs/lib directory.  */
  
  #ifndef CROSS_COMPILE
  #undef MD_STARTFILE_PREFIX
  #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
  #endif
  
  /* hpux10 has the new HP assembler.  It's still lousy, but it's a whole lot
--- 48,61 ----
  #define MD_EXEC_PREFIX "/usr/ccs/bin/"
  #endif
  
! /* Under hpux10, the normal location of the various *crt*.o files is
!    the /usr/ccs/lib directory.  However, the profiling files are in
!    /opt/langtools/lib.  */
  
  #ifndef CROSS_COMPILE
  #undef MD_STARTFILE_PREFIX
  #define MD_STARTFILE_PREFIX "/usr/ccs/lib/"
+ #define MD_STARTFILE_PREFIX_1 "/opt/langtools/lib/"
  #endif
  
  /* hpux10 has the new HP assembler.  It's still lousy, but it's a whole lot




More information about the Gcc-patches mailing list