diff options
author | Jakub Jelinek <jakub@redhat.com> | 2010-05-25 18:19:11 +0200 |
---|---|---|
committer | Jakub Jelinek <jakub@gcc.gnu.org> | 2010-05-25 18:19:11 +0200 |
commit | 6bb0a66a9932e8f03e43edb007cb407ac45dbcbd (patch) | |
tree | c5d52ec0a97fd0f5d2874395be7e0a89136c2a9a /gcc/java/java-tree.h | |
parent | 9602a7a9c8f9ab271f4672a080c17c8b21d0dc14 (diff) | |
download | gcc-6bb0a66a9932e8f03e43edb007cb407ac45dbcbd.zip gcc-6bb0a66a9932e8f03e43edb007cb407ac45dbcbd.tar.gz gcc-6bb0a66a9932e8f03e43edb007cb407ac45dbcbd.tar.bz2 |
re PR debug/43260 (Java static class members lack DWARF location info)
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.
From-SVN: r159828
Diffstat (limited to 'gcc/java/java-tree.h')
-rw-r--r-- | gcc/java/java-tree.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/gcc/java/java-tree.h b/gcc/java/java-tree.h index fad667d..dc16eb2 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): */ |