Re: -fdump-translation-unit does'nt dump as expected.
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 wrote: > On Thu, Mar 5, 2009 at 11:25, Praveen D V 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. >
Reg: -fdump-translation-unit for "C"
hi, I was earlier using 3.x.x version where I used -fdump-translation-unit to dump "typedef" tree. Recently I upgraded to 4.1.x version, unfortunately, that doesn't dump the tree any more. From documentation, it mentions it is for "C++". I need it for "C". It is a very useful utility. Are there any other options that replace -fdump-translation-unit? --thanks, Praveen
Re: Reg: -fdump-translation-unit for "C"
hi All, Sorry for my earlier mail. I had to install libc6-dev for GCC. Figured it out very late. Now it works. --thanks for you patience, Praveen On 11/27/07, Ramana Radhakrishnan <[EMAIL PROTECTED]> wrote: > On Nov 27, 2007 7:42 PM, Praveen D V <[EMAIL PROTECTED]> wrote: > > hi, > > I was earlier using 3.x.x version where I used -fdump-translation-unit to > dump > > "typedef" tree. Recently I upgraded to 4.1.x version, unfortunately, > > that doesn't > > dump the tree any more. From documentation, it mentions it is for > > "C++". I need it > > for "C". > > It is a very useful utility. Are there any other options that replace > > -fdump-translation-unit? > > -fdump-tree-all dumps all the trees you want. What is that you are > looking for in the tree ? > > And this is more a question for gcc-help@ rather than gcc@ . > > cheers > Ramana > > > > --thanks, Praveen > > > > > > -- > Ramana Radhakrishnan >