cp functions not called during testsuite execution

Mike Stump mrs@wrs.com
Mon Aug 24 04:22:00 GMT 1998


> Date: Sun, 23 Aug 1998 19:37:30 +0200
> From: Martin von Loewis <martin@mira.isdn.cs.tu-berlin.de>

> Some of the functions are probably dead; and I'd like to remove
> them, one by one, putting assertions in the places where they have
> been called.

Uhm, no.  This is kinda like delete every line that isn't executed.
Sure you can do that, and even after doing that the compiler would run
the testsuite and pass with flying colors, the problem is when 100% or
95% of all real code stops working.

Instead, put in a warning that says 'tell Martin you're using this bit
of functionality, or risk loosing it in the next major release.' run
it that way for a while (year), then remove them.  Put a unique number
in each, so that you can tell quickly which reports go with which
code.



More information about the Gcc mailing list