Convert to C90.
This commit is contained in:
parent
1fa1d2cdfc
commit
8cf3f35467
21 changed files with 326 additions and 302 deletions
|
@ -1,3 +1,8 @@
|
|||
2003-08-07 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* bfdlink.h: Remove PARAMS macro. Replace PTR with void *.
|
||||
* dis-asm.h: Likewise.
|
||||
|
||||
2003-07-09 Bob Wilson <bob.wilson@acm.org>
|
||||
|
||||
* xtensa-config.h: Undef all macros before defining them.
|
||||
|
|
|
@ -171,26 +171,26 @@ struct bfd_link_hash_table
|
|||
follows bfd_link_hash_indirect and bfd_link_hash_warning links to
|
||||
the real symbol. */
|
||||
extern struct bfd_link_hash_entry *bfd_link_hash_lookup
|
||||
PARAMS ((struct bfd_link_hash_table *, const char *, bfd_boolean create,
|
||||
bfd_boolean copy, bfd_boolean follow));
|
||||
(struct bfd_link_hash_table *, const char *, bfd_boolean create,
|
||||
bfd_boolean copy, bfd_boolean follow);
|
||||
|
||||
/* Look up an entry in the main linker hash table if the symbol might
|
||||
be wrapped. This should only be used for references to an
|
||||
undefined symbol, not for definitions of a symbol. */
|
||||
|
||||
extern struct bfd_link_hash_entry *bfd_wrapped_link_hash_lookup
|
||||
PARAMS ((bfd *, struct bfd_link_info *, const char *, bfd_boolean,
|
||||
bfd_boolean, bfd_boolean));
|
||||
(bfd *, struct bfd_link_info *, const char *, bfd_boolean,
|
||||
bfd_boolean, bfd_boolean);
|
||||
|
||||
/* Traverse a link hash table. */
|
||||
extern void bfd_link_hash_traverse
|
||||
PARAMS ((struct bfd_link_hash_table *,
|
||||
bfd_boolean (*) (struct bfd_link_hash_entry *, PTR),
|
||||
PTR));
|
||||
(struct bfd_link_hash_table *,
|
||||
bfd_boolean (*) (struct bfd_link_hash_entry *, void *),
|
||||
void *);
|
||||
|
||||
/* Add an entry to the undefs list. */
|
||||
extern void bfd_link_add_undef
|
||||
PARAMS ((struct bfd_link_hash_table *, struct bfd_link_hash_entry *));
|
||||
(struct bfd_link_hash_table *, struct bfd_link_hash_entry *);
|
||||
|
||||
struct bfd_sym_chain
|
||||
{
|
||||
|
@ -350,7 +350,7 @@ struct bfd_link_info
|
|||
struct bfd_sym_chain *gc_sym_list;
|
||||
|
||||
/* If a base output file is wanted, then this points to it */
|
||||
PTR base_file;
|
||||
void *base_file;
|
||||
|
||||
/* The function to call when the executable or shared object is
|
||||
loaded. */
|
||||
|
@ -399,7 +399,7 @@ struct bfd_link_callbacks
|
|||
name of the symbol which caused the archive element to be pulled
|
||||
in. */
|
||||
bfd_boolean (*add_archive_element)
|
||||
PARAMS ((struct bfd_link_info *, bfd *abfd, const char *name));
|
||||
(struct bfd_link_info *, bfd *abfd, const char *name);
|
||||
/* A function which is called when a symbol is found with multiple
|
||||
definitions. NAME is the symbol which is defined multiple times.
|
||||
OBFD is the old BFD, OSEC is the old section, OVAL is the old
|
||||
|
@ -407,9 +407,9 @@ struct bfd_link_callbacks
|
|||
the new value. OBFD may be NULL. OSEC and NSEC may be
|
||||
bfd_com_section or bfd_ind_section. */
|
||||
bfd_boolean (*multiple_definition)
|
||||
PARAMS ((struct bfd_link_info *, const char *name,
|
||||
bfd *obfd, asection *osec, bfd_vma oval,
|
||||
bfd *nbfd, asection *nsec, bfd_vma nval));
|
||||
(struct bfd_link_info *, const char *name,
|
||||
bfd *obfd, asection *osec, bfd_vma oval,
|
||||
bfd *nbfd, asection *nsec, bfd_vma nval);
|
||||
/* A function which is called when a common symbol is defined
|
||||
multiple times. NAME is the symbol appearing multiple times.
|
||||
OBFD is the BFD of the existing symbol; it may be NULL if this is
|
||||
|
@ -422,9 +422,9 @@ struct bfd_link_callbacks
|
|||
bfd_link_hash_indirect. If NTYPE is bfd_link_hash_common, NSIZE
|
||||
is the size of the new symbol. */
|
||||
bfd_boolean (*multiple_common)
|
||||
PARAMS ((struct bfd_link_info *, const char *name,
|
||||
bfd *obfd, enum bfd_link_hash_type otype, bfd_vma osize,
|
||||
bfd *nbfd, enum bfd_link_hash_type ntype, bfd_vma nsize));
|
||||
(struct bfd_link_info *, const char *name,
|
||||
bfd *obfd, enum bfd_link_hash_type otype, bfd_vma osize,
|
||||
bfd *nbfd, enum bfd_link_hash_type ntype, bfd_vma nsize);
|
||||
/* A function which is called to add a symbol to a set. ENTRY is
|
||||
the link hash table entry for the set itself (e.g.,
|
||||
__CTOR_LIST__). RELOC is the relocation to use for an entry in
|
||||
|
@ -432,9 +432,8 @@ struct bfd_link_callbacks
|
|||
get the size of the entry when generating an executable file.
|
||||
ABFD, SEC and VALUE identify the value to add to the set. */
|
||||
bfd_boolean (*add_to_set)
|
||||
PARAMS ((struct bfd_link_info *, struct bfd_link_hash_entry *entry,
|
||||
bfd_reloc_code_real_type reloc, bfd *abfd, asection *sec,
|
||||
bfd_vma value));
|
||||
(struct bfd_link_info *, struct bfd_link_hash_entry *entry,
|
||||
bfd_reloc_code_real_type reloc, bfd *abfd, asection *sec, bfd_vma value);
|
||||
/* A function which is called when the name of a g++ constructor or
|
||||
destructor is found. This is only called by some object file
|
||||
formats. CONSTRUCTOR is TRUE for a constructor, FALSE for a
|
||||
|
@ -442,8 +441,8 @@ struct bfd_link_callbacks
|
|||
relocatable file. NAME is the name of the symbol found. ABFD,
|
||||
SECTION and VALUE are the value of the symbol. */
|
||||
bfd_boolean (*constructor)
|
||||
PARAMS ((struct bfd_link_info *, bfd_boolean constructor,
|
||||
const char *name, bfd *abfd, asection *sec, bfd_vma value));
|
||||
(struct bfd_link_info *, bfd_boolean constructor, const char *name,
|
||||
bfd *abfd, asection *sec, bfd_vma value);
|
||||
/* A function which is called to issue a linker warning. For
|
||||
example, this is called when there is a reference to a warning
|
||||
symbol. WARNING is the warning to be issued. SYMBOL is the name
|
||||
|
@ -452,16 +451,16 @@ struct bfd_link_callbacks
|
|||
which trigerred the warning; either ABFD or SECTION or both may
|
||||
be NULL if the location is not known. */
|
||||
bfd_boolean (*warning)
|
||||
PARAMS ((struct bfd_link_info *, const char *warning, const char *symbol,
|
||||
bfd *abfd, asection *section, bfd_vma address));
|
||||
(struct bfd_link_info *, const char *warning, const char *symbol,
|
||||
bfd *abfd, asection *section, bfd_vma address);
|
||||
/* A function which is called when a relocation is attempted against
|
||||
an undefined symbol. NAME is the symbol which is undefined.
|
||||
ABFD, SECTION and ADDRESS identify the location from which the
|
||||
reference is made. FATAL indicates whether an undefined symbol is
|
||||
a fatal error or not. In some cases SECTION may be NULL. */
|
||||
bfd_boolean (*undefined_symbol)
|
||||
PARAMS ((struct bfd_link_info *, const char *name, bfd *abfd,
|
||||
asection *section, bfd_vma address, bfd_boolean fatal));
|
||||
(struct bfd_link_info *, const char *name, bfd *abfd,
|
||||
asection *section, bfd_vma address, bfd_boolean fatal);
|
||||
/* A function which is called when a reloc overflow occurs. NAME is
|
||||
the name of the symbol or section the reloc is against,
|
||||
RELOC_NAME is the name of the relocation, and ADDEND is any
|
||||
|
@ -470,8 +469,8 @@ struct bfd_link_callbacks
|
|||
bfd_section_reloc_link_order or bfd_symbol_reloc_link_order, then
|
||||
ABFD will be NULL. */
|
||||
bfd_boolean (*reloc_overflow)
|
||||
PARAMS ((struct bfd_link_info *, const char *name, const char *reloc_name,
|
||||
bfd_vma addend, bfd *abfd, asection *section, bfd_vma address));
|
||||
(struct bfd_link_info *, const char *name, const char *reloc_name,
|
||||
bfd_vma addend, bfd *abfd, asection *section, bfd_vma address);
|
||||
/* A function which is called when a dangerous reloc is performed.
|
||||
The canonical example is an a29k IHCONST reloc which does not
|
||||
follow an IHIHALF reloc. MESSAGE is an appropriate message.
|
||||
|
@ -480,8 +479,8 @@ struct bfd_link_callbacks
|
|||
bfd_section_reloc_link_order or bfd_symbol_reloc_link_order, then
|
||||
ABFD will be NULL. */
|
||||
bfd_boolean (*reloc_dangerous)
|
||||
PARAMS ((struct bfd_link_info *, const char *message,
|
||||
bfd *abfd, asection *section, bfd_vma address));
|
||||
(struct bfd_link_info *, const char *message,
|
||||
bfd *abfd, asection *section, bfd_vma address);
|
||||
/* A function which is called when a reloc is found to be attached
|
||||
to a symbol which is not being written out. NAME is the name of
|
||||
the symbol. ABFD, SECTION and ADDRESS identify the location of
|
||||
|
@ -489,20 +488,20 @@ struct bfd_link_callbacks
|
|||
bfd_section_reloc_link_order or bfd_symbol_reloc_link_order, then
|
||||
ABFD will be NULL. */
|
||||
bfd_boolean (*unattached_reloc)
|
||||
PARAMS ((struct bfd_link_info *, const char *name,
|
||||
bfd *abfd, asection *section, bfd_vma address));
|
||||
(struct bfd_link_info *, const char *name,
|
||||
bfd *abfd, asection *section, bfd_vma address);
|
||||
/* A function which is called when a symbol in notice_hash is
|
||||
defined or referenced. NAME is the symbol. ABFD, SECTION and
|
||||
ADDRESS are the value of the symbol. If SECTION is
|
||||
bfd_und_section, this is a reference. */
|
||||
bfd_boolean (*notice)
|
||||
PARAMS ((struct bfd_link_info *, const char *name,
|
||||
bfd *abfd, asection *section, bfd_vma address));
|
||||
(struct bfd_link_info *, const char *name,
|
||||
bfd *abfd, asection *section, bfd_vma address);
|
||||
/* A function which is called for reporting a linker error. ID is the
|
||||
error identifier. The remaining input is the same as einfo () in
|
||||
ld. */
|
||||
bfd_boolean (*error_handler)
|
||||
PARAMS ((int id, const char * fmt, ...));
|
||||
(int id, const char *fmt, ...);
|
||||
|
||||
/* Identifiers of linker error messages used by error_handler. */
|
||||
#define LD_DEFINITION_IN_DISCARDED_SECTION 1
|
||||
|
@ -605,7 +604,7 @@ struct bfd_link_order_reloc
|
|||
};
|
||||
|
||||
/* Allocate a new link_order for a section. */
|
||||
extern struct bfd_link_order *bfd_new_link_order PARAMS ((bfd *, asection *));
|
||||
extern struct bfd_link_order *bfd_new_link_order (bfd *, asection *);
|
||||
|
||||
/* These structures are used to describe version information for the
|
||||
ELF linker. These structures could be manipulated entirely inside
|
||||
|
@ -621,7 +620,7 @@ struct bfd_elf_version_expr
|
|||
/* Regular expression. */
|
||||
const char *pattern;
|
||||
/* Matching function. */
|
||||
int (*match) PARAMS ((struct bfd_elf_version_expr *, const char *));
|
||||
int (*match) (struct bfd_elf_version_expr *, const char *);
|
||||
/* Defined by ".symver". */
|
||||
unsigned int symver: 1;
|
||||
/* Defined by version script. */
|
||||
|
|
|
@ -1,3 +1,10 @@
|
|||
2003-08-07 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* ti.h (GET_SCNHDR_NRELOC): Rename PTR param to LOC.
|
||||
(PUT_SCNHDR_NRELOC, GET_SCNHDR_NLNNO, PUT_SCNHDR_NLNNO): Likewise.
|
||||
(GET_SCNHDR_FLAGS, PUT_SCNHDR_FLAGS): Likewise.
|
||||
(GET_SCNHDR_PAGE, PUT_SCNHDR_PAGE): Likewise.
|
||||
|
||||
2003-07-17 Jeff Muizelaar <muizelaar@rogers.com>
|
||||
|
||||
* pe.h: (IMAGE_FILE_NET_RUN_FROM_SWAP): Define.
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
customized in a target-specific file, and then this file included (see
|
||||
tic54x.h for an example).
|
||||
|
||||
Copyright 2001 Free Software Foundation, Inc.
|
||||
Copyright 2001, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -215,25 +215,25 @@ struct external_scnhdr {
|
|||
Assume we're dealing with the COFF2 scnhdr structure, and adjust
|
||||
accordingly
|
||||
*/
|
||||
#define GET_SCNHDR_NRELOC(ABFD, PTR) \
|
||||
(COFF2_P (ABFD) ? H_GET_32 (ABFD, PTR) : H_GET_16 (ABFD, PTR))
|
||||
#define PUT_SCNHDR_NRELOC(ABFD, VAL, PTR) \
|
||||
(COFF2_P (ABFD) ? H_PUT_32 (ABFD, VAL, PTR) : H_PUT_16 (ABFD, VAL, PTR))
|
||||
#define GET_SCNHDR_NLNNO(ABFD, PTR) \
|
||||
(COFF2_P (ABFD) ? H_GET_32 (ABFD, PTR) : H_GET_16 (ABFD, (PTR) -2))
|
||||
#define PUT_SCNHDR_NLNNO(ABFD, VAL, PTR) \
|
||||
(COFF2_P (ABFD) ? H_PUT_32 (ABFD, VAL, PTR) : H_PUT_16 (ABFD, VAL, (PTR) -2))
|
||||
#define GET_SCNHDR_FLAGS(ABFD, PTR) \
|
||||
(COFF2_P (ABFD) ? H_GET_32 (ABFD, PTR) : H_GET_16 (ABFD, (PTR) -4))
|
||||
#define PUT_SCNHDR_FLAGS(ABFD, VAL, PTR) \
|
||||
(COFF2_P (ABFD) ? H_PUT_32 (ABFD, VAL, PTR) : H_PUT_16 (ABFD, VAL, (PTR) -4))
|
||||
#define GET_SCNHDR_PAGE(ABFD, PTR) \
|
||||
(COFF2_P (ABFD) ? H_GET_16 (ABFD, PTR) : (unsigned) H_GET_8 (ABFD, (PTR) -7))
|
||||
#define GET_SCNHDR_NRELOC(ABFD, LOC) \
|
||||
(COFF2_P (ABFD) ? H_GET_32 (ABFD, LOC) : H_GET_16 (ABFD, LOC))
|
||||
#define PUT_SCNHDR_NRELOC(ABFD, VAL, LOC) \
|
||||
(COFF2_P (ABFD) ? H_PUT_32 (ABFD, VAL, LOC) : H_PUT_16 (ABFD, VAL, LOC))
|
||||
#define GET_SCNHDR_NLNNO(ABFD, LOC) \
|
||||
(COFF2_P (ABFD) ? H_GET_32 (ABFD, LOC) : H_GET_16 (ABFD, (LOC) - 2))
|
||||
#define PUT_SCNHDR_NLNNO(ABFD, VAL, LOC) \
|
||||
(COFF2_P (ABFD) ? H_PUT_32 (ABFD, VAL, LOC) : H_PUT_16 (ABFD, VAL, (LOC) - 2))
|
||||
#define GET_SCNHDR_FLAGS(ABFD, LOC) \
|
||||
(COFF2_P (ABFD) ? H_GET_32 (ABFD, LOC) : H_GET_16 (ABFD, (LOC) - 4))
|
||||
#define PUT_SCNHDR_FLAGS(ABFD, VAL, LOC) \
|
||||
(COFF2_P (ABFD) ? H_PUT_32 (ABFD, VAL, LOC) : H_PUT_16 (ABFD, VAL, (LOC) - 4))
|
||||
#define GET_SCNHDR_PAGE(ABFD, LOC) \
|
||||
(COFF2_P (ABFD) ? H_GET_16 (ABFD, LOC) : (unsigned) H_GET_8 (ABFD, (LOC) - 7))
|
||||
/* on output, make sure that the "reserved" field is zero */
|
||||
#define PUT_SCNHDR_PAGE(ABFD, VAL, PTR) \
|
||||
#define PUT_SCNHDR_PAGE(ABFD, VAL, LOC) \
|
||||
(COFF2_P (ABFD) \
|
||||
? H_PUT_16 (ABFD, VAL, PTR) \
|
||||
: H_PUT_8 (ABFD, VAL, (PTR) -7), H_PUT_8 (ABFD, 0, (PTR) -8))
|
||||
? H_PUT_16 (ABFD, VAL, LOC) \
|
||||
: H_PUT_8 (ABFD, VAL, (LOC) - 7), H_PUT_8 (ABFD, 0, (LOC) - 8))
|
||||
|
||||
/* TI COFF stores section size as number of bytes (address units, not octets),
|
||||
so adjust to be number of octets, which is what BFD expects */
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Interface between the opcode library and its callers.
|
||||
|
||||
Copyright 2001, 2002 Free Software Foundation, Inc.
|
||||
Copyright 2001, 2002, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -34,7 +34,7 @@ extern "C" {
|
|||
#include <stdio.h>
|
||||
#include "bfd.h"
|
||||
|
||||
typedef int (*fprintf_ftype) PARAMS((PTR, const char*, ...));
|
||||
typedef int (*fprintf_ftype) (void *, const char*, ...);
|
||||
|
||||
enum dis_insn_type {
|
||||
dis_noninsn, /* Not a valid instruction */
|
||||
|
@ -59,8 +59,8 @@ enum dis_insn_type {
|
|||
|
||||
typedef struct disassemble_info {
|
||||
fprintf_ftype fprintf_func;
|
||||
PTR stream;
|
||||
PTR application_data;
|
||||
void *stream;
|
||||
void *application_data;
|
||||
|
||||
/* Target description. We could replace this with a pointer to the bfd,
|
||||
but that would require one. There currently isn't any such requirement
|
||||
|
@ -98,7 +98,7 @@ typedef struct disassemble_info {
|
|||
The bottom 16 bits are for the internal use of the disassembler. */
|
||||
unsigned long flags;
|
||||
#define INSN_HAS_RELOC 0x80000000
|
||||
PTR private_data;
|
||||
void *private_data;
|
||||
|
||||
/* Function used to get bytes to disassemble. MEMADDR is the
|
||||
address of the stuff to be disassembled, MYADDR is the address to
|
||||
|
@ -106,19 +106,19 @@ typedef struct disassemble_info {
|
|||
INFO is a pointer to this struct.
|
||||
Returns an errno value or 0 for success. */
|
||||
int (*read_memory_func)
|
||||
PARAMS ((bfd_vma memaddr, bfd_byte *myaddr, unsigned int length,
|
||||
struct disassemble_info *info));
|
||||
(bfd_vma memaddr, bfd_byte *myaddr, unsigned int length,
|
||||
struct disassemble_info *info);
|
||||
|
||||
/* Function which should be called if we get an error that we can't
|
||||
recover from. STATUS is the errno value from read_memory_func and
|
||||
MEMADDR is the address that we were trying to read. INFO is a
|
||||
pointer to this struct. */
|
||||
void (*memory_error_func)
|
||||
PARAMS ((int status, bfd_vma memaddr, struct disassemble_info *info));
|
||||
(int status, bfd_vma memaddr, struct disassemble_info *info);
|
||||
|
||||
/* Function called to print ADDR. */
|
||||
void (*print_address_func)
|
||||
PARAMS ((bfd_vma addr, struct disassemble_info *info));
|
||||
(bfd_vma addr, struct disassemble_info *info);
|
||||
|
||||
/* Function called to determine if there is a symbol at the given ADDR.
|
||||
If there is, the function returns 1, otherwise it returns 0.
|
||||
|
@ -128,7 +128,7 @@ typedef struct disassemble_info {
|
|||
address, (normally because there is a symbol associated with
|
||||
that address), but sometimes we want to mask out the overlay bits. */
|
||||
int (* symbol_at_address_func)
|
||||
PARAMS ((bfd_vma addr, struct disassemble_info * info));
|
||||
(bfd_vma addr, struct disassemble_info * info);
|
||||
|
||||
/* These are for buffer_read_memory. */
|
||||
bfd_byte *buffer;
|
||||
|
@ -177,88 +177,88 @@ typedef struct disassemble_info {
|
|||
|
||||
/* Standard disassemblers. Disassemble one instruction at the given
|
||||
target address. Return number of octets processed. */
|
||||
typedef int (*disassembler_ftype)
|
||||
PARAMS((bfd_vma, disassemble_info *));
|
||||
typedef int (*disassembler_ftype) (bfd_vma, disassemble_info *);
|
||||
|
||||
extern int print_insn_big_mips PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_little_mips PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_i386 PARAMS ((bfd_vma, disassemble_info *));
|
||||
extern int print_insn_i386_att PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_i386_intel PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_ia64 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_i370 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_m68hc11 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_m68hc12 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_m68k PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_z8001 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_z8002 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_h8300 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_h8300h PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_h8300s PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_h8500 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_alpha PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_big_arm PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_little_arm PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_sparc PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_big_a29k PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_little_a29k PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_avr PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_d10v PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_d30v PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_dlx PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_fr30 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_hppa PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_i860 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_i960 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_ip2k PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_m32r PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_m88k PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_mcore PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_mmix PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_mn10200 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_mn10300 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_msp430 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_ns32k PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_openrisc PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_big_or32 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_little_or32 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_pdp11 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_pj PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_big_powerpc PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_little_powerpc PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_rs6000 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_s390 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_sh PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_tic30 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_tic4x PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_tic54x PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_tic80 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_v850 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_vax PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_w65 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_xstormy16 PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_xtensa PARAMS ((bfd_vma, disassemble_info*));
|
||||
extern int print_insn_sh64 PARAMS ((bfd_vma, disassemble_info *));
|
||||
extern int print_insn_sh64x_media PARAMS ((bfd_vma, disassemble_info *));
|
||||
extern int print_insn_frv PARAMS ((bfd_vma, disassemble_info *));
|
||||
extern int print_insn_iq2000 PARAMS ((bfd_vma, disassemble_info *));
|
||||
extern int print_insn_big_mips (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_little_mips (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_i386 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_i386_att (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_i386_intel (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_ia64 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_i370 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_m68hc11 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_m68hc12 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_m68k (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_z8001 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_z8002 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_h8300 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_h8300h (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_h8300s (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_h8500 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_alpha (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_big_arm (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_little_arm (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_sparc (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_big_a29k (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_little_a29k (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_avr (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_d10v (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_d30v (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_dlx (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_fr30 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_hppa (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_i860 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_i960 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_ip2k (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_m32r (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_m88k (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_mcore (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_mmix (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_mn10200 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_mn10300 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_msp430 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_ns32k (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_openrisc (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_big_or32 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_little_or32 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_pdp11 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_pj (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_big_powerpc (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_little_powerpc (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_rs6000 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_s390 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_sh (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_tic30 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_tic4x (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_tic54x (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_tic80 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_v850 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_vax (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_w65 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_xstormy16 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_xtensa (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_sh64 (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_sh64x_media (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_frv (bfd_vma, disassemble_info *);
|
||||
extern int print_insn_iq2000 (bfd_vma, disassemble_info *);
|
||||
|
||||
extern disassembler_ftype arc_get_disassembler PARAMS ((void *));
|
||||
extern disassembler_ftype cris_get_disassembler PARAMS ((bfd *));
|
||||
extern disassembler_ftype arc_get_disassembler (void *);
|
||||
extern disassembler_ftype cris_get_disassembler (bfd *);
|
||||
|
||||
extern void print_mips_disassembler_options PARAMS ((FILE *));
|
||||
extern void print_ppc_disassembler_options PARAMS ((FILE *));
|
||||
extern void print_arm_disassembler_options PARAMS ((FILE *));
|
||||
extern void parse_arm_disassembler_option PARAMS ((char *));
|
||||
extern int get_arm_regname_num_options PARAMS ((void));
|
||||
extern int set_arm_regname_option PARAMS ((int));
|
||||
extern int get_arm_regnames PARAMS ((int, const char **, const char **, const char ***));
|
||||
extern void print_mips_disassembler_options (FILE *);
|
||||
extern void print_ppc_disassembler_options (FILE *);
|
||||
extern void print_arm_disassembler_options (FILE *);
|
||||
extern void parse_arm_disassembler_option (char *);
|
||||
extern int get_arm_regname_num_options (void);
|
||||
extern int set_arm_regname_option (int);
|
||||
extern int get_arm_regnames
|
||||
(int, const char **, const char **, const char ***);
|
||||
|
||||
/* Fetch the disassembler for a given BFD, if that support is available. */
|
||||
extern disassembler_ftype disassembler PARAMS ((bfd *));
|
||||
extern disassembler_ftype disassembler (bfd *);
|
||||
|
||||
/* Document any target specific options available from the disassembler. */
|
||||
extern void disassembler_usage PARAMS ((FILE *));
|
||||
extern void disassembler_usage (FILE *);
|
||||
|
||||
|
||||
/* This block of definitions is for particular callers who read instructions
|
||||
|
@ -267,22 +267,22 @@ extern void disassembler_usage PARAMS ((FILE *));
|
|||
/* Here is a function which callers may wish to use for read_memory_func.
|
||||
It gets bytes from a buffer. */
|
||||
extern int buffer_read_memory
|
||||
PARAMS ((bfd_vma, bfd_byte *, unsigned int, struct disassemble_info *));
|
||||
(bfd_vma, bfd_byte *, unsigned int, struct disassemble_info *);
|
||||
|
||||
/* This function goes with buffer_read_memory.
|
||||
It prints a message using info->fprintf_func and info->stream. */
|
||||
extern void perror_memory PARAMS ((int, bfd_vma, struct disassemble_info *));
|
||||
extern void perror_memory (int, bfd_vma, struct disassemble_info *);
|
||||
|
||||
|
||||
/* Just print the address in hex. This is included for completeness even
|
||||
though both GDB and objdump provide their own (to print symbolic
|
||||
addresses). */
|
||||
extern void generic_print_address
|
||||
PARAMS ((bfd_vma, struct disassemble_info *));
|
||||
(bfd_vma, struct disassemble_info *);
|
||||
|
||||
/* Always true. */
|
||||
extern int generic_symbol_at_address
|
||||
PARAMS ((bfd_vma, struct disassemble_info *));
|
||||
(bfd_vma, struct disassemble_info *);
|
||||
|
||||
/* Macro to initialize a disassemble_info struct. This should be called
|
||||
by all applications creating such a struct. */
|
||||
|
@ -302,7 +302,7 @@ extern int generic_symbol_at_address
|
|||
|
||||
#define INIT_DISASSEMBLE_INFO_NO_ARCH(INFO, STREAM, FPRINTF_FUNC) \
|
||||
(INFO).fprintf_func = (fprintf_ftype)(FPRINTF_FUNC), \
|
||||
(INFO).stream = (PTR)(STREAM), \
|
||||
(INFO).stream = (STREAM), \
|
||||
(INFO).section = NULL, \
|
||||
(INFO).symbols = NULL, \
|
||||
(INFO).num_symbols = 0, \
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
2003-08-07 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* reloc-macros.h (START_RELOC_NUMBERS) : Remove PARAMS macro. Use
|
||||
C90 function definition. Formatting.
|
||||
(RELOC_NUMBER): Remove !__STDC__ code.
|
||||
|
||||
2003-07-28 Eric Christopher <echristo@redhat.com>
|
||||
|
||||
* ppc.h (R_PPC_RELAX32): New. Fake relocation.
|
||||
|
@ -38,10 +44,6 @@
|
|||
* mmix.h: Convert to ISO C90 prototypes.
|
||||
* mips.h: Likewise.
|
||||
|
||||
* reloc-macros.h (START_RELOC_NUMBERS): Convert to ISO C90
|
||||
prototype.
|
||||
(RELOC_NUMBER): Remove !__STDC__ code.
|
||||
|
||||
2003-06-13 Robert Millan <zeratul2@wanadoo.es>
|
||||
|
||||
* common.h (GNU_ABI_TAG_NETBSD): New tag.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Generic relocation support for BFD.
|
||||
Copyright 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
Copyright 1998, 1999, 2000, 2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of BFD, the Binary File Descriptor library.
|
||||
|
||||
|
@ -46,10 +46,9 @@
|
|||
If RELOC_MACROS_GEN_FUNC *is* defined, then instead the
|
||||
following function will be generated:
|
||||
|
||||
static const char * foo PARAMS ((unsigned long rtype));
|
||||
static const char *foo (unsigned long rtype);
|
||||
static const char *
|
||||
foo (rtype)
|
||||
unsigned long rtype;
|
||||
foo (unsigned long rtype)
|
||||
{
|
||||
switch (rtype)
|
||||
{
|
||||
|
@ -70,26 +69,22 @@
|
|||
the relocation is not recognised, NULL is returned. */
|
||||
|
||||
#define START_RELOC_NUMBERS(name) \
|
||||
static const char * name PARAMS ((unsigned long rtype)); \
|
||||
static const char *name (unsigned long rtype); \
|
||||
static const char * \
|
||||
name (rtype) \
|
||||
unsigned long rtype; \
|
||||
name (unsigned long rtype) \
|
||||
{ \
|
||||
switch (rtype) \
|
||||
{
|
||||
{
|
||||
|
||||
#if defined (__STDC__) || defined (ALMOST_STDC)
|
||||
#define RELOC_NUMBER(name, number) case number : return #name ;
|
||||
#else
|
||||
#define RELOC_NUMBER(name, number) case number : return "name" ;
|
||||
#endif
|
||||
#define RELOC_NUMBER(name, number) \
|
||||
case number: return #name;
|
||||
|
||||
#define FAKE_RELOC(name, number)
|
||||
#define EMPTY_RELOC(name)
|
||||
|
||||
#define END_RELOC_NUMBERS(name) \
|
||||
default: return NULL; \
|
||||
} \
|
||||
} \
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
2003-08-07 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* internal.h (Nlm_Internal_Custom_Header): Replace PTR with void *.
|
||||
|
||||
2001-10-02 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* common.h (NLM_CAT, NLM_CAT3): Don't define.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* NLM (NetWare Loadable Module) support for BFD.
|
||||
Copyright 1993, 1994 Free Software Foundation, Inc.
|
||||
Copyright 1993, 1994, 2003 Free Software Foundation, Inc.
|
||||
|
||||
Written by Fred Fish @ Cygnus Support.
|
||||
|
||||
|
@ -282,7 +282,7 @@ typedef struct nlm_internal_custom_header
|
|||
file_ptr dataOffset;
|
||||
bfd_size_type dataLength;
|
||||
char dataStamp[8];
|
||||
PTR hdr;
|
||||
void *hdr;
|
||||
} Nlm_Internal_Custom_Header;
|
||||
|
||||
#define nlm32_internal_custom_header nlm_internal_custom_header
|
||||
|
|
|
@ -1,3 +1,17 @@
|
|||
2003-08-07 Alan Modra <amodra@bigpond.net.au>
|
||||
|
||||
* alpha.h: Remove PARAMS macro.
|
||||
* arc.h: Likewise.
|
||||
* d10v.h: Likewise.
|
||||
* d30v.h: Likewise.
|
||||
* i370.h: Likewise.
|
||||
* or32.h: Likewise.
|
||||
* pj.h: Likewise.
|
||||
* ppc.h: Likewise.
|
||||
* sparc.h: Likewise.
|
||||
* tic80.h: Likewise.
|
||||
* v850.h: Likewise.
|
||||
|
||||
2003-07-18 Michael Snyder <msnyder@redhat.com>
|
||||
|
||||
* include/opcode/h8sx.h (DO_MOVA1, DO_MOVA2): Reformatting.
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* alpha.h -- Header file for Alpha opcode table
|
||||
Copyright 1996, 1999 Free Software Foundation, Inc.
|
||||
Copyright 1996, 1999, 2001, 2003 Free Software Foundation, Inc.
|
||||
Contributed by Richard Henderson <rth@tamu.edu>,
|
||||
patterned after the PPC opcode table written by Ian Lance Taylor.
|
||||
|
||||
|
@ -108,8 +108,7 @@ struct alpha_operand
|
|||
string (the operand will be inserted in any case). If the
|
||||
operand value is legal, *ERRMSG will be unchanged (most operands
|
||||
can accept any value). */
|
||||
unsigned (*insert) PARAMS ((unsigned instruction, int op,
|
||||
const char **errmsg));
|
||||
unsigned (*insert) (unsigned instruction, int op, const char **errmsg);
|
||||
|
||||
/* Extraction function. This is used by the disassembler. To
|
||||
extract this operand type from an instruction, check this field.
|
||||
|
@ -128,7 +127,7 @@ struct alpha_operand
|
|||
non-zero if this operand type can not actually be extracted from
|
||||
this operand (i.e., the instruction does not match). If the
|
||||
operand is valid, *INVALID will not be changed. */
|
||||
int (*extract) PARAMS ((unsigned instruction, int *invalid));
|
||||
int (*extract) (unsigned instruction, int *invalid);
|
||||
};
|
||||
|
||||
/* Elements in the table are retrieved by indexing with values from
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* Opcode table for the ARC.
|
||||
Copyright 1994, 1995, 1997, 2001 Free Software Foundation, Inc.
|
||||
Copyright 1994, 1995, 1997, 2001, 2002, 2003
|
||||
Free Software Foundation, Inc.
|
||||
Contributed by Doug Evans (dje@cygnus.com).
|
||||
|
||||
This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and
|
||||
|
@ -17,7 +18,8 @@
|
|||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with GAS or GDB; see the file COPYING. If not, write to
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||
the Free Software Foundation, 59 Temple Place - Suite 330, Boston,
|
||||
MA 02111-1307, USA. */
|
||||
|
||||
|
||||
/* List of the various cpu types.
|
||||
|
@ -226,10 +228,9 @@ struct arc_operand {
|
|||
|
||||
REG is non-NULL when inserting a register value. */
|
||||
|
||||
arc_insn (*insert) PARAMS ((arc_insn insn,
|
||||
const struct arc_operand *operand, int mods,
|
||||
const struct arc_operand_value *reg, long value,
|
||||
const char **errmsg));
|
||||
arc_insn (*insert)
|
||||
(arc_insn insn, const struct arc_operand *operand, int mods,
|
||||
const struct arc_operand_value *reg, long value, const char **errmsg);
|
||||
|
||||
/* Extraction function. This is used by the disassembler. To
|
||||
extract this operand type from an instruction, check this field.
|
||||
|
@ -255,10 +256,9 @@ struct arc_operand {
|
|||
Operands that have a printable form like registers and suffixes have
|
||||
their struct arc_operand_value pointer stored in OPVAL. */
|
||||
|
||||
long (*extract) PARAMS ((arc_insn *insn,
|
||||
const struct arc_operand *operand,
|
||||
int mods, const struct arc_operand_value **opval,
|
||||
int *invalid));
|
||||
long (*extract)
|
||||
(arc_insn *insn, const struct arc_operand *operand, int mods,
|
||||
const struct arc_operand_value **opval, int *invalid);
|
||||
};
|
||||
|
||||
/* Bits that say what version of cpu we have. These should be passed to
|
||||
|
@ -302,22 +302,22 @@ extern const int arc_reg_names_count;
|
|||
extern unsigned char arc_operand_map[];
|
||||
|
||||
/* Utility fns in arc-opc.c. */
|
||||
int arc_get_opcode_mach PARAMS ((int, int));
|
||||
int arc_get_opcode_mach (int, int);
|
||||
|
||||
/* `arc_opcode_init_tables' must be called before `arc_xxx_supported'. */
|
||||
void arc_opcode_init_tables PARAMS ((int));
|
||||
void arc_opcode_init_insert PARAMS ((void));
|
||||
void arc_opcode_init_extract PARAMS ((void));
|
||||
const struct arc_opcode *arc_opcode_lookup_asm PARAMS ((const char *));
|
||||
const struct arc_opcode *arc_opcode_lookup_dis PARAMS ((unsigned int));
|
||||
int arc_opcode_limm_p PARAMS ((long *));
|
||||
void arc_opcode_init_tables (int);
|
||||
void arc_opcode_init_insert (void);
|
||||
void arc_opcode_init_extract (void);
|
||||
const struct arc_opcode *arc_opcode_lookup_asm (const char *);
|
||||
const struct arc_opcode *arc_opcode_lookup_dis (unsigned int);
|
||||
int arc_opcode_limm_p (long *);
|
||||
const struct arc_operand_value *arc_opcode_lookup_suffix
|
||||
PARAMS ((const struct arc_operand *type, int value));
|
||||
int arc_opcode_supported PARAMS ((const struct arc_opcode *));
|
||||
int arc_opval_supported PARAMS ((const struct arc_operand_value *));
|
||||
int arc_limm_fixup_adjust PARAMS ((arc_insn));
|
||||
int arc_insn_is_j PARAMS ((arc_insn));
|
||||
int arc_insn_not_jl PARAMS ((arc_insn));
|
||||
int arc_operand_type PARAMS ((int));
|
||||
struct arc_operand_value *get_ext_suffix PARAMS ((char *));
|
||||
int arc_get_noshortcut_flag PARAMS ((void));
|
||||
(const struct arc_operand *type, int value);
|
||||
int arc_opcode_supported (const struct arc_opcode *);
|
||||
int arc_opval_supported (const struct arc_operand_value *);
|
||||
int arc_limm_fixup_adjust (arc_insn);
|
||||
int arc_insn_is_j (arc_insn);
|
||||
int arc_insn_not_jl (arc_insn);
|
||||
int arc_operand_type (int);
|
||||
struct arc_operand_value *get_ext_suffix (char *);
|
||||
int arc_get_noshortcut_flag (void);
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
/* d10v.h -- Header file for D10V opcode table
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2003
|
||||
Free Software Foundation, Inc.
|
||||
Written by Martin Hunt (hunt@cygnus.com), Cygnus Support
|
||||
|
||||
This file is part of GDB, GAS, and the GNU binutils.
|
||||
|
@ -198,7 +199,7 @@ struct pd_reg
|
|||
};
|
||||
|
||||
extern const struct pd_reg d10v_predefined_registers[];
|
||||
int d10v_reg_name_cnt PARAMS ((void));
|
||||
int d10v_reg_name_cnt (void);
|
||||
|
||||
/* an expressionS only has one register type, so we fake it */
|
||||
/* by setting high bits to indicate type */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* d30v.h -- Header file for D30V opcode table
|
||||
Copyright 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
Copyright 1997, 1998, 1999, 2000, 2001, 2003 Free Software Foundation, Inc.
|
||||
Written by Martin Hunt (hunt@cygnus.com), Cygnus Solutions
|
||||
|
||||
This file is part of GDB, GAS, and the GNU binutils.
|
||||
|
@ -32,7 +32,7 @@ struct pd_reg
|
|||
};
|
||||
|
||||
extern const struct pd_reg pre_defined_registers[];
|
||||
int reg_name_cnt PARAMS ((void));
|
||||
int reg_name_cnt (void);
|
||||
|
||||
/* the number of control registers */
|
||||
#define MAX_CONTROL_REG 64
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* i370.h -- Header file for S/390 opcode table
|
||||
Copyright 1994, 1995, 1998, 1999, 2000 Free Software Foundation, Inc.
|
||||
Copyright 1994, 1995, 1998, 1999, 2000, 2003 Free Software Foundation, Inc.
|
||||
PowerPC version written by Ian Lance Taylor, Cygnus Support
|
||||
Rewritten for i370 ESA/390 support, Linas Vepstas <linas@linas.org>
|
||||
|
||||
|
@ -159,8 +159,8 @@ struct i370_operand
|
|||
string (the operand will be inserted in any case). If the
|
||||
operand value is legal, *ERRMSG will be unchanged (most operands
|
||||
can accept any value). */
|
||||
i370_insn_t (*insert) PARAMS ((i370_insn_t instruction, long op,
|
||||
const char **errmsg));
|
||||
i370_insn_t (*insert)
|
||||
(i370_insn_t instruction, long op, const char **errmsg);
|
||||
|
||||
/* Extraction function. This is used by the disassembler. To
|
||||
extract this operand type from an instruction, check this field.
|
||||
|
@ -179,7 +179,7 @@ struct i370_operand
|
|||
non-zero if this operand type can not actually be extracted from
|
||||
this operand (i.e., the instruction does not match). If the
|
||||
operand is valid, *INVALID will not be changed. */
|
||||
long (*extract) PARAMS ((i370_insn_t instruction, int *invalid));
|
||||
long (*extract) (i370_insn_t instruction, int *invalid);
|
||||
|
||||
/* One bit syntax flags. */
|
||||
unsigned long flags;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Table of opcodes for the OpenRISC 1000 ISA.
|
||||
Copyright 2002 Free Software Foundation, Inc.
|
||||
Copyright 2002, 2003 Free Software Foundation, Inc.
|
||||
Contributed by Damjan Lampret (lampret@opencores.org).
|
||||
|
||||
This file is part of or1k_gen_isa, or1ksim, GDB and GAS.
|
||||
|
@ -27,10 +27,6 @@
|
|||
#define NUM_UNSIGNED (0)
|
||||
#define NUM_SIGNED (1)
|
||||
|
||||
#ifndef PARAMS
|
||||
#define PARAMS(x) x
|
||||
#endif
|
||||
|
||||
#define MAX_GPRS 32
|
||||
#define PAGE_SIZE 4096
|
||||
#undef __HALF_WORD_INSN__
|
||||
|
@ -71,7 +67,7 @@ struct or32_opcode
|
|||
|
||||
/* Opcode and operand encoding. */
|
||||
char *encoding;
|
||||
void (*exec) PARAMS ((void));
|
||||
void (*exec) (void);
|
||||
unsigned int flags;
|
||||
};
|
||||
|
||||
|
@ -93,59 +89,59 @@ extern struct insn_op_struct
|
|||
} **op_start;
|
||||
|
||||
#ifdef HAS_EXECUTION
|
||||
extern void l_invalid PARAMS ((void));
|
||||
extern void l_sfne PARAMS ((void));
|
||||
extern void l_bf PARAMS ((void));
|
||||
extern void l_add PARAMS ((void));
|
||||
extern void l_sw PARAMS ((void));
|
||||
extern void l_sb PARAMS ((void));
|
||||
extern void l_sh PARAMS ((void));
|
||||
extern void l_lwz PARAMS ((void));
|
||||
extern void l_lbs PARAMS ((void));
|
||||
extern void l_lbz PARAMS ((void));
|
||||
extern void l_lhs PARAMS ((void));
|
||||
extern void l_lhz PARAMS ((void));
|
||||
extern void l_movhi PARAMS ((void));
|
||||
extern void l_and PARAMS ((void));
|
||||
extern void l_or PARAMS ((void));
|
||||
extern void l_xor PARAMS ((void));
|
||||
extern void l_sub PARAMS ((void));
|
||||
extern void l_mul PARAMS ((void));
|
||||
extern void l_div PARAMS ((void));
|
||||
extern void l_divu PARAMS ((void));
|
||||
extern void l_sll PARAMS ((void));
|
||||
extern void l_sra PARAMS ((void));
|
||||
extern void l_srl PARAMS ((void));
|
||||
extern void l_j PARAMS ((void));
|
||||
extern void l_jal PARAMS ((void));
|
||||
extern void l_jalr PARAMS ((void));
|
||||
extern void l_jr PARAMS ((void));
|
||||
extern void l_rfe PARAMS ((void));
|
||||
extern void l_nop PARAMS ((void));
|
||||
extern void l_bnf PARAMS ((void));
|
||||
extern void l_sfeq PARAMS ((void));
|
||||
extern void l_sfgts PARAMS ((void));
|
||||
extern void l_sfges PARAMS ((void));
|
||||
extern void l_sflts PARAMS ((void));
|
||||
extern void l_sfles PARAMS ((void));
|
||||
extern void l_sfgtu PARAMS ((void));
|
||||
extern void l_sfgeu PARAMS ((void));
|
||||
extern void l_sfltu PARAMS ((void));
|
||||
extern void l_sfleu PARAMS ((void));
|
||||
extern void l_mtspr PARAMS ((void));
|
||||
extern void l_mfspr PARAMS ((void));
|
||||
extern void l_sys PARAMS ((void));
|
||||
extern void l_trap PARAMS ((void)); /* CZ 21/06/01. */
|
||||
extern void l_macrc PARAMS ((void));
|
||||
extern void l_mac PARAMS ((void));
|
||||
extern void l_msb PARAMS ((void));
|
||||
extern void l_invalid PARAMS ((void));
|
||||
extern void l_cust1 PARAMS ((void));
|
||||
extern void l_cust2 PARAMS ((void));
|
||||
extern void l_cust3 PARAMS ((void));
|
||||
extern void l_cust4 PARAMS ((void));
|
||||
extern void l_invalid (void);
|
||||
extern void l_sfne (void);
|
||||
extern void l_bf (void);
|
||||
extern void l_add (void);
|
||||
extern void l_sw (void);
|
||||
extern void l_sb (void);
|
||||
extern void l_sh (void);
|
||||
extern void l_lwz (void);
|
||||
extern void l_lbs (void);
|
||||
extern void l_lbz (void);
|
||||
extern void l_lhs (void);
|
||||
extern void l_lhz (void);
|
||||
extern void l_movhi (void);
|
||||
extern void l_and (void);
|
||||
extern void l_or (void);
|
||||
extern void l_xor (void);
|
||||
extern void l_sub (void);
|
||||
extern void l_mul (void);
|
||||
extern void l_div (void);
|
||||
extern void l_divu (void);
|
||||
extern void l_sll (void);
|
||||
extern void l_sra (void);
|
||||
extern void l_srl (void);
|
||||
extern void l_j (void);
|
||||
extern void l_jal (void);
|
||||
extern void l_jalr (void);
|
||||
extern void l_jr (void);
|
||||
extern void l_rfe (void);
|
||||
extern void l_nop (void);
|
||||
extern void l_bnf (void);
|
||||
extern void l_sfeq (void);
|
||||
extern void l_sfgts (void);
|
||||
extern void l_sfges (void);
|
||||
extern void l_sflts (void);
|
||||
extern void l_sfles (void);
|
||||
extern void l_sfgtu (void);
|
||||
extern void l_sfgeu (void);
|
||||
extern void l_sfltu (void);
|
||||
extern void l_sfleu (void);
|
||||
extern void l_mtspr (void);
|
||||
extern void l_mfspr (void);
|
||||
extern void l_sys (void);
|
||||
extern void l_trap (void); /* CZ 21/06/01. */
|
||||
extern void l_macrc (void);
|
||||
extern void l_mac (void);
|
||||
extern void l_msb (void);
|
||||
extern void l_invalid (void);
|
||||
extern void l_cust1 (void);
|
||||
extern void l_cust2 (void);
|
||||
extern void l_cust3 (void);
|
||||
extern void l_cust4 (void);
|
||||
#endif
|
||||
extern void l_none PARAMS ((void));
|
||||
extern void l_none (void);
|
||||
|
||||
extern const struct or32_letter or32_letters[];
|
||||
|
||||
|
@ -154,31 +150,31 @@ extern const struct or32_opcode or32_opcodes[];
|
|||
extern const unsigned int or32_num_opcodes;
|
||||
|
||||
/* Calculates instruction length in bytes. Always 4 for OR32. */
|
||||
extern int insn_len PARAMS ((int));
|
||||
extern int insn_len (int);
|
||||
|
||||
/* Is individual insn's operand signed or unsigned? */
|
||||
extern int letter_signed PARAMS ((char));
|
||||
extern int letter_signed (char);
|
||||
|
||||
/* Number of letters in the individual lettered operand. */
|
||||
extern int letter_range PARAMS ((char));
|
||||
extern int letter_range (char);
|
||||
|
||||
/* MM: Returns index of given instruction name. */
|
||||
extern int insn_index PARAMS ((char *));
|
||||
extern int insn_index (char *);
|
||||
|
||||
/* MM: Returns instruction name from index. */
|
||||
extern const char *insn_name PARAMS ((int));
|
||||
extern const char *insn_name (int);
|
||||
|
||||
/* MM: Constructs new FSM, based on or32_opcodes. */
|
||||
extern void build_automata PARAMS ((void));
|
||||
extern void build_automata (void);
|
||||
|
||||
/* MM: Destructs FSM. */
|
||||
extern void destruct_automata PARAMS ((void));
|
||||
extern void destruct_automata (void);
|
||||
|
||||
/* MM: Decodes instruction using FSM. Call build_automata first. */
|
||||
extern int insn_decode PARAMS ((unsigned int));
|
||||
extern int insn_decode (unsigned int);
|
||||
|
||||
/* Disassemble one instruction from insn to disassemble.
|
||||
Return the size of the instruction. */
|
||||
int disassemble_insn PARAMS ((unsigned long));
|
||||
int disassemble_insn (unsigned long);
|
||||
|
||||
#endif
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* Definitions for decoding the picoJava opcode table.
|
||||
Copyright 1999 Free Software Foundation, Inc.
|
||||
Copyright 1999, 2002, 2003 Free Software Foundation, Inc.
|
||||
Contributed by Steve Chamberlain of Transmeta (sac@pobox.com).
|
||||
|
||||
This program is free software; you can redistribute it and/or modify
|
||||
|
@ -44,6 +44,6 @@ typedef struct pj_opc_info_t
|
|||
unsigned char arg[2];
|
||||
union {
|
||||
const char *name;
|
||||
void (*func) PARAMS ((struct pj_opc_info_t *, char *));
|
||||
void (*func) (struct pj_opc_info_t *, char *);
|
||||
} u;
|
||||
} pj_opc_info_t;
|
||||
|
|
|
@ -160,9 +160,8 @@ struct powerpc_operand
|
|||
string (the operand will be inserted in any case). If the
|
||||
operand value is legal, *ERRMSG will be unchanged (most operands
|
||||
can accept any value). */
|
||||
unsigned long (*insert) PARAMS ((unsigned long instruction, long op,
|
||||
int dialect,
|
||||
const char **errmsg));
|
||||
unsigned long (*insert)
|
||||
(unsigned long instruction, long op, int dialect, const char **errmsg);
|
||||
|
||||
/* Extraction function. This is used by the disassembler. To
|
||||
extract this operand type from an instruction, check this field.
|
||||
|
@ -181,8 +180,7 @@ struct powerpc_operand
|
|||
non-zero if this operand type can not actually be extracted from
|
||||
this operand (i.e., the instruction does not match). If the
|
||||
operand is valid, *INVALID will not be changed. */
|
||||
long (*extract) PARAMS ((unsigned long instruction, int dialect,
|
||||
int *invalid));
|
||||
long (*extract) (unsigned long instruction, int dialect, int *invalid);
|
||||
|
||||
/* One bit syntax flags. */
|
||||
unsigned long flags;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* Definitions for opcode table for the sparc.
|
||||
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2002
|
||||
Free Software Foundation, Inc.
|
||||
Copyright 1989, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 2000, 2002,
|
||||
2003 Free Software Foundation, Inc.
|
||||
|
||||
This file is part of GAS, the GNU Assembler, GDB, the GNU debugger, and
|
||||
the GNU Binutils.
|
||||
|
@ -74,8 +74,7 @@ struct sparc_opcode_arch {
|
|||
extern const struct sparc_opcode_arch sparc_opcode_archs[];
|
||||
|
||||
/* Given architecture name, look up it's sparc_opcode_arch_val value. */
|
||||
extern enum sparc_opcode_arch_val sparc_opcode_lookup_arch
|
||||
PARAMS ((const char *));
|
||||
extern enum sparc_opcode_arch_val sparc_opcode_lookup_arch (const char *);
|
||||
|
||||
/* Return the bitmask of supported architectures for ARCH. */
|
||||
#define SPARC_OPCODE_SUPPORTED(ARCH) (sparc_opcode_archs[ARCH].supported)
|
||||
|
@ -223,14 +222,14 @@ The following chars are unused: (note: ,[] are used as punctuation)
|
|||
extern const struct sparc_opcode sparc_opcodes[];
|
||||
extern const int sparc_num_opcodes;
|
||||
|
||||
extern int sparc_encode_asi PARAMS ((const char *));
|
||||
extern const char *sparc_decode_asi PARAMS ((int));
|
||||
extern int sparc_encode_membar PARAMS ((const char *));
|
||||
extern const char *sparc_decode_membar PARAMS ((int));
|
||||
extern int sparc_encode_prefetch PARAMS ((const char *));
|
||||
extern const char *sparc_decode_prefetch PARAMS ((int));
|
||||
extern int sparc_encode_sparclet_cpreg PARAMS ((const char *));
|
||||
extern const char *sparc_decode_sparclet_cpreg PARAMS ((int));
|
||||
extern int sparc_encode_asi (const char *);
|
||||
extern const char *sparc_decode_asi (int);
|
||||
extern int sparc_encode_membar (const char *);
|
||||
extern const char *sparc_decode_membar (int);
|
||||
extern int sparc_encode_prefetch (const char *);
|
||||
extern const char *sparc_decode_prefetch (int);
|
||||
extern int sparc_encode_sparclet_cpreg (const char *);
|
||||
extern const char *sparc_decode_sparclet_cpreg (int);
|
||||
|
||||
/*
|
||||
* Local Variables:
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* tic80.h -- Header file for TI TMS320C80 (MV) opcode table
|
||||
Copyright 1996, 1997 Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 2003 Free Software Foundation, Inc.
|
||||
Written by Fred Fish (fnf@cygnus.com), Cygnus Support
|
||||
|
||||
This file is part of GDB, GAS, and the GNU binutils.
|
||||
|
@ -90,8 +90,8 @@ struct tic80_operand
|
|||
operand value is legal, *ERRMSG will be unchanged (most operands
|
||||
can accept any value). */
|
||||
|
||||
unsigned long (*insert) PARAMS ((unsigned long instruction, long op,
|
||||
const char **errmsg));
|
||||
unsigned long (*insert)
|
||||
(unsigned long instruction, long op, const char **errmsg);
|
||||
|
||||
/* Extraction function. This is used by the disassembler. To
|
||||
extract this operand type from an instruction, check this field.
|
||||
|
@ -111,7 +111,7 @@ struct tic80_operand
|
|||
this operand (i.e., the instruction does not match). If the
|
||||
operand is valid, *INVALID will not be changed. */
|
||||
|
||||
long (*extract) PARAMS ((unsigned long instruction, int *invalid));
|
||||
long (*extract) (unsigned long instruction, int *invalid);
|
||||
|
||||
/* One bit syntax flags. */
|
||||
|
||||
|
@ -265,13 +265,18 @@ struct predefined_symbol
|
|||
#define PDS_NAME(pdsp) ((pdsp) -> name)
|
||||
#define PDS_VALUE(pdsp) ((pdsp) -> value)
|
||||
|
||||
extern const struct predefined_symbol tic80_predefined_symbols[]; /* Translation array */
|
||||
extern const int tic80_num_predefined_symbols; /* How many members in the array */
|
||||
/* Translation array. */
|
||||
extern const struct predefined_symbol tic80_predefined_symbols[];
|
||||
/* How many members in the array. */
|
||||
extern const int tic80_num_predefined_symbols;
|
||||
|
||||
const char *tic80_value_to_symbol PARAMS ((int val, int class)); /* Translate value to symbolic name */
|
||||
int tic80_symbol_to_value PARAMS ((char *name, int class)); /* Translate symbolic name to value */
|
||||
/* Translate value to symbolic name. */
|
||||
const char *tic80_value_to_symbol (int val, int class);
|
||||
|
||||
const struct predefined_symbol *
|
||||
tic80_next_predefined_symbol PARAMS ((const struct predefined_symbol *));
|
||||
/* Translate symbolic name to value. */
|
||||
int tic80_symbol_to_value (char *name, int class);
|
||||
|
||||
const struct predefined_symbol *tic80_next_predefined_symbol
|
||||
(const struct predefined_symbol *);
|
||||
|
||||
#endif /* TIC80_H */
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/* v850.h -- Header file for NEC V850 opcode table
|
||||
Copyright 1996, 1997, 2001 Free Software Foundation, Inc.
|
||||
Copyright 1996, 1997, 2001, 2003 Free Software Foundation, Inc.
|
||||
Written by J.T. Conklin, Cygnus Support
|
||||
|
||||
This file is part of GDB, GAS, and the GNU binutils.
|
||||
|
@ -95,8 +95,8 @@ struct v850_operand
|
|||
string (the operand will be inserted in any case). If the
|
||||
operand value is legal, *ERRMSG will be unchanged (most operands
|
||||
can accept any value). */
|
||||
unsigned long (* insert) PARAMS ((unsigned long instruction, long op,
|
||||
const char ** errmsg));
|
||||
unsigned long (* insert)
|
||||
(unsigned long instruction, long op, const char ** errmsg);
|
||||
|
||||
/* Extraction function. This is used by the disassembler. To
|
||||
extract this operand type from an instruction, check this field.
|
||||
|
@ -114,7 +114,7 @@ struct v850_operand
|
|||
non-zero if this operand type can not actually be extracted from
|
||||
this operand (i.e., the instruction does not match). If the
|
||||
operand is valid, *INVALID will not be changed. */
|
||||
unsigned long (* extract) PARAMS ((unsigned long instruction, int * invalid));
|
||||
unsigned long (* extract) (unsigned long instruction, int * invalid);
|
||||
|
||||
/* One bit syntax flags. */
|
||||
int flags;
|
||||
|
|
Loading…
Reference in a new issue