re PR inline-asm/50571 (Undesirable folding in "m" constrained asm operands)
authorJakub Jelinek <jakub@redhat.com>
Fri, 30 Sep 2011 15:01:27 +0000 (17:01 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Fri, 30 Sep 2011 15:01:27 +0000 (17:01 +0200)
commit383841506e318ffddda4f29d7e6d8bd9933b7d45
tree0dc48dd18357dd5c7e31ead2094f2684dcdd9cf0
parent0ccb5dbf93d900812222d4383760d6c632bf2382
re PR inline-asm/50571 (Undesirable folding in "m" constrained asm operands)

PR inline-asm/50571
* gimple-fold.c (fold_stmt_1) <case GIMPLE_ASM>: If
input constraints allow mem and not reg, pass true instead of
false as second argument to maybe_fold_reference.

* gcc.dg/pr50571.c: New test.

From-SVN: r179389
gcc/ChangeLog
gcc/gimple-fold.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr50571.c [new file with mode: 0644]