re PR inline-asm/84941 (internal compiler error: in reg_overlap_mentioned_p, at rtlan...
authorJakub Jelinek <jakub@redhat.com>
Thu, 22 Mar 2018 12:31:46 +0000 (13:31 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 22 Mar 2018 12:31:46 +0000 (13:31 +0100)
commit3c896da0fd831fac95a6e9a846bd8c19fa79f338
tree83bdd9dd10f9471efd301496ee16442b4bd9ce58
parentf262038551353b15dcc0720c5858249f01c8fba7
re PR inline-asm/84941 (internal compiler error: in reg_overlap_mentioned_p, at rtlanal.c:1870 (reg_overlap_mentioned_p()/match_asm_constraints_1()))

PR inline-asm/84941
* function.c (match_asm_constraints_1): Don't do the optimization
if input isn't a REG, SUBREG, MEM or constant.

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

From-SVN: r258764
gcc/ChangeLog
gcc/function.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84941.c [new file with mode: 0644]