diff options
author | John Healy <jhealy@redhat.com> | 2001-07-06 19:09:23 +0000 |
---|---|---|
committer | John Healy <jhealy@redhat.com> | 2001-07-06 19:09:23 +0000 |
commit | d751680f7ecc9323369909e41ad3455b8b3e49dd (patch) | |
tree | c25d7aaf0ece15c80041bb893e67889a48f38096 /gas/cgen.h | |
parent | 3dc0b4c6b15bb64bd2ac5b07ad67588fb4ac4014 (diff) | |
download | binutils-redhat-d751680f7ecc9323369909e41ad3455b8b3e49dd.tar.gz |
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.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/gas/cgen.h b/gas/cgen.h index b09ccaad3c..6f10da300e 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. |