public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc(refs/users/marxin/heads/stabs-removal)] Remove DBX_* hooks.
@ 2022-08-25  6:53 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2022-08-25  6:53 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:3ca9780fc582419e2dba8daefe0630f4016356b5

commit 3ca9780fc582419e2dba8daefe0630f4016356b5
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Aug 25 08:41:43 2022 +0200

    Remove DBX_* hooks.

Diff:
---
 gcc/config/arc/arc.h           |  3 ---
 gcc/config/arm/aout.h          |  5 -----
 gcc/config/arm/netbsd-elf.h    |  3 ---
 gcc/config/darwin.h            | 12 ------------
 gcc/config/epiphany/epiphany.h |  3 ---
 gcc/config/i386/bsd.h          |  6 ------
 gcc/config/i386/gas.h          |  4 ----
 gcc/config/m68k/linux.h        |  4 ----
 gcc/config/m68k/openbsd.h      |  9 ---------
 gcc/config/openbsd.h           | 11 -----------
 gcc/config/pa/pa.h             |  8 --------
 gcc/config/pa/som.h            | 11 -----------
 gcc/config/pdp11/pdp11.h       |  3 ---
 gcc/config/rs6000/sysv4.h      |  5 -----
 gcc/config/sh/elf.h            |  3 ---
 gcc/config/sol2.h              |  5 -----
 gcc/config/sparc/freebsd.h     |  6 ------
 gcc/config/sparc/netbsd-elf.h  |  5 -----
 gcc/config/sparc/sparc.h       |  8 --------
 gcc/config/vax/vax.h           | 17 -----------------
 20 files changed, 131 deletions(-)

diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index bbd1f0b7e96..0cb560b8a38 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -1380,9 +1380,6 @@ do { \
 
 #define EH_RETURN_STACKADJ_RTX   gen_rtx_REG (Pmode, 2)
 
-/* Turn off splitting of long stabs.  */
-#define DBX_CONTIN_LENGTH 0
-
 /* Miscellaneous.  */
 
 /* Specify the machine mode that this machine uses
diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h
index 28fa707cc2e..cfb8db52c59 100644
--- a/gcc/config/arm/aout.h
+++ b/gcc/config/arm/aout.h
@@ -145,11 +145,6 @@
 #define NO_DOLLAR_IN_LABEL 1
 #endif
 
-/* Acorn dbx moans about continuation chars, so don't use any.  */
-#ifndef DBX_CONTIN_LENGTH
-#define DBX_CONTIN_LENGTH  0
-#endif
-
 /* Output a function label definition.  */
 #ifndef ASM_DECLARE_FUNCTION_NAME
 #define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL)	\
diff --git a/gcc/config/arm/netbsd-elf.h b/gcc/config/arm/netbsd-elf.h
index d239c734c5c..ef1bba28077 100644
--- a/gcc/config/arm/netbsd-elf.h
+++ b/gcc/config/arm/netbsd-elf.h
@@ -85,9 +85,6 @@
 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE "long int"
 
-/* We don't have any limit on the length as out debugger is GDB.  */
-#undef DBX_CONTIN_LENGTH
-
 /* NetBSD does its profiling differently to the Acorn compiler. We
    don't need a word following the mcount call; and to skip it
    requires either an assembly stub or use of fomit-frame-pointer when
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index b198e897e99..45f45f927d6 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -628,18 +628,6 @@ ASM_OPTIONS ASM_MMACOSX_VERSION_MIN_SPEC
                                ? "__DWARF,__debug_gnu_pubt,regular,debug" \
                                : "__DWARF,__debug_pubtypes,regular,debug")
 
-/* When generating stabs debugging, use N_BINCL entries.  */
-
-#define DBX_USE_BINCL
-
-/* There is no limit to the length of stabs strings.  */
-
-#define DBX_CONTIN_LENGTH 0
-
-/* gdb needs a null N_SO at the end of each file for scattered loading.  */
-
-#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
-
 /* GCC's definition of 'one_only' is the same as its definition of 'weak'.  */
 #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
 
diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h
index 13b3231fbc1..7c6a7f33df2 100644
--- a/gcc/config/epiphany/epiphany.h
+++ b/gcc/config/epiphany/epiphany.h
@@ -798,9 +798,6 @@ do \
 /* Generate DWARF debugging information.  */
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
-
-/* Turn off splitting of long stabs.  */
-#define DBX_CONTIN_LENGTH 0
 \f
 /* Miscellaneous.  */
 
diff --git a/gcc/config/i386/bsd.h b/gcc/config/i386/bsd.h
index d19ad2773f5..98d2810e975 100644
--- a/gcc/config/i386/bsd.h
+++ b/gcc/config/i386/bsd.h
@@ -91,9 +91,3 @@ along with GCC; see the file COPYING3.  If not see
 /* The prefix to add to user-visible assembler symbols.  */
 
 #define USER_LABEL_PREFIX "_"
-
-/* Sequent has some changes in the format of DBX symbols.  */
-#define DBX_NO_XREFS 1
-
-/* Don't split DBX symbols into continuations.  */
-#define DBX_CONTIN_LENGTH 0
diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h
index 3bac8eb6875..e0ffc75dc6d 100644
--- a/gcc/config/i386/gas.h
+++ b/gcc/config/i386/gas.h
@@ -36,10 +36,6 @@ along with GCC; see the file COPYING3.  If not see
  * people who want both form will have to compile twice.
  */
 
-/* these come from i386/bsd.h, but are specific to sequent */
-#undef DBX_NO_XREFS
-#undef DBX_CONTIN_LENGTH
-
 /* Output #ident as a .ident.  */
 
 #undef TARGET_ASM_OUTPUT_IDENT
diff --git a/gcc/config/m68k/linux.h b/gcc/config/m68k/linux.h
index 05661bf355a..0c66c91f840 100644
--- a/gcc/config/m68k/linux.h
+++ b/gcc/config/m68k/linux.h
@@ -146,10 +146,6 @@ along with GCC; see the file COPYING3.  If not see
     fprintf (FILE, "\tjbsr _mcount\n");					\
 }
 
-/* Do not break .stabs pseudos into continuations.  */
-
-#define DBX_CONTIN_LENGTH 0
-
 /* 1 if N is a possible register number for a function value.  For
    m68k/SVR4 allow d0, a0, or fp0 as return registers, for integral,
    pointer, or floating types, respectively.  Reject fp0 if not using
diff --git a/gcc/config/m68k/openbsd.h b/gcc/config/m68k/openbsd.h
index baf2738e7ef..ab998177de8 100644
--- a/gcc/config/m68k/openbsd.h
+++ b/gcc/config/m68k/openbsd.h
@@ -60,15 +60,6 @@ along with GCC; see the file COPYING3.  If not see
 /* Every structure or union's size must be a multiple of 2 bytes.  */
 #define STRUCTURE_SIZE_BOUNDARY 16
 
-/* Specific options for DBX Output.  */
-
-/* Do not break .stabs pseudos into continuations.  */
-#define DBX_CONTIN_LENGTH 0
-
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-#define DBX_CONTIN_CHAR '?'
-
 /* Stack & calling: aggregate returns.  */
 
 /* ??? This is traditional, but quite possibly wrong.  It appears to
diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h
index 54be2225492..aa90ef734de 100644
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
@@ -150,17 +150,6 @@ while (0)
 #undef TARGET_LIBC_HAS_FUNCTION
 #define TARGET_LIBC_HAS_FUNCTION default_libc_has_function
 
-\f
-/* Runtime target specification.  */
-
-/* Miscellaneous parameters.  */
-
-/* Controlling debugging info: dbx options.  */
-
-/* Don't use the `xsTAG;' construct in DBX output; OpenBSD systems that
-   use DBX don't support it.  */
-#define DBX_NO_XREFS
-
 \f
 /* - we use . - _func instead of a local label,
    - we put extra spaces in expressions such as 
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 0747137880c..95787ab1df2 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -137,14 +137,6 @@ extern unsigned long total_code_bytes;
 /* Select dwarf2 as the preferred debug format.  */
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
-/* This used to be zero (no max length), but big enums and such can
-   cause huge strings which killed gas.
-
-   We also have to avoid lossage in dbxout.cc -- it does not compute the
-   string size accurately, so we are real conservative here.  */
-#undef DBX_CONTIN_LENGTH
-#define DBX_CONTIN_LENGTH 3000
-
 /* 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
diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h
index 63e2a37b902..3efae0e1fa0 100644
--- a/gcc/config/pa/som.h
+++ b/gcc/config/pa/som.h
@@ -21,17 +21,6 @@ along with GCC; see the file COPYING3.  If not see
 #undef TARGET_SOM
 #define TARGET_SOM 1
 
-/* We do not use BINCL stabs in SOM.
-   ??? If it does not hurt, we probably should to avoid useless divergence
-   from other embedded stabs implementations.  */
-#undef DBX_USE_BINCL
-
-#define DBX_LINES_FUNCTION_RELATIVE 1
-
-/* gdb needs a null N_SO at the end of each file for scattered loading.  */
-
-#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
-
 /* HPUX has a program 'chatr' to list the dependencies of dynamically
    linked executables and shared libraries.  */
 #define LDD_SUFFIX "chatr"
diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h
index 5aac3e3dba5..1fa52e8c754 100644
--- a/gcc/config/pdp11/pdp11.h
+++ b/gcc/config/pdp11/pdp11.h
@@ -483,9 +483,6 @@ extern int current_first_parm_offset;
 /* Nonzero if access to memory by byte is no faster than by word.  */
 #define SLOW_BYTE_ACCESS 1
 
-/* Do not break .stabs pseudos into continuations.  */
-#define DBX_CONTIN_LENGTH 0
-
 /* Give a comparison code (EQ, NE etc) and the first operand of a COMPARE,
    return the mode to be used for the comparison.  */
 
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index ce495497ecc..c8b7eb63317 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -512,11 +512,6 @@ extern int fixuplabelno;
 #define	RS6000_OUTPUT_BASENAME(FILE, NAME)	\
     assemble_name (FILE, NAME)
 
-/* We have to output the stabs for the function name *first*, before
-   outputting its label.  */
-
-#define	DBX_FUNCTION_FIRST
-
 /* This is the end of what might become sysv4dbx.h.  */
 \f
 #define TARGET_OS_SYSV_CPP_BUILTINS()		\
diff --git a/gcc/config/sh/elf.h b/gcc/config/sh/elf.h
index afb3bc353cc..f0fd19f8854 100644
--- a/gcc/config/sh/elf.h
+++ b/gcc/config/sh/elf.h
@@ -67,9 +67,6 @@ along with GCC; see the file COPYING3.  If not see
 #define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \
   sprintf ((STRING), "*%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUM))
 
-#define DBX_LINES_FUNCTION_RELATIVE 1
-#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
-
 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC \
   "%{!shared: crt1.o%s} crti.o%s \
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index e22c70c45ae..64cd14783cc 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -498,11 +498,6 @@ along with GCC; see the file COPYING3.  If not see
 
 #define AS_NEEDS_DASH_FOR_PIPED_INPUT
 
-/* The Solaris assembler cannot grok .stabd directives.  */
-#undef NO_DBX_BNSYM_ENSYM
-#define NO_DBX_BNSYM_ENSYM 1
-#endif
-
 /* Solaris has an implementation of __enable_execute_stack.  */
 #define HAVE_ENABLE_EXECUTE_STACK
 
diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h
index 98319c52875..73850a31f58 100644
--- a/gcc/config/sparc/freebsd.h
+++ b/gcc/config/sparc/freebsd.h
@@ -109,12 +109,6 @@ along with GCC; see the file COPYING3.  If not see
 
 /************************[  Debugger stuff  ]*********************************/
 
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-
-#undef  DBX_CONTIN_CHAR
-#define DBX_CONTIN_CHAR	'?'
-
 /* DWARF bits.  */
 
 /* Follow Irix 6 and not the Dwarf2 draft in using 64-bit offsets. 
diff --git a/gcc/config/sparc/netbsd-elf.h b/gcc/config/sparc/netbsd-elf.h
index af194df3ed3..bee71fc1839 100644
--- a/gcc/config/sparc/netbsd-elf.h
+++ b/gcc/config/sparc/netbsd-elf.h
@@ -46,11 +46,6 @@ along with GCC; see the file COPYING3.  If not see
 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE "long int"
 
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-#undef DBX_CONTIN_CHAR
-#define DBX_CONTIN_CHAR '?'
-
 #undef  LOCAL_LABEL_PREFIX
 #define LOCAL_LABEL_PREFIX  "."
 
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 2e17fca197a..987340392dd 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -1510,14 +1510,6 @@ do {									   \
 #define ADDITIONAL_REGISTER_NAMES \
 {{"ccr", SPARC_ICC_REG}, {"cc", SPARC_ICC_REG}}
 
-/* On Sun 4, this limit is 2048.  We use 1000 to be safe, since the length
-   can run past this up to a continuation point.  Once we used 1500, but
-   a single entry in C++ can run more than 500 bytes, due to the length of
-   mangled symbol names.  dbxout.cc should really be fixed to do
-   continuations when they are actually needed instead of trying to
-   guess...  */
-#define DBX_CONTIN_LENGTH 1000
-
 /* This is how to output a command to make the user-level label named NAME
    defined for reference from other files.  */
 
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h
index 993939164a2..12c51e53db6 100644
--- a/gcc/config/vax/vax.h
+++ b/gcc/config/vax/vax.h
@@ -508,23 +508,6 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
     "r8", "r9", "r10", "r11", "ap", "fp", "sp", "pc",	\
     "psl" }
 
-/* Do not break .stabs pseudos into continuations.  */
-
-#define DBX_CONTIN_LENGTH 0
-
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-
-#define DBX_CONTIN_CHAR '?'
-
-/* Don't use the `xsfoo;' construct in DBX output; this system
-   doesn't support it.  */
-
-#define DBX_NO_XREFS
-
-/* Output the .stabs for a C `static' variable in the data section.  */
-#define DBX_STATIC_STAB_DATA_SECTION
-
 /* VAX specific: which type character is used for type double?  */
 
 #define ASM_DOUBLE_CHAR (TARGET_G_FLOAT ? 'g' : 'd')

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [gcc(refs/users/marxin/heads/stabs-removal)] Remove DBX_* hooks.
@ 2022-08-25  6:54 Martin Liska
  0 siblings, 0 replies; 2+ messages in thread
From: Martin Liska @ 2022-08-25  6:54 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:fa89905988bc34b16684fe193196fdb300940a42

commit fa89905988bc34b16684fe193196fdb300940a42
Author: Martin Liska <mliska@suse.cz>
Date:   Thu Aug 25 08:41:43 2022 +0200

    Remove DBX_* hooks.

Diff:
---
 gcc/config/arc/arc.h           |  3 ---
 gcc/config/arm/aout.h          |  5 -----
 gcc/config/arm/netbsd-elf.h    |  3 ---
 gcc/config/darwin.h            | 12 ------------
 gcc/config/epiphany/epiphany.h |  3 ---
 gcc/config/i386/bsd.h          |  6 ------
 gcc/config/i386/gas.h          |  4 ----
 gcc/config/m68k/linux.h        |  4 ----
 gcc/config/m68k/openbsd.h      |  9 ---------
 gcc/config/openbsd.h           | 11 -----------
 gcc/config/pa/pa.h             |  8 --------
 gcc/config/pa/som.h            | 11 -----------
 gcc/config/pdp11/pdp11.h       |  3 ---
 gcc/config/rs6000/sysv4.h      |  5 -----
 gcc/config/sh/elf.h            |  3 ---
 gcc/config/sol2.h              |  5 -----
 gcc/config/sparc/freebsd.h     |  6 ------
 gcc/config/sparc/netbsd-elf.h  |  5 -----
 gcc/config/sparc/sparc.h       |  8 --------
 gcc/config/vax/vax.h           | 17 -----------------
 20 files changed, 131 deletions(-)

diff --git a/gcc/config/arc/arc.h b/gcc/config/arc/arc.h
index bbd1f0b7e96..0cb560b8a38 100644
--- a/gcc/config/arc/arc.h
+++ b/gcc/config/arc/arc.h
@@ -1380,9 +1380,6 @@ do { \
 
 #define EH_RETURN_STACKADJ_RTX   gen_rtx_REG (Pmode, 2)
 
-/* Turn off splitting of long stabs.  */
-#define DBX_CONTIN_LENGTH 0
-
 /* Miscellaneous.  */
 
 /* Specify the machine mode that this machine uses
diff --git a/gcc/config/arm/aout.h b/gcc/config/arm/aout.h
index 28fa707cc2e..cfb8db52c59 100644
--- a/gcc/config/arm/aout.h
+++ b/gcc/config/arm/aout.h
@@ -145,11 +145,6 @@
 #define NO_DOLLAR_IN_LABEL 1
 #endif
 
-/* Acorn dbx moans about continuation chars, so don't use any.  */
-#ifndef DBX_CONTIN_LENGTH
-#define DBX_CONTIN_LENGTH  0
-#endif
-
 /* Output a function label definition.  */
 #ifndef ASM_DECLARE_FUNCTION_NAME
 #define ASM_DECLARE_FUNCTION_NAME(STREAM, NAME, DECL)	\
diff --git a/gcc/config/arm/netbsd-elf.h b/gcc/config/arm/netbsd-elf.h
index d239c734c5c..ef1bba28077 100644
--- a/gcc/config/arm/netbsd-elf.h
+++ b/gcc/config/arm/netbsd-elf.h
@@ -85,9 +85,6 @@
 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE "long int"
 
-/* We don't have any limit on the length as out debugger is GDB.  */
-#undef DBX_CONTIN_LENGTH
-
 /* NetBSD does its profiling differently to the Acorn compiler. We
    don't need a word following the mcount call; and to skip it
    requires either an assembly stub or use of fomit-frame-pointer when
diff --git a/gcc/config/darwin.h b/gcc/config/darwin.h
index b198e897e99..45f45f927d6 100644
--- a/gcc/config/darwin.h
+++ b/gcc/config/darwin.h
@@ -628,18 +628,6 @@ ASM_OPTIONS ASM_MMACOSX_VERSION_MIN_SPEC
                                ? "__DWARF,__debug_gnu_pubt,regular,debug" \
                                : "__DWARF,__debug_pubtypes,regular,debug")
 
-/* When generating stabs debugging, use N_BINCL entries.  */
-
-#define DBX_USE_BINCL
-
-/* There is no limit to the length of stabs strings.  */
-
-#define DBX_CONTIN_LENGTH 0
-
-/* gdb needs a null N_SO at the end of each file for scattered loading.  */
-
-#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
-
 /* GCC's definition of 'one_only' is the same as its definition of 'weak'.  */
 #define MAKE_DECL_ONE_ONLY(DECL) (DECL_WEAK (DECL) = 1)
 
diff --git a/gcc/config/epiphany/epiphany.h b/gcc/config/epiphany/epiphany.h
index 13b3231fbc1..7c6a7f33df2 100644
--- a/gcc/config/epiphany/epiphany.h
+++ b/gcc/config/epiphany/epiphany.h
@@ -798,9 +798,6 @@ do \
 /* Generate DWARF debugging information.  */
 #undef PREFERRED_DEBUGGING_TYPE
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
-
-/* Turn off splitting of long stabs.  */
-#define DBX_CONTIN_LENGTH 0
 \f
 /* Miscellaneous.  */
 
diff --git a/gcc/config/i386/bsd.h b/gcc/config/i386/bsd.h
index d19ad2773f5..98d2810e975 100644
--- a/gcc/config/i386/bsd.h
+++ b/gcc/config/i386/bsd.h
@@ -91,9 +91,3 @@ along with GCC; see the file COPYING3.  If not see
 /* The prefix to add to user-visible assembler symbols.  */
 
 #define USER_LABEL_PREFIX "_"
-
-/* Sequent has some changes in the format of DBX symbols.  */
-#define DBX_NO_XREFS 1
-
-/* Don't split DBX symbols into continuations.  */
-#define DBX_CONTIN_LENGTH 0
diff --git a/gcc/config/i386/gas.h b/gcc/config/i386/gas.h
index 3bac8eb6875..e0ffc75dc6d 100644
--- a/gcc/config/i386/gas.h
+++ b/gcc/config/i386/gas.h
@@ -36,10 +36,6 @@ along with GCC; see the file COPYING3.  If not see
  * people who want both form will have to compile twice.
  */
 
-/* these come from i386/bsd.h, but are specific to sequent */
-#undef DBX_NO_XREFS
-#undef DBX_CONTIN_LENGTH
-
 /* Output #ident as a .ident.  */
 
 #undef TARGET_ASM_OUTPUT_IDENT
diff --git a/gcc/config/m68k/linux.h b/gcc/config/m68k/linux.h
index 05661bf355a..0c66c91f840 100644
--- a/gcc/config/m68k/linux.h
+++ b/gcc/config/m68k/linux.h
@@ -146,10 +146,6 @@ along with GCC; see the file COPYING3.  If not see
     fprintf (FILE, "\tjbsr _mcount\n");					\
 }
 
-/* Do not break .stabs pseudos into continuations.  */
-
-#define DBX_CONTIN_LENGTH 0
-
 /* 1 if N is a possible register number for a function value.  For
    m68k/SVR4 allow d0, a0, or fp0 as return registers, for integral,
    pointer, or floating types, respectively.  Reject fp0 if not using
diff --git a/gcc/config/m68k/openbsd.h b/gcc/config/m68k/openbsd.h
index baf2738e7ef..ab998177de8 100644
--- a/gcc/config/m68k/openbsd.h
+++ b/gcc/config/m68k/openbsd.h
@@ -60,15 +60,6 @@ along with GCC; see the file COPYING3.  If not see
 /* Every structure or union's size must be a multiple of 2 bytes.  */
 #define STRUCTURE_SIZE_BOUNDARY 16
 
-/* Specific options for DBX Output.  */
-
-/* Do not break .stabs pseudos into continuations.  */
-#define DBX_CONTIN_LENGTH 0
-
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-#define DBX_CONTIN_CHAR '?'
-
 /* Stack & calling: aggregate returns.  */
 
 /* ??? This is traditional, but quite possibly wrong.  It appears to
diff --git a/gcc/config/openbsd.h b/gcc/config/openbsd.h
index 54be2225492..aa90ef734de 100644
--- a/gcc/config/openbsd.h
+++ b/gcc/config/openbsd.h
@@ -150,17 +150,6 @@ while (0)
 #undef TARGET_LIBC_HAS_FUNCTION
 #define TARGET_LIBC_HAS_FUNCTION default_libc_has_function
 
-\f
-/* Runtime target specification.  */
-
-/* Miscellaneous parameters.  */
-
-/* Controlling debugging info: dbx options.  */
-
-/* Don't use the `xsTAG;' construct in DBX output; OpenBSD systems that
-   use DBX don't support it.  */
-#define DBX_NO_XREFS
-
 \f
 /* - we use . - _func instead of a local label,
    - we put extra spaces in expressions such as 
diff --git a/gcc/config/pa/pa.h b/gcc/config/pa/pa.h
index 0747137880c..95787ab1df2 100644
--- a/gcc/config/pa/pa.h
+++ b/gcc/config/pa/pa.h
@@ -137,14 +137,6 @@ extern unsigned long total_code_bytes;
 /* Select dwarf2 as the preferred debug format.  */
 #define PREFERRED_DEBUGGING_TYPE DWARF2_DEBUG
 
-/* This used to be zero (no max length), but big enums and such can
-   cause huge strings which killed gas.
-
-   We also have to avoid lossage in dbxout.cc -- it does not compute the
-   string size accurately, so we are real conservative here.  */
-#undef DBX_CONTIN_LENGTH
-#define DBX_CONTIN_LENGTH 3000
-
 /* 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
diff --git a/gcc/config/pa/som.h b/gcc/config/pa/som.h
index 63e2a37b902..3efae0e1fa0 100644
--- a/gcc/config/pa/som.h
+++ b/gcc/config/pa/som.h
@@ -21,17 +21,6 @@ along with GCC; see the file COPYING3.  If not see
 #undef TARGET_SOM
 #define TARGET_SOM 1
 
-/* We do not use BINCL stabs in SOM.
-   ??? If it does not hurt, we probably should to avoid useless divergence
-   from other embedded stabs implementations.  */
-#undef DBX_USE_BINCL
-
-#define DBX_LINES_FUNCTION_RELATIVE 1
-
-/* gdb needs a null N_SO at the end of each file for scattered loading.  */
-
-#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
-
 /* HPUX has a program 'chatr' to list the dependencies of dynamically
    linked executables and shared libraries.  */
 #define LDD_SUFFIX "chatr"
diff --git a/gcc/config/pdp11/pdp11.h b/gcc/config/pdp11/pdp11.h
index 5aac3e3dba5..1fa52e8c754 100644
--- a/gcc/config/pdp11/pdp11.h
+++ b/gcc/config/pdp11/pdp11.h
@@ -483,9 +483,6 @@ extern int current_first_parm_offset;
 /* Nonzero if access to memory by byte is no faster than by word.  */
 #define SLOW_BYTE_ACCESS 1
 
-/* Do not break .stabs pseudos into continuations.  */
-#define DBX_CONTIN_LENGTH 0
-
 /* Give a comparison code (EQ, NE etc) and the first operand of a COMPARE,
    return the mode to be used for the comparison.  */
 
diff --git a/gcc/config/rs6000/sysv4.h b/gcc/config/rs6000/sysv4.h
index ce495497ecc..c8b7eb63317 100644
--- a/gcc/config/rs6000/sysv4.h
+++ b/gcc/config/rs6000/sysv4.h
@@ -512,11 +512,6 @@ extern int fixuplabelno;
 #define	RS6000_OUTPUT_BASENAME(FILE, NAME)	\
     assemble_name (FILE, NAME)
 
-/* We have to output the stabs for the function name *first*, before
-   outputting its label.  */
-
-#define	DBX_FUNCTION_FIRST
-
 /* This is the end of what might become sysv4dbx.h.  */
 \f
 #define TARGET_OS_SYSV_CPP_BUILTINS()		\
diff --git a/gcc/config/sh/elf.h b/gcc/config/sh/elf.h
index afb3bc353cc..f0fd19f8854 100644
--- a/gcc/config/sh/elf.h
+++ b/gcc/config/sh/elf.h
@@ -67,9 +67,6 @@ along with GCC; see the file COPYING3.  If not see
 #define ASM_GENERATE_INTERNAL_LABEL(STRING, PREFIX, NUM) \
   sprintf ((STRING), "*%s%s%ld", LOCAL_LABEL_PREFIX, (PREFIX), (long)(NUM))
 
-#define DBX_LINES_FUNCTION_RELATIVE 1
-#define DBX_OUTPUT_NULL_N_SO_AT_MAIN_SOURCE_FILE_END
-
 #undef STARTFILE_SPEC
 #define STARTFILE_SPEC \
   "%{!shared: crt1.o%s} crti.o%s \
diff --git a/gcc/config/sol2.h b/gcc/config/sol2.h
index e22c70c45ae..64cd14783cc 100644
--- a/gcc/config/sol2.h
+++ b/gcc/config/sol2.h
@@ -498,11 +498,6 @@ along with GCC; see the file COPYING3.  If not see
 
 #define AS_NEEDS_DASH_FOR_PIPED_INPUT
 
-/* The Solaris assembler cannot grok .stabd directives.  */
-#undef NO_DBX_BNSYM_ENSYM
-#define NO_DBX_BNSYM_ENSYM 1
-#endif
-
 /* Solaris has an implementation of __enable_execute_stack.  */
 #define HAVE_ENABLE_EXECUTE_STACK
 
diff --git a/gcc/config/sparc/freebsd.h b/gcc/config/sparc/freebsd.h
index 98319c52875..73850a31f58 100644
--- a/gcc/config/sparc/freebsd.h
+++ b/gcc/config/sparc/freebsd.h
@@ -109,12 +109,6 @@ along with GCC; see the file COPYING3.  If not see
 
 /************************[  Debugger stuff  ]*********************************/
 
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-
-#undef  DBX_CONTIN_CHAR
-#define DBX_CONTIN_CHAR	'?'
-
 /* DWARF bits.  */
 
 /* Follow Irix 6 and not the Dwarf2 draft in using 64-bit offsets. 
diff --git a/gcc/config/sparc/netbsd-elf.h b/gcc/config/sparc/netbsd-elf.h
index af194df3ed3..bee71fc1839 100644
--- a/gcc/config/sparc/netbsd-elf.h
+++ b/gcc/config/sparc/netbsd-elf.h
@@ -46,11 +46,6 @@ along with GCC; see the file COPYING3.  If not see
 #undef PTRDIFF_TYPE
 #define PTRDIFF_TYPE "long int"
 
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-#undef DBX_CONTIN_CHAR
-#define DBX_CONTIN_CHAR '?'
-
 #undef  LOCAL_LABEL_PREFIX
 #define LOCAL_LABEL_PREFIX  "."
 
diff --git a/gcc/config/sparc/sparc.h b/gcc/config/sparc/sparc.h
index 2e17fca197a..987340392dd 100644
--- a/gcc/config/sparc/sparc.h
+++ b/gcc/config/sparc/sparc.h
@@ -1510,14 +1510,6 @@ do {									   \
 #define ADDITIONAL_REGISTER_NAMES \
 {{"ccr", SPARC_ICC_REG}, {"cc", SPARC_ICC_REG}}
 
-/* On Sun 4, this limit is 2048.  We use 1000 to be safe, since the length
-   can run past this up to a continuation point.  Once we used 1500, but
-   a single entry in C++ can run more than 500 bytes, due to the length of
-   mangled symbol names.  dbxout.cc should really be fixed to do
-   continuations when they are actually needed instead of trying to
-   guess...  */
-#define DBX_CONTIN_LENGTH 1000
-
 /* This is how to output a command to make the user-level label named NAME
    defined for reference from other files.  */
 
diff --git a/gcc/config/vax/vax.h b/gcc/config/vax/vax.h
index 993939164a2..12c51e53db6 100644
--- a/gcc/config/vax/vax.h
+++ b/gcc/config/vax/vax.h
@@ -508,23 +508,6 @@ enum reg_class { NO_REGS, ALL_REGS, LIM_REG_CLASSES };
     "r8", "r9", "r10", "r11", "ap", "fp", "sp", "pc",	\
     "psl" }
 
-/* Do not break .stabs pseudos into continuations.  */
-
-#define DBX_CONTIN_LENGTH 0
-
-/* This is the char to use for continuation (in case we need to turn
-   continuation back on).  */
-
-#define DBX_CONTIN_CHAR '?'
-
-/* Don't use the `xsfoo;' construct in DBX output; this system
-   doesn't support it.  */
-
-#define DBX_NO_XREFS
-
-/* Output the .stabs for a C `static' variable in the data section.  */
-#define DBX_STATIC_STAB_DATA_SECTION
-
 /* VAX specific: which type character is used for type double?  */
 
 #define ASM_DOUBLE_CHAR (TARGET_G_FLOAT ? 'g' : 'd')

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-08-25  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-08-25  6:53 [gcc(refs/users/marxin/heads/stabs-removal)] Remove DBX_* hooks Martin Liska
2022-08-25  6:54 Martin Liska

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).