diff options
author | YamaArashi <shadow962@live.com> | 2016-04-27 18:47:50 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-04-27 18:47:50 -0700 |
commit | 4f3e13d6663d4865437a18b98078c23713454613 (patch) | |
tree | 03dee37caebd68d7f7000575103b9c0a669e9b20 /gcc | |
parent | fcfe6de1112c28e9ab5fbc4c1ea47275b3434368 (diff) |
remove global object name
Diffstat (limited to 'gcc')
-rwxr-xr-x | gcc/tree.c | 5 | ||||
-rwxr-xr-x | gcc/varasm.c | 33 |
2 files changed, 0 insertions, 38 deletions
@@ -4764,12 +4764,7 @@ dump_tree_statistics () print_obstack_statistics ("temp_decl_obstack", &temp_decl_obstack); print_inline_obstack_statistics (); } - - -extern char * first_global_object_name; -extern char * weak_global_object_name; - /* Expand (the constant part of) a SET_TYPE CONSTRUCTOR node. The result is placed in BUFFER (which has length BIT_SIZE), with one bit in each char ('\000' or '\001'). 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); |