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 SYNTAX_NOP and SYNTAX_1OP for extension instructions
[deliverable/binutils-gdb.git]
/
gas
/
config
/
tc-ns32k.c
diff --git
a/gas/config/tc-ns32k.c
b/gas/config/tc-ns32k.c
index d66a06267dbc3010675b99e9767d45f3c9f37736..86a1de77ebbec1b3cf41403c0f3f9dc8eb516503 100644
(file)
--- a/
gas/config/tc-ns32k.c
+++ b/
gas/config/tc-ns32k.c
@@
-1,5
+1,5
@@
/* ns32k.c -- Assemble on the National Semiconductor 32k series
/* ns32k.c -- Assemble on the National Semiconductor 32k series
- Copyright (C) 1987-201
4
Free Software Foundation, Inc.
+ Copyright (C) 1987-201
6
Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
This file is part of GAS, the GNU Assembler.
@@
-102,7
+102,7
@@
const char FLT_CHARS[] = "fd"; /* We don't want to support lowercase,
/* Internal structs. */
struct ns32k_option
{
/* Internal structs. */
struct ns32k_option
{
- char *pattern;
+ c
onst c
har *pattern;
unsigned long or;
unsigned long and;
};
unsigned long or;
unsigned long and;
};
@@
-710,7
+710,7
@@
get_addr_mode (char *ptr, addr_modeS *addrmodeP)
addrmodeP->am_size += 1;
}
addrmodeP->am_size += 1;
}
- gas_assert (addrmodeP->mode >= 0);
+ gas_assert (addrmodeP->mode >= 0);
if (disp_test[(unsigned int) addrmodeP->mode])
{
char c;
if (disp_test[(unsigned int) addrmodeP->mode])
{
char c;
@@
-803,7
+803,7
@@
optlist (char *str, /* The string to extract options from. */
unsigned long *default_map) /* Default pattern and output. */
{
int i, j, k, strlen1, strlen2;
unsigned long *default_map) /* Default pattern and output. */
{
int i, j, k, strlen1, strlen2;
- char *patternP, *strP;
+ c
onst c
har *patternP, *strP;
strlen1 = strlen (str);
strlen1 = strlen (str);
@@
-1908,7
+1908,7
@@
md_begin (void)
}
/* Some private space please! */
}
/* Some private space please! */
- freeptr_static =
(char *) malloc (
PRIVATE_SIZE);
+ freeptr_static =
XNEWVEC (char,
PRIVATE_SIZE);
}
/* Turn the string pointed to by litP into a floating point constant
}
/* Turn the string pointed to by litP into a floating point constant
@@
-1916,7
+1916,7
@@
md_begin (void)
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)
{
return ieee_md_atof (type, litP, sizeP, FALSE);
md_atof (int type, char *litP, int *sizeP)
{
return ieee_md_atof (type, litP, sizeP, FALSE);
@@
-2123,7
+2123,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)
+md_parse_option (int c, c
onst c
har *arg)
{
switch (c)
{
{
switch (c)
{
@@
-2181,7
+2181,8
@@
void
cons_fix_new_ns32k (fragS *frag, /* Which frag? */
int where, /* Where in that frag? */
int size, /* 1, 2 or 4 usually. */
cons_fix_new_ns32k (fragS *frag, /* Which frag? */
int where, /* Where in that frag? */
int size, /* 1, 2 or 4 usually. */
- expressionS *exp) /* Expression. */
+ expressionS *exp, /* Expression. */
+ bfd_reloc_code_real_type r ATTRIBUTE_UNUSED)
{
fix_new_ns32k_exp (frag, where, size, exp,
0, 2, 0, 0, 0, 0);
{
fix_new_ns32k_exp (frag, where, size, exp,
0, 2, 0, 0, 0, 0);
@@
-2227,8
+2228,8
@@
tc_gen_reloc (asection *section ATTRIBUTE_UNUSED, fixS *fixp)
code = reloc (fixp->fx_size, fixp->fx_pcrel, fix_im_disp (fixp));
code = reloc (fixp->fx_size, fixp->fx_pcrel, fix_im_disp (fixp));
- 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;
if (fixp->fx_pcrel)
*rel->sym_ptr_ptr = symbol_get_bfdsym (fixp->fx_addsy);
rel->address = fixp->fx_frag->fr_address + fixp->fx_where;
if (fixp->fx_pcrel)
This page took
0.025106 seconds
and
4
git commands to generate.