From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7964 invoked by alias); 15 Jul 2009 11:23:50 -0000 Received: (qmail 7921 invoked by alias); 15 Jul 2009 11:23:36 -0000 Date: Wed, 15 Jul 2009 11:23:00 -0000 Message-ID: <20090715112336.7920.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/40747] [4.4/4.5 Regression] wrong code for int-is-in-range test at -O1 and above In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "jakub at gcc dot gnu dot org" Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2009-07/txt/msg01267.txt.bz2 ------- Comment #9 from jakub at gcc dot gnu dot org 2009-07-15 11:23 ------- Subject: Bug 40747 Author: jakub Date: Wed Jul 15 11:23:22 2009 New Revision: 149681 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149681 Log: PR middle-end/40747 * fold-const.c (fold_cond_expr_with_comparison): When folding < and <= to MIN, make sure the MIN uses the same type as the comparison's operands. * gcc.c-torture/execute/pr40747.c: New test. Added: branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr40747.c Modified: branches/gcc-4_4-branch/gcc/ChangeLog branches/gcc-4_4-branch/gcc/fold-const.c branches/gcc-4_4-branch/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40747