re PR middle-end/35823 (verify_gimple fails on taking 'Size of a String subprogram...
authorRichard Guenther <rguenther@suse.de>
Fri, 4 Apr 2008 11:29:11 +0000 (11:29 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 4 Apr 2008 11:29:11 +0000 (11:29 +0000)
commitc071e8bcc22f8b9cd854584d3dfccab9b2c23de7
tree4fbb2b3775885b4830323a936bb8dc52c1e14912
parentc53a18d377f7f6ceeccd08ee4083e8c2e2932b92
re PR middle-end/35823 (verify_gimple fails on taking 'Size of a String subprogram parameter)

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.

From-SVN: r133893
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gnat.dg/pr35823.adb [new file with mode: 0644]