re PR debug/43260 (Java static class members lack DWARF location info)
authorJakub Jelinek <jakub@redhat.com>
Tue, 25 May 2010 16:19:11 +0000 (18:19 +0200)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 25 May 2010 16:19:11 +0000 (18:19 +0200)
commit6bb0a66a9932e8f03e43edb007cb407ac45dbcbd
treec5d52ec0a97fd0f5d2874395be7e0a89136c2a9a
parent9602a7a9c8f9ab271f4672a080c17c8b21d0dc14
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
gcc/java/ChangeLog
gcc/java/class.c
gcc/java/decl.c
gcc/java/java-tree.h
gcc/java/lang.c