aboutsummaryrefslogtreecommitdiff
path: root/gas/frags.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-07-02 06:40:19 +0000
committerAlan Modra <amodra@gmail.com>2004-07-02 06:40:19 +0000
commit09b935accc9deb1b914b33090205574cee66b158 (patch)
treed8c12f33a7f61db10bcf5f1ee72827ac26778acb /gas/frags.h
parentd205ad70f2ce07f7cbe9debc8bc1859981613bb5 (diff)
downloadgdb-09b935accc9deb1b914b33090205574cee66b158.zip
gdb-09b935accc9deb1b914b33090205574cee66b158.tar.gz
gdb-09b935accc9deb1b914b33090205574cee66b158.tar.bz2
* frags.h (struct frag): Add has_code and insn_addr fields.
* write.c (cvt_frag_to_fill): Invoke md_frag_check. * config/tc-ppc.c (md_assemble): Check and set insn_addr. * config/tc-ppc.h (md_frag_check): Define.
Diffstat (limited to 'gas/frags.h')
-rw-r--r--gas/frags.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/gas/frags.h b/gas/frags.h
index 52a6cfe..a3bd522 100644
--- a/gas/frags.h
+++ b/gas/frags.h
@@ -1,6 +1,6 @@
/* frags.h - Header file for the frag concept.
- Copyright 1987, 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001
- Free Software Foundation, Inc.
+ Copyright 1987, 1992, 1993, 1994, 1995, 1997, 1998, 1999, 2000, 2001,
+ 2002, 2003, 2004 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -74,6 +74,11 @@ struct frag {
fr_address has been adjusted. */
unsigned int relax_marker:1;
+ /* Used to ensure that all insns are emitted on proper address
+ boundaries. */
+ unsigned int has_code:1;
+ unsigned int insn_addr:6;
+
/* What state is my tail in? */
relax_stateT fr_type;
relax_substateT fr_subtype;