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?


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


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