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-tahoe.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-tahoe.c')
-rw-r--r-- | gas/config/tc-tahoe.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gas/config/tc-tahoe.c b/gas/config/tc-tahoe.c index 6897623..7bd97b5 100644 --- a/gas/config/tc-tahoe.c +++ b/gas/config/tc-tahoe.c @@ -455,11 +455,11 @@ md_parse_option (argP, cntP, vecP) void /* Knows about order of bytes in address. */ md_number_to_chars (con, value, nbytes) char con[]; /* Return 'nbytes' of chars here. */ - long int value; /* The value of the bits. */ + valueT value; /* The value of the bits. */ int nbytes; /* Number of bytes in the output. */ { int n = nbytes; - long int v = value; + valueT v = value; con += nbytes - 1; /* Tahoes is (Bleah!) big endian */ while (nbytes--) @@ -595,11 +595,11 @@ const int md_short_jump_size = 3; void md_create_short_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; { - long offset; + valueT offset; offset = to_addr - (from_addr + 1); *ptr++ = TAHOE_BRW; @@ -612,11 +612,11 @@ const int md_reloc_size = 8; /* Size of relocation record */ 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; { - long offset; + valueT offset; offset = to_addr - (from_addr + 4); *ptr++ = TAHOE_JMP; @@ -2044,10 +2044,10 @@ md_operand (expressionP) } /* md_operand() */ /* Round up a section size to the appropriate boundary. */ -long +valueT md_section_align (segment, size) segT segment; - long size; + valueT size; { return ((size + 7) & ~7); /* Round all sects to multiple of 8 */ } /* md_section_align() */ |