Testing removal of ifdef or configure checks

From SambaWiki
Revision as of 01:14, 27 April 2019 by Abartlet (talk | contribs) (New page for my gcc-E script)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

#ifdef removal is risky

Large-scale removal of "unused" ifdef is an important, but risky task.

It is difficult (and time consuming) to prove that the code is unused and that there is no change to the compiled output.

A script to help

This script wraps gcc -E to attempt to solve this dilemma, so as to provide a result that can be reasoned with via tools like dirdiff