projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
xtensa: typedef enums when defining them
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-tilepro.c
diff --git
a/gas/config/tc-tilepro.c
b/gas/config/tc-tilepro.c
index 8a378c0da486ea3f265975e16aa7cdd4af4dcb26..061a41a2346575dba84a1bdaae9974939ad50fcd 100644
(file)
--- a/
gas/config/tc-tilepro.c
+++ b/
gas/config/tc-tilepro.c
@@
-1,5
+1,5
@@
/* tc-tilepro.c -- Assemble for a TILEPro chip.
/* tc-tilepro.c -- Assemble for a TILEPro chip.
- Copyright (C) 2011-201
4
Free Software Foundation, Inc.
+ Copyright (C) 2011-201
6
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-72,7
+72,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)
{
@@
-352,7
+352,7
@@
static tilepro_bundle_bits
insert_operand (tilepro_bundle_bits bits,
const struct tilepro_operand *operand,
int operand_value,
insert_operand (tilepro_bundle_bits bits,
const struct tilepro_operand *operand,
int operand_value,
- char *file,
+ c
onst c
har *file,
unsigned lineno)
{
/* Range-check the immediate. */
unsigned lineno)
{
/* Range-check the immediate. */
@@
-980,8
+980,8
@@
parse_reg_expression (expressionS* expression)
/* Zero everything to make sure we don't miss any flags. */
memset (expression, 0, sizeof *expression);
/* Zero everything to make sure we don't miss any flags. */
memset (expression, 0, sizeof *expression);
- char
* regname = input_line_pointer
;
- char terminating_char = get_symbol_
end (
);
+ char
*regname
;
+ char terminating_char = get_symbol_
name (®name
);
void* pval = hash_find (main_reg_hash, regname);
void* pval = hash_find (main_reg_hash, regname);
@@
-998,7
+998,7
@@
parse_reg_expression (expressionS* expression)
regname, tilepro_register_names[regno]);
/* Restore the old character following the register name. */
regname, tilepro_register_names[regno]);
/* Restore the old character following the register name. */
-
*input_line_pointer = terminating_char
;
+
(void) restore_line_pointer (terminating_char)
;
/* Fill in the expression fields to indicate it's a register. */
expression->X_op = O_register;
/* Fill in the expression fields to indicate it's a register. */
expression->X_op = O_register;
@@
-1205,7
+1205,7
@@
const pseudo_typeS md_pseudo_table[] =
LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
LITTLENUMS emitted is stored in *SIZEP. An error message is
returned, or NULL on OK. */
-char *
+c
onst c
har *
md_atof (int type, char *litP, int *sizeP)
{
int prec;
md_atof (int type, char *litP, int *sizeP)
{
int prec;
@@
-1515,8
+1515,8
@@
tc_gen_reloc (asection *sec ATTRIBUTE_UNUSED, fixS *fixp)
{
arelent *reloc;
{
arelent *reloc;
- reloc =
(arelent *) xmalloc (sizeof (arelent)
);
- reloc->sym_ptr_ptr =
(asymbol **) 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->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
reloc->address = fixp->fx_frag->fr_address + fixp->fx_where;
This page took
0.028336 seconds
and
4
git commands to generate.