diff options
author | Zack Weinberg <zack@gcc.gnu.org> | 2000-01-25 17:13:14 +0000 |
---|---|---|
committer | Zack Weinberg <zack@gcc.gnu.org> | 2000-01-25 17:13:14 +0000 |
commit | 4dd7201eac0b2f44f0f5b91dc2150a68aff5e389 (patch) | |
tree | e3f4e1a3212b662d8c287e2abd1a0473dd49789b /gcc/c-common.c | |
parent | b5031ab715c5dcae4a61492da51b796934647f16 (diff) | |
download | gcc-4dd7201eac0b2f44f0f5b91dc2150a68aff5e389.zip gcc-4dd7201eac0b2f44f0f5b91dc2150a68aff5e389.tar.gz gcc-4dd7201eac0b2f44f0f5b91dc2150a68aff5e389.tar.bz2 |
c-common.c, [...]: Remove all references to obstack functions obsoleted by GC...
* c-common.c, c-decl.c, c-lang.c, c-lex.c, c-parse.in, c-pragma.c,
c-typeck.c, objc/objc-act.c: Remove all references to obstack
functions obsoleted by GC, such as push_obstacks_nochange,
end_temporary_allocation, savealloc, saveable_tree_cons, etc.
and code which existed only to decide whether or not to call
them. Remove now-unused NESTED argument from start_function;
all callers changed. Do not change behavior based on ggc_p.
The use of the ixp_obstack in c-iterate.c and the util_obstack
in objc/objc-act.c remain; these are not obsoleted by garbage
collection.
* c-tree.h: Update prototype for start_function.
* c-parse.y, c-parse.c, objc/objc-parse.c, objc/objc-parse.y: Rebuild.
From-SVN: r31611
Diffstat (limited to 'gcc/c-common.c')
-rw-r--r-- | gcc/c-common.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index f7d670c..3d08120 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -24,7 +24,6 @@ Boston, MA 02111-1307, USA. */ #include "c-lex.h" #include "c-tree.h" #include "flags.h" -#include "obstack.h" #include "toplev.h" #include "output.h" #include "c-pragma.h" @@ -291,7 +290,6 @@ declare_hidden_char_array (name, value) || warn_larger_than) type = build_array_type (char_type_node, build_index_type (build_int_2 (vlen, 0))); - push_obstacks_nochange (); decl = build_decl (VAR_DECL, get_identifier (name), type); TREE_STATIC (decl) = 1; TREE_READONLY (decl) = 1; @@ -345,7 +343,7 @@ combine_strings (strings) if (wide_flag) length = length * wchar_bytes + wide_length; - p = ggc_p ? ggc_alloc_string (NULL, length) : savealloc (length); + p = ggc_alloc_string (NULL, length); /* Copy the individual strings into the new combined string. If the combined string is wide, convert the chars to ints @@ -3491,7 +3489,7 @@ c_get_alias_set (t) if (!TYPE_ALIAS_SET_KNOWN_P (type)) { - /* Types that are not allocated on the permanent obstack are not + /* Types that are not global ('permanent') are not placed in the type hash table. Thus, there can be multiple copies of identical types in local scopes. In the long run, all types should be permanent. */ |