Re: dead code identification

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ian,

On Tuesday 12 February 2008 21:05, Ian Lance Taylor wrote:
> Mark Hampton <mark.hampton@xxxxxxxxxxx> 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.

That confirms what I have (not) been able to find on the net. I was not aware 
of the -fdump-tree-dce-details option, thanks for that.

We are planning to look more closely into this. It would seem like a useful 
feature. I have seen :

-gnatwt Activate warnings for tracking of deleted conditional code.

This is part of the ada support provided by gnat. We are interested in C/C++.

Is there someone in the gcc development team who might be interested in 
helping a stagaire look at this feature ?

Thanks,
	Mark


>
> Ian


[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux