* itbl-ops.c: Add test for itbl_have_entries.

* config/tc-mips.c: Remove test for itbl_have_entries.
	* config/tc-mips.h: Define tc_init_after_args to mips_init_after_args.
This commit is contained in:
Dawn Perchik
1997-02-23 23:46:12 +00:00
parent 7b9f3d46c6
commit 8d8a790b81
3 changed files with 20 additions and 5 deletions

View File

@ -1,3 +1,9 @@
Sun Feb 23 15:50:00 1997 Dawn Perchik <dawn@cygnus.com>
* itbl-ops.c: Add test for itbl_have_entries.
* config/tc-mips.c: Remove test for itbl_have_entries.
* config/tc-mips.h: Define tc_init_after_args to mips_init_after_args.
Sun Feb 23 18:13:19 1997 Ian Lance Taylor <ian@cygnus.com> Sun Feb 23 18:13:19 1997 Ian Lance Taylor <ian@cygnus.com>
* Makefile.in (DISTSTUFF): Remove itbl-parse.y, itbl-lex.l, and * Makefile.in (DISTSTUFF): Remove itbl-parse.y, itbl-lex.l, and

View File

@ -25,6 +25,11 @@
#define TC_MIPS #define TC_MIPS
/* Default to big endian. */
#ifndef TARGET_BYTES_BIG_ENDIAN
#define TARGET_BYTES_BIG_ENDIAN 1
#endif
#define TARGET_ARCH bfd_arch_mips #define TARGET_ARCH bfd_arch_mips
#define ONLY_STANDARD_ESCAPES #define ONLY_STANDARD_ESCAPES
@ -57,11 +62,6 @@ extern int mips_relax_frag PARAMS ((struct frag *, long));
embedded PIC code. */ embedded PIC code. */
#define DIFF_EXPR_OK #define DIFF_EXPR_OK
/* Default to big endian. */
#ifndef TARGET_BYTES_BIG_ENDIAN
#define TARGET_BYTES_BIG_ENDIAN 1
#endif
/* The endianness of the target format may change based on command /* The endianness of the target format may change based on command
line arguments. */ line arguments. */
#define TARGET_FORMAT mips_target_format() #define TARGET_FORMAT mips_target_format()
@ -78,6 +78,9 @@ struct mips_cl_insn
extern int tc_get_register PARAMS ((int frame)); extern int tc_get_register PARAMS ((int frame));
#define tc_init_after_args() mips_init_after_args()
extern void mips_init_after_args PARAMS ((void));
#define md_parse_long_option(arg) mips_parse_long_option (arg) #define md_parse_long_option(arg) mips_parse_long_option (arg)
extern int mips_parse_long_option PARAMS ((const char *)); extern int mips_parse_long_option PARAMS ((const char *));

View File

@ -286,6 +286,9 @@ itbl_init (void)
e_processor procn; e_processor procn;
e_type type; e_type type;
if (!itbl_have_entries)
return;
/* Since register names don't have a prefix, put them in the symbol table so /* Since register names don't have a prefix, put them in the symbol table so
they can't be used as symbols. This simplifies argument parsing as they can't be used as symbols. This simplifies argument parsing as
we can let gas parse registers for us. */ we can let gas parse registers for us. */
@ -329,6 +332,9 @@ append_insns_as_macros (void)
struct itbl_entry *e, **es; struct itbl_entry *e, **es;
int n, id, size, new_size, new_num_opcodes; int n, id, size, new_size, new_num_opcodes;
if (!itbl_have_entries)
return;
if (!itbl_num_opcodes) /* no new instructions to add! */ if (!itbl_num_opcodes) /* no new instructions to add! */
{ {
return; return;