This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fdump-translation-unit considered harmful
- From: Ian Lance Taylor <ian at airs dot com>
- To: "Dams, Dennis \(Dennis\)" <dennis at research dot bell-labs dot com>
- Cc: gcc at gcc dot gnu dot org, gdr at integrable-solutions dot net
- Date: 12 May 2005 15:14:52 -0400
- Subject: Re: -fdump-translation-unit considered harmful
- References: <3BD3BB8D47F9DE4984C319EA325A006D31146D@nj9620exch003u.mh.lucent.com>
"Dams, Dennis \(Dennis\)" <dennis@research.bell-labs.com> writes:
> I'm trying to use the -fdump-translation-unit option (gcc (GCC)
> 4.1.0 20050505 (experimental)), but it does not seem to do
> anything. What's the right way to use it - should I specify any
> additional switches/options?
-fdump-translation-unit doesn't do anything in the C frontend. The C
frontend almost generates GENERIC anyhow. -fdump-translation-unit
does do something in the C++ frontend. Try it when compiling a C++
file.
Ian