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/lex.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/lex.c')
| -rw-r--r-- | gcc/cp/lex.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index bcadd93..49dd728 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -2552,14 +2552,7 @@ linenum: body_time = this_time; } - if (! ggc_p && !TREE_PERMANENT (yylval.ttype)) - { - input_filename - = (char *) permalloc (TREE_STRING_LENGTH (yylval.ttype) + 1); - strcpy (input_filename, TREE_STRING_POINTER (yylval.ttype)); - } - else - input_filename = TREE_STRING_POINTER (yylval.ttype); + input_filename = TREE_STRING_POINTER (yylval.ttype); GNU_xref_file (input_filename); |
