From 64f07b66421dde455fed25b2fe4f830b642baf50 Mon Sep 17 00:00:00 2001 From: Rainer Orth Date: Mon, 2 Apr 2012 12:35:32 +0000 Subject: [PATCH] Fix .jcr alignment From-SVN: r186082 --- gcc/java/ChangeLog | 5 +++++ gcc/java/class.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) 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 + + * class.c (emit_register_classes_in_jcr_section): Set DECL_USER_ALIGN. + Clear TREE_READONLY. + 2012-03-29 Steven Bosscher 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;