summaryrefslogtreecommitdiff
path: root/gcc/df.h
diff options
context:
space:
mode:
authorhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-25 19:46:43 +0000
committerhubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4>2002-01-25 19:46:43 +0000
commit992c71386830a8942978bc0ae0836a92072572eb (patch)
treee0c0962c279aea5a858138daa5832989b12e2bf6 /gcc/df.h
parented0da988b9121d779d156d6027fc735854114bc2 (diff)
downloadlinaro-gcc-992c71386830a8942978bc0ae0836a92072572eb.tar.gz
linaro-gcc-992c71386830a8942978bc0ae0836a92072572eb.tar.bz2
linaro-gcc-992c71386830a8942978bc0ae0836a92072572eb.zip
* df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB argument.
* df.h (struct ref): Kill B. (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN. * basic-block.h (PROP_EQUAL_NOTES): New flag. * flow.c (propagate_one_insn): Use it. (mark_used_regs): Handle NIL. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49220 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/df.h')
-rw-r--r--gcc/df.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/df.h b/gcc/df.h
index 0a3f2d4f5ad..7f4e4be71ef 100644
--- a/gcc/df.h
+++ b/gcc/df.h
@@ -57,7 +57,6 @@ enum df_ref_flags
struct ref
{
rtx reg; /* The register referenced. */
- basic_block bb; /* BB containing ref. */
rtx insn; /* Insn containing ref. */
rtx *loc; /* Loc is the location of the reg. */
struct df_link *chain; /* Head of def-use or use-def chain. */
@@ -175,8 +174,8 @@ struct df_map
#define DF_REF_REG(REF) ((REF)->reg)
#define DF_REF_LOC(REF) ((REF)->loc)
#endif
-#define DF_REF_BB(REF) ((REF)->bb)
-#define DF_REF_BBNO(REF) ((REF)->bb->index)
+#define DF_REF_BB(REF) (BLOCK_FOR_INSN ((REF)->insn))
+#define DF_REF_BBNO(REF) (BLOCK_FOR_INSN ((REF)->insn)->index)
#define DF_REF_INSN(REF) ((REF)->insn)
#define DF_REF_INSN_UID(REF) (INSN_UID ((REF)->insn))
#define DF_REF_TYPE(REF) ((REF)->type)