aboutsummaryrefslogtreecommitdiff
path: root/gas/frags.h
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-10-17 20:21:45 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-10-17 20:21:45 +0000
commite6c774b42adff3c63cb512132d9a7c40ca99be72 (patch)
tree9bf9eceade177e288c05e6277411d7255b540a63 /gas/frags.h
parentea20a7da87b245e4eb49ccc0688b9052c8815fe1 (diff)
downloadgdb-e6c774b42adff3c63cb512132d9a7c40ca99be72.zip
gdb-e6c774b42adff3c63cb512132d9a7c40ca99be72.tar.gz
gdb-e6c774b42adff3c63cb512132d9a7c40ca99be72.tar.bz2
2000-10-17 Kazu Hirata <kazu@hxi.com>
* debug.c: Fix formatting. * depend.c: Likewise. * dwarf2dbg.c: Likewise. * dwarf2dbg.h: Likewise. * ecoff.c: Likewise. * expr.c: Likewise. * expr.h: Likewise. * flonum-konst.c: Likewise. * frags.h: Likewise.
Diffstat (limited to 'gas/frags.h')
-rw-r--r--gas/frags.h57
1 files changed, 26 insertions, 31 deletions
diff --git a/gas/frags.h b/gas/frags.h
index 5543136..877074b 100644
--- a/gas/frags.h
+++ b/gas/frags.h
@@ -26,24 +26,21 @@
struct obstack;
#endif
-/*
- * A code fragment (frag) is some known number of chars, followed by some
- * unknown number of chars. Typically the unknown number of chars is an
- * instruction address whose size is yet unknown. We always know the greatest
- * possible size the unknown number of chars may become, and reserve that
- * much room at the end of the frag.
- * Once created, frags do not change address during assembly.
- * We chain the frags in (a) forward-linked list(s). The object-file address
- * of the 1st char of a frag is generally not known until after relax().
- * Many things at assembly time describe an address by {object-file-address
- * of a particular frag}+offset.
-
- BUG: it may be smarter to have a single pointer off to various different
- notes for different frag kinds. See how code pans
- */
-
-struct frag
-{
+/* A code fragment (frag) is some known number of chars, followed by some
+ unknown number of chars. Typically the unknown number of chars is an
+ instruction address whose size is yet unknown. We always know the greatest
+ possible size the unknown number of chars may become, and reserve that
+ much room at the end of the frag.
+ Once created, frags do not change address during assembly.
+ We chain the frags in (a) forward-linked list(s). The object-file address
+ of the 1st char of a frag is generally not known until after relax().
+ Many things at assembly time describe an address by {object-file-address
+ of a particular frag}+offset.
+
+ BUG: it may be smarter to have a single pointer off to various different
+ notes for different frag kinds. See how code pans. */
+
+struct frag {
/* Object file address (as an octet offset). */
addressT fr_address;
/* Chain forward; ascending address order. Rooted in frch_root. */
@@ -94,7 +91,7 @@ struct frag
};
#define SIZEOF_STRUCT_FRAG \
-((char *)zero_address_frag.fr_literal-(char *)&zero_address_frag)
+((char *) zero_address_frag.fr_literal - (char *) &zero_address_frag)
/* We want to say fr_literal[0] above. */
/* Current frag we are building. This frag is incomplete. It is,
@@ -110,18 +107,16 @@ COMMON fragS zero_address_frag;
COMMON fragS bss_address_frag;
#if 0
-/*
- * A macro to speed up appending exactly 1 char
- * to current frag.
- */
-/* JF changed < 1 to <= 1 to avoid a race conditon */
-#define FRAG_APPEND_1_CHAR(datum) \
-{ \
- if (obstack_room( &frags ) <= 1) {\
- frag_wane (frag_now); \
- frag_new (0); \
- } \
- obstack_1grow( &frags, datum ); \
+/* A macro to speed up appending exactly 1 char to current frag. */
+/* JF changed < 1 to <= 1 to avoid a race conditon. */
+#define FRAG_APPEND_1_CHAR(datum) \
+{ \
+ if (obstack_room (&frags) <= 1) \
+ { \
+ frag_wane (frag_now); \
+ frag_new (0); \
+ } \
+ obstack_1grow (&frags, datum); \
}
#else
extern void frag_append_1_char PARAMS ((int));