From 8faccfb9f69195ab30cced8423b3047677f92e10 Mon Sep 17 00:00:00 2001 From: jakub Date: Tue, 25 May 2010 16:19:11 +0000 Subject: PR debug/43260 * java-tree.h (pending_static_fields): New extern declaration. (java_write_globals): New prototype. * lang.c (LANG_HOOKS_WRITE_GLOBALS): Define. * decl.c (java_mark_class_local): When clearing DECL_EXTERNAL of a static field push it into pending_static_fields vector. * class.c (pending_static_fields): New variable. (add_field): If static field is not DECL_EXTERNAL, push it into pending_static_fields vector. (java_write_globals): New function. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@159828 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/java/java-tree.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gcc/java/java-tree.h') diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index fad667d5f49..dc16eb2bc10 100644 --- a/gcc/java/java-tree.h +++ b/gcc/java/java-tree.h @@ -1,7 +1,7 @@ /* Definitions for parsing and type checking for the GNU compiler for the Java(TM) language. Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, - 2005, 2006, 2007, 2008 Free Software Foundation, Inc. + 2005, 2006, 2007, 2008, 2010 Free Software Foundation, Inc. This file is part of GCC. @@ -1231,6 +1231,10 @@ extern void rewrite_reflection_indexes (void *); int cxx_keyword_p (const char *name, int length); +extern GTY(()) VEC(tree,gc) *pending_static_fields; + +extern void java_write_globals (void); + #define DECL_FINAL(DECL) DECL_LANG_FLAG_3 (DECL) /* Access flags etc for a method (a FUNCTION_DECL): */ -- cgit v1.2.1