re PR target/89752 (ICE in emit_move_insn, at expr.c:3723)
authorJakub Jelinek <jakub@redhat.com>
Tue, 19 Mar 2019 08:11:25 +0000 (09:11 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 19 Mar 2019 08:11:25 +0000 (09:11 +0100)
commitedff2a0574bfab8c35737ae1b4514ec3e18c4c96
tree32a9049d66717a59377ced4a235b43f0f9b6ce62
parent4f683506df6ae4137d5cd362ccb8a50302cf8a2d
re PR target/89752 (ICE in emit_move_insn, at expr.c:3723)

PR target/89752
* gimplify.c (gimplify_asm_expr): For output argument with
TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
diagnose error.

* g++.dg/ext/asm15.C: Check for particular diagnostic wording.
* g++.dg/ext/asm16.C: Likewise.
* g++.dg/ext/asm17.C: New test.

From-SVN: r269793
gcc/ChangeLog
gcc/gimplify.c
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/asm15.C
gcc/testsuite/g++.dg/ext/asm16.C
gcc/testsuite/g++.dg/ext/asm17.C [new file with mode: 0644]