This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug debug/43260] Java static class members lack DWARF location info
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 25 May 2010 16:19:32 -0000
- Subject: [Bug debug/43260] Java static class members lack DWARF location info
- References: <bug-43260-18870@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from jakub at gcc dot gnu dot org 2010-05-25 16:19 -------
Subject: Bug 43260
Author: jakub
Date: Tue May 25 16:19:11 2010
New Revision: 159828
URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=159828
Log:
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.
Modified:
trunk/gcc/java/ChangeLog
trunk/gcc/java/class.c
trunk/gcc/java/decl.c
trunk/gcc/java/java-tree.h
trunk/gcc/java/lang.c
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43260