On 4/9/07, J.C. Pizarro <[EMAIL PROTECTED]> wrote:
3. To modify the C-preprocessor and/or C/C++ compiler for:
#if argument X is a constant then
use this code specific of constant X
#else if argument Y is not a constant then
use this code specific of non-constant Y
#else
use this general code
#endif
Well lets say this, we already support this to some extend, by using
__builtin_constant_p and then just inlining. Also there exists
already an optimization pass which does IPA constant prop.
Guess you are not well into GCC development after all.
-- Pinski