2011-08-15 Richard Guenther <rguenther@suse.de>
commit0a3b59126cc532673941ff1718249524ae20ef73
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Aug 2011 15:01:33 +0000 (15 15:01 +0000)
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>
Mon, 15 Aug 2011 15:01:33 +0000 (15 15:01 +0000)
tree89980c834807b5a0b0482e3062763d600f60c4c7
parent713b2724897bda447e5360278f915c2cf927c29a
2011-08-15  Richard Guenther  <rguenther@suse.de>

PR middle-end/50082
* fold-const.c (maybe_canonicalize_comparison_1): Properly
convert the modified operand to the other operand type.
(fold_comparison): Call maybe_canonicalize_comparison_1 with
useless conversions stripped from comparison operands.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@177762 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/fold-const.c