diff options
author | Ian Lance Taylor <ian@airs.com> | 1997-03-20 19:08:35 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1997-03-20 19:08:35 +0000 |
commit | f59fb6cac7bc06f04074c4cf33f7794f4ab887df (patch) | |
tree | 184fd3a2f5c50f565e5f31c3bb2cefd44aca45c0 /gas/config/tc-i386.c | |
parent | 65b784d8a5fca993bea9d5eb513282d47e1d1d13 (diff) | |
download | gdb-f59fb6cac7bc06f04074c4cf33f7794f4ab887df.zip gdb-f59fb6cac7bc06f04074c4cf33f7794f4ab887df.tar.gz gdb-f59fb6cac7bc06f04074c4cf33f7794f4ab887df.tar.bz2 |
Thu Mar 20 13:42:01 1997 H.J. Lu <hjl@lucon.org>
* frags.c (frag_var): Change offset parameter to offsetT.
(frag_variant): Likewise.
* frags.h (frag_variant, frag_var): Update declarations.
* config/tc-m68k.c (struct m68k_it): Change foff field to
offsetT.
(add_frag): Change off parameter to offsetT.
* Several files: Add casts to calls to frag_var.
Diffstat (limited to 'gas/config/tc-i386.c')
-rw-r--r-- | gas/config/tc-i386.c | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/gas/config/tc-i386.c b/gas/config/tc-i386.c index 7f04277..3d562cd 100644 --- a/gas/config/tc-i386.c +++ b/gas/config/tc-i386.c @@ -37,6 +37,18 @@ #define TC_RELOC(X,Y) (Y) #endif +static unsigned long mode_from_disp_size PARAMS ((unsigned long)); +static int fits_in_signed_byte PARAMS ((long)); +static int fits_in_unsigned_byte PARAMS ((long)); +static int fits_in_unsigned_word PARAMS ((long)); +static int fits_in_signed_word PARAMS ((long)); +static int smallest_imm_type PARAMS ((long)); +static void set_16bit_code_flag PARAMS ((int)); +#ifdef BFD_ASSEMBLER +static bfd_reloc_code_real_type reloc + PARAMS ((int, int, bfd_reloc_code_real_type)); +#endif + /* 'md_assemble ()' gathers together information and puts it into a i386_insn. */ @@ -409,7 +421,8 @@ smallest_imm_type (num) : (Imm32)); } /* smallest_imm_type() */ -void set_16bit_code_flag(new_16bit_code_flag) +static void +set_16bit_code_flag (new_16bit_code_flag) int new_16bit_code_flag; { flag_16bit_code = new_16bit_code_flag; @@ -1679,7 +1692,7 @@ md_assemble (line) ? ENCODE_RELAX_STATE (UNCOND_JUMP, BYTE) : ENCODE_RELAX_STATE (COND_JUMP, BYTE)), i.disps[0]->X_add_symbol, - (long) n, p); + (offsetT) n, p); } } else if (t->opcode_modifier & (JumpByte | JumpDword)) |