OSDN Git Service

* 1750a.h (DBX_REGISTER_NUMBER): Don't define.
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Nov 2001 02:19:58 +0000 (02:19 +0000)
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>
Thu, 22 Nov 2001 02:19:58 +0000 (02:19 +0000)
* alpha.h (DBX_REGISTER_NUMBER): Likewise.
* arc.h (DBX_REGISTER_NUMBER): Likewise.
* arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
* avr.h (DBX_REGISTER_NUMBER): Likewise.
* c4x.h (DBX_REGISTER_NUMBER): Likewise.
* clipper.h (DBX_REGISTER_NUMBER): Likewise.
* convex.h (DBX_REGISTER_NUMBER): Likewise.
* cris.h (DBX_REGISTER_NUMBER): Likewise.
* dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
* elxsi.h (DBX_REGISTER_NUMBER): Likewise.
* fr30.h (DBX_REGISTER_NUMBER): Likewise.
* h8300.h (DBX_REGISTER_NUMBER): Likewise.
* i370.h (DBX_REGISTER_NUMBER): Likewise.
* i860.h (DBX_REGISTER_NUMBER): Likewise.
* i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
* i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
* i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
* m32r.h (DBX_REGISTER_NUMBER): Likewise.
* m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
* m88k.h (DBX_REGISTER_NUMBER): Likewise.
* mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
* mcore.h (DBX_REGISTER_NUMBER): Likewise.
* mn10200.h (DBX_REGISTER_NUMBER): Likewise.
* mn10300.h (DBX_REGISTER_NUMBER): Likewise.
* pdp11.h (DBX_REGISTER_NUMBER): Likewise.
* romp.h (DBX_REGISTER_NUMBER): Likewise.
* rs6000.h (DBX_REGISTER_NUMBER): Likewise.
* rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
* s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
* stormy16.h (DBX_REGISTER_NUMBER): Likewise.
* v850.h (DBX_REGISTER_NUMBER): Likewise.
* vax.h (DBX_REGISTER_NUMBER): Likewise.
* we32k.h (DBX_REGISTER_NUMBER): Likewise.

* defaults.h (DBX_REGISTER_NUMBER): Provide a default.
* doc/tm.texi (DBX_REGISTER_NUMBER): Update.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@47256 138bc75d-0d04-0410-961f-82ee72b054a4

37 files changed:
gcc/ChangeLog
gcc/config/1750a/1750a.h
gcc/config/alpha/alpha.h
gcc/config/arc/arc.h
gcc/config/arm/aout.h
gcc/config/avr/avr.h
gcc/config/c4x/c4x.h
gcc/config/clipper/clipper.h
gcc/config/convex/convex.h
gcc/config/cris/cris.h
gcc/config/dsp16xx/dsp16xx.h
gcc/config/elxsi/elxsi.h
gcc/config/fr30/fr30.h
gcc/config/h8300/h8300.h
gcc/config/i370/i370.h
gcc/config/i860/i860.h
gcc/config/i860/paragon.h
gcc/config/i860/sysv3.h
gcc/config/i860/sysv4.h
gcc/config/m32r/m32r.h
gcc/config/m68hc11/m68hc11.h
gcc/config/m88k/m88k.h
gcc/config/mcore/mcore-elf.h
gcc/config/mcore/mcore.h
gcc/config/mn10200/mn10200.h
gcc/config/mn10300/mn10300.h
gcc/config/pdp11/pdp11.h
gcc/config/romp/romp.h
gcc/config/rs6000/rs6000.h
gcc/config/rs6000/sysv4.h
gcc/config/s390/linux.h
gcc/config/stormy16/stormy16.h
gcc/config/v850/v850.h
gcc/config/vax/vax.h
gcc/config/we32k/we32k.h
gcc/defaults.h
gcc/doc/tm.texi

index ba3120b..480c279 100644 (file)
@@ -1,3 +1,43 @@
+2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
+
+       * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
+       * alpha.h (DBX_REGISTER_NUMBER): Likewise.
+       * arc.h (DBX_REGISTER_NUMBER): Likewise.
+       * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
+       * avr.h (DBX_REGISTER_NUMBER): Likewise.
+       * c4x.h (DBX_REGISTER_NUMBER): Likewise.
+       * clipper.h (DBX_REGISTER_NUMBER): Likewise.
+       * convex.h (DBX_REGISTER_NUMBER): Likewise.
+       * cris.h (DBX_REGISTER_NUMBER): Likewise.
+       * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
+       * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
+       * fr30.h (DBX_REGISTER_NUMBER): Likewise.
+       * h8300.h (DBX_REGISTER_NUMBER): Likewise.
+       * i370.h (DBX_REGISTER_NUMBER): Likewise.
+       * i860.h (DBX_REGISTER_NUMBER): Likewise.
+       * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
+       * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
+       * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
+       * m32r.h (DBX_REGISTER_NUMBER): Likewise.
+       * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
+       * m88k.h (DBX_REGISTER_NUMBER): Likewise.
+       * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
+       * mcore.h (DBX_REGISTER_NUMBER): Likewise.
+       * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
+       * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
+       * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
+       * romp.h (DBX_REGISTER_NUMBER): Likewise.
+       * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
+       * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
+       * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
+       * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
+       * v850.h (DBX_REGISTER_NUMBER): Likewise.
+       * vax.h (DBX_REGISTER_NUMBER): Likewise.
+       * we32k.h (DBX_REGISTER_NUMBER): Likewise.
+       
+       * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
+       * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
+
 2001-11-21  H.J. Lu <hjl@gnu.org>
 
        * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
index a7ddeb7..9d05863 100644 (file)
@@ -967,10 +967,6 @@ enum reg_class { NO_REGS, R2, R0_1, INDEX_REGS, BASE_REGS, ALL_REGS, LIM_REG_CLA
  { "0", "1", "2", "3", "4", "5", "6", "7", \
    "8", "9","10","11","12","13","14","15" }
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /******************  Assembler output formatting  **********************/
 
 #define ASM_COMMENT_START  ";"
index 83ad9e2..61e0756 100644 (file)
@@ -1876,10 +1876,6 @@ do {                                             \
  "$f16", "$f17", "$f18", "$f19", "$f20", "$f21", "$f22", "$f23",\
  "$f24", "$f25", "$f26", "$f27", "$f28", "$f29", "$f30", "FP"}
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Strip name encoding when emitting labels.  */
 
 #define ASM_OUTPUT_LABELREF(STREAM, NAME)      \
index 60e1c1e..ddd989b 100644 (file)
@@ -1459,9 +1459,6 @@ do { if ((LOG) != 0) fprintf (FILE, "\t.align %d\n", 1 << (LOG)); } while (0)
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
-/* How to renumber registers for dbx and gdb.  */
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Turn off splitting of long stabs.  */
 #define DBX_CONTIN_LENGTH 0
 \f
index 9e3c6ea..fbdbba0 100644 (file)
@@ -109,9 +109,6 @@ Boston, MA 02111-1307, USA.  */
 #define NO_DOLLAR_IN_LABEL 1
 #endif
 
-/* DBX register number for a given compiler register number */
-#define DBX_REGISTER_NUMBER(REGNO)  (REGNO)
-
 /* Generate DBX debugging information.  riscix.h will undefine this because
    the native assembler does not support stabs. */
 #ifndef DBX_DEBUGGING_INFO
index 15b2a29..6daffb7 100644 (file)
@@ -3063,7 +3063,5 @@ extern struct rtx_def *ldi_reg_rtx;
 
 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
-#define DBX_REGISTER_NUMBER(r) (r)
-
 /* Get the standard ELF stabs definitions.  */
 #include "dbxelf.h"
index 924642a..012d4d9 100644 (file)
@@ -2574,8 +2574,6 @@ do { fprintf (asm_out_file, "\t.sdef\t");         \
 
 #define TRULY_NOOP_TRUNCATION(OUTPREC, INPREC) 1
 
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* We need to use direct addressing for large constants and addresses
    that cannot fit within an instruction.  We must check for these
    after after the final jump optimisation pass, since this may
index c7c1dbd..1d202c0 100644 (file)
@@ -967,12 +967,6 @@ do                                                                       \
  "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", \
  "f9", "f10", "f11", "f12", "f13", "f14", "f15" }
 
-/* How to renumber registers for dbx and gdb.
-   Clipper needs no change in the numeration.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
-
 /* This is how to output the definition of a user-level label named NAME,
    such as the label on a static function or variable NAME.  */
 
index 50d5baf..e5ba493 100644 (file)
@@ -1204,10 +1204,6 @@ enum reg_class {
 
 #define DBX_DEBUGGING_INFO
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Do not break .stabs pseudos into continuations.  */
 
 #define DBX_CONTIN_LENGTH 0
index 2857788..b282dbd 100644 (file)
@@ -856,15 +856,6 @@ enum reg_class {NO_REGS, ALL_REGS, LIM_REG_CLASSES};
    TARGET_STACK_ALIGN and TARGET_ALIGN_BY_32.  */
 #define DWARF_CIE_DATA_ALIGNMENT -1
 
-/* If we would ever need an exact mapping between canonical register
-   number and dwarf frame register, we would either need to include all
-   registers in the gcc decription (with some marked fixed of course), or
-   an inverse mapping from dwarf register to gcc register.  There is one
-   need in dwarf2out.c:expand_builtin_init_dwarf_reg_sizes.  Right now, I
-   don't see that we need exact correspondence between DWARF *frame*
-   registers and DBX_REGISTER_NUMBER, so map them onto GCC registers.  */
-#define DWARF_FRAME_REGNUM(REG) (REG)
-
 /* Node: Stack Checking */
 /* (no definitions) FIXME: Check.  */
 
index 19a270c..04aca6c 100644 (file)
@@ -1892,8 +1892,6 @@ const_section ()                                                   \
 
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
-#define DBX_REGISTER_NUMBER(REGNO)   (REGNO)
-
 #define ASM_OUTPUT_DEF(asm_out_file, LABEL1, LABEL2) \
          do {                                          \
         fprintf (asm_out_file, ".alias " ); \
index 87ef3ea..16cd898 100644 (file)
@@ -688,11 +688,6 @@ enum reg_class { NO_REGS, GENERAL_REGS, ALL_REGS, LIM_REG_CLASSES };
 
 /* #define DBX_DEBUGGING_INFO */
 
-/* How to renumber registers for dbx and gdb.
-   VAX needs no change in the numeration.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Do not break .stabs pseudos into continuations.  */
 
 #define DBX_CONTIN_LENGTH 0
index bc2d0ca..3c7b46b 100644 (file)
@@ -1621,26 +1621,6 @@ fprintf (STREAM, "\t.word .L%d\n", VALUE)
   fprintf ((STREAM), "\t.p2align %d\n", (POWER))
 
 /*}}}*/ \f
-/*{{{  Macros Affecting all Debug Formats.  */ 
-
-/* A C expression that returns the DBX register number for the compiler
-   register number REGNO.  In simple cases, the value of this expression may be
-   REGNO itself.  But sometimes there are some registers that the compiler
-   knows about and DBX does not, or vice versa.  In such cases, some register
-   may need to have one number in the compiler and another for DBX.
-
-   If two registers have consecutive numbers inside GNU CC, and they can be
-   used as a pair to hold a multiword value, then they *must* have consecutive
-   numbers after renumbering with `DBX_REGISTER_NUMBER'.  Otherwise, debuggers
-   will be unable to access such a pair, because they expect register pairs to
-   be consecutive in their own numbering scheme.
-
-   If you find yourself defining `DBX_REGISTER_NUMBER' in way that does not
-   preserve register pairs, then what you must do instead is redefine the
-   actual register numbering scheme.  */
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
-/*}}}*/ \f
 /*{{{  Macros for SDB and Dwarf Output.  */ 
 
 /* Define this macro to allow references to structure, union, or enumeration
index b7802dc..d27c987 100644 (file)
@@ -1176,11 +1176,6 @@ readonly_data ()                                                 \
 { {"er0", 0}, {"er1", 1}, {"er2", 2}, {"er3", 3}, {"er4", 4}, \
   {"er5", 5}, {"er6", 6}, {"er7", 7}, {"r7", 7} }
 
-/* How to renumber registers for dbx and gdb.
-   H8/300 needs no change in the numeration.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 #define SDB_DEBUGGING_INFO
 #define SDB_DELIM      "\n"
 
index ca10633..61418cf 100644 (file)
@@ -1070,9 +1070,6 @@ enum reg_class
   "0",  "2",  "4",  "6"                                                        \
 }
 
-/* How to renumber registers for dbx and gdb.  */
-#define DBX_REGISTER_NUMBER(REGNO)  (REGNO)
-
 #define ASM_FILE_START(FILE)                                           \
 { fputs ("\tRMODE\tANY\n", FILE);                                      \
   fputs ("\tCSECT\n", FILE); }
@@ -1629,9 +1626,6 @@ enum reg_class
   "f0",  "f2",  "f4",  "f6"                                            \
 }
 
-/* How to renumber registers for dbx and gdb.  */
-#define DBX_REGISTER_NUMBER(REGNO)  (REGNO)
-
 /* Print operand XV (an rtx) in assembler syntax to file FILE.
    CODE is a letter or dot (`z' in `%z0') or 0 if no letter was specified.
    For `%' followed by punctuation, CODE is the punctuation and XV is null. */
index a176f23..106d512 100644 (file)
@@ -1024,10 +1024,6 @@ struct cumulative_args { int ints, floats; };
  "f20", "f21", "f22", "f23", "f24", "f25", "f26", "f27", "f28", "f29", \
  "f30", "f31" }
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* This is how to output the definition of a user-level label named NAME,
    such as the label on a static function or variable NAME.  */
 
index f71e271..f0f925b 100644 (file)
@@ -71,8 +71,6 @@ Boston, MA 02111-1307, USA.  */
 #undef TYPE_OPERAND_FMT
 #define TYPE_OPERAND_FMT      "\"%s\""
 
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 #undef ASCII_DATA_ASM_OP
 #define ASCII_DATA_ASM_OP      "\t.byte\t"
 
index 2b0eb00..840da5a 100644 (file)
@@ -46,10 +46,6 @@ Boston, MA 02111-1307, USA.  */
 
 #define ASM_COMMENT_START "//"
 
-/* Don't renumber the regusters for debugger output.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Output the special word the System V SDB wants to see just before
    the first word of each function's prologue code.  */
 
index 0b54e3a..4d335f7 100644 (file)
@@ -48,8 +48,6 @@ Boston, MA 02111-1307, USA.  */
 #undef TYPE_OPERAND_FMT
 #define TYPE_OPERAND_FMT      "\"%s\""
 
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* The following macro definition overrides the one in i860.h
    because the svr4 i860 assembler requires a different syntax
    for getting parts of constant/relocatable values.  */
index 8d15250..614caa0 100644 (file)
@@ -2023,9 +2023,6 @@ extern char m32r_punct_chars[];
 #undef  PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
-/* How to renumber registers for dbx and gdb.  */
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Turn off splitting of long stabs.  */
 #define DBX_CONTIN_LENGTH 0
 \f
index 941763c..3cd3a2a 100644 (file)
@@ -1758,10 +1758,6 @@ do { long l;                                             \
 /* Default values provided by GCC should be ok. Assumming that DWARF-2
    frame unwind info is ok for this platform.  */
 
-/* How to renumber registers for dbx and gdb.  */
-#define DBX_REGISTER_NUMBER(REGNO) \
- ((REGNO))
-
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
index b9ddd72..3d802e8 100644 (file)
@@ -1861,9 +1861,6 @@ enum reg_class { NO_REGS, AP_REG, XRF_REGS, GENERAL_REGS, AGRF_REGS,
 
 #define ADDITIONAL_REGISTER_NAMES      {{"psr", 0}, {"cc", 0}}
 
-/* How to renumber registers for dbx and gdb.  */
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Tell when to declare ASM names.  Override svr4.h to provide this hook.  */
 #undef DECLARE_ASM_NAME
 #define DECLARE_ASM_NAME TARGET_SVR4
index ca2c56d..ef1feed 100644 (file)
@@ -40,18 +40,6 @@ Boston, MA 02111-1307, USA.  */
 #define DWARF_DEBUGGING_INFO 1
 #endif
 
-/* The numbers used to denote specific machine registers in the System V
-   Release 4 DWARF debugging information are quite likely to be totally
-   different from the numbers used in BSD stabs debugging information
-   for the same kind of target machine.  Thus, we undefine the macro
-   DBX_REGISTER_NUMBER here as an extra inducement to get people to
-   provide proper machine-specific definitions of DBX_REGISTER_NUMBER
-   (which is also used to provide DWARF registers numbers in dwarfout.c)
-   in their tm.h files which include this file.  */
-
-#undef  DBX_REGISTER_NUMBER
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* MCore defines .long and .short to NOT force any alignment.
    This lets you misalign as much as you wish.  */
 #define        UNALIGNED_INT_ASM_OP    "\t.long\t"
index 1795a69..e19b047 100644 (file)
@@ -1136,9 +1136,6 @@ switch_to_section (section, decl)                         \
           (STACK_BOUNDARY / BITS_PER_UNIT))
 
   
-/* DBX register number for a given compiler register number.  */
-#define DBX_REGISTER_NUMBER(REGNO)  (REGNO)
-
 /* Output a label definition.  */
 #define ASM_OUTPUT_LABEL(FILE,NAME)  \
   do { assemble_name (FILE, NAME); fputs (":\n", FILE); } while (0)
index 695ff2c..ffc5c7c 100644 (file)
@@ -944,8 +944,6 @@ do { char dstr[30];                                 \
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
-#define DBX_REGISTER_NUMBER(REGNO) REGNO
-
 /* GDB always assumes the current function's frame begins at the value
    of the stack pointer upon entry to the current function.  Accessing
    local variables and parameters passed on the stack is done using the
index a60aa00..db77f06 100644 (file)
@@ -1039,8 +1039,6 @@ do { char dstr[30];                                       \
 
 #define DWARF2_ASM_LINE_DEBUG_INFO 1
 
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* GDB always assumes the current function's frame begins at the value
    of the stack pointer upon entry to the current function.  Accessing
    local variables and parameters passed on the stack is done using the
index 75e0cd6..5f8d968 100644 (file)
@@ -1059,10 +1059,6 @@ fprintf (FILE, "$help$: . = .+8 ; space for tmp moves!\n")       \
 {"r0", "r1", "r2", "r3", "r4", "r5", "sp", "pc",     \
  "ac0", "ac1", "ac2", "ac3", "ac4", "ac5" }
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* This is how to output the definition of a user-level label named NAME,
    such as the label on a static function or variable NAME.  */
 
index d1d3174..2a1cd2b 100644 (file)
@@ -1347,10 +1347,6 @@ struct rt_cargs {int gregs, fregs; };
  "r10", "r11", "r12", "r13", "r14", "r15", "ap",               \
  "fr0", "fr1", "fr2", "fr3", "fr4", "fr5", "fr6", "fr7" }
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* This is how to output the definition of a user-level label named NAME,
    such as the label on a static function or variable NAME.  */
 
index c2b1b71..d17ce87 100644 (file)
@@ -2633,10 +2633,6 @@ extern char rs6000_reg_names[][8];       /* register names (0 vs. %r0).  */
   {"cr4",  72}, {"cr5",  73}, {"cr6",  74}, {"cr7",  75},      \
   {"cc",   68}, {"sp",    1}, {"toc",   2} }
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Text to write out after a CALL that may be replaced by glue code by
    the loader.  This depends on the AIX version.  */
 #define RS6000_CALL_GLUE "cror 31,31,31"
index 418def9..e5a92ec 100644 (file)
@@ -698,10 +698,6 @@ extern int rs6000_pic_labelno;
 #define        ASM_OUTPUT_MI_THUNK(FILE, THUNK_FNDECL, DELTA, FUNCTION) \
   output_mi_thunk (FILE, THUNK_FNDECL, DELTA, FUNCTION)
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define        DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* The USER_LABEL_PREFIX stuff is affected by the -fleading-underscore
    flag.  The LOCAL_LABEL_PREFIX variable is used by dbxelf.h.  */
 
index bd5198f..75a483d 100644 (file)
@@ -279,8 +279,6 @@ do {                                                                    \
 #define ASM_GLOBALIZE_LABEL(FILE, NAME)  \
   (fputs (".globl ", FILE), assemble_name (FILE, NAME), fputs ("\n", FILE))
 
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Select section for constant in constant pool. 
    We are in the right section. 
    undef for 64 bit mode (linux64.h).
index 3ff9d8c..6bbd93a 100644 (file)
@@ -4598,25 +4598,6 @@ do {                                                                     \
 \f
 /* Macros Affecting all Debug Formats.  */
 
-/* A C expression that returns the DBX register number for the compiler
-   register number REGNO.  In simple cases, the value of this expression may be
-   REGNO itself.  But sometimes there are some registers that the compiler
-   knows about and DBX does not, or vice versa.  In such cases, some register
-   may need to have one number in the compiler and another for DBX.
-
-   If two registers have consecutive numbers inside GNU CC, and they can be
-   used as a pair to hold a multiword value, then they *must* have consecutive
-   numbers after renumbering with `DBX_REGISTER_NUMBER'.  Otherwise, debuggers
-   will be unable to access such a pair, because they expect register pairs to
-   be consecutive in their own numbering scheme.
-
-   If you find yourself defining `DBX_REGISTER_NUMBER' in way that does not
-   preserve register pairs, then what you must do instead is redefine the
-   actual register numbering scheme.
-
-   This declaration is required.  */
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* A C expression that returns the integer offset value for an automatic
    variable having address X (an RTL expression).  The default computation
    assumes that X is based on the frame-pointer and gives the offset from the
index 1636fd1..fa0ee65 100644 (file)
@@ -1429,8 +1429,6 @@ do { char dstr[30];                                       \
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DBX_DEBUG
 
-#define DBX_REGISTER_NUMBER(REGNO) REGNO
-
 /* Define to use software floating point emulator for REAL_ARITHMETIC and
    decimal <-> binary conversion. */
 #define REAL_ARITHMETIC
index 78f6f15..0edc824 100644 (file)
@@ -1055,11 +1055,6 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
 
 #define DBX_DEBUGGING_INFO
 
-/* How to renumber registers for dbx and gdb.
-   VAX needs no change in the numeration.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Do not break .stabs pseudos into continuations.  */
 
 #define DBX_CONTIN_LENGTH 0
index 0007801..012113f 100644 (file)
@@ -708,10 +708,6 @@ enum reg_class { NO_REGS, GENERAL_REGS,
 {"r0", "r1", "r2", "r3", "r4", "r5", "r6", "r7",       \
  "r8", "fp", "ap", "psw", "sp", "pcbp", "isp", "pc"    }
 
-/* How to renumber registers for dbx and gdb.  */
-
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 /* Output SDB debugging info in response to the -g option.  */
 
 #define SDB_DEBUGGING_INFO
index b83f25e..816afe8 100644 (file)
@@ -270,6 +270,13 @@ do {                                                               \
 #define DWARF_FRAME_REGISTERS FIRST_PSEUDO_REGISTER
 #endif
 
+/* How to renumber registers for dbx and gdb.  If not defined, assume
+   no renumbering is necessary.  */
+
+#ifndef DBX_REGISTER_NUMBER
+#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
+#endif
+
 /* Default sizes for base C types.  If the sizes are different for
    your target, you should override these values by defining the
    appropriate symbols in your tm.h file.  */
index c0a2b70..40b9542 100644 (file)
@@ -7377,11 +7377,11 @@ These macros affect all debugging formats.
 @findex DBX_REGISTER_NUMBER
 @item DBX_REGISTER_NUMBER (@var{regno})
 A C expression that returns the DBX register number for the compiler
-register number @var{regno}.  In simple cases, the value of this
-expression may be @var{regno} itself.  But sometimes there are some
-registers that the compiler knows about and DBX does not, or vice
-versa.  In such cases, some register may need to have one number in
-the compiler and another for DBX@.
+register number @var{regno}.  In the default macro provided, the value
+of this expression will be @var{regno} itself.  But sometimes there are
+some registers that the compiler knows about and DBX does not, or vice
+versa.  In such cases, some register may need to have one number in the
+compiler and another for DBX@.
 
 If two registers have consecutive numbers inside GCC, and they can be
 used as a pair to hold a multiword value, then they @emph{must} have