re PR middle-end/49189 (infinite recursion in constant folder)
authorRichard Guenther <rguenther@suse.de>
Fri, 27 May 2011 13:13:28 +0000 (13:13 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 27 May 2011 13:13:28 +0000 (13:13 +0000)
commitc2299dfe5337c92723ad8d6c92a41731badc6a0a
tree5a01789e8423444f6b3623d0f6a43454d41ffb54
parenta95b23b4290ffaa95614a10eb13123251bcd7e90
re PR middle-end/49189 (infinite recursion in constant folder)

2011-05-27  Richard Guenther  <rguenther@suse.de>

PR middle-end/49189
* fold-const.c (fold_unary_loc): Do not re-fold folding conversions
of comparisons.

* gnat.dg/bit_packed_array5.adb: New testcase.
* gnat.dg/bit_packed_array5.ads: Likewise.

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