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: implement NPTL helpers
[deliverable/binutils-gdb.git]
/
gas
/
ecoff.c
diff --git
a/gas/ecoff.c
b/gas/ecoff.c
index d623ba9ca91e571752a6b7695f3bd7868162be34..32dd81fb563e9d7143bf6bcad54b8c7f0b4ae832 100644
(file)
--- a/
gas/ecoff.c
+++ b/
gas/ecoff.c
@@
-1,7
+1,5
@@
/* ECOFF debugging support.
/* ECOFF debugging support.
- Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
- 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 1993-2015 Free Software Foundation, Inc.
Contributed by Cygnus Support.
This file was put together by Ian Lance Taylor <ian@cygnus.com>. A
good deal of it comes directly from mips-tfile.c, by Michael
Contributed by Cygnus Support.
This file was put together by Ian Lance Taylor <ian@cygnus.com>. A
good deal of it comes directly from mips-tfile.c, by Michael
@@
-27,8
+25,7
@@
#include "as.h"
/* This file is compiled conditionally for those targets which use
#include "as.h"
/* This file is compiled conditionally for those targets which use
- ECOFF debugging information (e.g., MIPS ECOFF, MIPS ELF, Alpha
- ECOFF). */
+ ECOFF debugging information (e.g., MIPS ELF, Alpha ECOFF). */
#include "ecoff.h"
#include "ecoff.h"
@@
-37,7
+34,7
@@
#include "coff/internal.h"
#include "coff/symconst.h"
#include "aout/stab_gnu.h"
#include "coff/internal.h"
#include "coff/symconst.h"
#include "aout/stab_gnu.h"
-
+#include "filenames.h"
#include "safe-ctype.h"
/* Why isn't this in coff/sym.h? */
#include "safe-ctype.h"
/* Why isn't this in coff/sym.h? */
@@
-1555,8
+1552,8
@@
add_string (varray_t *vp, /* string obstack */
const char *str, /* string */
shash_t **ret_hash /* return hash pointer */)
{
const char *str, /* string */
shash_t **ret_hash /* return hash pointer */)
{
-
register
unsigned long len = strlen (str);
-
register
shash_t *hash_ptr;
+ unsigned long len = strlen (str);
+ shash_t *hash_ptr;
if (len >= PAGE_USIZE)
as_fatal (_("string too big (%lu bytes)"), len);
if (len >= PAGE_USIZE)
as_fatal (_("string too big (%lu bytes)"), len);
@@
-1564,7
+1561,7
@@
add_string (varray_t *vp, /* string obstack */
hash_ptr = (shash_t *) hash_find (hash_tbl, str);
if (hash_ptr == (shash_t *) NULL)
{
hash_ptr = (shash_t *) hash_find (hash_tbl, str);
if (hash_ptr == (shash_t *) NULL)
{
-
register
const char *err;
+ const char *err;
if (vp->objects_last_page + len >= PAGE_USIZE)
{
if (vp->objects_last_page + len >= PAGE_USIZE)
{
@@
-1607,12
+1604,12
@@
add_ecoff_symbol (const char *str, /* symbol name */
symint_t indx /* index to local/aux. syms */)
{
localsym_t *psym;
symint_t indx /* index to local/aux. syms */)
{
localsym_t *psym;
-
register
scope_t *pscope;
-
register
thead_t *ptag_head;
-
register
tag_t *ptag;
-
register
tag_t *ptag_next;
-
register
varray_t *vp;
-
register
int scope_delta = 0;
+ scope_t *pscope;
+ thead_t *ptag_head;
+ tag_t *ptag;
+ tag_t *ptag_next;
+ varray_t *vp;
+ int scope_delta = 0;
shash_t *hash_ptr = (shash_t *) NULL;
if (cur_file_ptr == (efdr_t *) NULL)
shash_t *hash_ptr = (shash_t *) NULL;
if (cur_file_ptr == (efdr_t *) NULL)
@@
-1805,8
+1802,8
@@
add_ecoff_symbol (const char *str, /* symbol name */
static symint_t
add_aux_sym_symint (symint_t aux_word /* auxiliary information word */)
{
static symint_t
add_aux_sym_symint (symint_t aux_word /* auxiliary information word */)
{
-
register
varray_t *vp;
-
register
aux_t *aux_ptr;
+ varray_t *vp;
+ aux_t *aux_ptr;
if (cur_file_ptr == (efdr_t *) NULL)
as_fatal (_("no current file pointer"));
if (cur_file_ptr == (efdr_t *) NULL)
as_fatal (_("no current file pointer"));
@@
-1828,8
+1825,8
@@
add_aux_sym_symint (symint_t aux_word /* auxiliary information word */)
static symint_t
add_aux_sym_rndx (int file_index, symint_t sym_index)
{
static symint_t
add_aux_sym_rndx (int file_index, symint_t sym_index)
{
-
register
varray_t *vp;
-
register
aux_t *aux_ptr;
+ varray_t *vp;
+ aux_t *aux_ptr;
if (cur_file_ptr == (efdr_t *) NULL)
as_fatal (_("no current file pointer"));
if (cur_file_ptr == (efdr_t *) NULL)
as_fatal (_("no current file pointer"));
@@
-1855,8
+1852,8
@@
add_aux_sym_tir (type_info_t *t, /* current type information */
hash_state_t state, /* whether to hash type or not */
thash_t **hash_tbl /* pointer to hash table to use */)
{
hash_state_t state, /* whether to hash type or not */
thash_t **hash_tbl /* pointer to hash table to use */)
{
-
register
varray_t *vp;
-
register
aux_t *aux_ptr;
+ varray_t *vp;
+ aux_t *aux_ptr;
static AUXU init_aux;
symint_t ret;
int i;
static AUXU init_aux;
symint_t ret;
int i;
@@
-1903,8
+1900,8
@@
add_aux_sym_tir (type_info_t *t, /* current type information */
if (state != hash_no)
{
if (state != hash_no)
{
-
register
thash_t *hash_ptr;
-
register
symint_t hi;
+ thash_t *hash_ptr;
+ symint_t hi;
hi = aux.isym & ((1 << HASHBITS) - 1);
hi %= THASH_SIZE;
hi = aux.isym & ((1 << HASHBITS) - 1);
hi %= THASH_SIZE;
@@
-1960,9
+1957,9
@@
add_aux_sym_tir (type_info_t *t, /* current type information */
|| t->basic_type == bt_Union
|| t->basic_type == bt_Enum)
{
|| t->basic_type == bt_Union
|| t->basic_type == bt_Enum)
{
-
register
symint_t file_index = t->tag_ptr->ifd;
-
register
localsym_t *sym = t->tag_ptr->sym;
-
register
forward_t *forward_ref = allocate_forward ();
+ symint_t file_index = t->tag_ptr->ifd;
+ localsym_t *sym = t->tag_ptr->sym;
+ forward_t *forward_ref = allocate_forward ();
if (sym != (localsym_t *) NULL)
{
if (sym != (localsym_t *) NULL)
{
@@
-2117,8
+2114,8
@@
add_unknown_tag (tag_t *ptag /* pointer to tag information */)
static void
add_procedure (char *func /* func name */)
{
static void
add_procedure (char *func /* func name */)
{
-
register
varray_t *vp;
-
register
proc_t *new_proc_ptr;
+ varray_t *vp;
+ proc_t *new_proc_ptr;
symbolS *sym;
#ifdef ECOFF_DEBUG
symbolS *sym;
#ifdef ECOFF_DEBUG
@@
-2187,8
+2184,8
@@
ecoff_get_cur_proc_sym (void)
static void
add_file (const char *file_name, int indx ATTRIBUTE_UNUSED, int fake)
{
static void
add_file (const char *file_name, int indx ATTRIBUTE_UNUSED, int fake)
{
-
register
int first_ch;
-
register
efdr_t *fil_ptr;
+ int first_ch;
+ efdr_t *fil_ptr;
#ifdef ECOFF_DEBUG
if (debug)
#ifdef ECOFF_DEBUG
if (debug)
@@
-2257,7
+2254,7
@@
add_file (const char *file_name, int indx ATTRIBUTE_UNUSED, int fake)
fil_ptr = fil_ptr->next_file)
{
if (first_ch == fil_ptr->name[0]
fil_ptr = fil_ptr->next_file)
{
if (first_ch == fil_ptr->name[0]
- &&
str
cmp (file_name, fil_ptr->name) == 0
+ &&
filename_
cmp (file_name, fil_ptr->name) == 0
&& fil_ptr->fdr.fMerge)
{
cur_file_ptr = fil_ptr;
&& fil_ptr->fdr.fMerge)
{
cur_file_ptr = fil_ptr;
@@
-2325,7
+2322,7
@@
add_file (const char *file_name, int indx ATTRIBUTE_UNUSED, int fake)
void
ecoff_new_file (const char *name, int appfile ATTRIBUTE_UNUSED)
{
void
ecoff_new_file (const char *name, int appfile ATTRIBUTE_UNUSED)
{
- if (cur_file_ptr != NULL &&
str
cmp (cur_file_ptr->name, name) == 0)
+ if (cur_file_ptr != NULL &&
filename_
cmp (cur_file_ptr->name, name) == 0)
return;
add_file (name, 0, 0);
return;
add_file (name, 0, 0);
@@
-2535,7
+2532,7
@@
ecoff_directive_def (int ignore ATTRIBUTE_UNUSED)
free (coff_sym_name);
if (coff_tag != (char *) NULL)
free (coff_tag);
free (coff_sym_name);
if (coff_tag != (char *) NULL)
free (coff_tag);
-
+
coff_sym_name = xstrdup (name);
coff_type = type_info_init;
coff_storage_class = sc_Nil;
coff_sym_name = xstrdup (name);
coff_type = type_info_init;
coff_storage_class = sc_Nil;
@@
-3589,12
+3586,12
@@
ecoff_frob_symbol (symbolS *sym)
but with the name .scommon. */
if (scom_section.name == NULL)
{
but with the name .scommon. */
if (scom_section.name == NULL)
{
- scom_section =
bfd_com_section
;
+ scom_section =
*bfd_com_section_ptr
;
scom_section.name = ".scommon";
scom_section.output_section = &scom_section;
scom_section.symbol = &scom_symbol;
scom_section.symbol_ptr_ptr = &scom_section.symbol;
scom_section.name = ".scommon";
scom_section.output_section = &scom_section;
scom_section.symbol = &scom_symbol;
scom_section.symbol_ptr_ptr = &scom_section.symbol;
- scom_symbol = *bfd_com_section
.
symbol;
+ scom_symbol = *bfd_com_section
_ptr->
symbol;
scom_symbol.name = ".scommon";
scom_symbol.section = &scom_section;
}
scom_symbol.name = ".scommon";
scom_symbol.section = &scom_section;
}
@@
-3670,7
+3667,7
@@
ecoff_build_lineno (const struct ecoff_debug_swap *backend,
long *linecntptr)
{
char *bufptr;
long *linecntptr)
{
char *bufptr;
-
register
lineno_list_t *l;
+ lineno_list_t *l;
lineno_list_t *last;
efdr_t *file;
proc_t *proc;
lineno_list_t *last;
efdr_t *file;
proc_t *proc;
@@
-4076,7
+4073,7
@@
ecoff_build_symbols (const struct ecoff_debug_swap *backend,
sc = sc_Bss;
else if (strcmp (segname, ".sbss") == 0)
sc = sc_SBss;
sc = sc_Bss;
else if (strcmp (segname, ".sbss") == 0)
sc = sc_SBss;
- else if (seg ==
&bfd_abs_section
)
+ else if (seg ==
bfd_abs_section_ptr
)
sc = sc_Abs;
else
{
sc = sc_Abs;
else
{
@@
-4595,7
+4592,7
@@
ecoff_build_fdr (const struct ecoff_debug_swap *backend,
static void
ecoff_setup_ext (void)
{
static void
ecoff_setup_ext (void)
{
-
register
symbolS *sym;
+ symbolS *sym;
for (sym = symbol_rootP; sym != (symbolS *) NULL; sym = symbol_next (sym))
{
for (sym = symbol_rootP; sym != (symbolS *) NULL; sym = symbol_next (sym))
{
@@
-4791,7
+4788,7
@@
ecoff_build_debug (HDRR *hdr,
static page_type *
allocate_cluster (unsigned long npages)
{
static page_type *
allocate_cluster (unsigned long npages)
{
-
register
page_type *value = (page_type *) xmalloc (npages * PAGE_USIZE);
+ page_type *value = (page_type *) xmalloc (npages * PAGE_USIZE);
#ifdef ECOFF_DEBUG
if (debug > 3)
#ifdef ECOFF_DEBUG
if (debug > 3)
@@
-4840,7
+4837,7
@@
allocate_page (void)
static scope_t *
allocate_scope (void)
{
static scope_t *
allocate_scope (void)
{
-
register
scope_t *ptr;
+ scope_t *ptr;
static scope_t initial_scope;
#ifndef MALLOC_CHECK
static scope_t initial_scope;
#ifndef MALLOC_CHECK
@@
-4850,8
+4847,8
@@
allocate_scope (void)
alloc_counts[(int) alloc_type_scope].free_list.f_scope = ptr->free;
else
{
alloc_counts[(int) alloc_type_scope].free_list.f_scope = ptr->free;
else
{
-
register int unallocated
= alloc_counts[(int) alloc_type_scope].unallocated;
-
register page_type *cur_page
= alloc_counts[(int) alloc_type_scope].cur_page;
+
int unallocated
= alloc_counts[(int) alloc_type_scope].unallocated;
+
page_type *cur_page
= alloc_counts[(int) alloc_type_scope].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-4895,13
+4892,13
@@
free_scope (scope_t *ptr)
static vlinks_t *
allocate_vlinks (void)
{
static vlinks_t *
allocate_vlinks (void)
{
-
register
vlinks_t *ptr;
+ vlinks_t *ptr;
static vlinks_t initial_vlinks;
#ifndef MALLOC_CHECK
static vlinks_t initial_vlinks;
#ifndef MALLOC_CHECK
-
register
int unallocated = alloc_counts[(int) alloc_type_vlinks].unallocated;
-
register
page_type *cur_page = alloc_counts[(int) alloc_type_vlinks].cur_page;
+ int unallocated = alloc_counts[(int) alloc_type_vlinks].unallocated;
+ page_type *cur_page = alloc_counts[(int) alloc_type_vlinks].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-4929,13
+4926,13
@@
allocate_vlinks (void)
static shash_t *
allocate_shash (void)
{
static shash_t *
allocate_shash (void)
{
-
register
shash_t *ptr;
+ shash_t *ptr;
static shash_t initial_shash;
#ifndef MALLOC_CHECK
static shash_t initial_shash;
#ifndef MALLOC_CHECK
-
register
int unallocated = alloc_counts[(int) alloc_type_shash].unallocated;
-
register
page_type *cur_page = alloc_counts[(int) alloc_type_shash].cur_page;
+ int unallocated = alloc_counts[(int) alloc_type_shash].unallocated;
+ page_type *cur_page = alloc_counts[(int) alloc_type_shash].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-4963,13
+4960,13
@@
allocate_shash (void)
static thash_t *
allocate_thash (void)
{
static thash_t *
allocate_thash (void)
{
-
register
thash_t *ptr;
+ thash_t *ptr;
static thash_t initial_thash;
#ifndef MALLOC_CHECK
static thash_t initial_thash;
#ifndef MALLOC_CHECK
-
register
int unallocated = alloc_counts[(int) alloc_type_thash].unallocated;
-
register
page_type *cur_page = alloc_counts[(int) alloc_type_thash].cur_page;
+ int unallocated = alloc_counts[(int) alloc_type_thash].unallocated;
+ page_type *cur_page = alloc_counts[(int) alloc_type_thash].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-4997,7
+4994,7
@@
allocate_thash (void)
static tag_t *
allocate_tag (void)
{
static tag_t *
allocate_tag (void)
{
-
register
tag_t *ptr;
+ tag_t *ptr;
static tag_t initial_tag;
#ifndef MALLOC_CHECK
static tag_t initial_tag;
#ifndef MALLOC_CHECK
@@
-5007,8
+5004,8
@@
allocate_tag (void)
alloc_counts[(int) alloc_type_tag].free_list.f_tag = ptr->free;
else
{
alloc_counts[(int) alloc_type_tag].free_list.f_tag = ptr->free;
else
{
-
register
int unallocated = alloc_counts[(int) alloc_type_tag].unallocated;
-
register
page_type *cur_page = alloc_counts[(int) alloc_type_tag].cur_page;
+ int unallocated = alloc_counts[(int) alloc_type_tag].unallocated;
+ page_type *cur_page = alloc_counts[(int) alloc_type_tag].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-5052,13
+5049,13
@@
free_tag (tag_t *ptr)
static forward_t *
allocate_forward (void)
{
static forward_t *
allocate_forward (void)
{
-
register
forward_t *ptr;
+ forward_t *ptr;
static forward_t initial_forward;
#ifndef MALLOC_CHECK
static forward_t initial_forward;
#ifndef MALLOC_CHECK
-
register
int unallocated = alloc_counts[(int) alloc_type_forward].unallocated;
-
register
page_type *cur_page = alloc_counts[(int) alloc_type_forward].cur_page;
+ int unallocated = alloc_counts[(int) alloc_type_forward].unallocated;
+ page_type *cur_page = alloc_counts[(int) alloc_type_forward].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-5086,7
+5083,7
@@
allocate_forward (void)
static thead_t *
allocate_thead (void)
{
static thead_t *
allocate_thead (void)
{
-
register
thead_t *ptr;
+ thead_t *ptr;
static thead_t initial_thead;
#ifndef MALLOC_CHECK
static thead_t initial_thead;
#ifndef MALLOC_CHECK
@@
-5096,8
+5093,8
@@
allocate_thead (void)
alloc_counts[(int) alloc_type_thead].free_list.f_thead = ptr->free;
else
{
alloc_counts[(int) alloc_type_thead].free_list.f_thead = ptr->free;
else
{
-
register
int unallocated = alloc_counts[(int) alloc_type_thead].unallocated;
-
register
page_type *cur_page = alloc_counts[(int) alloc_type_thead].cur_page;
+ int unallocated = alloc_counts[(int) alloc_type_thead].unallocated;
+ page_type *cur_page = alloc_counts[(int) alloc_type_thead].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-5139,13
+5136,13
@@
free_thead (thead_t *ptr)
static lineno_list_t *
allocate_lineno_list (void)
{
static lineno_list_t *
allocate_lineno_list (void)
{
-
register
lineno_list_t *ptr;
+ lineno_list_t *ptr;
static lineno_list_t initial_lineno_list;
#ifndef MALLOC_CHECK
static lineno_list_t initial_lineno_list;
#ifndef MALLOC_CHECK
-
register
int unallocated = alloc_counts[(int) alloc_type_lineno].unallocated;
-
register
page_type *cur_page = alloc_counts[(int) alloc_type_lineno].cur_page;
+ int unallocated = alloc_counts[(int) alloc_type_lineno].unallocated;
+ page_type *cur_page = alloc_counts[(int) alloc_type_lineno].cur_page;
if (unallocated == 0)
{
if (unallocated == 0)
{
@@
-5200,7
+5197,7
@@
ecoff_generate_asm_lineno (void)
as_where (&filename, &lineno);
if (current_stabs_filename == (char *) NULL
as_where (&filename, &lineno);
if (current_stabs_filename == (char *) NULL
- ||
str
cmp (current_stabs_filename, filename))
+ ||
filename_
cmp (current_stabs_filename, filename))
add_file (filename, 0, 1);
list = allocate_lineno_list ();
add_file (filename, 0, 1);
list = allocate_lineno_list ();
This page took
0.035781 seconds
and
4
git commands to generate.