dead code identification

Ian Lance Taylor iant@google.com
Tue Feb 12 20:05:00 GMT 2008


Mark Hampton <mark.hampton@certess.com> writes:

> I would like to identify dead/redundant code that is being optimized away by 
> gcc. Is there a way to have gcc report the line number associated with this 
> code ?

No.  The best you could do would be to look at the internal debugging
dumps, e.g., by using -fdump-tree-dce-details.

Ian



More information about the Gcc-help mailing list