[Bug java/64044] Java emits bogus .class$ decls

rguenth at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Mon Nov 24 10:39:00 GMT 2014


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.



More information about the Java-prs mailing list