This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Integer overflow in operator new. Solved?


2007/4/9, Andrew Pinski <pinskia@gmail.com>:
On 4/9/07, J.C. Pizarro <jcpiza@gmail.com> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]