From 4dd7201eac0b2f44f0f5b91dc2150a68aff5e389 Mon Sep 17 00:00:00 2001 From: Zack Weinberg Date: Tue, 25 Jan 2000 17:13:14 +0000 Subject: 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 --- gcc/c-pragma.c | 26 ++++---------------------- 1 file changed, 4 insertions(+), 22 deletions(-) (limited to 'gcc/c-pragma.c') 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: -- cgit v1.1