aboutsummaryrefslogtreecommitdiff
path: root/gas/cgen.h
diff options
context:
space:
mode:
authorJohn Healy <jhealy@redhat.com>2001-07-06 19:09:23 +0000
committerJohn Healy <jhealy@redhat.com>2001-07-06 19:09:23 +0000
commit002de68b31ef4c555e876fa30d1d154bc60d8e45 (patch)
treeb24a69f301bd41372d7959a1020c61b8c095a4c9 /gas/cgen.h
parentb1aeb4c5a3e17984e4333b45608293ba06ee8085 (diff)
downloadgdb-002de68b31ef4c555e876fa30d1d154bc60d8e45.zip
gdb-002de68b31ef4c555e876fa30d1d154bc60d8e45.tar.gz
gdb-002de68b31ef4c555e876fa30d1d154bc60d8e45.tar.bz2
2001-07-06 John Healy <jhealy@redhat.com>
* cgen.c (gas_cgen_save_fixups): Modified to allow more than one set of fixups to be stored. (gas_cgen_restore_fixups): Modified to allow the fixup chain to be restored to be chosen from any that are saved. (gas_cgen_swap_fixups): Modified to allow the current set of fixups to be swapped with any other set that has been saved. (gas_cgen_initialize_saved_fixups_array): New routine. * cgen.h: Modifed prototypes for gas_cgen_save_fixups, gas_cgen_restore_fixups, and gas_cgen_swap_fixups. Added definitions or MAX_SAVED_FIXUP_CHAINS. * config/tc-m32r.c (assemble_two_insns): Changed calls to fixup store, swap and restore fuctions to reflect the new interface.
Diffstat (limited to 'gas/cgen.h')
-rw-r--r--gas/cgen.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/cgen.h b/gas/cgen.h
index b09ccaa..6f10da3 100644
--- a/gas/cgen.h
+++ b/gas/cgen.h
@@ -53,9 +53,12 @@ extern const char * gas_cgen_parse_operand
/* Call this from md_assemble to initialize the assembler callback. */
extern void gas_cgen_init_parse PARAMS ((void));
-extern void gas_cgen_save_fixups PARAMS ((void));
-extern void gas_cgen_restore_fixups PARAMS ((void));
-extern void gas_cgen_swap_fixups PARAMS ((void));
+/* Routines and macros for saving fixup chains. */
+extern void gas_cgen_save_fixups PARAMS ((int));
+extern void gas_cgen_restore_fixups PARAMS ((int));
+extern void gas_cgen_swap_fixups PARAMS ((int));
+extern void gas_cgen_initialize_saved_fixups_array PARAMS ((void));
+#define MAX_SAVED_FIXUP_CHAINS 50
/* Add a register to the assembler's hash table.
This makes lets GAS parse registers for us.