diff options
author | Vladimir Makarov <vmakarov@redhat.com> | 2018-03-29 18:29:12 +0000 |
---|---|---|
committer | Vladimir Makarov <vmakarov@gcc.gnu.org> | 2018-03-29 18:29:12 +0000 |
commit | 28ed14605eba0b4978fa8158cc2bc3db75f16f5d (patch) | |
tree | b2117b5cbf7ada69d1a8c16ac86dc60e1993b0e9 /gcc/lra-constraints.c | |
parent | 9fa1b6610bb2efe94d5b23bde7bd72dc82d2587c (diff) | |
download | gcc-28ed14605eba0b4978fa8158cc2bc3db75f16f5d.zip gcc-28ed14605eba0b4978fa8158cc2bc3db75f16f5d.tar.gz gcc-28ed14605eba0b4978fa8158cc2bc3db75f16f5d.tar.bz2 |
re PR inline-asm/84985 (ICE in match_reload, at lra-constraints.c:1068)
2018-03-29 Vladimir Makarov <vmakarov@redhat.com>
PR inline-asm/84985
* lra-constraints.c (process_alt_operands): Move setting
this_alternative_matches below.
2018-03-29 Vladimir Makarov <vmakarov@redhat.com>
PR inline-asm/84985
* gcc.target/i386/pr84985.c: New.
From-SVN: r258961
Diffstat (limited to 'gcc/lra-constraints.c')
-rw-r--r-- | gcc/lra-constraints.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lra-constraints.c b/gcc/lra-constraints.c index 0dd4787..5405c4d 100644 --- a/gcc/lra-constraints.c +++ b/gcc/lra-constraints.c @@ -2126,7 +2126,6 @@ process_alt_operands (int only_alternative) && curr_operand_mode[m] != curr_operand_mode[nop]) break; - this_alternative_matches = m; m_hregno = get_hard_regno (*curr_id->operand_loc[m], false); /* We are supposed to match a previous operand. If we do, we win if that one did. If we do @@ -2228,6 +2227,7 @@ process_alt_operands (int only_alternative) else did_match = true; + this_alternative_matches = m; /* This can be fixed with reloads if the operand we are supposed to match can be fixed with reloads. */ |