diff options
| author | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-12 02:45:30 +0000 |
|---|---|---|
| committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 1999-09-12 02:45:30 +0000 |
| commit | 5868eb4e0aa53750d7b6f916e5da5118961d083c (patch) | |
| tree | 28184da20863a95f115b04d3f240978e07f36f9a /gcc/cp/tree.c | |
| parent | 1ccbefcef21836d354e28c07e92fe9a5b5eaedcd (diff) | |
| download | gcc-5868eb4e0aa53750d7b6f916e5da5118961d083c.zip gcc-5868eb4e0aa53750d7b6f916e5da5118961d083c.tar.gz gcc-5868eb4e0aa53750d7b6f916e5da5118961d083c.tar.bz2 | |
decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
* decl.c (add_decl_to_level): Remove TREE_PERMANENT assertion.
(init_decl_processing): Don't set TREE_PERMANENT for the
error_mark_node.
(start_decl): Don't rebuild non-permanent ARRAY_TYPEs.
(grokdeclarator): Likewise.
(grokparms): Don't check TREE_PERMANENT when building up lists.
* decl2.c (grokfield): Don't assert TREE_PERMANENT.
(mark_inline_for_output): Likewise.
* expr.c (cplus_expand_expr): Don't check TREE_PERMANENT.
* init.c (build_offset_ref): Don't check TREE_PERMANENT.
* lex.c (check_newline): Don't check ggc_p; it is always one.
* pt.c (process_template_parm): Don't check TREE_PERMANENT.
* spew.c (yylex): Don't copy_node or probe_obstacks for
non-permanent CONSTANTs and STRINGs.
* tree.c (build_cplus_array_type_1): Don't fuss with
TREE_PERMANENT on ARRAY_TYPEs.
From-SVN: r29350
Diffstat (limited to 'gcc/cp/tree.c')
| -rw-r--r-- | gcc/cp/tree.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gcc/cp/tree.c b/gcc/cp/tree.c index 9cf2ae7..d9db3b0 100644 --- a/gcc/cp/tree.c +++ b/gcc/cp/tree.c @@ -459,14 +459,6 @@ build_cplus_array_type_1 (elt_type, index_type) if (elt_type == error_mark_node || index_type == error_mark_node) return error_mark_node; - push_obstacks_nochange (); - - /* If both ELT_TYPE and INDEX_TYPE are permanent, - make this permanent too. */ - if (TREE_PERMANENT (elt_type) - && (index_type == 0 || TREE_PERMANENT (index_type))) - end_temporary_allocation (); - if (processing_template_decl || uses_template_parms (elt_type) || uses_template_parms (index_type)) @@ -484,7 +476,6 @@ build_cplus_array_type_1 (elt_type, index_type) = TYPE_NEEDS_CONSTRUCTING (TYPE_MAIN_VARIANT (elt_type)); TYPE_NEEDS_DESTRUCTOR (t) = TYPE_NEEDS_DESTRUCTOR (TYPE_MAIN_VARIANT (elt_type)); - pop_obstacks (); return t; } |
