This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: -fdump-translation-unit considered harmful
- From: Adam Nemet <anemet at lnxw dot com>
- To: Ian Lance Taylor <ian at airs dot com>
- Cc: "Dams, Dennis \(Dennis\)" <dennis at research dot bell-labs dot com>, gcc-patches at gcc dot gnu dot org, gdr at integrable-solutions dot net
- Date: 12 May 2005 23:41:16 -0700
- Subject: Re: -fdump-translation-unit considered harmful
- References: <3BD3BB8D47F9DE4984C319EA325A006D31146D@nj9620exch003u.mh.lucent.com><m3vf5ol0ib.fsf@gossamer.airs.com>
Ian Lance Taylor <ian@airs.com> writes:
> -fdump-translation-unit doesn't do anything in the C frontend.
Is the patch below OK to update documentation accordingly? Tested
with make info and make dvi.
2005-05-12 Adam Nemet <anemet@lnxw.com>
* doc/invoke.texi (Debugging Options): Option
-fdump-translation-unit only works with C++ now.
Index: invoke.texi
===================================================================
RCS file: /cvs/gcc/gcc/gcc/doc/invoke.texi,v
retrieving revision 1.619
diff -u -p -r1.619 invoke.texi
--- invoke.texi 10 May 2005 16:10:54 -0000 1.619
+++ invoke.texi 13 May 2005 06:18:00 -0000
@@ -3787,8 +3787,8 @@ numbers and line number note output. Th
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{options} @r{(C and C++ only)}
+@item -fdump-translation-unit @r{(C++ only)}
+@itemx -fdump-translation-unit-@var{options} @r{(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