This is the mail archive of the
java-prs@gcc.gnu.org
mailing list for the Java project.
[Bug java/64044] Java emits bogus .class$ decls
- From: "rguenth at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: java-prs at gcc dot gnu dot org
- Date: Mon, 24 Nov 2014 10:39:21 +0000
- Subject: [Bug java/64044] Java emits bogus .class$ decls
- Auto-submitted: auto-generated
- References: <bug-64044-8172 at http dot gcc dot gnu dot org/bugzilla/>
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64044
--- Comment #3 from Richard Biener <rguenth at gcc dot gnu.org> ---
Suggested fix:
Index: gcc/java/class.c
===================================================================
--- gcc/java/class.c (revision 218005)
+++ gcc/java/class.c (working copy)
@@ -1084,8 +1084,6 @@ build_classdollar_field (tree type)
TYPE_QUAL_CONST)),
TYPE_QUAL_CONST)));
TREE_STATIC (decl) = 1;
- TREE_CONSTANT (decl) = 1;
- TREE_READONLY (decl) = 1;
TREE_PUBLIC (decl) = 1;
java_hide_decl (decl);
DECL_IGNORED_P (decl) = 1;
not sure why it doesn't end up in .rodata.