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: [committed] Fix pr21085



On Apr 18, 2005, at 10:35 PM, James A. Morrison wrote:



Hi,


This bug where TRUNC_MOD_EXPR was trying to simplify X % INT_MIN to
X % INT_MIN where INT_MIN was acheived through overflow. The reason this
wasn't caught by the sign_bit_p check was that sign_bit_p returns NULL for
expressions that have overflowed. This patch has been bootstrapped and
regtested on ia64-linux and preapproved by Roger in the PR.

I was asked by James to commit this to the 4.0 branch since he would be gone until the summit.

I committed this to the 4.0 branch after a bootstrap and test with no regression

Thanks,
Andrew Pinski

ChangeLog:
2005-05-11  James A. Morrison  <phython@gcc.gnu.org>

        PR tree-optimization/21085
        * fold-const (fold): Don't change X % -C to X % C if C has
        overflowed.


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