Commit 66839ef6 by Andreas Tobler Committed by Tom Tromey

natMethod.cc: Don't include alloca.h.

2002-01-07  Andreas Tobler <a.tobler@schweiz.ch>

	* java/lang/reflect/natMethod.cc: Don't include alloca.h.
	(_Jv_CallAnyMethodA): Convert alloca to __builtin_alloca.

From-SVN: r48656
parent 24dbb440
2002-01-07 Andreas Tobler <a.tobler@schweiz.ch>
* java/lang/reflect/natMethod.cc: Don't include alloca.h.
(_Jv_CallAnyMethodA): Convert alloca to __builtin_alloca.
2002-01-08 Chris Sears <cbsears_sf@yahoo.com> 2002-01-08 Chris Sears <cbsears_sf@yahoo.com>
* interpret.cc (ARRAYBOUNDSCHECK): New macro. * interpret.cc (ARRAYBOUNDSCHECK): New macro.
......
// natMethod.cc - Native code for Method class. // natMethod.cc - Native code for Method class.
/* Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation /* Copyright (C) 1998, 1999, 2000, 2001 , 2002 Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -10,10 +10,6 @@ details. */ ...@@ -10,10 +10,6 @@ details. */
#include <config.h> #include <config.h>
#if HAVE_ALLOCA_H
#include <alloca.h>
#endif
#include <gcj/cni.h> #include <gcj/cni.h>
#include <jvm.h> #include <jvm.h>
#include <jni.h> #include <jni.h>
...@@ -348,8 +344,8 @@ _Jv_CallAnyMethodA (jobject obj, ...@@ -348,8 +344,8 @@ _Jv_CallAnyMethodA (jobject obj,
rtype = &ffi_type_void; rtype = &ffi_type_void;
else else
rtype = get_ffi_type (return_type); rtype = get_ffi_type (return_type);
ffi_type **argtypes = (ffi_type **) alloca (param_count ffi_type **argtypes = (ffi_type **) __builtin_alloca (param_count
* sizeof (ffi_type *)); * sizeof (ffi_type *));
jclass *paramelts = elements (parameter_types); jclass *paramelts = elements (parameter_types);
...@@ -392,8 +388,8 @@ _Jv_CallAnyMethodA (jobject obj, ...@@ -392,8 +388,8 @@ _Jv_CallAnyMethodA (jobject obj,
// FIXME: throw some kind of VirtualMachineError here. // FIXME: throw some kind of VirtualMachineError here.
} }
char *p = (char *) alloca (size); char *p = (char *) __builtin_alloca (size);
void **values = (void **) alloca (param_count * sizeof (void *)); void **values = (void **) __builtin_alloca (param_count * sizeof (void *));
i = 0; i = 0;
if (needs_this) if (needs_this)
......
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