Thank you for the response. I guess if I only want to check the result of my own pass without any other optimization, I still need to write my own dump function. Haifeng On Wed, Feb 27, 2008 at 1:37 PM, Diego Novillo <dnovillo@xxxxxxxxxx> wrote: > > > 2008/2/26 Haifeng He <hehaifeng2nd@xxxxxxxxx>: > > > > I have another question. I would like to dump gimple IR into file in > > order to debug > > -fdump-tree-optimized is the very last GIMPLE dump before going into RTL. > That dump file will reflect all the optimizations done on GIMPLE. > -fdump-tree-all will give you a 100 or so dump files with the incremental > effects of each optimization pass. > > See the internal documentation and tutorials at > http://gcc.gnu.org/wiki/GettingStarted > > Diego.