From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1851) id 82741385DC31; Thu, 25 Aug 2022 06:53:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 82741385DC31 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1661410391; bh=L19Rb5bZueahEYwFlr1IJwKqe0sRk7XglsVkr43av/Q=; h=From:To:Subject:Date:From; b=W7b0XyxWSNbHjC0kbzJRmaKylolf4xPVTJ/PFQxTOlnX2mUUCBEV0kkfF7ZdW/Y8J iaqVRFG5ZFTD/2udsKb5mvzqFOFc/hFe9m9DDERK66O6ujlVfrAXmr4iIDN4lZf/W0 hMfPWnM4jBNUdSetb97QXMm3vRTy7mZOqAOCP5EE= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Martin Liska To: gcc-cvs@gcc.gnu.org Subject: [gcc(refs/users/marxin/heads/stabs-removal)] Remove gstabs. X-Act-Checkin: gcc X-Git-Author: Martin Liska X-Git-Refname: refs/users/marxin/heads/stabs-removal X-Git-Oldrev: 6d6676e182a5da21cdf99326dd6adcaea34c9285 X-Git-Newrev: 66b8541ec23d7ae71bbefd1c0dfb00df8bc955e8 Message-Id: <20220825065311.82741385DC31@sourceware.org> Date: Thu, 25 Aug 2022 06:53:11 +0000 (GMT) List-Id: https://gcc.gnu.org/g:66b8541ec23d7ae71bbefd1c0dfb00df8bc955e8 commit 66b8541ec23d7ae71bbefd1c0dfb00df8bc955e8 Author: Martin Liska 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 \