diff options
author | Mark Eichin <eichin@cygnus> | 1993-07-12 19:42:32 +0000 |
---|---|---|
committer | Mark Eichin <eichin@cygnus> | 1993-07-12 19:42:32 +0000 |
commit | 025b0302439df01169c7d9cb06493bbb53c7ce6b (patch) | |
tree | 25846278d32fbd19b92cdd1fc69ffac86a0d6f23 /gas/config/tc-z8k.c | |
parent | d723cd17d5f3e2db2f32bee905f0632fba4389cf (diff) | |
download | gdb-025b0302439df01169c7d9cb06493bbb53c7ce6b.zip gdb-025b0302439df01169c7d9cb06493bbb53c7ce6b.tar.gz gdb-025b0302439df01169c7d9cb06493bbb53c7ce6b.tar.bz2 |
fix definitions of md_create_long_jump, md_create_short_jump,
md_number_to_chars, and md_section_align to correctly use valueT and addressT
Diffstat (limited to 'gas/config/tc-z8k.c')
-rw-r--r-- | gas/config/tc-z8k.c | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/gas/config/tc-z8k.c b/gas/config/tc-z8k.c index 44eaeeb..2fcc3f1 100644 --- a/gas/config/tc-z8k.c +++ b/gas/config/tc-z8k.c @@ -27,10 +27,8 @@ #include "../opcodes/z8k-opc.h" #include "as.h" -#include "read.h" #include "bfd.h" #include <ctype.h> -#include "listing.h" const char comment_chars[] = {'!', 0}; @@ -41,7 +39,7 @@ const char line_comment_chars[] = { '#', 0}; extern int machine; extern int coff_flags; int segmented_mode; -int md_reloc_size; +const int md_reloc_size; /* This table describes all the machine specific pseudo-ops the assembler has to support. The fields are: @@ -1170,8 +1168,8 @@ tc_aout_fix_to_chars () void md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol) char *ptr; - long from_addr; - long to_addr; + addressT from_addr; + addressT to_addr; fragS *frag; symbolS *to_symbol; { @@ -1181,7 +1179,7 @@ md_create_short_jump (ptr, from_addr, to_addr, frag, to_symbol) void md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol) char *ptr; - long from_addr, to_addr; + addressT from_addr, to_addr; fragS *frag; symbolS *to_symbol; { @@ -1198,10 +1196,10 @@ md_convert_frag (headers, fragP) abort (); } -long +valueT DEFUN (md_section_align, (seg, size), segT seg AND - long size) + valueT size) { return ((size + (1 << section_alignment[(int) seg]) - 1) & (-1 << section_alignment[(int) seg])); @@ -1274,7 +1272,7 @@ md_estimate_size_before_relax (fragP, segment_type) void DEFUN (md_number_to_chars, (ptr, use, nbytes), char *ptr AND - long use AND + valueT use AND int nbytes) { switch (nbytes) |