aboutsummaryrefslogtreecommitdiff
path: root/gcc/java
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java')
-rw-r--r--gcc/java/ChangeLog5
-rw-r--r--gcc/java/jcf-parse.c1
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog
index 58e40a6..874466a 100644
--- a/gcc/java/ChangeLog
+++ b/gcc/java/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-21 Richard Biener <rguenther@suse.de>
+
+ * jcf-parse.c (java_emit_static_constructor): Set
+ BLOCK_SUPERCONTEXT of DECL_INITIAL.
+
2016-05-31 Roger Sayle <roger@nextmovesoftware.com>
* builtins.c (java_builtins): Use popcount* and bswap* builtins to
diff --git a/gcc/java/jcf-parse.c b/gcc/java/jcf-parse.c
index dd3ad3f..ed3e32f 100644
--- a/gcc/java/jcf-parse.c
+++ b/gcc/java/jcf-parse.c
@@ -1719,6 +1719,7 @@ java_emit_static_constructor (void)
DECL_UNINLINABLE (decl) = 1;
DECL_INITIAL (decl) = make_node (BLOCK);
+ BLOCK_SUPERCONTEXT (DECL_INITIAL (decl)) = decl;
TREE_USED (DECL_INITIAL (decl)) = 1;
DECL_STATIC_CONSTRUCTOR (decl) = 1;