sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
authorGeoffrey Keating <geoffk@apple.com>
Tue, 17 Oct 2006 03:59:43 +0000 (03:59 +0000)
committerGeoffrey Keating <geoffk@gcc.gnu.org>
Tue, 17 Oct 2006 03:59:43 +0000 (03:59 +0000)
* config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
(DWARF2_FRAME_REG_OUT): Likewise.
* config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Move from sysv4.h.
(DWARF2_FRAME_REG_OUT): Likewise.

From-SVN: r117816

gcc/ChangeLog
gcc/config/rs6000/rs6000.h
gcc/config/rs6000/sysv4.h

index 15b1a70da01a6da642c40f27081d8e6a5a9f44ab..aeb3dfd1f76552dac35cfffa17508ca0f2f03db8 100644 (file)
@@ -1,3 +1,10 @@
+2006-10-16  Geoffrey Keating  <geoffk@apple.com>
+
+       * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Move to rs6000.h.
+       (DWARF2_FRAME_REG_OUT): Likewise.
+       * config/rs6000/rs6000.h (DBX_REGISTER_NUMBER): Move from sysv4.h.
+       (DWARF2_FRAME_REG_OUT): Likewise.
+
 2006-10-17  Paul Brook  <paul@codesourcery.com>
 
        * config/arm/arm.c (arm_rtx_costs_1): Handle multiply-accumulate.
index 12fbbbdabbb4e9d02d60251770df1428cca5c672..1edb09703f65831a208943be3f785543e8b05b8c 100644 (file)
@@ -612,9 +612,24 @@ extern enum rs6000_nop_insertion rs6000_sched_insert_nops;
 #define DWARF_REG_TO_UNWIND_COLUMN(r) \
   ((r) > 1200 ? ((r) - 1200 + FIRST_PSEUDO_REGISTER - 1) : (r))
 
+/* Use standard DWARF numbering for DWARF debugging information.  */
+#define DBX_REGISTER_NUMBER(REGNO) rs6000_dbx_register_number (REGNO)
+
 /* Use gcc hard register numbering for eh_frame.  */
 #define DWARF_FRAME_REGNUM(REGNO) (REGNO)
 
+/* Map register numbers held in the call frame info that gcc has
+   collected using DWARF_FRAME_REGNUM to those that should be output in
+   .debug_frame and .eh_frame.  We continue to use gcc hard reg numbers
+   for .eh_frame, but use the numbers mandated by the various ABIs for
+   .debug_frame.  rs6000_emit_prologue has translated any combination of
+   CR2, CR3, CR4 saves to a save of CR2.  The actual code emitted saves
+   the whole of CR, so we map CR2_REGNO to the DWARF reg for CR.  */
+#define DWARF2_FRAME_REG_OUT(REGNO, FOR_EH)    \
+  ((FOR_EH) ? (REGNO)                          \
+   : (REGNO) == CR2_REGNO ? 64                 \
+   : DBX_REGISTER_NUMBER (REGNO))
+
 /* 1 for registers that have pervasive standard uses
    and are not available for the register allocator.
 
index 55cf9cec6758df6594eb66388ae67609d37a7f13..76c1d85cbf02a3bb65db6571a2eb751a7ab13ce3 100644 (file)
@@ -535,20 +535,6 @@ extern int fixuplabelno;
 /* Historically we have also supported stabs debugging.  */
 #define DBX_DEBUGGING_INFO 1
 
-#define DBX_REGISTER_NUMBER(REGNO) rs6000_dbx_register_number (REGNO)
-
-/* Map register numbers held in the call frame info that gcc has
-   collected using DWARF_FRAME_REGNUM to those that should be output in
-   .debug_frame and .eh_frame.  We continue to use gcc hard reg numbers
-   for .eh_frame, but use the numbers mandated by the various ABIs for
-   .debug_frame.  rs6000_emit_prologue has translated any combination of
-   CR2, CR3, CR4 saves to a save of CR2.  The actual code emitted saves
-   the whole of CR, so we map CR2_REGNO to the DWARF reg for CR.  */
-#define DWARF2_FRAME_REG_OUT(REGNO, FOR_EH)    \
-  ((FOR_EH) ? (REGNO)                          \
-   : (REGNO) == CR2_REGNO ? 64                 \
-   : DBX_REGISTER_NUMBER (REGNO))
-
 #define TARGET_ENCODE_SECTION_INFO  rs6000_elf_encode_section_info
 #define TARGET_IN_SMALL_DATA_P  rs6000_elf_in_small_data_p
 #define TARGET_SECTION_TYPE_FLAGS  rs6000_elf_section_type_flags