aboutsummaryrefslogtreecommitdiff
path: root/gas/write.c
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/write.c
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/write.c')
-rw-r--r--gas/write.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/write.c b/gas/write.c
index 5acd607..509596f 100644
--- a/gas/write.c
+++ b/gas/write.c
@@ -1,6 +1,6 @@
/* write.c - emit .o file
Copyright 1986, 1987, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997,
- 1998, 1999, 2000, 2001, 2002, 2003
+ 1998, 1999, 2000, 2001, 2002, 2003, 2004
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -616,6 +616,9 @@ cvt_frag_to_fill (object_headers *headersP, segT sec, fragS *fragP)
BAD_CASE (fragP->fr_type);
break;
}
+#ifdef md_frag_check
+ md_frag_check (fragP);
+#endif
}
#endif /* defined (BFD_ASSEMBLER) || !defined (BFD) */