summaryrefslogtreecommitdiff
path: root/gcc/config/i370/i370.c
diff options
context:
space:
mode:
authoraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-28 02:17:26 +0000
committeraoliva <aoliva@138bc75d-0d04-0410-961f-82ee72b054a4>2000-07-28 02:17:26 +0000
commit47fc0706efc3899bb63c2fa9a1e36fc77d988a8d (patch)
treeef8a8d9eb4fda8faa814cb484ce4a1e01ef25372 /gcc/config/i370/i370.c
parentbc7af38963b4b5186f45a61993821982bcd83134 (diff)
downloadgcc-47fc0706efc3899bb63c2fa9a1e36fc77d988a8d.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@35307 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/i370/i370.c')
-rw-r--r--gcc/config/i370/i370.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/config/i370/i370.c b/gcc/config/i370/i370.c
index ce13fe76b7e..2aa7d31ee25 100644
--- a/gcc/config/i370/i370.c
+++ b/gcc/config/i370/i370.c
@@ -328,7 +328,7 @@ i370_branch_dest (branch)
dest = XEXP (dest, 1);
dest = XEXP (dest, 0);
dest_uid = INSN_UID (dest);
- dest_addr = insn_addresses[dest_uid];
+ dest_addr = INSN_ADDRESSES (dest_uid);
/* next, record the address of this insn as the true addr of first ref */
{
@@ -349,7 +349,7 @@ i370_branch_length (insn)
rtx insn;
{
int here, there;
- here = insn_addresses[INSN_UID (insn)];
+ here = INSN_ADDRESSES (INSN_UID (insn));
there = i370_branch_dest (insn);
return (there - here);
}
@@ -407,13 +407,13 @@ i370_label_scan ()
for (insn = get_insns(); insn; insn = NEXT_INSN(insn))
{
- int here = insn_addresses[INSN_UID (insn)];
+ int here = INSN_ADDRESSES (INSN_UID (insn));
enum rtx_code code = GET_CODE(insn);
/* ??? adjust for tables embedded in the .text section that
* the compiler didn't take into account */
here += tablejump_offset;
- insn_addresses[INSN_UID (insn)] = here;
+ INSN_ADDRESSES (INSN_UID (insn)) = here;
/* check to see if this insn is a label ... */
if (CODE_LABEL == code)