linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* dead code removal
@ 1999-11-25  1:10 Jim Reekes
  1999-11-25  6:53 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Reekes @ 1999-11-25  1:10 UTC (permalink / raw)
  To: linuxppc-dev


I have a little program that contains a routine DummyFunc() which is
never reference in the code. Building this single source file in any way
I've tried results in a binary which contains DummyFunc(). Using nm and
objdump, as far as I can determine GCC 2.95 does not dead-code strip.
(which I find amazing!). So I have two questions.

Am I missing something and GCC actually does dead-code stripping?

 - or - 

How can I find unused/unreferenced symbols in my code so that I can bury
the dead code manually?


Jim

P.S. I have always compared programming to ditch digging, and now I'm
convinced.

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-12-18 20:08 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-25  1:10 dead code removal Jim Reekes
1999-11-25  6:53 ` Daniel Jacobowitz
1999-11-25 22:32   ` Jeffrey Karl Lassahn
1999-12-18 20:08     ` Jeremy Fitzhardinge

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).