summaryrefslogtreecommitdiff
path: root/gcc/varasm.c
diff options
context:
space:
mode:
authorYamaArashi <shadow962@live.com>2016-04-27 18:47:50 -0700
committerYamaArashi <shadow962@live.com>2016-04-27 18:47:50 -0700
commit4f3e13d6663d4865437a18b98078c23713454613 (patch)
tree03dee37caebd68d7f7000575103b9c0a669e9b20 /gcc/varasm.c
parentfcfe6de1112c28e9ab5fbc4c1ea47275b3434368 (diff)
remove global object name
Diffstat (limited to 'gcc/varasm.c')
-rwxr-xr-xgcc/varasm.c33
1 files changed, 0 insertions, 33 deletions
diff --git a/gcc/varasm.c b/gcc/varasm.c
index b311884..45d36dd 100755
--- a/gcc/varasm.c
+++ b/gcc/varasm.c
@@ -78,10 +78,6 @@ Boston, MA 02111-1307, USA. */
extern FILE *asm_out_file;
-/* The (assembler) name of the first globally-visible object output. */
-char *first_global_object_name;
-char *weak_global_object_name;
-
extern struct obstack *current_obstack;
extern struct obstack *saveable_obstack;
extern struct obstack *rtl_obstack;
@@ -876,21 +872,6 @@ assemble_start_function (decl, fnname)
if (TREE_PUBLIC (decl))
{
- if (! first_global_object_name)
- {
- char *p;
- char **name;
-
- if (! DECL_WEAK (decl) && ! DECL_ONE_ONLY (decl))
- name = &first_global_object_name;
- else
- name = &weak_global_object_name;
-
- STRIP_NAME_ENCODING (p, fnname);
- *name = permalloc (strlen (p) + 1);
- strcpy (*name, p);
- }
-
#ifdef ASM_WEAKEN_LABEL
if (DECL_WEAK (decl))
ASM_WEAKEN_LABEL (asm_out_file, fnname);
@@ -1210,20 +1191,6 @@ assemble_variable (decl, top_level, at_end, dont_output_data)
name = XSTR (XEXP (DECL_RTL (decl), 0), 0);
- if (TREE_PUBLIC (decl) && DECL_NAME (decl)
- && ! first_global_object_name
- && ! (DECL_COMMON (decl) && (DECL_INITIAL (decl) == 0
- || DECL_INITIAL (decl) == error_mark_node))
- && ! DECL_WEAK (decl)
- && ! DECL_ONE_ONLY (decl))
- {
- char *p;
-
- STRIP_NAME_ENCODING (p, name);
- first_global_object_name = permalloc (strlen (p) + 1);
- strcpy (first_global_object_name, p);
- }
-
/* Compute the alignment of this data. */
align = DECL_ALIGN (decl);