------- Comment #8 from jakub at gcc dot gnu dot org 2009-07-15 10:18 ------- Subject: Bug 40747
Author: jakub Date: Wed Jul 15 10:17:54 2009 New Revision: 149675 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=149675 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: trunk/gcc/testsuite/gcc.c-torture/execute/pr40747.c Modified: trunk/gcc/ChangeLog trunk/gcc/fold-const.c trunk/gcc/testsuite/ChangeLog -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40747