]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
authorJohn David Anglin <dave.anglin@nrc-cnrc.gc.ca>
Wed, 21 Apr 2004 18:48:20 +0000 (18:48 +0000)
committerJohn David Anglin <danglin@gcc.gnu.org>
Wed, 21 Apr 2004 18:48:20 +0000 (18:48 +0000)
* pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
* pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
SAR register.  Fix comment.
(ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
(%cr11).

From-SVN: r80977

gcc/ChangeLog
gcc/config/pa/pa64-hpux.h
gcc/config/pa/pa64-regs.h

index be43afc05a06cf140a35b1d85b9e377ecd738a0f..fad2d5719f02601ca308d6b992450fe139b75776 100644 (file)
@@ -1,3 +1,12 @@
+2004-04-21  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
+
+       * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
+
+       * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
+       SAR register.  Fix comment.
+       (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
+       (%cr11).
+
 2004-04-14  Zack Weinberg  <zack@codesourcery.com>
 
        PR 14936
index 8417e297270d9f5288660f7c76962f8aeb080315..91830af19b61ca0307694fb0f03c735122217fb6 100644 (file)
@@ -49,6 +49,18 @@ Boston, MA 02111-1307, USA.  */
    isn't available.  We also usually need to link with libdld and it's
    only available in shared form.  */
 #undef LIB_SPEC
+#if ((TARGET_DEFAULT | TARGET_CPU_DEFAULT) & MASK_GNU_LD)
+#define LIB_SPEC \
+  "%{!shared:\
+     %{!p:%{!pg: -lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
+     %{p:%{!pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\
+          -lprof %{static:-a archive} -lc\
+          %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
+     %{pg:%{static:%{!mhp-ld:-a shared}%{mhp-ld:-a archive_shared}}\
+       -lgprof %{static:-a archive} -lc\
+       %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
+   /usr/lib/pa20_64/milli.a"
+#else
 #define LIB_SPEC \
   "%{!shared:\
      %{!p:%{!pg: -lc %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
@@ -59,6 +71,7 @@ Boston, MA 02111-1307, USA.  */
        -lgprof %{static:-a archive} -lc\
        %{static:%{!nolibdld:-a shared -ldld -a archive -lc}}}}\
    /usr/lib/pa20_64/milli.a"
+#endif
 
 /* Under hpux11, the normal location of the `ld' and `as' programs is the
    /usr/ccs/bin directory.  */
index ced7df737e747fcc347fb2baaf53f42aa89c6bd1..6d7c2787bc2b25f32f1e52cabc86fe7764a9d3a2 100644 (file)
@@ -169,13 +169,11 @@ Boston, MA 02111-1307, USA.  */
 
    Registers 0  - 31 remain unchanged.
 
-   Registers 32 - 60 are mapped to 72, 74, 76 ...
-
-   Register 88 is mapped to 32.  */
+   Registers 32 - 59 are mapped to 72, 74, 76 ...
 
+   Register 60 is mapped to 32.  */
 #define DBX_REGISTER_NUMBER(REGNO) \
-  ((REGNO) <= 31 ? (REGNO) :                                           \
-   ((REGNO) > 31 && (REGNO) <= 60 ? (REGNO - 32) * 2 + 72 : 32))
+  ((REGNO) <= 31 ? (REGNO) : ((REGNO) < 60 ? (REGNO - 32) * 2 + 72 : 32))
 
 /* We must not use the DBX register numbers for the DWARF 2 CFA column
    numbers because that maps to numbers beyond FIRST_PSEUDO_REGISTER.
@@ -292,7 +290,7 @@ enum reg_class { NO_REGS, R1_REGS, GENERAL_REGS, FPUPPER_REGS, FP_REGS,
  "%fr28", "%fr29",  "%fr30", "%fr31", "SAR"}
 
 #define ADDITIONAL_REGISTER_NAMES \
- {{"%cr11",88}}
+ {{"%cr11",60}}
 
 #define FP_SAVED_REG_LAST 49
 #define FP_SAVED_REG_FIRST 40