mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
gas: drop unused fields from struct emulation
Neither .match not .bfd_name appear to ever have been used in the last about 25 years. Purge them.
This commit is contained in:
7
gas/as.c
7
gas/as.c
@@ -182,13 +182,6 @@ select_emulation_mode (int argc, char **argv)
|
|||||||
this_emulation->init ();
|
this_emulation->init ();
|
||||||
}
|
}
|
||||||
|
|
||||||
const char *
|
|
||||||
default_emul_bfd_name (void)
|
|
||||||
{
|
|
||||||
abort ();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void
|
void
|
||||||
common_emul_init (void)
|
common_emul_init (void)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -20,16 +20,6 @@
|
|||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "emul.h"
|
#include "emul.h"
|
||||||
|
|
||||||
static const char *crisaout_bfd_name (void);
|
|
||||||
|
|
||||||
static const char *
|
|
||||||
crisaout_bfd_name (void)
|
|
||||||
{
|
|
||||||
abort ();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define emul_bfd_name crisaout_bfd_name
|
|
||||||
#define emul_format &aout_format_ops
|
#define emul_format &aout_format_ops
|
||||||
|
|
||||||
#define emul_name "crisaout"
|
#define emul_name "crisaout"
|
||||||
|
|||||||
@@ -20,16 +20,6 @@
|
|||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "emul.h"
|
#include "emul.h"
|
||||||
|
|
||||||
static const char *criself_bfd_name (void);
|
|
||||||
|
|
||||||
static const char *
|
|
||||||
criself_bfd_name (void)
|
|
||||||
{
|
|
||||||
abort ();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define emul_bfd_name criself_bfd_name
|
|
||||||
#define emul_format &elf_format_ops
|
#define emul_format &elf_format_ops
|
||||||
|
|
||||||
#define emul_name "criself"
|
#define emul_name "criself"
|
||||||
|
|||||||
@@ -20,16 +20,6 @@
|
|||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "emul.h"
|
#include "emul.h"
|
||||||
|
|
||||||
static const char *i386aout_bfd_name (void);
|
|
||||||
|
|
||||||
static const char *
|
|
||||||
i386aout_bfd_name (void)
|
|
||||||
{
|
|
||||||
abort ();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define emul_bfd_name i386aout_bfd_name
|
|
||||||
#define emul_format &aout_format_ops
|
#define emul_format &aout_format_ops
|
||||||
|
|
||||||
#define emul_name "i386aout"
|
#define emul_name "i386aout"
|
||||||
|
|||||||
@@ -20,16 +20,6 @@
|
|||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "emul.h"
|
#include "emul.h"
|
||||||
|
|
||||||
static const char *i386coff_bfd_name (void);
|
|
||||||
|
|
||||||
static const char *
|
|
||||||
i386coff_bfd_name (void)
|
|
||||||
{
|
|
||||||
abort ();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define emul_bfd_name i386coff_bfd_name
|
|
||||||
#define emul_format &coff_format_ops
|
#define emul_format &coff_format_ops
|
||||||
|
|
||||||
#define emul_name "i386coff"
|
#define emul_name "i386coff"
|
||||||
|
|||||||
@@ -20,16 +20,6 @@
|
|||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "emul.h"
|
#include "emul.h"
|
||||||
|
|
||||||
static const char *i386elf_bfd_name (void);
|
|
||||||
|
|
||||||
static const char *
|
|
||||||
i386elf_bfd_name (void)
|
|
||||||
{
|
|
||||||
abort ();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define emul_bfd_name i386elf_bfd_name
|
|
||||||
#define emul_format &elf_format_ops
|
#define emul_format &elf_format_ops
|
||||||
|
|
||||||
#define emul_name "i386elf"
|
#define emul_name "i386elf"
|
||||||
|
|||||||
@@ -20,16 +20,6 @@
|
|||||||
#include "as.h"
|
#include "as.h"
|
||||||
#include "emul.h"
|
#include "emul.h"
|
||||||
|
|
||||||
static const char *mipself_bfd_name (void);
|
|
||||||
|
|
||||||
static const char *
|
|
||||||
mipself_bfd_name (void)
|
|
||||||
{
|
|
||||||
abort ();
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
#define emul_bfd_name mipself_bfd_name
|
|
||||||
#define emul_format &elf_format_ops
|
#define emul_format &elf_format_ops
|
||||||
|
|
||||||
#define emul_name "mipsbelf"
|
#define emul_name "mipsbelf"
|
||||||
|
|||||||
@@ -22,10 +22,6 @@
|
|||||||
#define emul_init common_emul_init
|
#define emul_init common_emul_init
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifndef emul_bfd_name
|
|
||||||
#define emul_bfd_name default_emul_bfd_name
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef emul_local_labels_fb
|
#ifndef emul_local_labels_fb
|
||||||
#define emul_local_labels_fb 0
|
#define emul_local_labels_fb 0
|
||||||
#endif
|
#endif
|
||||||
@@ -48,10 +44,8 @@
|
|||||||
|
|
||||||
struct emulation emul_struct_name =
|
struct emulation emul_struct_name =
|
||||||
{
|
{
|
||||||
0,
|
|
||||||
emul_name,
|
emul_name,
|
||||||
emul_init,
|
emul_init,
|
||||||
emul_bfd_name,
|
|
||||||
emul_local_labels_fb, emul_local_labels_dollar,
|
emul_local_labels_fb, emul_local_labels_dollar,
|
||||||
emul_leading_underscore,
|
emul_leading_underscore,
|
||||||
emul_default_endian,
|
emul_default_endian,
|
||||||
|
|||||||
@@ -23,10 +23,8 @@
|
|||||||
|
|
||||||
struct emulation
|
struct emulation
|
||||||
{
|
{
|
||||||
void (* match) (const char *);
|
|
||||||
const char * name;
|
const char * name;
|
||||||
void (* init) (void);
|
void (* init) (void);
|
||||||
const char *(* bfd_name) (void);
|
|
||||||
unsigned local_labels_fb : 1;
|
unsigned local_labels_fb : 1;
|
||||||
unsigned local_labels_dollar : 1;
|
unsigned local_labels_dollar : 1;
|
||||||
unsigned leading_underscore : 2;
|
unsigned leading_underscore : 2;
|
||||||
@@ -37,7 +35,6 @@ struct emulation
|
|||||||
|
|
||||||
COMMON struct emulation * this_emulation;
|
COMMON struct emulation * this_emulation;
|
||||||
|
|
||||||
extern const char * default_emul_bfd_name (void);
|
|
||||||
extern void common_emul_init (void);
|
extern void common_emul_init (void);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user