diff options
author | Alan Modra <amodra@gmail.com> | 2008-08-12 23:39:31 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-08-12 23:39:31 +0000 |
commit | 5a49b8acf456d4a049c002fae31b83a10b35e6f8 (patch) | |
tree | c55c2f40551c32d774a8dfd9c61b5ba503dc954a /gas/config/tc-crx.c | |
parent | 11fa8e431388f2e50d86cd4af26b748eba56b10e (diff) | |
download | gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.zip gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.tar.gz gdb-5a49b8acf456d4a049c002fae31b83a10b35e6f8.tar.bz2 |
Banish PARAMS and PTR. Convert to ISO C.
Delete unnecessary forward declarations.
Diffstat (limited to 'gas/config/tc-crx.c')
-rw-r--r-- | gas/config/tc-crx.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gas/config/tc-crx.c b/gas/config/tc-crx.c index 2306290..d74494b 100644 --- a/gas/config/tc-crx.c +++ b/gas/config/tc-crx.c @@ -1,5 +1,5 @@ /* tc-crx.c -- Assembler code for the CRX CPU core. - Copyright 2004, 2007 Free Software Foundation, Inc. + Copyright 2004, 2007, 2008 Free Software Foundation, Inc. Contributed by Tomer Levi, NSC, Israel. Originally written for GAS 2.12 by Tomer Levi, NSC, Israel. @@ -538,7 +538,7 @@ md_begin (void) const char *mnemonic = crx_instruction[i].mnemonic; hashret = hash_insert (crx_inst_hash, mnemonic, - (PTR) &crx_instruction[i]); + (void *) &crx_instruction[i]); if (hashret != NULL && *hashret != '\0') as_fatal (_("Can't hash `%s': %s\n"), crx_instruction[i].mnemonic, @@ -566,7 +566,7 @@ md_begin (void) for (regtab = crx_regtab; regtab < (crx_regtab + NUMREGS); regtab++) { - hashret = hash_insert (reg_hash, regtab->name, (PTR) regtab); + hashret = hash_insert (reg_hash, regtab->name, (void *) regtab); if (hashret) as_fatal (_("Internal Error: Can't hash %s: %s"), regtab->name, @@ -584,7 +584,8 @@ md_begin (void) for (copregtab = crx_copregtab; copregtab < (crx_copregtab + NUMCOPREGS); copregtab++) { - hashret = hash_insert (copreg_hash, copregtab->name, (PTR) copregtab); + hashret = hash_insert (copreg_hash, copregtab->name, + (void *) copregtab); if (hashret) as_fatal (_("Internal Error: Can't hash %s: %s"), copregtab->name, |