summaryrefslogtreecommitdiff
path: root/libjava/defineclass.cc
diff options
context:
space:
mode:
authorgreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-15 14:03:14 +0000
committergreen <green@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-15 14:03:14 +0000
commit4a42f20bd616ce4630a3815c054c36b93e1d4580 (patch)
tree6059ba33908803e9a953cff732f1a849acc36899 /libjava/defineclass.cc
parent8611f330855ebfc706d80582b4dc0b3f0db51cb2 (diff)
downloadgcc-4a42f20bd616ce4630a3815c054c36b93e1d4580.tar.gz
2001-02-15 Anthony Green <green@redhat.com>
* defineclass.cc: Don't include alloca.h. (prepare_pool_entry): Convert alloca to __builtin_alloca. * interpret.cc (run_normal): Ditto. (continue1): Ditto. * java/lang/natDouble.cc (parseDouble): Ditto. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39719 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/defineclass.cc')
-rw-r--r--libjava/defineclass.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/libjava/defineclass.cc b/libjava/defineclass.cc
index 49774839abf..d58051677dd 100644
--- a/libjava/defineclass.cc
+++ b/libjava/defineclass.cc
@@ -25,9 +25,6 @@ details. */
#ifdef INTERPRETER
#include <stdlib.h>
-#if HAVE_ALLOCA_H
-#include <alloca.h>
-#endif
#include <java-cpool.h>
#include <gcj/cni.h>
@@ -678,7 +675,7 @@ _Jv_ClassReader::prepare_pool_entry (int index, unsigned char this_tag)
// order to accomondate gcj's internal representation.
int len = get2u (this_data);
- char *buffer = (char*) alloca (len);
+ char *buffer = (char*) __builtin_alloca (len);
char *s = ((char*) this_data)+2;
/* FIXME: avoid using a buffer here */