[Bug c/37261] [4.3/4.4 Regression] Spurious (?) "integer overflow in expression" warnings
jakub at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Fri Aug 29 19:11:00 GMT 2008
------- Comment #5 from jakub at gcc dot gnu dot org 2008-08-29 19:09 -------
Subject: Bug 37261
Author: jakub
Date: Fri Aug 29 19:08:18 2008
New Revision: 139786
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=139786
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:
branches/gcc-4_3-branch/gcc/testsuite/gcc.dg/pr37261.c
Modified:
branches/gcc-4_3-branch/gcc/ChangeLog
branches/gcc-4_3-branch/gcc/fold-const.c
branches/gcc-4_3-branch/gcc/testsuite/ChangeLog
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37261
More information about the Gcc-bugs
mailing list