summaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
authorro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-02 12:35:32 +0000
committerro <ro@138bc75d-0d04-0410-961f-82ee72b054a4>2012-04-02 12:35:32 +0000
commit2cc03db8ab8e662fa2597a4631b890e75443f918 (patch)
tree040bacdfc8b040d4f40158d5dec3a6e3e50ed51d /gcc/java
parentec3167d1b0bc3cd77968b945de37a20e637fdb3a (diff)
downloadgcc-2cc03db8ab8e662fa2597a4631b890e75443f918.tar.gz
Fix .jcr alignment
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@186082 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/class.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index f77f756b0da..3e6cb4d9dc9 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2012-04-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
+
+ * class.c (emit_register_classes_in_jcr_section): Set DECL_USER_ALIGN.
+ Clear TREE_READONLY.
+
2012-03-29 Steven Bosscher <steven@gcc.gnu.org>
PR java/52730
diff --git a/gcc/java/class.c b/gcc/java/class.c
index 69b00018d3f..3c34abad7fe 100644
--- a/gcc/java/class.c
+++ b/gcc/java/class.c
@@ -2815,10 +2815,11 @@ emit_register_classes_in_jcr_section (void)
DECL_SECTION_NAME (cdecl) = build_string (strlen (JCR_SECTION_NAME),
JCR_SECTION_NAME);
DECL_ALIGN (cdecl) = POINTER_SIZE;
+ DECL_USER_ALIGN (cdecl) = 1;
DECL_INITIAL (cdecl) = build_constructor (class_array_type, init);
TREE_CONSTANT (DECL_INITIAL (cdecl)) = 1;
TREE_STATIC (cdecl) = 1;
- TREE_READONLY (cdecl) = 1;
+ TREE_READONLY (cdecl) = 0;
TREE_CONSTANT (cdecl) = 1;
DECL_ARTIFICIAL (cdecl) = 1;
DECL_IGNORED_P (cdecl) = 1;