Commit 7945b276 by John David Anglin Committed by John David Anglin

pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of SAR register.

	* 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: r80756
parent 41067a2f
2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
* 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).
* pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld. * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
2004-04-16 Nick Clifton <nickc@redhat.com> 2004-04-16 Nick Clifton <nickc@redhat.com>
......
...@@ -169,13 +169,11 @@ Boston, MA 02111-1307, USA. */ ...@@ -169,13 +169,11 @@ Boston, MA 02111-1307, USA. */
Registers 0 - 31 remain unchanged. Registers 0 - 31 remain unchanged.
Registers 32 - 60 are mapped to 72, 74, 76 ... Registers 32 - 59 are mapped to 72, 74, 76 ...
Register 88 is mapped to 32. */
Register 60 is mapped to 32. */
#define DBX_REGISTER_NUMBER(REGNO) \ #define DBX_REGISTER_NUMBER(REGNO) \
((REGNO) <= 31 ? (REGNO) : \ ((REGNO) <= 31 ? (REGNO) : ((REGNO) < 60 ? (REGNO - 32) * 2 + 72 : 32))
((REGNO) > 31 && (REGNO) <= 60 ? (REGNO - 32) * 2 + 72 : 32))
/* We must not use the DBX register numbers for the DWARF 2 CFA column /* We must not use the DBX register numbers for the DWARF 2 CFA column
numbers because that maps to numbers beyond FIRST_PSEUDO_REGISTER. 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, ...@@ -292,7 +290,7 @@ enum reg_class { NO_REGS, R1_REGS, GENERAL_REGS, FPUPPER_REGS, FP_REGS,
"%fr28", "%fr29", "%fr30", "%fr31", "SAR"} "%fr28", "%fr29", "%fr30", "%fr31", "SAR"}
#define ADDITIONAL_REGISTER_NAMES \ #define ADDITIONAL_REGISTER_NAMES \
{{"%cr11",88}} {{"%cr11",60}}
#define FP_SAVED_REG_LAST 49 #define FP_SAVED_REG_LAST 49
#define FP_SAVED_REG_FIRST 40 #define FP_SAVED_REG_FIRST 40
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment