public inbox for gcc-prs@sourceware.org
help / color / mirror / Atom feed
* debug/4252: cc1: Invalid option `-fdump-translation-unit'
@ 2001-09-06 12:46 dm-nws
  0 siblings, 0 replies; 3+ messages in thread
From: dm-nws @ 2001-09-06 12:46 UTC (permalink / raw)
  To: gcc-gnats

>Number:         4252
>Category:       debug
>Synopsis:       cc1: Invalid option `-fdump-translation-unit'
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    unassigned
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Sep 06 12:46:00 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     David Morse
>Release:        gcc 3.0.1
>Organization:
>Environment:
Debian Woody
>Description:
The command line options
-fdump-translation-unit
-fdump-class-hierarchy
don't seem to work.

However they are documented in both the Info and man pages.
Also, said documentation alludes to -fdump-tree, but -fdump-tree neither works nor seems to be documented.
>How-To-Repeat:
% touch /tmp/foo.c
% gcc -c -fdump-translation-unit /tmp/foo.c
cc1: Invalid option `-fdump-translation-unit'
% 
>Fix:

>Release-Note:
>Audit-Trail:
>Unformatted:


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

* Re: debug/4252 cc1: Invalid option `-fdump-translation-unit'
@ 2001-10-22  0:46 Gerald Pfeifer
  0 siblings, 0 replies; 3+ messages in thread
From: Gerald Pfeifer @ 2001-10-22  0:46 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR debug/4252; it has been noted by GNATS.

From: Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
To: Craig Rodrigues <rodrigc@mediaone.net>
Cc: <gcc-patches@gcc.gnu.org>, <gcc-gnats@gcc.gnu.org>,
   Nathan Sidwell <nathan@codesourcery.com>
Subject: Re: debug/4252 cc1: Invalid option `-fdump-translation-unit'
Date: Mon, 22 Oct 2001 09:42:18 +0200 (CEST)

 On Sun, 21 Oct 2001, Craig Rodrigues wrote:
 > http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4252&database=gcc
 >
 > -fdump-translation-unit has been removed from gcc, so it should
 > be removed from the documentation as well.
 
 It seems Nathan missed that when removing said flag with:
 
   2001-06-05  Nathan Sidwell  <nathan@codesourcery.com>
 
         * c-common.h (flag_dump_translation_unit): Remove.
         (enum tree_dump_index): Define.
         (TDF_ADDRESS, TDF_SLIM): New #defines.
         (dump_node_to_file): Remove.
         (dump_node): Make extern. Add flags.
         (dump_flag, dump_enabled_p, dump_begin, dump_end,
         dump_switch_p): Prototype.
         * c-common.c (flag_dump_translation_unit): Remove.
         * c-decl.c (c_decode_option): Remove -fdump-translation-unit
         logic. Use dump_switch_p.
         * c-dump.h (struct dump_info): Add node and user fields.
         (dump_pointer): Declare.
         * c-dump.c (dump_node): Make extern. Add flags.
         (SOL_COLUMN, EOL_COLUMN, COLUMN_ALIGNMENT): New #defines.
         (dump_new_line, dump_maybe_newline): Use them.
         (dump_pointer): New function.
         (dequeue_and_dump): Check TDF_SLIM before dumping a _DECL's
         chain or function's body. Dump address, if TDF_ADDRESS set.
         (dump_flag): Define.
         (dump_node_to_file): Remove.
         (struct dump_file_info): New struct.
         (dump_files): New array.
         (dump_begin, dump_end, dump_enabled_p, dump_switch_p): Define.
         * c-lang.c (finish_file): Adjust dumping.
         * toplev.h (dump_base_name): Make extern.
         * invoke.texi: Document new flags.
 
 > 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
 >
 > 	PR debug/4252
 > 	* doc/invoke.texi: Remove references to -fdump-translation-unit
 
 Installed, thanks.  (I added a full-stop at the end of the ChangeLog
 entry.)
 
 Gerald
 -- 
 Gerald "Jerry" pfeifer@dbai.tuwien.ac.at http://www.dbai.tuwien.ac.at/~pfeifer/
 
 
 


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

* Re: debug/4252 cc1: Invalid option `-fdump-translation-unit'
@ 2001-10-20 22:16 Craig Rodrigues
  0 siblings, 0 replies; 3+ messages in thread
From: Craig Rodrigues @ 2001-10-20 22:16 UTC (permalink / raw)
  To: nobody; +Cc: gcc-prs

The following reply was made to PR debug/4252; it has been noted by GNATS.

From: Craig Rodrigues <rodrigc@mediaone.net>
To: gcc-patches@gcc.gnu.org
Cc: gcc-gnats@gcc.gnu.org, rodrigc@gcc.gnu.org, gerald@gcc.gnu.org
Subject: Re: debug/4252 cc1: Invalid option `-fdump-translation-unit'
Date: Sun, 21 Oct 2001 01:11:01 -0400

 http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view&pr=4252&database=gcc
 
 -fdump-translation-unit has been removed from gcc, so it should
 be removed from the documentation as well.
 
 
 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
 
 	PR debug/4252
 	* doc/invoke.texi: Remove references to -fdump-translation-unit
 
 
 
 Index: invoke.texi
 ===================================================================
 RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
 retrieving revision 1.3.2.28
 diff -u -r1.3.2.28 invoke.texi
 --- invoke.texi	2001/10/17 09:06:44	1.3.2.28
 +++ invoke.texi	2001/10/21 05:08:18
 @@ -237,7 +237,7 @@
  @xref{Debugging Options,,Options for Debugging Your Program or GCC}.
  @gccoptlist{
  -a  -ax  -d@var{letters}  -dumpspecs  -dumpmachine  -dumpversion @gol
 --fdump-unnumbered -fdump-translation-unit@r{[}-@var{n}@r{]} @gol
 +-fdump-unnumbered 
  -fdump-class-hierarchy@r{[}-@var{n}@r{]} @gol
  -fdump-ast-original@r{[}-@var{n}@r{]} -fdump-ast-optimized@r{[}-@var{n}@r{]} @gol
  -fmem-report  -fpretend-float @gol
 @@ -2958,14 +2958,6 @@
  numbers and line number note output.  This makes it more feasible to
  use diff on debugging dumps for compiler invocations with different
  options, in particular with and without @option{-g}.
 -
 -@item -fdump-translation-unit @r{(C and C++ only)}
 -@itemx -fdump-translation-unit-@var{number} @r{(C and C++ only)}
 -@opindex fdump-translation-unit
 -Dump a representation of the tree structure for the entire translation
 -unit to a file.  The file name is made by appending @file{.tu} to the
 -source file name.  If the @samp{-@var{number}} form is used, @var{number}
 -controls the details of the dump as described for the @option{-fdump-tree} options.
  
  @item -fdump-class-hierarchy @r{(C++ only)}
  @itemx -fdump-class-hierarchy-@var{number} @r{(C++ only)}
 
 
 -- 
 Craig Rodrigues        
 http://www.gis.net/~craigr    
 rodrigc@mediaone.net          


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

end of thread, other threads:[~2001-10-22  0:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-06 12:46 debug/4252: cc1: Invalid option `-fdump-translation-unit' dm-nws
2001-10-20 22:16 debug/4252 " Craig Rodrigues
2001-10-22  0:46 Gerald Pfeifer

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).