projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Modify the ARNM assembler to accept the omission of the immediate argument for the...
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-rl78.c
diff --git
a/gas/config/tc-rl78.c
b/gas/config/tc-rl78.c
index 1c7c9cf56172d82a726a1f7c5411f6cb27857c5f..9160cc027fb077118e666d344f57d3e8fa150928 100644
(file)
--- a/
gas/config/tc-rl78.c
+++ b/
gas/config/tc-rl78.c
@@
-1,5
+1,5
@@
/* tc-rl78.c -- Assembler for the Renesas RL78
/* tc-rl78.c -- Assembler for the Renesas RL78
- Copyright (C) 2011-201
6
Free Software Foundation, Inc.
+ Copyright (C) 2011-201
9
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-19,10
+19,8
@@
02110-1301, USA. */
#include "as.h"
02110-1301, USA. */
#include "as.h"
-#include "struc-symbol.h"
#include "safe-ctype.h"
#include "dwarf2dbg.h"
#include "safe-ctype.h"
#include "dwarf2dbg.h"
-#include "libbfd.h"
#include "elf/common.h"
#include "elf/rl78.h"
#include "rl78-defs.h"
#include "elf/common.h"
#include "elf/rl78.h"
#include "rl78-defs.h"
@@
-131,7
+129,7
@@
rl78_prefix (int p)
}
int
}
int
-rl78_has_prefix ()
+rl78_has_prefix (
void
)
{
return rl78_bytes.n_prefix;
}
{
return rl78_bytes.n_prefix;
}
@@
-308,7
+306,7
@@
struct option md_longopts[] =
size_t md_longopts_size = sizeof (md_longopts);
int
size_t md_longopts_size = sizeof (md_longopts);
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)
{
@@
-436,7
+434,7
@@
md_number_to_chars (char * buf, valueT val, int n)
}
static void
}
static void
-require_end_of_expr (char *fname)
+require_end_of_expr (c
onst c
har *fname)
{
while (* input_line_pointer == ' '
|| * input_line_pointer == '\t')
{
while (* input_line_pointer == ' '
|| * input_line_pointer == '\t')
@@
-454,7
+452,7
@@
require_end_of_expr (char *fname)
static struct
{
static struct
{
- char * fname;
+ c
onst c
har * fname;
int reloc;
}
reloc_functions[] =
int reloc;
}
reloc_functions[] =
@@
-502,7
+500,7
@@
rl78_frag_init (fragS * fragP)
{
if (rl78_bytes.n_relax || rl78_bytes.link_relax)
{
{
if (rl78_bytes.n_relax || rl78_bytes.link_relax)
{
- fragP->tc_frag_data =
malloc (sizeof (rl78_bytesT)
);
+ fragP->tc_frag_data =
XNEW (rl78_bytesT
);
memcpy (fragP->tc_frag_data, & rl78_bytes, sizeof (rl78_bytesT));
}
else
memcpy (fragP->tc_frag_data, & rl78_bytes, sizeof (rl78_bytesT));
}
else
@@
-533,7
+531,7
@@
rl78_handle_align (fragS * frag)
}
}
}
}
-char *
+c
onst c
har *
md_atof (int type, char * litP, int * sizeP)
{
return ieee_md_atof (type, litP, sizeP, target_big_endian);
md_atof (int type, char * litP, int * sizeP)
{
return ieee_md_atof (type, litP, sizeP, target_big_endian);
@@
-1235,8
+1233,7
@@
md_convert_frag (bfd * abfd ATTRIBUTE_UNUSED,
fragP->fr_next);
if (fragP->fr_next != NULL
fragP->fr_next);
if (fragP->fr_next != NULL
- && ((offsetT) (fragP->fr_next->fr_address - fragP->fr_address)
- != fragP->fr_fix))
+ && fragP->fr_next->fr_address - fragP->fr_address != fragP->fr_fix)
as_bad (_("bad frag at %p : fix %ld addr %ld %ld \n"), fragP,
(long) fragP->fr_fix,
(long) fragP->fr_address, (long) fragP->fr_next->fr_address);
as_bad (_("bad frag at %p : fix %ld addr %ld %ld \n"), fragP,
(long) fragP->fr_fix,
(long) fragP->fr_address, (long) fragP->fr_next->fr_address);
@@
-1271,8
+1268,8
@@
tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp)
fixp->fx_subsy = NULL;
}
fixp->fx_subsy = NULL;
}
- reloc[0] =
(arelent *) xmalloc (sizeof (arelent)
);
- reloc[0]->sym_ptr_ptr =
(asymbol **) xmalloc (sizeof (asymbol *)
);
+ reloc[0] =
XNEW (arelent
);
+ reloc[0]->sym_ptr_ptr =
XNEW (asymbol *
);
* reloc[0]->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc[0]->address = fixp->fx_frag->fr_address + fixp->fx_where;
reloc[0]->addend = fixp->fx_offset;
* reloc[0]->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc[0]->address = fixp->fx_frag->fr_address + fixp->fx_where;
reloc[0]->addend = fixp->fx_offset;
@@
-1284,8
+1281,8
@@
tc_gen_reloc (asection * seg ATTRIBUTE_UNUSED, fixS * fixp)
}
#define OPX(REL,SYM,ADD) \
}
#define OPX(REL,SYM,ADD) \
- reloc[rp] =
(arelent *) xmalloc (sizeof (arelent)
); \
- reloc[rp]->sym_ptr_ptr =
(asymbol **) xmalloc (sizeof (asymbol *));
\
+ reloc[rp] =
XNEW (arelent
); \
+ reloc[rp]->sym_ptr_ptr =
XNEW (asymbol *);
\
reloc[rp]->howto = bfd_reloc_type_lookup (stdoutput, REL); \
reloc[rp]->addend = ADD; \
* reloc[rp]->sym_ptr_ptr = SYM; \
reloc[rp]->howto = bfd_reloc_type_lookup (stdoutput, REL); \
reloc[rp]->addend = ADD; \
* reloc[rp]->sym_ptr_ptr = SYM; \
@@
-1523,6
+1520,6
@@
md_apply_fix (struct fix * f ATTRIBUTE_UNUSED,
valueT
md_section_align (segT segment, valueT size)
{
valueT
md_section_align (segT segment, valueT size)
{
- int align = bfd_
get_section_alignment (stdoutput,
segment);
+ int align = bfd_
section_alignment (
segment);
return ((size + (1 << align) - 1) & -(1 << align));
}
return ((size + (1 << align) - 1) & -(1 << align));
}
This page took
0.026843 seconds
and
4
git commands to generate.