2008-04-04 Richard Guenther <rguenther@suse.de>
commit226c5ce4507f3f389f52fae18d410773d4674046
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2008 11:29:11 +0000 (4 11:29 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 4 Apr 2008 11:29:11 +0000 (4 11:29 +0000)
tree4fbb2b3775885b4830323a936bb8dc52c1e14912
parent5a92bcc2281c19ebbb02a85334d5adc9b06972ac
2008-04-04  Richard Guenther  <rguenther@suse.de>

PR middle-end/35823
* fold-const.c (optimize_minmax_comparison): Use the correct
type for the constant in the simplified comparison.

* gnat.dg/pr35823.adb: New testcase.

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