1750a.h (DBX_REGISTER_NUMBER): Don't define.
authorKaveh R. Ghazi <ghazi@caip.rutgers.edu>
Thu, 22 Nov 2001 02:19:58 +0000 (02:19 +0000)
committerKaveh Ghazi <ghazi@gcc.gnu.org>
Thu, 22 Nov 2001 02:19:58 +0000 (02:19 +0000)
* 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.

From-SVN: r47256

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 ba3120b0b45fc9b5d3250ea40d2a96e6ebb49c1d..480c2794016c42ce0e7fcc605892fc85f258148f 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 a7ddeb74f0530aa48dde55b851e76e9dd9be4ab2..9d05863a86000195be301958cb6492ca4346b76f 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 83ad9e251f6e83d86ac9b0a318faf7f343b18354..61e0756d40baf81e85459d3da7e0a7a3f46ffad4 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 60e1c1eb78c6f244bde4c873e74bc98ba05c0a6b..ddd989b6a4562e3ed0b302797471a4484131773d 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 9e3c6ea80b882e5b32ba07bc60481e6f3a71a80e..fbdbba072f50ff428d0ee74a1df4ce1dff3bc57a 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 15b2a297c299034cec98d235070f0139b92cfcca..6daffb710fd54f5b81ae4c936e054d9362de309a 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 924642a387278fec6b4d103bb33b8ebf8dc42e78..012d4d90b60a5fed2739f8e14a92cc10a2e3f338 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 c7c1dbd43c900227b9eb5b46c5c93db891b72363..1d202c08f7ad2dc50b5a8a59038118063481a230 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 50d5bafd54d049e7a1ea13016b4b2cde6a5eda11..e5ba4933a131416b55c11252eede4b6d572b4281 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 2857788a968ad7e6575cdfaca6fb1b65fd1ff334..b282dbdf8857cf37782e1a8692894f0465976200 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 19a270cea6973804046cde4e433b4ac1479a4380..04aca6c44ac1e963d1eaea736e2d49399c86c41e 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 87ef3ea41cf8bdc410806d735a4820c14a7100f3..16cd8981a6c9132ab19f15d0855e241d367f6956 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 bc2d0ca1fc45fdc3841a93a8ab3cd94033b2c664..3c7b46bfb2728050c381cbae4b8b0fe27a5c6048 100644 (file)
@@ -1620,26 +1620,6 @@ fprintf (STREAM, "\t.word .L%d\n", VALUE)
 #define ASM_OUTPUT_ALIGN(STREAM, POWER) \
   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.  */ 
 
index b7802dc1a1ef7558d163efa86e95dc693129432c..d27c987a2d99bbd33d6cd12ac84b7d5bf6c6e829 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 ca106331c697e0f541b81327ea079f969901d290..61418cfce8e99a49d3227868a01d0f38547cc7b1 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 a176f23efa607ba169af7df4a700acccac851f69..106d512b06801cb6943aa1ed29c065c117ba78c6 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 f71e271473ceda0390bd3f48e2b0731ec1a00383..f0f925bcb4a3427d5c8e524bd8a800b8a6dd9c71 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 2b0eb00fb0b4ec0e0eb631e9391f20c0a8438eae..840da5a0dff43c13e23b718067b1d2ba9aa1fe6f 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 0b54e3a2e74a5ba364531186fd0a41b1622ba3f2..4d335f719c051268bae95f2c207b9c90fc76eae5 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 8d15250e98bca2d989c43c585f7afbd867a60fed..614caa0c3d753d7895f6dee8dfd743433881a036 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 941763ceabb02b789a000cf6afdb1aa8700feaf7..3cd3a2ab48dd8fd0e5b0c5d1f8f512544da7f4af 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 b9ddd72bec681fb3cb951080ea956e8f0bd4f181..3d802e81f7d55c240d7f7a0a3284a53c76251b21 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 ca2c56d756d8c501d5dab994d393095d402439e0..ef1feedea1b6605d3ff367e78085d1a001eac11e 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 1795a695bd8eb05ae35c51e42f4366aaef322687..e19b047166e4fb2543d439e464590a8274fc5f44 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 695ff2c3a8e15480385a70d3f4355f6e07b7b41c..ffc5c7cca5262b7a3912425c933f310f883c5abb 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 a60aa00860530e7e3189a325d8f80d4481cdb1a4..db77f064acab68cc46fe10c1cbb3da532361283a 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 75e0cd6bb1ca9c2fb6bd36acc64bf1f8236d6443..5f8d968c2b3f8b2c6e69891bec6f80a7b74a4b82 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 d1d3174d9902a5c6b23de2695c25b77423d93037..2a1cd2b12a4f15ec98f6e6f5bb7b1f9bab812dfa 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 c2b1b71c2e292598a15e7b1bf4fac2ae15275ef3..d17ce87a221b35c48df8b36897760e0715fbd327 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 418def97ea2ba006bdbffea6bd71fcbc61d88c6e..e5a92ecaaacd8d886e7b3c31f90e446bc3fa5a9d 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 bd5198fa30a3ab452a4d9100cd3641278d232693..75a483de8235af98b484d5bc72b43b8cf5411ed9 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 3ff9d8c28f7b0704a5e3fea4fe6eec0e913dcdfb..6bbd93a7e1b52aa851a32adab96d01dd99f36187 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 1636fd1f0118af8bec76a154283e55ffa8eae584..fa0ee65816d50794a27bb1346378cdbf6d5c6fcc 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 78f6f150e9744fc38c314732c10ff09287fd3bda..0edc824f420ed2d5747a748a82ca6883cbb54d11 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 00078017214bfaf0a5acabd0687311e33460ba45..012113fb479592eb44d379662b5a9cba43960be0 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 b83f25e2e39267657b20342b038485aa4a47b8a7..816afe8744a40d7fc0f3e04e7fdfffa99bc5b58e 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 c0a2b70bd211ef14046872f983dde1278d83e0d1..40b954289ce7f2667bd5af1531ecedb9500faff1 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