This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fdump-translation-unit does'nt dump as expected.
- From: Praveen D V <for dot pdv at gmail dot com>
- To: Diego Novillo <dnovillo at google dot com>, gcc at gcc dot gnu dot org
- Cc: gcc-help at gcc dot gnu dot org
- Date: Mon, 23 Mar 2009 19:47:37 +0530
- Subject: Re: -fdump-translation-unit does'nt dump as expected.
- References: <40d5b80e0903050725y63226c82l3c0aa209f3457f29@mail.gmail.com> <b798aad50903201212g12d080bcrf684245634369b0f@mail.gmail.com>
I was earlier using
Using built-in specs.
Target: x86_64-linux-gnu
Configured with: ../src/configure -v
--enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr
--enable-shared --with-system-zlib --libexecdir=/usr/lib
--without-included-gettext --enable-threads=posix --enable-nls
--with-gxx-include-dir=/usr/include/c++/4.1.3 --program-suffix=-4.1
--enable-__cxa_atexit --enable-clocale=gnu --enable-libstdcxx-debug
--enable-mpfr --enable-checking=release x86_64-linux-gnu
Thread model: posix
gcc version 4.1.3 20070929 (prerelease) (Ubuntu 4.1.2-16ubuntu2)
This dumps every typedef.
With the new version I'm not able to get those dumps.
I just downloaded latest release and compiled it. It too doesn't dump
those typedef trees.
Any other pointers?
--regards, Praveen
On Sat, Mar 21, 2009 at 12:42 AM, Diego Novillo <dnovillo@google.com> wrote:
> On Thu, Mar 5, 2009 at 11:25, Praveen D V <for.pdv@gmail.com> wrote:
>
>> $gcc -fdump-translation-unit try.c
>> ?generates try.c.001t.tu (earlier versions generated try.c.tu). I
>> don't see any reference of MyStruct in the generated file.
>> Please help, am I missing any thing in the process?
>
> The dumps are meant to be used when debugging the compiler. ?They are
> not meant to be complete. ?In particular global type definitions are
> never dumped.
>
>
> Diego.
>