diff options
author | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 08:10:28 +0000 |
---|---|---|
committer | rth <rth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2004-07-25 08:10:28 +0000 |
commit | 540edea7db8adb1cf64f022750998ec3fe4181a2 (patch) | |
tree | b78bcdd05d614d85d427a31d73cab2c711cc5ccd /gcc/java | |
parent | cc14bb756e1a00e2aed81cec8e89725c3a4fe700 (diff) | |
download | gcc-540edea7db8adb1cf64f022750998ec3fe4181a2.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@85145 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/java')
-rw-r--r-- | gcc/java/ChangeLog | 4 | ||||
-rw-r--r-- | gcc/java/decl.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/gcc/java/ChangeLog b/gcc/java/ChangeLog index dc1ae7e19e2..b8e6eec6dcb 100644 --- a/gcc/java/ChangeLog +++ b/gcc/java/ChangeLog @@ -1,3 +1,7 @@ +2004-07-25 Richard Henderson <rth@redhat.com> + + * decl.c (build_result_decl): Set DECL_ARTIFICIAL and DECL_IGNORED_P. + 2004-07-23 Mike Stump <mrs@apple.com> * boehm.c (set_bit): Improve type safety wrt unsignedness. diff --git a/gcc/java/decl.c b/gcc/java/decl.c index 33708bdc629..c61d42653f7 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; } |