2007/4/9, Andrew Pinski <[EMAIL PROTECTED]>:
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


Of course, i'm a novice because i like and i don't like the
GCC development's model.

How will it be the code using  __builtin_constant_p that i don't know?

Reply via email to