diff options
Diffstat (limited to 'gcc/tree.c')
-rw-r--r-- | gcc/tree.c | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -179,12 +179,6 @@ static void finish_vector_type PARAMS((tree)); void (*lang_unsave) PARAMS ((tree *)); void (*lang_unsave_expr_now) PARAMS ((tree)); -/* The string used as a placeholder instead of a source file name for - built-in tree nodes. The variable, which is dynamically allocated, - should be used; the macro is only used to initialize it. */ - -static const char *built_in_filename; -#define BUILT_IN_FILENAME ("<built-in>") tree global_trees[TI_MAX]; tree integer_types[itk_none]; @@ -249,18 +243,6 @@ perm_calloc (nelem, size) return rval; } - -/* Init the tables indexed by tree code. - Note that languages can add to these tables to define their own codes. */ - -void -init_tree_codes () -{ - built_in_filename - = ggc_alloc_string (BUILT_IN_FILENAME, sizeof (BUILT_IN_FILENAME)); - ggc_add_string_root (&built_in_filename, 1); -} - /* Compute the number of bytes occupied by 'node'. This routine only looks at TREE_CODE and, if the code is TREE_VEC, TREE_VEC_LENGTH. */ size_t @@ -417,7 +399,7 @@ make_node (code) DECL_IN_SYSTEM_HEADER (t) = in_system_header; DECL_SOURCE_LINE (t) = lineno; DECL_SOURCE_FILE (t) = - (input_filename) ? input_filename : built_in_filename; + (input_filename) ? input_filename : "<built-in>"; DECL_UID (t) = next_decl_uid++; /* Note that we have not yet computed the alias set for this declaration. */ |