Dumping tree with no opt flag

Diego Novillo dnovillo@google.com
Mon Jul 30 15:29:00 GMT 2007


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
> <src_file_name>.<#id>t.<type>.

We amalgamated the dumping mechanism for trees and RTL.  The 't' denotes
a 'tree' dump, 'r' an RTL dump and 'i' an IPA dump.



More information about the Gcc mailing list