This is the mail archive of the
mailing list for the GCC project.
Re: Dumping tree with no opt flag
- From: Diego Novillo <dnovillo at google dot com>
- To: Emmanuel Fleury <fleury at labri dot fr>
- Cc: gcc at gcc dot gnu dot org
- Date: Mon, 30 Jul 2007 11:27:51 -0400
- Subject: Re: Dumping tree with no opt flag
- References: <46AE008F.firstname.lastname@example.org>
On 7/30/07 11:15 AM, Emmanuel Fleury wrote:
> I just would like to know if it would be possible to get the
> final_cleanup target even though no optimization flag has been given in
> the command line (for now, I'm just forcing '-O1' to be present if no
> other optimization flag has been detected in the command line).
No, because the final_cleanup pass is only executed when optimizing.
For -O0, you need to determine what's the last phase executed and
request a dump to that phase. Also, future versions of GCC may not have
this phase as the final phase, or the dump file name may change, or both.
Dump files are merely debugging aids. We make no guarantees as to their
content or naming convention.
> A final remark, not really significant, I noticed that since gcc 4.2,
> the name of the dumped tree files have slightly changed. Indeed before,
> I was used to <src_file_name>.t<#id>.<type> where in 4.2 it is more like
We amalgamated the dumping mechanism for trees and RTL. The 't' denotes
a 'tree' dump, 'r' an RTL dump and 'i' an IPA dump.