aboutsummaryrefslogtreecommitdiff
path: root/gas/subsegs.h
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2006-11-03 07:27:39 +0000
committerJakub Jelinek <jakub@redhat.com>2006-11-03 07:27:39 +0000
commitae424f8246a09295cca8da6922c8ee781dec4fb1 (patch)
treedc0595939239755c531e979a13841c2b38726086 /gas/subsegs.h
parentb1e24c0220fe6718066991999cb0a6e5b88b569d (diff)
downloadgdb-ae424f8246a09295cca8da6922c8ee781dec4fb1.zip
gdb-ae424f8246a09295cca8da6922c8ee781dec4fb1.tar.gz
gdb-ae424f8246a09295cca8da6922c8ee781dec4fb1.tar.bz2
* subsegs.h (struct frchain): Add frch_cfi_data field.
* dw2gencfi.c: Include subsegs.h. (cur_fde_data, last_address, cur_cfa_offset, cfa_save_stack): Removed. (struct frch_cfi_data): New type. (unused_cfi_data): New variable. (alloc_fde_entry): Move cur_fde_data, last_address, cur_cfa_offset and cfa_save_stack static vars into a structure pointed from each frchain. (alloc_cfi_insn_data, cfi_new_fde, cfi_end_fde, cfi_set_return_column, cfi_add_advance_loc, cfi_add_CFA_def_cfa, cfi_add_CFA_def_cfa_offset, cfi_add_CFA_remember_state, cfi_add_CFA_restore_state, dot_cfi, dot_cfi_escape, dot_cfi_startproc, dot_cfi_endproc, cfi_finish): Likewise. * gas/cfi/cfi-common-5.d: New test. * gas/cfi/cfi-common-5.s: New. * gas/cfi/cfi.exp: Add cfi-common-5 test.
Diffstat (limited to 'gas/subsegs.h')
-rw-r--r--gas/subsegs.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/subsegs.h b/gas/subsegs.h
index f950285..54a5a6a 100644
--- a/gas/subsegs.h
+++ b/gas/subsegs.h
@@ -40,6 +40,8 @@
#include "obstack.h"
+struct frch_cfi_data;
+
struct frchain /* control building of a frag chain */
{ /* FRCH = FRagment CHain control */
struct frag *frch_root; /* 1st struct frag in chain, or NULL */
@@ -50,6 +52,7 @@ struct frchain /* control building of a frag chain */
fixS *fix_tail; /* Last fixup for this subsegment. */
struct obstack frch_obstack; /* for objects in this frag chain */
fragS *frch_frag_now; /* frag_now for this subsegment */
+ struct frch_cfi_data *frch_cfi_data;
};
typedef struct frchain frchainS;