From 28ea4c880db02d9390106efcff91da797c11ed49 Mon Sep 17 00:00:00 2001 From: Andrew Pinski Date: Tue, 1 Apr 2003 20:37:00 +0000 Subject: [PATCH] config-lang.in (gtfiles): add \$(srcdir)/cp/name-lookup.c after \$(srcdir)/cp/name-lookup.h. 2003-04-01 Andrew Pinski * config-lang.in (gtfiles): add \$(srcdir)/cp/name-lookup.c after \$(srcdir)/cp/name-lookup.h. * name-lookup.c: (cxx_binding_make): Use ggc_alloc_clearedinstead of ggc_alloc. Include gt-cp-name-lookup.h at the end of the file. * Make-lang.in: (gt-cp-name-lookup.h): is generated by the gtype. (cp/name-lookup.o): depends on gt-cp-name-lookup.h. From-SVN: r65142 --- gcc/cp/ChangeLog | 9 +++++++++ gcc/cp/Make-lang.in | 4 ++-- gcc/cp/config-lang.in | 2 +- gcc/cp/name-lookup.c | 3 ++- 4 files changed, 14 insertions(+), 4 deletions(-) diff --git a/gcc/cp/ChangeLog b/gcc/cp/ChangeLog index 6eb6d818305..afd8014b809 100644 --- a/gcc/cp/ChangeLog +++ b/gcc/cp/ChangeLog @@ -1,3 +1,12 @@ +2003-04-01 Andrew Pinski + + * config-lang.in (gtfiles): add \$(srcdir)/cp/name-lookup.c + after \$(srcdir)/cp/name-lookup.h. + * name-lookup.c: (cxx_binding_make): Use ggc_alloc_clearedinstead + of ggc_alloc. Include gt-cp-name-lookup.h at the end of the file. + * Make-lang.in: (gt-cp-name-lookup.h): is generated by the gtype. + (cp/name-lookup.o): depends on gt-cp-name-lookup.h. + 2003-03-31 Jason Merrill PR java/10145 diff --git a/gcc/cp/Make-lang.in b/gcc/cp/Make-lang.in index 43636969852..5cb503ed7c1 100644 --- a/gcc/cp/Make-lang.in +++ b/gcc/cp/Make-lang.in @@ -104,7 +104,7 @@ $(srcdir)/cp/cfns.h: $(srcdir)/cp/cfns.gperf gtype-cp.h gt-cp-call.h gt-cp-decl.h gt-cp-decl2.h : s-gtype; @true gt-cp-pt.h gt-cp-repo.h gt-cp-parser.h : s-gtype; @true -gt-cp-tree.h : s-gtype; @true +gt-cp-tree.h gt-cp-name-lookup.h: s-gtype; @true # # Build hooks: @@ -277,4 +277,4 @@ cp/mangle.o: cp/mangle.c $(CXX_TREE_H) $(TM_H) toplev.h real.h cp/parser.o: cp/parser.c $(CXX_TREE_H) $(TM_H) diagnostic.h gt-cp-parser.h output.h cp/name-lookup.o: cp/name-lookup.c $(CONFIG_H) $(SYSTEM_H) coretypes.h \ - $(TM_H) $(CXX_TREE_H) timevar.h + $(TM_H) $(CXX_TREE_H) timevar.h gt-cp-name-lookup.h diff --git a/gcc/cp/config-lang.in b/gcc/cp/config-lang.in index 8bac8dcd234..f2374850da6 100644 --- a/gcc/cp/config-lang.in +++ b/gcc/cp/config-lang.in @@ -34,4 +34,4 @@ stagestuff="g++\$(exeext) g++-cross\$(exeext) cc1plus\$(exeext)" target_libs="target-libstdc++-v3 target-gperf" -gtfiles="\$(srcdir)/cp/name-lookup.h \$(srcdir)/cp/cp-tree.h \$(srcdir)/cp/decl.h \$(srcdir)/cp/lex.h \$(srcdir)/cp/call.c \$(srcdir)/cp/decl.c \$(srcdir)/cp/decl2.c \$(srcdir)/cp/pt.c \$(srcdir)/cp/repo.c \$(srcdir)/cp/semantics.c \$(srcdir)/cp/tree.c \$(srcdir)/cp/parser.c \$(srcdir)/c-common.c \$(srcdir)/c-common.h \$(srcdir)/c-pragma.c" +gtfiles="\$(srcdir)/cp/name-lookup.h \$(srcdir)/cp/name-lookup.c \$(srcdir)/cp/cp-tree.h \$(srcdir)/cp/decl.h \$(srcdir)/cp/lex.h \$(srcdir)/cp/call.c \$(srcdir)/cp/decl.c \$(srcdir)/cp/decl2.c \$(srcdir)/cp/pt.c \$(srcdir)/cp/repo.c \$(srcdir)/cp/semantics.c \$(srcdir)/cp/tree.c \$(srcdir)/cp/parser.c \$(srcdir)/c-common.c \$(srcdir)/c-common.h \$(srcdir)/c-pragma.c" diff --git a/gcc/cp/name-lookup.c b/gcc/cp/name-lookup.c index 3eb010a8d1f..b6767114f2c 100644 --- a/gcc/cp/name-lookup.c +++ b/gcc/cp/name-lookup.c @@ -42,7 +42,7 @@ cxx_binding_make (tree value, tree type) free_bindings = binding->previous; } else - binding = ggc_alloc (sizeof (cxx_binding)); + binding = ggc_alloc_cleared (sizeof (cxx_binding)); binding->value = value; binding->type = type; @@ -140,3 +140,4 @@ set_namespace_binding (tree name, tree scope, tree val) timevar_pop (TV_NAME_LOOKUP); } +#include "gt-cp-name-lookup.h"