This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/52286] [4.6 Regression] wrong code bug
- From: "jakub at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Thu, 23 Feb 2012 18:20:26 +0000
- Subject: [Bug tree-optimization/52286] [4.6 Regression] wrong code bug
- Auto-submitted: auto-generated
- References: <bug-52286-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52286
--- Comment #11 from Jakub Jelinek <jakub at gcc dot gnu.org> 2012-02-23 18:20:26 UTC ---
Author: jakub
Date: Thu Feb 23 18:20:19 2012
New Revision: 184520
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=184520
Log:
Backported from trunk
2012-02-20 Georg-Johann Lay <avr@gjlay.de>
* gcc.c-torture/execute/pr52286.c: Fix FAIL on 16-bit int platforms.
2012-02-20 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/52286
* fold-const.c (fold_binary_loc): For (X & C1) | C2
optimization use double_int_to_tree instead of build_int_cst_wide,
rewrite to use double_int vars.
* gcc.c-torture/execute/pr52286.c: New test.
Added:
branches/gcc-4_6-branch/gcc/testsuite/gcc.c-torture/execute/pr52286.c
Modified:
branches/gcc-4_6-branch/gcc/ChangeLog
branches/gcc-4_6-branch/gcc/fold-const.c
branches/gcc-4_6-branch/gcc/testsuite/ChangeLog