re PR middle-end/38422 (union/bitfield causes cc1/cc1plus to run out of memory.)
authorJakub Jelinek <jakub@redhat.com>
Sat, 6 Dec 2008 12:47:15 +0000 (13:47 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Sat, 6 Dec 2008 12:47:15 +0000 (13:47 +0100)
commitb77856544be1bccf962f5864fb6280b612667905
treeb36f60923bc3c922dc157a24313e6e54382bdf74
parentfb7ca5a762a94ab5c7f3d16831b3dc037dfa6619
re PR middle-end/38422 (union/bitfield causes cc1/cc1plus to run out of memory.)

PR middle-end/38422
* fold-const.c (fold_unary) <CASE_CONVERT>: Don't convert MULT_EXPR
operands to mult_type if it isn't narrower than op0's type.

* gcc.c-torture/execute/pr38422.c: New test.

From-SVN: r142521
gcc/ChangeLog
gcc/fold-const.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.c-torture/execute/pr38422.c [new file with mode: 0644]