This is the mail archive of the java-prs@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]