projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
d30v: make var type operatorT
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-d30v.c
diff --git
a/gas/config/tc-d30v.c
b/gas/config/tc-d30v.c
index 9076e4125c427387818853b97ddd6eb9fd83e723..8961e49dd34ef2b0ffc676bc179f954c9ea5e0d6 100644
(file)
--- a/
gas/config/tc-d30v.c
+++ b/
gas/config/tc-d30v.c
@@
-1,5
+1,5
@@
/* tc-d30v.c -- Assembler code for the Mitsubishi D30V
/* tc-d30v.c -- Assembler code for the Mitsubishi D30V
- Copyright (C) 1997-201
4
Free Software Foundation, Inc.
+ Copyright (C) 1997-201
6
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-245,7
+245,7
@@
md_show_usage (FILE *stream)
}
int
}
int
-md_parse_option (int c, char *arg ATTRIBUTE_UNUSED)
+md_parse_option (int c, c
onst c
har *arg ATTRIBUTE_UNUSED)
{
switch (c)
{
{
switch (c)
{
@@
-285,7
+285,7
@@
md_undefined_symbol (char *name ATTRIBUTE_UNUSED)
return 0;
}
return 0;
}
-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);
@@
-303,7
+303,7
@@
valueT
md_section_align (asection *seg, valueT addr)
{
int align = bfd_get_section_alignment (stdoutput, seg);
md_section_align (asection *seg, valueT addr)
{
int align = bfd_get_section_alignment (stdoutput, seg);
- return ((addr + (1 << align) - 1) &
(-
1 << align));
+ return ((addr + (1 << align) - 1) &
-(
1 << align));
}
void
}
void
@@
-1158,7
+1158,7
@@
find_format (struct d30v_opcode *opcode,
{
int flags = d30v_operand_table[fm->operands[j]].flags;
int bits = d30v_operand_table[fm->operands[j]].bits;
{
int flags = d30v_operand_table[fm->operands[j]].flags;
int bits = d30v_operand_table[fm->operands[j]].bits;
-
int
X_op = myops[j].X_op;
+
operatorT
X_op = myops[j].X_op;
int num = myops[j].X_add_number;
if (flags & OPERAND_SPECIAL)
int num = myops[j].X_add_number;
if (flags & OPERAND_SPECIAL)
@@
-1242,12
+1242,10
@@
find_format (struct d30v_opcode *opcode,
/* Calculate the current address by running through the
previous frags and adding our current offset. */
/* Calculate the current address by running through the
previous frags and adding our current offset. */
- value =
0
;
+ value =
frag_now_fix_octets ()
;
for (f = frchain_now->frch_root; f; f = f->fr_next)
value += f->fr_fix + f->fr_offset;
for (f = frchain_now->frch_root; f; f = f->fr_next)
value += f->fr_fix + f->fr_offset;
- value = (S_GET_VALUE (myops[j].X_add_symbol) - value
- - (obstack_next_free (&frchain_now->frch_obstack)
- - frag_now->fr_literal));
+ value = S_GET_VALUE (myops[j].X_add_symbol) - value;
if (check_range (value, bits, flags))
match = 0;
}
if (check_range (value, bits, flags))
match = 0;
}
@@
-1762,8
+1760,8
@@
arelent *
tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp)
{
arelent *reloc;
tc_gen_reloc (asection *seg ATTRIBUTE_UNUSED, fixS *fixp)
{
arelent *reloc;
- reloc =
xmalloc (sizeof (arelent)
);
- reloc->sym_ptr_ptr =
xmalloc (sizeof (asymbol *)
);
+ reloc =
XNEW (arelent
);
+ 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->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type);
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
reloc->howto = bfd_reloc_type_lookup (stdoutput, fixp->fx_r_type);
@@
-1842,7
+1840,7
@@
d30v_start_line (void)
}
static void
}
static void
-check_size (long value, int bits, char *file, int line)
+check_size (long value, int bits, c
onst c
har *file, int line)
{
int tmp, max;
{
int tmp, max;
This page took
0.024848 seconds
and
4
git commands to generate.