This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Use DW_TAG_interface_type for Java interfaces
- From: Jakub Jelinek <jakub at redhat dot com>
- To: Andrew Haley <aph at redhat dot com>, Jason Merrill <jason at redhat dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Tue, 25 May 2010 16:08:32 +0200
- Subject: [PATCH] Use DW_TAG_interface_type for Java interfaces
- Reply-to: Jakub Jelinek <jakub at redhat dot com>
Hi!
Given that GDB has been fixed to handle DW_TAG_interface_type
back in December 2007 and that GCC 4.5+ requires far more recent GDB
for debugging the generated code, I think there is no reason anymore to
keep this commented out.
Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk?
2010-05-25 Jakub Jelinek <jakub@redhat.com>
* lang.c (java_classify_record): Return RECORD_IS_INTERFACE
for interfaces.
--- gcc/java/lang.c.jj 2010-05-24 17:52:21.000000000 +0200
+++ gcc/java/lang.c 2010-05-25 10:15:29.000000000 +0200
@@ -880,9 +880,7 @@ java_classify_record (tree type)
if (! CLASS_P (type))
return RECORD_IS_STRUCT;
- /* ??? GDB does not support DW_TAG_interface_type as of December,
- 2007. Re-enable this at a later time. */
- if (0 && CLASS_INTERFACE (TYPE_NAME (type)))
+ if (CLASS_INTERFACE (TYPE_NAME (type)))
return RECORD_IS_INTERFACE;
return RECORD_IS_CLASS;
Jakub