projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
MIPS: Add microMIPS R5 support
[deliverable/binutils-gdb.git]
/
gas
/
cgen.c
diff --git
a/gas/cgen.c
b/gas/cgen.c
index 232a41f715e9b3b2521ba4debc76c3cedf39e780..f59753dd0c14ba7ab3df7550eb64770ed19864d6 100644
(file)
--- a/
gas/cgen.c
+++ b/
gas/cgen.c
@@
-1,5
+1,5
@@
/* GAS interface for targets using CGEN: Cpu tools GENerator.
/* GAS interface for targets using CGEN: Cpu tools GENerator.
- Copyright (C) 1996-201
6
Free Software Foundation, Inc.
+ Copyright (C) 1996-201
7
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-811,7
+811,7
@@
make_right_shifted_expr (expressionS * exp,
stmp->bsym->flags |= BSF_RELC;
/* Then wrap that in a "symbol expr" for good measure. */
stmp->bsym->flags |= BSF_RELC;
/* Then wrap that in a "symbol expr" for good measure. */
- new_exp =
xmalloc (sizeof (expressionS)
);
+ new_exp =
XNEW (expressionS
);
memset (new_exp, 0, sizeof (expressionS));
new_exp->X_op = O_symbol;
new_exp->X_op_symbol = 0;
memset (new_exp, 0, sizeof (expressionS));
new_exp->X_op = O_symbol;
new_exp->X_op_symbol = 0;
@@
-1012,7
+1012,7
@@
gas_cgen_tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixP)
bfd_reloc_code_real_type r_type = fixP->fx_r_type;
arelent *reloc;
bfd_reloc_code_real_type r_type = fixP->fx_r_type;
arelent *reloc;
- reloc =
(arelent *) xmalloc (sizeof (arelent)
);
+ reloc =
XNEW (arelent
);
#ifdef GAS_CGEN_PCREL_R_TYPE
if (fixP->fx_pcrel)
#ifdef GAS_CGEN_PCREL_R_TYPE
if (fixP->fx_pcrel)
@@
-1029,7
+1029,7
@@
gas_cgen_tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixP)
gas_assert (!fixP->fx_pcrel == !reloc->howto->pc_relative);
gas_assert (!fixP->fx_pcrel == !reloc->howto->pc_relative);
- reloc->sym_ptr_ptr =
(asymbol **) xmalloc (sizeof (asymbol *)
);
+ reloc->sym_ptr_ptr =
XNEW (asymbol *
);
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy);
/* Use fx_offset for these cases. */
*reloc->sym_ptr_ptr = symbol_get_bfdsym (fixP->fx_addsy);
/* Use fx_offset for these cases. */
This page took
0.02437 seconds
and
4
git commands to generate.