diff options
author | Richard Kenner <kenner@gcc.gnu.org> | 1993-09-07 19:11:15 -0400 |
---|---|---|
committer | Richard Kenner <kenner@gcc.gnu.org> | 1993-09-07 19:11:15 -0400 |
commit | 90b5a681ce9b838fa2b3075d4a2a8de18d5eee60 (patch) | |
tree | 0f845a10711ed59fd03f9c3390abe0e9307e2344 /gcc | |
parent | e3a12f0cb1d544f7b86c93f3073c0a6459f2f394 (diff) | |
download | gcc-90b5a681ce9b838fa2b3075d4a2a8de18d5eee60.zip gcc-90b5a681ce9b838fa2b3075d4a2a8de18d5eee60.tar.gz gcc-90b5a681ce9b838fa2b3075d4a2a8de18d5eee60.tar.bz2 |
(c_build_type_variant): Allocate new type in same obstack as old one.
From-SVN: r5278
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/c-common.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/c-common.c b/gcc/c-common.c index e4129d5..3bdc714 100644 --- a/gcc/c-common.c +++ b/gcc/c-common.c @@ -1194,16 +1194,13 @@ c_build_type_variant (type, constp, volatilep) if (TREE_CODE (type) == ARRAY_TYPE) { tree real_main_variant = TYPE_MAIN_VARIANT (type); - int permanent = TREE_PERMANENT (type); - if (permanent) - push_obstacks (&permanent_obstack, &permanent_obstack); + push_obstacks (TYPE_OBSTACK (type), TYPE_OBSTACK (type)); type = build_array_type (c_build_type_variant (TREE_TYPE (type), constp, volatilep), TYPE_DOMAIN (type)); TYPE_MAIN_VARIANT (type) = real_main_variant; - if (permanent) - pop_obstacks (); + pop_obstacks (); } return build_type_variant (type, constp, volatilep); } |