aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/decl.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2004-07-25 01:10:28 -0700
committerRichard Henderson <rth@gcc.gnu.org>2004-07-25 01:10:28 -0700
commitb785f485ecfa4a4685e30b3385b701159726f4a3 (patch)
treeb78bcdd05d614d85d427a31d73cab2c711cc5ccd /gcc/java/decl.c
parent78d8e0f9d867bb8d53ab4ad98873e2e8ab342c8f (diff)
downloadgcc-b785f485ecfa4a4685e30b3385b701159726f4a3.zip
gcc-b785f485ecfa4a4685e30b3385b701159726f4a3.tar.gz
gcc-b785f485ecfa4a4685e30b3385b701159726f4a3.tar.bz2
c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P on the RESULT_DECL.
* c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P on the RESULT_DECL. * cgraphunit.c (cgraph_build_static_cdtor): Likewise. * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and DECL_IGNORED_P to new decl. ada/ * utils.c (create_subprog_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P on RESULT_DECL. cp/ * decl.c (start_preparsed_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P on RESULT_DECL. * semantics.c (finalize_nrv): Copy them too. fortran/ * trans-decl.c (gfc_build_function_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P on RESULT_DECL. (gfc_generate_constructors): Likewise. java/ * decl.c (build_result_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P. From-SVN: r85145
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;
}