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-vax.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-vax.c')
-rw-r--r-- | gas/config/tc-vax.c | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/gas/config/tc-vax.c b/gas/config/tc-vax.c index 3d76647..38896ed 100644 --- a/gas/config/tc-vax.c +++ b/gas/config/tc-vax.c @@ -289,11 +289,11 @@ md_end () void /* Knows about order of bytes in address. */ md_number_to_chars (con, value, nbytes) char con[]; /* Return 'nbytes' of chars here. */ - long value; /* The value of the bits. */ + valueT value; /* The value of the bits. */ int nbytes; /* Number of bytes in the output. */ { int n; - long v; + valueT v; n = nbytes; v = value; @@ -3175,11 +3175,11 @@ const int md_reloc_size = 8; /* Size of relocation record */ 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++ = 0x31; @@ -3189,11 +3189,11 @@ 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; { - long offset; + valueT offset; offset = to_addr - S_GET_VALUE (to_symbol); *ptr++ = 0x17; @@ -3258,10 +3258,13 @@ md_parse_option (argP, cntP, vecP) as_warn ("I don't use an interpass file! -V ignored"); break; -#ifdef VMS +#ifdef OBJ_VMS case '+': /* For g++ */ break; + case '1': /* For backward compatibility */ + break; + case 'h': /* No hashing of mixed-case names */ break; @@ -3298,10 +3301,10 @@ md_operand (expressionP) } /* Round up a section size to the appropriate boundary. */ -long +valueT md_section_align (segment, size) segT segment; - long size; + valueT size; { return size; /* Byte alignment is fine */ } |