aboutsummaryrefslogtreecommitdiff
path: root/gcc/genattrtab.c
diff options
context:
space:
mode:
authorAlexandre Oliva <aoliva@redhat.com>2000-07-28 02:17:26 +0000
committerAlexandre Oliva <aoliva@gcc.gnu.org>2000-07-28 02:17:26 +0000
commit9d98a69423a0bf6d7f6c33f1f05f70c74282d65b (patch)
treeef8a8d9eb4fda8faa814cb484ce4a1e01ef25372 /gcc/genattrtab.c
parentb87487b66a26b2db805a02e59b25bffb9438fb14 (diff)
downloadgcc-9d98a69423a0bf6d7f6c33f1f05f70c74282d65b.zip
gcc-9d98a69423a0bf6d7f6c33f1f05f70c74282d65b.tar.gz
gcc-9d98a69423a0bf6d7f6c33f1f05f70c74282d65b.tar.bz2
Makefile.in (INSN_ATTR_H): New macro.
* Makefile.in (INSN_ATTR_H): New macro. Replace all dependencies on insn-attr.h with it. * genattr.c: Generate `#include "insn-addr.h"' if HAVE_ATTR_length. * insn-addr.h: New header. (insn_addresses_): Renamed from insn_addresses. (INSN_ADDRESSES_DEFN, INSN_ADDRESSES, INSN_ADDRESSES_ALLOC, INSN_ADDRESSES_FREE, INSN_ADDRESSES_SET_P, INSN_ADDRESSES_SIZE, INSN_ADDRESSES_NEW): New macros. * genattrtab.c (write_test_expr): Use new macros. * final.c (insn_addresses, init_insn_lengths): Likewise. (align_fuzz, shorten_branches): Likewise. (final): Likewise. Do not reject new insns if their addresses have been added to INSN_ADDRESSES. * config/arm/arm.c, config/avr/avr.c: Use new macros. * config/h8300/h8300.c, config/i370/i370.c: Likewise. * config/m88k/m88k.c, config/pa/pa.c, config/pa/pa.md: Likewise. * config/sparc/sparc.c, config/sparc/sparc.md: Likewise. * config/sh/sh.c: Likewise. (output_branchy_insn): Use INSN_ADDRESSES_NEW. From-SVN: r35307
Diffstat (limited to 'gcc/genattrtab.c')
-rw-r--r--gcc/genattrtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/genattrtab.c b/gcc/genattrtab.c
index 5b4d656..153c278 100644
--- a/gcc/genattrtab.c
+++ b/gcc/genattrtab.c
@@ -4662,7 +4662,7 @@ write_test_expr (exp, flags)
/* The address of the branch target. */
case MATCH_DUP:
- printf ("insn_addresses[INSN_UID (GET_CODE (operands[%d]) == LABEL_REF ? XEXP (operands[%d], 0) : operands[%d])]",
+ printf ("INSN_ADDRESSES (INSN_UID (GET_CODE (operands[%d]) == LABEL_REF ? XEXP (operands[%d], 0) : operands[%d]))",
XINT (exp, 0), XINT (exp, 0), XINT (exp, 0));
break;