]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
More stabs removal.
authorJeff Law <jlaw@localhost.localdomain>
Tue, 31 Aug 2021 13:48:02 +0000 (09:48 -0400)
committerJeff Law <jlaw@localhost.localdomain>
Tue, 31 Aug 2021 13:54:42 +0000 (09:54 -0400)
gcc/

* config.gcc (cris-*-elf, cris-*-none): Remove dbxelf.h from
tm_file.
(m32r-*-elf, m32rle-*-elf, m32r-*-linux): Likewise.
(mn10300-*-*, am33_2.0-*-linux*): Likewise.
(xtensa*-*-elf, xtensa*-*-linux, xtensa*-*-uclinux): Likewise.
(m32c-*-elf*, m32c-*-rtems*): Likewise.
* config/cris/cris.h (DBX_NO_XREFS): Remove.
(DBX_CONTIN_LENGTH, DBX_CONTIN_CHAR): Likewise.
* config/m32r/m32r.h (DBXOUT_SOURCE_LINE): Likewise.
(DBX_DEBUGGING_INFO, DBX_CONTIN_LENGTH): Likewise.
* config/mn10300/mn10300.h (DEFAULT_GDB_EXTENSIONS): Likewise.
* config/mn10300/linux.h (DBX_REGISTER_NAMES): Likewise.

gcc/config.gcc
gcc/config/cris/cris.h
gcc/config/m32r/m32r.h
gcc/config/mn10300/linux.h
gcc/config/mn10300/mn10300.h

index 0eba332bd45cafe314adda591e883e50027b4005..e553ef34bc77e9c2046891cf41334f23466abe14 100644 (file)
@@ -1532,7 +1532,7 @@ cr16-*-elf)
         use_collect2=no
         ;;
 cris-*-elf | cris-*-none)
-       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
+       tm_file="elfos.h newlib-stdint.h ${tm_file}"
        tmake_file="cris/t-cris cris/t-elfmulti"
        gas=yes
        extra_options="${extra_options} cris/elf.opt"
@@ -2293,13 +2293,13 @@ lm32-*-uclinux*)
        tmake_file="${tmake_file} lm32/t-lm32"
         ;;
 m32r-*-elf*)
-       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
+       tm_file="elfos.h newlib-stdint.h ${tm_file}"
        ;;
 m32rle-*-elf*)
-       tm_file="dbxelf.h elfos.h newlib-stdint.h m32r/little.h ${tm_file}"
+       tm_file="elfos.h newlib-stdint.h m32r/little.h ${tm_file}"
        ;;
 m32r-*-linux*)
-       tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h"
+       tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h ${tm_file} m32r/linux.h"
        tmake_file="${tmake_file} m32r/t-linux t-slibgcc"
        gnu_ld=yes
        if test x$enable_threads = xyes; then
@@ -2307,7 +2307,7 @@ m32r-*-linux*)
        fi
        ;;
 m32rle-*-linux*)
-       tm_file="dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h"
+       tm_file="elfos.h gnu-user.h linux.h glibc-stdint.h m32r/little.h ${tm_file} m32r/linux.h"
        tmake_file="${tmake_file} m32r/t-linux t-slibgcc"
        gnu_ld=yes
        if test x$enable_threads = xyes; then
@@ -2736,11 +2736,7 @@ mmix-knuth-mmixware)
        use_gcc_stdint=wrap
        ;;
 mn10300-*-*)
-       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
-       if test x$stabs = xyes
-       then
-               tm_file="${tm_file} dbx.h"
-       fi
+       tm_file="elfos.h newlib-stdint.h ${tm_file}"
        use_collect2=no
        use_gcc_stdint=wrap
        ;;
@@ -3555,30 +3551,30 @@ xstormy16-*-elf)
        tmake_file="stormy16/t-stormy16"
        ;;
 xtensa*-*-elf*)
-       tm_file="${tm_file} dbxelf.h elfos.h newlib-stdint.h xtensa/elf.h"
+       tm_file="${tm_file} elfos.h newlib-stdint.h xtensa/elf.h"
        extra_options="${extra_options} xtensa/elf.opt"
        ;;
 xtensa*-*-linux*)
-       tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h"
+       tm_file="${tm_file} elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/linux.h"
        tmake_file="${tmake_file} xtensa/t-xtensa"
        ;;
 xtensa*-*-uclinux*)
-       tm_file="${tm_file} dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/uclinux.h"
+       tm_file="${tm_file} elfos.h gnu-user.h linux.h glibc-stdint.h xtensa/uclinux.h"
        tmake_file="${tmake_file} xtensa/t-xtensa"
        extra_options="${extra_options} xtensa/uclinux.opt"
        ;;
 am33_2.0-*-linux*)
-       tm_file="mn10300/mn10300.h dbxelf.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h"
+       tm_file="mn10300/mn10300.h elfos.h gnu-user.h linux.h glibc-stdint.h mn10300/linux.h"
        gas=yes gnu_ld=yes
        use_collect2=no
        ;;
 m32c-*-rtems*)
-       tm_file="dbxelf.h elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h"
+       tm_file="elfos.h ${tm_file} m32c/rtems.h rtems.h newlib-stdint.h"
        c_target_objs="m32c-pragma.o"
        cxx_target_objs="m32c-pragma.o"
        ;;
 m32c-*-elf*)
-       tm_file="dbxelf.h elfos.h newlib-stdint.h ${tm_file}"
+       tm_file="elfos.h newlib-stdint.h ${tm_file}"
        c_target_objs="m32c-pragma.o"
        cxx_target_objs="m32c-pragma.o"
        ;;
index 1ab830e4d750d4b175cf17db6f46fea1b3867636..4276b6a76bfe0a564cd71630c72349c8daf5c5a1 100644 (file)
@@ -901,24 +901,6 @@ struct cum_args {int regs;};
 /* FIXME: Investigate DEBUGGER_AUTO_OFFSET, DEBUGGER_ARG_OFFSET.  */
 
 
-/* Node: DBX Options */
-
-/* Is this correct? Check later.  */
-#define DBX_NO_XREFS
-
-#define DBX_CONTIN_LENGTH 0
-
-/* FIXME: Is this needed when we have 0 DBX_CONTIN_LENGTH?  */
-#define DBX_CONTIN_CHAR '?'
-
-
-/* Node: DBX Hooks */
-/* (no definitions) */
-
-/* Node: File names and DBX */
-/* (no definitions) */
-
-
 /* Node: DWARF */
 /* (no definitions) */
 
index 83a4b0bd3a7a331570942e6717813f418e887381..047805fd808a9a783e6216c3f04d1040aa9f9bb4 100644 (file)
@@ -769,29 +769,6 @@ L2:     .word STATIC
 /* Globalizing directive for a label.  */
 #define GLOBAL_ASM_OP "\t.global\t"
 
-/* We do not use DBX_LINES_FUNCTION_RELATIVE or
-   dbxout_stab_value_internal_label_diff here because
-   we need to use .debugsym for the line label.  */
-
-#define DBX_OUTPUT_SOURCE_LINE(file, line, counter)                    \
-  do                                                                   \
-    {                                                                  \
-      const char * begin_label =                                       \
-       XSTR (XEXP (DECL_RTL (current_function_decl), 0), 0);           \
-      char label[64];                                                  \
-      ASM_GENERATE_INTERNAL_LABEL (label, "LM", counter);              \
-                                                                       \
-      dbxout_begin_stabn_sline (line);                                 \
-      assemble_name (file, label);                                     \
-      putc ('-', file);                                                        \
-      assemble_name (file, begin_label);                               \
-      fputs ("\n\t.debugsym ", file);                                  \
-      assemble_name (file, label);                                     \
-      putc ('\n', file);                                               \
-      counter += 1;                                                    \
-     }                                                                 \
-  while (0)
-
 /* How to refer to registers in assembler output.
    This sequence is indexed by compiler's hard-register-number (see above).  */
 #ifndef SUBTARGET_REGISTER_NAMES
@@ -930,16 +907,13 @@ L2:     .word STATIC
 \f
 /* Debugging information.  */
 
-/* Generate DBX and DWARF debugging information.  */
-#define DBX_DEBUGGING_INFO    1
+/* Generate DWARF debugging information.  */
 #define DWARF2_DEBUGGING_INFO 1
 
 /* Use DWARF2 debugging info by default.  */
 #undef  PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
-/* Turn off splitting of long stabs.  */
-#define DBX_CONTIN_LENGTH 0
 \f
 /* Miscellaneous.  */
 
index 657bfe464057c7a0086f03ff866ea90d25722240..44825eb4ac152919a889be079a9efa807eee6a3e 100644 (file)
@@ -44,8 +44,6 @@
 #undef  PROCESSOR_DEFAULT
 #define PROCESSOR_DEFAULT PROCESSOR_AM33_2
 
-#define DBX_REGISTER_NUMBER(REGNO) (REGNO)
-
 extern int mn10300_protect_label;
 
 #undef  PRINT_OPERAND
index d94d8e6ca53ff7bcff5e152a472ddfd2544d02ad..cb0d072846dd96f4a621c60446b033b7c1f218ad 100644 (file)
@@ -649,9 +649,6 @@ do {                                                                             \
   if ((LOG) != 0)                      \
     fprintf (FILE, "\t.align %d\n", (LOG))
 
-/* We don't have to worry about dbx compatibility for the mn10300.  */
-#define DEFAULT_GDB_EXTENSIONS 1
-
 /* Use dwarf2 debugging info by default.  */
 #undef  PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG