This is the mail archive of the gcc-bugs@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]

[Bug c/37261] [4.3/4.4 Regression] Spurious (?) "integer overflow in expression" warnings



------- Comment #4 from jakub at gcc dot gnu dot org  2008-08-29 19:00 -------
Subject: Bug 37261

Author: jakub
Date: Fri Aug 29 18:59:13 2008
New Revision: 139784

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139784
Log:
        PR c/37261
        * fold-const.c (fold_binary): In (X | C1) & C2 canonicalization
        compute new & and | in type rather than TREE_TYPE (arg0).

        * gcc.dg/pr37261.c: New test.

Added:
    trunk/gcc/testsuite/gcc.dg/pr37261.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/testsuite/ChangeLog


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37261


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