diff options
author | John F. Carr <jfc@mit.edu> | 1997-12-12 06:49:29 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1997-12-11 23:49:29 -0700 |
commit | 0a6969ad7cfe5a44854a2e19a8c38505862c2528 (patch) | |
tree | 5b4b9de36c3d7dc6f7a0fd049bc566fd4636cabf /gcc/objc/objc-act.c | |
parent | c55dcc7ddd984dd72e8dc89fe18f422f4d6344fa (diff) | |
download | gcc-0a6969ad7cfe5a44854a2e19a8c38505862c2528.zip gcc-0a6969ad7cfe5a44854a2e19a8c38505862c2528.tar.gz gcc-0a6969ad7cfe5a44854a2e19a8c38505862c2528.tar.bz2 |
tree.c, tree.h: Change tree_code_type, tree_code_length, and tree_code_name from pointers to arrays.
* tree.c, tree.h: Change tree_code_type, tree_code_length, and
tree_code_name from pointers to arrays.
* tree.c: Remove standard_tree_code_* variables, no longer used.
* print-tree.c: Remove declaration of tree_code_name.
* cp/lex.c (init_lex): Update for tree_code_* changes.
* objc/objc-act.c (init_objc): Likewise.
* tree.def, cp/cp-tree.def, objc/objc-tree.def: Update for tree_code
changes.
From-SVN: r17061
Diffstat (limited to 'gcc/objc/objc-act.c')
-rw-r--r-- | gcc/objc/objc-act.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index 44d859e..c4a2690 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -86,8 +86,8 @@ Boston, MA 02111-1307, USA. */ #define DEFTREECODE(SYM, NAME, TYPE, LENGTH) TYPE, -char *objc_tree_code_type[] = { - "x", +char objc_tree_code_type[] = { + 'x', #include "objc-tree.def" }; #undef DEFTREECODE @@ -8022,19 +8022,9 @@ init_objc () gcc_obstack_init (&util_obstack); util_firstobj = (char *) obstack_finish (&util_obstack); - tree_code_type - = (char **) xrealloc (tree_code_type, - sizeof (char *) * LAST_OBJC_TREE_CODE); - tree_code_length - = (int *) xrealloc (tree_code_length, - sizeof (int) * LAST_OBJC_TREE_CODE); - tree_code_name - = (char **) xrealloc (tree_code_name, - sizeof (char *) * LAST_OBJC_TREE_CODE); - bcopy ((char *) objc_tree_code_type, - (char *) (tree_code_type + (int) LAST_CODE), - (((int) LAST_OBJC_TREE_CODE - (int) LAST_CODE) - * sizeof (char *))); + bcopy (objc_tree_code_type, + tree_code_type + (int) LAST_CODE, + (int) LAST_OBJC_TREE_CODE - (int) LAST_CODE); bcopy ((char *) objc_tree_code_length, (char *) (tree_code_length + (int) LAST_CODE), (((int) LAST_OBJC_TREE_CODE - (int) LAST_CODE) |