OSDN Git Service

PR middle-end/40747
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Jul 2009 10:17:54 +0000 (10:17 +0000)
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>
Wed, 15 Jul 2009 10:17:54 +0000 (10:17 +0000)
commit0962300ca386d8daaca283470a24bf651e9165ea
tree5543d61cd34cab5ac95d722b8fd9da0a241d17ea
parent7734e2ae0892bba59fb23fc710122dbca4ff590d
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@149675 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr40747.c [new file with mode: 0644]