aboutsummaryrefslogtreecommitdiff
path: root/gcc/java/parse.y
diff options
context:
space:
mode:
authorAndreas Tobler <a.tobler@schweiz.ch>2002-01-27 23:28:42 +0100
committerTom Tromey <tromey@gcc.gnu.org>2002-01-27 22:28:42 +0000
commit1d8478d79afe669d556715c7778496f594bcf7a9 (patch)
tree5dae842d626d33da5443f9d99ebe7a76f223d9d7 /gcc/java/parse.y
parent438451ccec1c43e8f2d18cb29b1a812ccc507416 (diff)
downloadgcc-1d8478d79afe669d556715c7778496f594bcf7a9.zip
gcc-1d8478d79afe669d556715c7778496f594bcf7a9.tar.gz
gcc-1d8478d79afe669d556715c7778496f594bcf7a9.tar.bz2
builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not BUILT_IN_SQRTF.
2002-01-26 Andreas Tobler <a.tobler@schweiz.ch> * gcc/java/builtins.c (sqrt_builtin): Use BUILT_IN_SQRT, not BUILT_IN_SQRTF. From-SVN: r49271
Diffstat (limited to 'gcc/java/parse.y')
-rw-r--r--gcc/java/parse.y6
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/java/parse.y b/gcc/java/parse.y
index a75e3f9..8b33fad 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 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
Contributed by Alexandre Petit-Bianco (apbianco@cygnus.com)
This file is part of GNU CC.
@@ -7723,7 +7723,9 @@ java_complete_expand_methods (class_decl)
if (METHOD_NATIVE (decl))
{
- tree body = build_jni_stub (decl);
+ tree body;
+ current_function_decl = decl;
+ body = build_jni_stub (decl);
BLOCK_EXPR_BODY (DECL_FUNCTION_BODY (decl)) = body;
}