OSDN Git Service

2009-04-24 Paolo Bonzini <bonzini@gnu.org>
authorbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Apr 2009 10:29:18 +0000 (10:29 +0000)
committerbonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 24 Apr 2009 10:29:18 +0000 (10:29 +0000)
commit0021102703a9766d586cc561ca3f11cf887e4f7a
treeeeeac29485c66b9f6da709cfda3303b2e42fab32
parent8a88222e821d46b4b6eb69802641bf2bc134889d
2009-04-24  Paolo Bonzini  <bonzini@gnu.org>

PR middle-end/39867
* fold-const.c (fold_cond_expr_with_comparison): When folding
> and >= to MAX, make sure the MAX uses the same type as the
comparison operands.

testsuite:
2009-04-24  Paolo Bonzini  <bonzini@gnu.org>

PR middle-end/39867
* gcc.dg/pr39867.c: New.

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