mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-10 23:57:03 +08:00
* config/tc-sh.h (tc_init_after_args): Don't define.
* config/tc-sh.c (md_begin): Remove unused variable table. (md_assemble): Remove unused variable p. (md_convert_frag): Cast fr_address to unsigned long for printf. (md_apply_fix): Use as_warn_where rather than as_warn. (sh_init_after_args): Remove empty function.
This commit is contained in:
@ -1,5 +1,12 @@
|
|||||||
Mon Jan 23 14:07:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
|
Mon Jan 23 14:07:58 1995 Ian Lance Taylor <ian@sanguine.cygnus.com>
|
||||||
|
|
||||||
|
* config/tc-sh.h (tc_init_after_args): Don't define.
|
||||||
|
* config/tc-sh.c (md_begin): Remove unused variable table.
|
||||||
|
(md_assemble): Remove unused variable p.
|
||||||
|
(md_convert_frag): Cast fr_address to unsigned long for printf.
|
||||||
|
(md_apply_fix): Use as_warn_where rather than as_warn.
|
||||||
|
(sh_init_after_args): Remove empty function.
|
||||||
|
|
||||||
* configure.in (i386-*-gnu*elf*): New target.
|
* configure.in (i386-*-gnu*elf*): New target.
|
||||||
|
|
||||||
Sat Jan 21 19:02:23 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
|
Sat Jan 21 19:02:23 1995 Ian Lance Taylor <ian@tweedledumb.cygnus.com>
|
||||||
|
@ -28,7 +28,7 @@
|
|||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "subsegs.h"
|
#include "subsegs.h"
|
||||||
#define DEFINE_TABLE
|
#define DEFINE_TABLE
|
||||||
#include "../opcodes/sh-opc.h"
|
#include "opcodes/sh-opc.h"
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
const char comment_chars[] = "!";
|
const char comment_chars[] = "!";
|
||||||
const char line_separator_chars[] = ";";
|
const char line_separator_chars[] = ";";
|
||||||
@ -155,7 +155,6 @@ md_begin ()
|
|||||||
{
|
{
|
||||||
sh_opcode_info *opcode;
|
sh_opcode_info *opcode;
|
||||||
char *prev_name = "";
|
char *prev_name = "";
|
||||||
register relax_typeS *table;
|
|
||||||
|
|
||||||
opcode_hash_control = hash_new ();
|
opcode_hash_control = hash_new ();
|
||||||
|
|
||||||
@ -760,7 +759,6 @@ md_assemble (str)
|
|||||||
sh_opcode_info *opcode;
|
sh_opcode_info *opcode;
|
||||||
char name[20];
|
char name[20];
|
||||||
int nlen = 0;
|
int nlen = 0;
|
||||||
char *p;
|
|
||||||
/* Drop leading whitespace */
|
/* Drop leading whitespace */
|
||||||
while (*str == ' ')
|
while (*str == ' ')
|
||||||
str++;
|
str++;
|
||||||
@ -1145,8 +1143,8 @@ abort();
|
|||||||
|
|
||||||
if (donerelax && !relax)
|
if (donerelax && !relax)
|
||||||
{
|
{
|
||||||
as_warn ("Offset doesn't fit at 0x%x, trying to get to %s+0x%x",
|
as_warn ("Offset doesn't fit at 0x%lx, trying to get to %s+0x%x",
|
||||||
fragP->fr_address,
|
(unsigned long) fragP->fr_address,
|
||||||
fragP->fr_symbol ? S_GET_NAME(fragP->fr_symbol): "",
|
fragP->fr_symbol ? S_GET_NAME(fragP->fr_symbol): "",
|
||||||
targ_addr);
|
targ_addr);
|
||||||
}
|
}
|
||||||
@ -1219,7 +1217,7 @@ md_apply_fix (fixP, val)
|
|||||||
val += 3;
|
val += 3;
|
||||||
val /= 4;
|
val /= 4;
|
||||||
if (val & ~0xff)
|
if (val & ~0xff)
|
||||||
as_warn ("pcrel too far at %x\n", addr);
|
as_warn_where (fixP->fx_file, fixP->fx_line, "pcrel too far");
|
||||||
buf[lowbyte] = val;
|
buf[lowbyte] = val;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1232,7 +1230,7 @@ md_apply_fix (fixP, val)
|
|||||||
val++;*/
|
val++;*/
|
||||||
val /= 2;
|
val /= 2;
|
||||||
if (val & ~0xff)
|
if (val & ~0xff)
|
||||||
as_warn ("pcrel too far at %x\n", addr);
|
as_warn_where (fixP->fx_file, fixP->fx_line, "pcrel too far");
|
||||||
buf[lowbyte] = val;
|
buf[lowbyte] = val;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@ -1391,8 +1389,3 @@ tc_coff_sizemachdep (frag)
|
|||||||
{
|
{
|
||||||
return md_relax_table[frag->fr_subtype].rlx_length;
|
return md_relax_table[frag->fr_subtype].rlx_length;
|
||||||
}
|
}
|
||||||
|
|
||||||
int
|
|
||||||
sh_init_after_args()
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
Reference in New Issue
Block a user