projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rx: make field type enum
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-dlx.c
diff --git
a/gas/config/tc-dlx.c
b/gas/config/tc-dlx.c
index 955a457212a34b6d4d3a11dfbb526e9d53a8f0e3..03e8de9ea25ce9668841e59f0c4633a019f57162 100644
(file)
--- a/
gas/config/tc-dlx.c
+++ b/
gas/config/tc-dlx.c
@@
-1,5
+1,5
@@
/* tc-dlx.c -- Assemble for the DLX
/* tc-dlx.c -- Assemble for the DLX
- Copyright (C) 2002-201
5
Free Software Foundation, Inc.
+ Copyright (C) 2002-201
6
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-52,7
+52,7
@@
struct machine_it
int pcrel;
int size;
int reloc_offset; /* Offset of reloc within insn. */
int pcrel;
int size;
int reloc_offset; /* Offset of reloc within insn. */
-
int
reloc;
+
bfd_reloc_code_real_type
reloc;
int HI;
int LO;
}
int HI;
int LO;
}
@@
-84,7
+84,7
@@
const char EXP_CHARS[] = "eE";
const char FLT_CHARS[] = "rRsSfFdDxXpP";
static void
const char FLT_CHARS[] = "rRsSfFdDxXpP";
static void
-insert_sreg (char *regname, int regnum)
+insert_sreg (c
onst c
har *regname, int regnum)
{
/* Must be large enough to hold the names of the special registers. */
char buf[80];
{
/* Must be large enough to hold the names of the special registers. */
char buf[80];
@@
-153,7
+153,7
@@
match_sft_register (char *name)
#define MAX_REG_NO 35
/* Currently we have 35 software registers defined -
we borrowed from MIPS. */
#define MAX_REG_NO 35
/* Currently we have 35 software registers defined -
we borrowed from MIPS. */
- static char *soft_reg[] =
+ static c
onst c
har *soft_reg[] =
{
"zero", "at", "v0", "v1", "a0", "a1", "a2", "a3",
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9",
{
"zero", "at", "v0", "v1", "a0", "a1", "a2", "a3",
"t0", "t1", "t2", "t3", "t4", "t5", "t6", "t7", "t8", "t9",
@@
-245,7
+245,7
@@
s_proc (int end_p)
if (leading_char)
{
unsigned len = strlen (name) + 1;
if (leading_char)
{
unsigned len = strlen (name) + 1;
- label =
xmalloc (
len + 1);
+ label =
XNEWVEC (char,
len + 1);
label[0] = leading_char;
memcpy (label + 1, name, len);
}
label[0] = leading_char;
memcpy (label + 1, name, len);
}
@@
-930,7
+930,7
@@
md_assemble (char *str)
switch (fixP->fx_r_type)
{
case RELOC_DLX_REL26:
switch (fixP->fx_r_type)
{
case RELOC_DLX_REL26:
- bitP =
malloc (sizeof (bit_fixS)
);
+ bitP =
XNEW (bit_fixS
);
bitP->fx_bit_size = 26;
bitP->fx_bit_offset = 25;
bitP->fx_bit_base = the_insn.opcode & 0xFC000000;
bitP->fx_bit_size = 26;
bitP->fx_bit_offset = 25;
bitP->fx_bit_base = the_insn.opcode & 0xFC000000;
@@
-942,7
+942,7
@@
md_assemble (char *str)
break;
case RELOC_DLX_LO16:
case RELOC_DLX_REL16:
break;
case RELOC_DLX_LO16:
case RELOC_DLX_REL16:
- bitP =
malloc (sizeof (bit_fixS)
);
+ bitP =
XNEW (bit_fixS
);
bitP->fx_bit_size = 16;
bitP->fx_bit_offset = 15;
bitP->fx_bit_base = the_insn.opcode & 0xFFFF0000;
bitP->fx_bit_size = 16;
bitP->fx_bit_offset = 15;
bitP->fx_bit_base = the_insn.opcode & 0xFFFF0000;
@@
-953,7
+953,7
@@
md_assemble (char *str)
fixP->fx_bit_fixP = bitP;
break;
case RELOC_DLX_HI16:
fixP->fx_bit_fixP = bitP;
break;
case RELOC_DLX_HI16:
- bitP =
malloc (sizeof (bit_fixS)
);
+ bitP =
XNEW (bit_fixS
);
bitP->fx_bit_size = 16;
bitP->fx_bit_offset = 15;
bitP->fx_bit_base = the_insn.opcode & 0xFFFF0000;
bitP->fx_bit_size = 16;
bitP->fx_bit_offset = 15;
bitP->fx_bit_base = the_insn.opcode & 0xFFFF0000;
@@
-974,7
+974,7
@@
md_assemble (char *str)
but I'm not sure. Dlx will not use it anyway, so I just leave it
here for now. */
but I'm not sure. Dlx will not use it anyway, so I just leave it
here for now. */
-char *
+c
onst c
har *
md_atof (int type, char *litP, int *sizeP)
{
return ieee_md_atof (type, litP, sizeP, TRUE);
md_atof (int type, char *litP, int *sizeP)
{
return ieee_md_atof (type, litP, sizeP, TRUE);
@@
-1076,7
+1076,7
@@
size_t md_longopts_size = sizeof (md_longopts);
int
md_parse_option (int c ATTRIBUTE_UNUSED,
int
md_parse_option (int c ATTRIBUTE_UNUSED,
- char *arg ATTRIBUTE_UNUSED)
+ c
onst c
har *arg ATTRIBUTE_UNUSED)
{
return 0;
}
{
return 0;
}
@@
-1187,7
+1187,7
@@
tc_gen_reloc (asection *section ATTRIBUTE_UNUSED,
{
arelent * reloc;
{
arelent * reloc;
- reloc =
xmalloc (sizeof (arelent)
);
+ reloc =
XNEW (arelent
);
reloc->howto = bfd_reloc_type_lookup (stdoutput, fixP->fx_r_type);
if (reloc->howto == NULL)
reloc->howto = bfd_reloc_type_lookup (stdoutput, fixP->fx_r_type);
if (reloc->howto == NULL)
@@
-1201,7
+1201,7
@@
tc_gen_reloc (asection *section ATTRIBUTE_UNUSED,
gas_assert (!fixP->fx_pcrel == !reloc->howto->pc_relative);
gas_assert (!fixP->fx_pcrel == !reloc->howto->pc_relative);
- reloc->sym_ptr_ptr =
xmalloc (sizeof (asymbol *)
);
+ reloc->sym_ptr_ptr =
XNEW (asymbol *
);
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy);
reloc->address = fixP->fx_frag->fr_address + fixP->fx_where;
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy);
reloc->address = fixP->fx_frag->fr_address + fixP->fx_where;
This page took
0.029013 seconds
and
4
git commands to generate.