diff options
author | Ian Lance Taylor <ian@airs.com> | 1993-07-09 18:31:36 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1993-07-09 18:31:36 +0000 |
commit | 332fc09ff02293c88cc1e74f0ff20e222e299162 (patch) | |
tree | 8434ac676fb24a5f92b5438a7217daa29b3b3a86 /gas | |
parent | 3ae135ab3b2d0eeae71ae510d79c511279ffb37d (diff) | |
download | gdb-332fc09ff02293c88cc1e74f0ff20e222e299162.zip gdb-332fc09ff02293c88cc1e74f0ff20e222e299162.tar.gz gdb-332fc09ff02293c88cc1e74f0ff20e222e299162.tar.bz2 |
Clean up some of the obvious m88k bitrot.
It still doesn't actually compile, though.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-m88k.c | 24 | ||||
-rw-r--r-- | gas/config/tc-m88k.h | 8 |
2 files changed, 16 insertions, 16 deletions
diff --git a/gas/config/tc-m88k.c b/gas/config/tc-m88k.c index 237f49e..9f3a8e4 100644 --- a/gas/config/tc-m88k.c +++ b/gas/config/tc-m88k.c @@ -208,13 +208,13 @@ md_begin () } } -void +int md_parse_option (argP, cntP, vecP) char **argP; int *cntP; char ***vecP; { - as_warn ("unknown option: -%s", *argP); + return 0; } void @@ -924,7 +924,7 @@ getval (param, valp) void md_number_to_chars (buf, val, nbytes) char *buf; - int val; + valueT val; int nbytes; { switch (nbytes) @@ -1100,11 +1100,11 @@ int md_short_jump_size = 4; 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; { - ptr[0] = 0xc0; + ptr[0] = (char) 0xc0; ptr[1] = 0x00; ptr[2] = 0x00; ptr[3] = 0x00; @@ -1123,11 +1123,11 @@ int md_long_jump_size = 4; 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; { - ptr[0] = 0xc0; + ptr[0] = (char) 0xc0; ptr[1] = 0x00; ptr[2] = 0x00; ptr[3] = 0x00; @@ -1144,7 +1144,7 @@ md_create_long_jump (ptr, from_addr, to_addr, frag, to_symbol) int md_estimate_size_before_relax (fragP, segment_type) fragS *fragP; - int segment_type; + segT segment_type; { as_fatal ("Relaxation should never occur"); } @@ -1153,13 +1153,6 @@ const relax_typeS md_relax_table[] = {0}; void -md_convert_frag (fragP) - fragS *fragP; -{ - as_fatal ("Relaxation should never occur"); -} - -void md_end () { } @@ -1228,7 +1221,6 @@ s_bss () char *p; int temp, bss_align; symbolS *symbolP; - extern const char is_end_of_line[256]; name = input_line_pointer; c = get_symbol_end (); diff --git a/gas/config/tc-m88k.h b/gas/config/tc-m88k.h index 8c32449..677cdb7 100644 --- a/gas/config/tc-m88k.h +++ b/gas/config/tc-m88k.h @@ -20,6 +20,8 @@ You should have received a copy of the GNU General Public License along with GAS; see the file COPYING. If not, write to the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ +#define NEED_FX_R_TYPE + /* different type of relocation available in the m88k */ enum reloc_type @@ -47,3 +49,9 @@ struct reloc_info_m88k #define LOCAL_LABEL(name) (name[0] =='@' \ && ( name [1] == 'L' || name [1] == '.' )) + +#ifndef BFD_ASSEMBLER +#define md_convert_frag(h,f) {as_fatal ("m88k convert_frag\n");} +#else +#define md_convert_frag(b,s,f) {as_fatal ("m88k convert_frag\n");} +#endif |