From 66839ef65ef900d409a19b269f60731224f55275 Mon Sep 17 00:00:00 2001 From: Andreas Tobler Date: Tue, 8 Jan 2002 21:00:50 +0100 Subject: natMethod.cc: Don't include alloca.h. 2002-01-07 Andreas Tobler * java/lang/reflect/natMethod.cc: Don't include alloca.h. (_Jv_CallAnyMethodA): Convert alloca to __builtin_alloca. From-SVN: r48656 --- libjava/ChangeLog | 5 +++++ libjava/java/lang/reflect/natMethod.cc | 14 +++++--------- 2 files changed, 10 insertions(+), 9 deletions(-) (limited to 'libjava') diff --git a/libjava/ChangeLog b/libjava/ChangeLog index c8a957e..3e7c1ce 100644 --- a/libjava/ChangeLog +++ b/libjava/ChangeLog @@ -1,3 +1,8 @@ +2002-01-07 Andreas Tobler + + * java/lang/reflect/natMethod.cc: Don't include alloca.h. + (_Jv_CallAnyMethodA): Convert alloca to __builtin_alloca. + 2002-01-08 Chris Sears * interpret.cc (ARRAYBOUNDSCHECK): New macro. diff --git a/libjava/java/lang/reflect/natMethod.cc b/libjava/java/lang/reflect/natMethod.cc index 26c270e..1fab48a 100644 --- a/libjava/java/lang/reflect/natMethod.cc +++ b/libjava/java/lang/reflect/natMethod.cc @@ -1,6 +1,6 @@ // 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. @@ -10,10 +10,6 @@ details. */ #include -#if HAVE_ALLOCA_H -#include -#endif - #include #include #include @@ -348,8 +344,8 @@ _Jv_CallAnyMethodA (jobject obj, rtype = &ffi_type_void; else rtype = get_ffi_type (return_type); - ffi_type **argtypes = (ffi_type **) alloca (param_count - * sizeof (ffi_type *)); + ffi_type **argtypes = (ffi_type **) __builtin_alloca (param_count + * sizeof (ffi_type *)); jclass *paramelts = elements (parameter_types); @@ -392,8 +388,8 @@ _Jv_CallAnyMethodA (jobject obj, // FIXME: throw some kind of VirtualMachineError here. } - char *p = (char *) alloca (size); - void **values = (void **) alloca (param_count * sizeof (void *)); + char *p = (char *) __builtin_alloca (size); + void **values = (void **) __builtin_alloca (param_count * sizeof (void *)); i = 0; if (needs_this) -- cgit v1.1