]> git.ipfire.org Git - thirdparty/gcc.git/commit
re PR middle-end/44492 (auto-inc-dec pushes PRE_MODIFY/PRE_INC into inline asm operands)
authorJakub Jelinek <jakub@redhat.com>
Thu, 24 Jun 2010 17:48:16 +0000 (19:48 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 24 Jun 2010 17:48:16 +0000 (19:48 +0200)
commit54f044ebbbdce8a6758b3fa7bdbd854632bc47b3
tree342f106af8349c0f121d3e089e983f9d4013abf1
parentc7d42abb94d423e65a2cbc7334b7ca81c3ff6f5f
re PR middle-end/44492 (auto-inc-dec pushes PRE_MODIFY/PRE_INC into inline asm operands)

PR middle-end/44492
* recog.h (struct recog_data): Add is_asm field.
* recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
present in constraints of inline-asm operand and memory operand
contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
(extract_insn): Initialize recog_data.is_asm.
* doc/md.texi (Constraints): Document operand side-effect rules.

* g++.dg/torture/pr44492.C: New test.

From-SVN: r161328
gcc/ChangeLog
gcc/doc/md.texi
gcc/recog.c
gcc/recog.h
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/torture/pr44492.C [new file with mode: 0644]