summaryrefslogtreecommitdiff
path: root/gcc/java/resource.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/resource.c')
-rw-r--r--gcc/java/resource.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/java/resource.c b/gcc/java/resource.c
index bc2860dfd1f..dc42a6f6e7e 100644
--- a/gcc/java/resource.c
+++ b/gcc/java/resource.c
@@ -79,6 +79,7 @@ compile_resource_data (const char *name, const char *buffer, int length)
PUSH_FIELD_VALUE (rinit, "data", data);
FINISH_RECORD_CONSTRUCTOR (rinit);
TREE_CONSTANT (rinit) = 1;
+ TREE_INVARIANT (rinit) = 1;
/* Generate a unique-enough identifier. */
sprintf (buf, "_Jr%d", ++Jr_count);