projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[ARC] Add XY registers, update neg instruction.
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-pj.c
diff --git
a/gas/config/tc-pj.c
b/gas/config/tc-pj.c
index b86fa8975bf42d285551590421ab9a4ec3b0aeb4..37fd4814977f8a66b3f07333baee2ba847a88912 100644
(file)
--- a/
gas/config/tc-pj.c
+++ b/
gas/config/tc-pj.c
@@
-171,7
+171,7
@@
static void
fake_opcode (const char *name,
void (*func) (struct pj_opc_info_t *, char *))
{
fake_opcode (const char *name,
void (*func) (struct pj_opc_info_t *, char *))
{
- pj_opc_info_t * fake =
xmalloc (sizeof (pj_opc_info_t)
);
+ pj_opc_info_t * fake =
XNEW (pj_opc_info_t
);
fake->opcode = -1;
fake->opcode_next = -1;
fake->opcode = -1;
fake->opcode_next = -1;
@@
-313,7
+313,7
@@
md_assemble (char *str)
as_bad (_("Something forgot to clean up\n"));
}
as_bad (_("Something forgot to clean up\n"));
}
-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);
@@
-333,7
+333,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)
{
@@
-472,8
+472,8
@@
tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
arelent *rel;
bfd_reloc_code_real_type r_type;
arelent *rel;
bfd_reloc_code_real_type r_type;
- rel =
xmalloc (sizeof (arelent)
);
- rel->sym_ptr_ptr =
xmalloc (sizeof (asymbol *)
);
+ rel =
XNEW (arelent
);
+ rel->sym_ptr_ptr =
XNEW (asymbol *
);
*rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
rel->address = fixp->fx_frag->fr_address + fixp->fx_where;
*rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
rel->address = fixp->fx_frag->fr_address + fixp->fx_where;
This page took
0.024468 seconds
and
4
git commands to generate.