my switch statement disappears after the return from plugin

Ian Lance Taylor iant@google.com
Fri Aug 13 15:35:00 GMT 2010


Jeff Saremi <jeffsaremi@yahoo.com> writes:

> so i'm working at the cfg level. I create a new block. Redirect
> blocks. Introduce a new switch statement and insert it in the new
> block.

> Before exiting from the my plugin, i print out all stmts from all
> blocks and my switch is seemingly there too. However at the end of my
> compilation it's been removed and goes with it a whole bunch of other
> blocks and their stmts.

This normally means that the statement doesn't do anything, and thus can
be removed as useless.

Ian



More information about the Gcc-help mailing list