This is the mail archive of the gcc-patches@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: [PATCH] Fix PR c++/14755


Jakub Jelinek wrote:

Hi!

This bug marked as critical has been introduced by the 2004-03-08 Roger Sayle <roger@eyesopen.com>

       * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
       "foo++ == const" into "++foo == const+incr".
The masking is only correct for TREE_UNSIGNED (TREE_TYPE (varop)), otherwise
it needs sign extension to the bit fields precision.
Fixed thusly, ok to commit if bootstrap/regression testing succeeds?
Ok for 3.4/3.3 as well?

OK. Thanks!

--
Mark Mitchell
CodeSourcery, LLC
(916) 791-8304
mark@codesourcery.com


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