aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/java/decl.c')
-rw-r--r--gcc/java/decl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/java/decl.c b/gcc/java/decl.c
index 33708bd..c61d426 100644
--- a/gcc/java/decl.c
+++ b/gcc/java/decl.c
@@ -1804,6 +1804,8 @@ build_result_decl (tree fndecl)
&& TYPE_PRECISION (restype) < TYPE_PRECISION (integer_type_node))
restype = integer_type_node;
result = build_decl (RESULT_DECL, NULL_TREE, restype);
+ DECL_ARTIFICIAL (result) = 1;
+ DECL_IGNORED_P (result) = 1;
DECL_CONTEXT (result) = fndecl;
DECL_RESULT (fndecl) = result;
}