diff options
| author | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-27 22:30:30 +0000 |
|---|---|---|
| committer | tromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-27 22:30:30 +0000 |
| commit | eefad3fecab5b211838434c00ea53e4d785a74cd (patch) | |
| tree | 376f125cb99d0786bef2ca4bf11fc3c90ba6840a | |
| parent | 40daf60d58c891c8fe5ea937eaf68daca5ca80c8 (diff) | |
| download | ppe42-gcc-eefad3fecab5b211838434c00ea53e4d785a74cd.tar.gz ppe42-gcc-eefad3fecab5b211838434c00ea53e4d785a74cd.zip | |
reverted accidental checkin
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@49272 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/java/expr.c | 7 | ||||
| -rw-r--r-- | gcc/java/parse.y | 6 |
2 files changed, 3 insertions, 10 deletions
diff --git a/gcc/java/expr.c b/gcc/java/expr.c index a7cb59efcc5..e3eaf352551 100644 --- a/gcc/java/expr.c +++ b/gcc/java/expr.c @@ -2168,13 +2168,8 @@ build_jni_stub (method) TREE_PUBLIC (meth_var) = 0; DECL_EXTERNAL (meth_var) = 0; DECL_CONTEXT (meth_var) = method; - DECL_ARTIFICIAL (meth_var) = 1; - DECL_INITIAL (meth_var) = null_pointer_node; - TREE_USED (meth_var) = 1; - chainon (env_var, meth_var); - layout_decl (meth_var, 0); make_decl_rtl (meth_var, NULL); - rest_of_decl_compilation (meth_var, NULL, 0, 0); + meth_var = pushdecl_top_level (meth_var); /* One strange way that the front ends are different is that they store arguments differently. */ diff --git a/gcc/java/parse.y b/gcc/java/parse.y index 8b33fadf85c..a75e3f97ecc 100644 --- a/gcc/java/parse.y +++ b/gcc/java/parse.y @@ -1,6 +1,6 @@ /* Source code parsing and tree node generation for the GNU compiler for the Java(TM) language. - Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc. Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com) This file is part of GNU CC. @@ -7723,9 +7723,7 @@ java_complete_expand_methods (class_decl) if (METHOD_NATIVE (decl)) { - tree body; - current_function_decl = decl; - body = build_jni_stub (decl); + tree body = build_jni_stub (decl); BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (decl)) = body; } |

