Commit 45a2b4f7 by Tom Tromey

reverted accidental checkin

From-SVN: r49272
parent 1d8478d7
...@@ -2168,13 +2168,8 @@ build_jni_stub (method) ...@@ -2168,13 +2168,8 @@ build_jni_stub (method)
TREE_PUBLIC (meth_var) = 0; TREE_PUBLIC (meth_var) = 0;
DECL_EXTERNAL (meth_var) = 0; DECL_EXTERNAL (meth_var) = 0;
DECL_CONTEXT (meth_var) = method; 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); 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 /* One strange way that the front ends are different is that they
store arguments differently. */ store arguments differently. */
......
/* Source code parsing and tree node generation for the GNU compiler /* Source code parsing and tree node generation for the GNU compiler
for the Java(TM) language. 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) Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC. This file is part of GNU CC.
...@@ -7723,9 +7723,7 @@ java_complete_expand_methods (class_decl) ...@@ -7723,9 +7723,7 @@ java_complete_expand_methods (class_decl)
if (METHOD_NATIVE (decl)) if (METHOD_NATIVE (decl))
{ {
tree body; tree body = build_jni_stub (decl);
current_function_decl = decl;
body = build_jni_stub (decl);
BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (decl)) = body; BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (decl)) = body;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment