Dumping tree with no opt flag

2007-07-30 Thread Emmanuel Fleury
Hi all, I try to develop a tool that get the final CFG of gcc by passing the -fdump-tree-final_cleanup-lineno option and parsing the file dumped by gcc. I noticed that this flag does create an output only if at least the '-O1' (or more) is in the command line. I just would like to know if it

Re: Dumping tree with no opt flag

2007-07-30 Thread Diego Novillo
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

Re: Dumping tree with no opt flag

2007-07-30 Thread Emmanuel Fleury
Wow, that was quick. :) Diego Novillo wrote: 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

Re: Dumping tree with no opt flag

2007-07-30 Thread Diego Novillo
On 7/30/07 11:34 AM, Emmanuel Fleury wrote: Actually, I know that these dumps are here, as you said, just for debugging purpose but why not making them 'permanent' and kind-of 'standardized' (I mean, not changing it too frequently), so that code analysis tools could plug on GCC ? (I know I'm