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-pragma.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-pragma.c')
-rw-r--r-- | gcc/c-pragma.c | 26 |
1 files changed, 4 insertions, 22 deletions
diff --git a/gcc/c-pragma.c b/gcc/c-pragma.c index 5055b3f..2adfcc7 100644 --- a/gcc/c-pragma.c +++ b/gcc/c-pragma.c @@ -303,17 +303,8 @@ handle_pragma_token (string, token) #ifdef HANDLE_PRAGMA_WEAK case ps_weak: - name = permalloc (strlen (string) + 1); - if (name == NULL) - { - warning ("Out of memory parsing #pragma weak"); - state = ps_bad; - } - else - { - strcpy (name, string); - state = ps_name; - } + name = xstrdup (string); + state = ps_name; break; case ps_name: @@ -321,17 +312,8 @@ handle_pragma_token (string, token) break; case ps_equals: - value = permalloc (strlen (string) + 1); - if (value == NULL) - { - warning ("Out of memory parsing #pragma weak"); - state = ps_bad; - } - else - { - strcpy (value, string); - state = ps_value; - } + value = xstrdup (string); + state = ps_value; break; case ps_value: |