diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-02-03 18:27:45 +0100 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2009-02-03 18:27:45 +0100 |
commit | 70f1628747fd4ec69fce0e26067e1a42f7b2504a (patch) | |
tree | 9bafa7d9bd247159d4856b22b91dd25ed4ffa33b /gcc/function.c | |
parent | 754ccf7c7c9db6326708936242365c2df354ffae (diff) | |
download | gcc-70f1628747fd4ec69fce0e26067e1a42f7b2504a.zip gcc-70f1628747fd4ec69fce0e26067e1a42f7b2504a.tar.gz gcc-70f1628747fd4ec69fce0e26067e1a42f7b2504a.tar.bz2 |
re PR target/35318 (ICE with inline asm in reload)
PR target/35318
* function.c (match_asm_constraints_1): Skip over
initial optional % in the constraint.
* gcc.c-torture/compile/pr35318.c: New test.
From-SVN: r143901
Diffstat (limited to 'gcc/function.c')
-rw-r--r-- | gcc/function.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/function.c b/gcc/function.c index 0cf4d5d..7489dc9 100644 --- a/gcc/function.c +++ b/gcc/function.c @@ -5477,6 +5477,9 @@ match_asm_constraints_1 (rtx insn, rtx *p_sets, int noutputs) char *end; int match, j; + if (*constraint == '%') + constraint++; + match = strtoul (constraint, &end, 10); if (end == constraint) continue; |