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 <a...@gjlay.de> * gcc.c-torture/execute/pr52286.c: Fix FAIL on 16-bit int platforms. 2012-02-20 Jakub Jelinek <ja...@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