summaryrefslogtreecommitdiff
path: root/gas/frags.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2001-03-30 02:19:36 +0000
committerAlan Modra <amodra@bigpond.net.au>2001-03-30 02:19:36 +0000
commiteb1e36c3f47b779c445bba53e8325ff7fdc211d4 (patch)
treeb03fecd04335ec3ba03118a279b226c0b36ee72d /gas/frags.h
parent9c2ccf7ced01cf7332f2b2ed699b06d679b56930 (diff)
downloadbinutils-redhat-eb1e36c3f47b779c445bba53e8325ff7fdc211d4.tar.gz
Multi-pass relaxation machinery.
Diffstat (limited to 'gas/frags.h')
-rw-r--r--gas/frags.h20
1 files changed, 12 insertions, 8 deletions
diff --git a/gas/frags.h b/gas/frags.h
index e4cb0509db..df259b8fe5 100644
--- a/gas/frags.h
+++ b/gas/frags.h
@@ -43,8 +43,9 @@ struct obstack;
struct frag {
/* Object file address (as an octet offset). */
addressT fr_address;
- /* Chain forward; ascending address order. Rooted in frch_root. */
- struct frag *fr_next;
+ /* When relaxing multiple times, remember the address the frag had
+ in the last relax pass. */
+ addressT last_fr_address;
/* (Fixed) number of octets we know we have. May be 0. */
offsetT fr_fix;
@@ -52,12 +53,19 @@ struct frag {
The generic frag handling code no longer makes any use of fr_var. */
offsetT fr_var;
/* For variable-length tail. */
- symbolS *fr_symbol;
- /* For variable-length tail. */
offsetT fr_offset;
+ /* For variable-length tail. */
+ symbolS *fr_symbol;
/* Points to opcode low addr byte, for relaxation. */
char *fr_opcode;
+ /* Chain forward; ascending address order. Rooted in frch_root. */
+ struct frag *fr_next;
+
+ /* Where the frag was created, or where it became a variant frag. */
+ char *fr_file;
+ unsigned int fr_line;
+
#ifndef NO_LISTING
struct list_info_struct *line;
#endif
@@ -86,10 +94,6 @@ struct frag {
TC_FRAG_TYPE tc_frag_data;
#endif
- /* Where the frag was created, or where it became a variant frag. */
- char *fr_file;
- unsigned int fr_line;
-
/* Data begins here. */
char fr_literal[1];
};