summaryrefslogtreecommitdiff
path: root/gcc/java/java-tree.h
diff options
context:
space:
mode:
authorjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-25 16:19:11 +0000
committerjakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4>2010-05-25 16:19:11 +0000
commit8faccfb9f69195ab30cced8423b3047677f92e10 (patch)
treec5d52ec0a97fd0f5d2874395be7e0a89136c2a9a /gcc/java/java-tree.h
parentc61e1212db87b4dc404dafbec211904661856bff (diff)
downloadgcc-8faccfb9f69195ab30cced8423b3047677f92e10.tar.gz
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
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r--gcc/java/java-tree.h6
1 files changed, 5 insertions, 1 deletions
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): */