public inbox for gcc-cvs@sourceware.org help / color / mirror / Atom feed
From: Martin Liska <marxin@gcc.gnu.org> To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/stabs-removal)] Remove gstabs. Date: Thu, 25 Aug 2022 06:54:21 +0000 (GMT) [thread overview] Message-ID: <20220825065421.89685385DC16@sourceware.org> (raw) https://gcc.gnu.org/g:acad34b05b69a7f708a3901731578e4d00bf7ca7 commit acad34b05b69a7f708a3901731578e4d00bf7ca7 Author: Martin Liska <mliska@suse.cz> Date: Thu Aug 25 08:37:51 2022 +0200 Remove gstabs. Diff: --- gcc/doc/invoke.texi | 40 ++++----------------------------------- gcc/doc/tm.texi | 2 +- gcc/doc/tm.texi.in | 2 +- gcc/go/gospec.cc | 4 ---- gcc/testsuite/lib/gcc-dg.exp | 2 +- gcc/testsuite/lib/gfortran-dg.exp | 2 +- 6 files changed, 8 insertions(+), 44 deletions(-) diff --git a/gcc/doc/invoke.texi b/gcc/doc/invoke.texi index c9486ed1aaf..1b9b9849a90 100644 --- a/gcc/doc/invoke.texi +++ b/gcc/doc/invoke.texi @@ -496,7 +496,7 @@ Objective-C and Objective-C++ Dialects}. @gccoptlist{-g -g@var{level} -gdwarf -gdwarf-@var{version} @gol -gbtf -gctf -gctf@var{level} @gol -ggdb -grecord-gcc-switches -gno-record-gcc-switches @gol --gstabs -gstabs+ -gstrict-dwarf -gno-strict-dwarf @gol +-gstrict-dwarf -gno-strict-dwarf @gol -gas-loc-support -gno-as-loc-support @gol -gas-locview-support -gno-as-locview-support @gol -gcolumn-info -gno-column-info -gdwarf32 -gdwarf64 @gol @@ -504,7 +504,7 @@ Objective-C and Objective-C++ Dialects}. -gvariable-location-views -gno-variable-location-views @gol -ginternal-reset-location-views -gno-internal-reset-location-views @gol -ginline-points -gno-inline-points @gol --gvms -gxcoff -gxcoff+ -gz@r{[}=@var{type}@r{]} @gol +-gvms -gz@r{[}=@var{type}@r{]} @gol -gsplit-dwarf -gdescribe-dies -gno-describe-dies @gol -fdebug-prefix-map=@var{old}=@var{new} -fdebug-types-section @gol -fno-eliminate-unused-debug-types @gol @@ -10685,10 +10685,8 @@ information. On most systems that use stabs format, @option{-g} enables use of extra debugging information that only GDB can use; this extra information makes debugging work better in GDB but probably makes other debuggers -crash or -refuse to read the program. If you want to control for certain whether -to generate the extra information, use @option{-gstabs+}, @option{-gstabs}, -@option{-gxcoff+}, @option{-gxcoff}, or @option{-gvms} (see below). +crash or refuse to read the program. If you want to control for certain whether +to generate the extra information, use @option{-gvms} (see below). @item -ggdb @opindex ggdb @@ -10745,34 +10743,6 @@ information, but does not include type information. Level 2 produces type information for entities (functions, data objects etc.) at file-scope or global-scope only. -@item -gstabs -@opindex gstabs -Produce debugging information in stabs format (if that is supported), -without GDB extensions. This is the format used by DBX on most BSD -systems. On MIPS, Alpha and System V Release 4 systems this option -produces stabs debugging output that is not understood by DBX@. -On System V Release 4 systems this option requires the GNU assembler. - -@item -gstabs+ -@opindex gstabs+ -Produce debugging information in stabs format (if that is supported), -using GNU extensions understood only by the GNU debugger (GDB)@. The -use of these extensions is likely to make other debuggers crash or -refuse to read the program. - -@item -gxcoff -@opindex gxcoff -Produce debugging information in XCOFF format (if that is supported). -This is the format used by the DBX debugger on IBM RS/6000 systems. - -@item -gxcoff+ -@opindex gxcoff+ -Produce debugging information in XCOFF format (if that is supported), -using GNU extensions understood only by the GNU debugger (GDB)@. The -use of these extensions is likely to make other debuggers crash or -refuse to read the program, and may cause assemblers other than the GNU -assembler (GAS) to fail with an error. - @item -gvms @opindex gvms Produce debugging information in Alpha/VMS debug format (if that is @@ -10780,8 +10750,6 @@ supported). This is the format used by DEBUG on Alpha/VMS systems. @item -g@var{level} @itemx -ggdb@var{level} -@itemx -gstabs@var{level} -@itemx -gxcoff@var{level} @itemx -gvms@var{level} Request debugging information and also use @var{level} to specify how much information. The default level is 2. diff --git a/gcc/doc/tm.texi b/gcc/doc/tm.texi index 92623c91edb..3feb90abbf1 100644 --- a/gcc/doc/tm.texi +++ b/gcc/doc/tm.texi @@ -9977,7 +9977,7 @@ value @code{DWARF2_DEBUG}. The value of this macro only affects the default debugging output; the user can always get a specific type of output by using @option{-gstabs}, -@option{-gdwarf-2}, @option{-gxcoff}, or @option{-gvms}. +@option{-gdwarf-2}, or @option{-gvms}. @end defmac @defmac DEFAULT_GDB_EXTENSIONS diff --git a/gcc/doc/tm.texi.in b/gcc/doc/tm.texi.in index e8e9b5395be..c790b00440f 100644 --- a/gcc/doc/tm.texi.in +++ b/gcc/doc/tm.texi.in @@ -6664,7 +6664,7 @@ value @code{DWARF2_DEBUG}. The value of this macro only affects the default debugging output; the user can always get a specific type of output by using @option{-gstabs}, -@option{-gdwarf-2}, @option{-gxcoff}, or @option{-gvms}. +@option{-gdwarf-2}, or @option{-gvms}. @end defmac @defmac DEFAULT_GDB_EXTENSIONS diff --git a/gcc/go/gospec.cc b/gcc/go/gospec.cc index df92b62d8e6..1e514076803 100644 --- a/gcc/go/gospec.cc +++ b/gcc/go/gospec.cc @@ -215,11 +215,7 @@ lang_specific_driver (struct cl_decoded_option **in_decoded_options, case OPT_gdwarf: case OPT_gdwarf_: case OPT_ggdb: - case OPT_gstabs: - case OPT_gstabs_: case OPT_gvms: - case OPT_gxcoff: - case OPT_gxcoff_: saw_opt_g = true; break; diff --git a/gcc/testsuite/lib/gcc-dg.exp b/gcc/testsuite/lib/gcc-dg.exp index f58b9e6e873..23ec038f41e 100644 --- a/gcc/testsuite/lib/gcc-dg.exp +++ b/gcc/testsuite/lib/gcc-dg.exp @@ -656,7 +656,7 @@ proc gcc-dg-target-supports-debug-format { target_compile trivial type } { proc gcc-dg-debug-runtest { target_compile trivial opt_opts testcases } { if ![info exists DEBUG_TORTURE_OPTIONS] { set DEBUG_TORTURE_OPTIONS "" - foreach type {-gctf -gdwarf-2 -gstabs -gstabs+ -gxcoff -gxcoff+} { + foreach type {-gctf -gdwarf-2} { if [expr [gcc-dg-target-supports-debug-format \ $target_compile $trivial $type]] { if { $type == "-gctf" } { diff --git a/gcc/testsuite/lib/gfortran-dg.exp b/gcc/testsuite/lib/gfortran-dg.exp index 7407be4b8b6..d4a245e0bfe 100644 --- a/gcc/testsuite/lib/gfortran-dg.exp +++ b/gcc/testsuite/lib/gfortran-dg.exp @@ -170,7 +170,7 @@ proc gfortran-dg-debug-runtest { target_compile trivial opt_opts testcases } { if ![info exists DEBUG_TORTURE_OPTIONS] { set DEBUG_TORTURE_OPTIONS "" - set type_list [list "-gstabs" "-gstabs+" "-gxcoff" "-gxcoff+" "-gdwarf-2" ] + set type_list [list "-gdwarf-2" ] foreach type $type_list { set comp_output [$target_compile \ "$srcdir/$subdir/$trivial" "trivial.S" assembly \
next reply other threads:[~2022-08-25 6:54 UTC|newest] Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-08-25 6:54 Martin Liska [this message] -- strict thread matches above, loose matches on Subject: below -- 2022-08-25 6:53 Martin Liska
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220825065421.89685385DC16@sourceware.org \ --to=marxin@gcc.gnu.org \ --cc=gcc-cvs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).