diff options
author | Mark Mitchell <mark@codesourcery.com> | 2000-04-24 06:41:16 +0000 |
---|---|---|
committer | Mark Mitchell <mmitchel@gcc.gnu.org> | 2000-04-24 06:41:16 +0000 |
commit | 6dfbb909771e15460a5f8f6f246ad75ab993442d (patch) | |
tree | 09b22923010b7e795199c2b498f3194f07f79486 /gcc/cp/lex.c | |
parent | b51024fc8996b47f30f3bf277cf1338a24c49953 (diff) | |
download | gcc-6dfbb909771e15460a5f8f6f246ad75ab993442d.tar.gz |
cp-tree.h (lang_decl): Remove pretty_function_p.
* cp-tree.h (lang_decl): Remove pretty_function_p.
(DECL_PRETTY_FUNCTION_P): Use TREE_LANG_FLAG_0, not a bit in the
language-specific node.
* decl.c (cp_make_fname_decl): Use build_decl, not
build_lang_decl, to build the variables.
(grokvardecl): Don't call build_lang_decl for local variables in
templates.
(grokdeclarator): Don't call build_lang_decl for local type
declarations in templates.
* lex.c (retrofit_lang_decl): Use ggc_alloc_obj to allocated
zero'd memory, rather than calling memset.
* pt.c: Include hashtab.h.
(local_specializations): New variable.
(retrieve_local_specialization): Use it.
(register_local_specialization): Likewise.
(tsubst_decl): Don't assume local variables have
DECL_LANG_SPECIFIC.
(instantiate_decl): Set up local_specializations.
* Makefile.in (HTAB_H): New variable.
From-SVN: r33369
Diffstat (limited to 'gcc/cp/lex.c')
-rw-r--r-- | gcc/cp/lex.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/cp/lex.c b/gcc/cp/lex.c index da03c742852..7dc6d308422 100644 --- a/gcc/cp/lex.c +++ b/gcc/cp/lex.c @@ -4977,8 +4977,7 @@ retrofit_lang_decl (t) else size = sizeof (struct lang_decl_flags); - ld = (struct lang_decl *) ggc_alloc (size); - memset (ld, 0, size); + ld = (struct lang_decl *) ggc_alloc_obj (size, 1); DECL_LANG_SPECIFIC (t) = ld; if (current_lang_name == lang_name_cplusplus) |