This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: dead code identification


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]