This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Some basic/beginner questions
- From: Diego Novillo <dnovillo at redhat dot com>
- To: nico <core-icke at arcor dot de>
- Cc: gcc at gcc dot gnu dot org
- Date: Tue, 28 Jun 2005 10:23:12 -0400
- Subject: Re: Some basic/beginner questions
- References: <72EF6BEC-2AE7-4A43-AEC2-D74D57FD4E8A@arcor.de>
On Tue, Jun 28, 2005 at 04:11:24PM +0200, nico wrote:
> I want to get a dump of the whole data structure of my sourcecode
> after (all) target independent optimization.
>
Dump flags and switches are dynamically enabled by the pass
manager. Take a look at tree-optimize.c:init_tree_optimization_passes
Dumps are controlled by TODO_dump_func. See tree-optimize.c:execute_todo
to follow what happens when the flag is enabled. The global
variables dump_file and dump_flag tell the passes whether dumps
are enabled. If you browse a few passes, you'll see that they
all predicate dump actions with 'if (dump_file ...)'.
Diego.