This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: how to dump ssa-pre debug info
- From: Ian Lance Taylor <iant at google dot com>
- To: Trashbucket at gmx dot de
- Cc: gcc-help at gcc dot gnu dot org
- Date: Tue, 29 Nov 2011 14:48:14 -0800
- Subject: Re: how to dump ssa-pre debug info
- References: <4ED55A43.7020206@gmx.de>
Trashbucket <Trashbucket@gmx.de> writes:
> I am trying to dump the debug info of gcc/tree-ssa-pre.c but did not
> succeed. (using gcc 4.4.3)
> I tried -ftree-pre with -fdump-tree-all or -fdump-tree-pre[-all] and
> many more and searched for strings that should have been in one of the
> generated files.
>
> It seems that none of the optimizations are dumped:
> some files
> file.c.98.release-ssa
> file.c.129.optimized
> some more files
>
> Creation of a dump file depends on the dump_file variable.
> How can I dump the debug info of optimizations?
It should work to use -fdump-tree-pre-details -O2. You need the -O2 to
ensure that the optimization is enabled--merely adding the -fdump option
won't enable the option, and neither will merely adding -ftree-pre.
Ian