diff options
author | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-05-12 11:13:25 +0000 |
---|---|---|
committer | kenner <kenner@138bc75d-0d04-0410-961f-82ee72b054a4> | 1995-05-12 11:13:25 +0000 |
commit | 5d13fcf0cf7516b3a3f63ff0704aed47bdb1725f (patch) | |
tree | 84ebf32140cd67e0da04998ec1e2bc70d07148d3 /gcc/genattrtab.c | |
parent | a8f45739347a30486751fcf33b6f12b12ce2d767 (diff) | |
download | gcc-5d13fcf0cf7516b3a3f63ff0704aed47bdb1725f.tar.gz |
(write_test_expr, case MATCH_DUP): Use operands[N] instead of
JUMP_LABEL (which may not be set).
(walk_attr_value, case MATCH_DUP): Set must_extract.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@9640 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r-- | gcc/genattrtab.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c index 29a40385ca2..b71c15c82bf 100644 --- a/gcc/genattrtab.c +++ b/gcc/genattrtab.c @@ -4487,7 +4487,7 @@ write_test_expr (exp, in_comparison) /* The address of the branch target. */ case MATCH_DUP: - printf ("insn_addresses[INSN_UID (JUMP_LABEL (insn))]"); + printf ("insn_addresses[INSN_UID (operands[%d])]", XINT (exp, 0)); break; /* The address of the current insn. It would be more consistent with @@ -4592,6 +4592,10 @@ walk_attr_value (exp) return; case MATCH_DUP: + must_extract = 1; + address_used = 1; + return; + case PC: address_used = 1; return; |