aboutsummaryrefslogtreecommitdiff
path: root/gas/symbols.c
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2005-04-19 15:05:09 +0000
committerJan Beulich <jbeulich@novell.com>2005-04-19 15:05:09 +0000
commit91c4c44904833bf50cc90e18c2e5cf46c7565b8f (patch)
treeb1ab95254b4ea0293baba397b3ed7fcb8d409bee /gas/symbols.c
parent80b8152b3c463c43c02eb1dfe691824120225f0d (diff)
downloadgdb-91c4c44904833bf50cc90e18c2e5cf46c7565b8f.zip
gdb-91c4c44904833bf50cc90e18c2e5cf46c7565b8f.tar.gz
gdb-91c4c44904833bf50cc90e18c2e5cf46c7565b8f.tar.bz2
gas/
2005-04-19 Jan Beulich <jbeulich@novell.com> * symbols.h (symbol_find_base): Remove prototype. * symbols.c (save_symbol_name): Remove code section conditional upon STRIP_UNDERSCORE. (symbol_find): Remove. (symbol_find_base): Rename to symbol_find. * subsegs.c (section_symbol): Replace use of symbol_find_base with symbol_find. * config/obj-coff.c (tag_insert): Remove code section conditional upon STRIP_UNDERSCORE. (obj_coff_def): Likewise. (obj_coff_endef): Replace use of symbol_find_base with symbol_find. (coff_frob_symbol): Likewise. (yank_symbols): Likewise. (c_section_symbol): Likewise. * config/obj-coff.h (DO_NOT_STRIP): Remove. * config/tc-arm.c (symbol_locate): Remove code section conditional upon STRIP_UNDERSCORE. * config/tc-h8300.h (DO_NOT_STRIP): Remove. * config/tc-h8500.h (DO_NOT_STRIP): Remove. * config/tc-sh.h (DO_NOT_STRIP): Remove. * config/tc-w65.h (DO_NOT_STRIP): Remove. * config/tc-z8k.h (DO_NOT_STRIP): Remove.
Diffstat (limited to 'gas/symbols.c')
-rw-r--r--gas/symbols.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/gas/symbols.c b/gas/symbols.c
index 002ae35..a7f0581 100644
--- a/gas/symbols.c
+++ b/gas/symbols.c
@@ -113,11 +113,6 @@ save_symbol_name (const char *name)
obstack_grow (&notes, name, name_length);
ret = obstack_finish (&notes);
-#ifdef STRIP_UNDERSCORE
- if (ret[0] == '_')
- ++ret;
-#endif
-
#ifdef tc_canonicalize_symbol_name
ret = tc_canonicalize_symbol_name (ret);
#endif
@@ -600,16 +595,6 @@ symbol_temp_make (void)
of a struct symbol associated with that name. */
symbolS *
-symbol_find (const char *name)
-{
-#ifdef STRIP_UNDERSCORE
- return (symbol_find_base (name, 1));
-#else /* STRIP_UNDERSCORE */
- return (symbol_find_base (name, 0));
-#endif /* STRIP_UNDERSCORE */
-}
-
-symbolS *
symbol_find_exact (const char *name)
{
#ifdef BFD_ASSEMBLER
@@ -626,11 +611,8 @@ symbol_find_exact (const char *name)
}
symbolS *
-symbol_find_base (const char *name, int strip_underscore)
+symbol_find (const char *name)
{
- if (strip_underscore && *name == '_')
- name++;
-
#ifdef tc_canonicalize_symbol_name
{
char *copy;