diff options
author | Anthony Green <green@redhat.com> | 2001-02-15 14:03:14 +0000 |
---|---|---|
committer | Anthony Green <green@gcc.gnu.org> | 2001-02-15 14:03:14 +0000 |
commit | c220009946ae0a6e65fd638180201f8879482915 (patch) | |
tree | 6059ba33908803e9a953cff732f1a849acc36899 /libjava/defineclass.cc | |
parent | 85b99cbe643d85e0ab23513f1a284f52644c6235 (diff) | |
download | gcc-c220009946ae0a6e65fd638180201f8879482915.zip gcc-c220009946ae0a6e65fd638180201f8879482915.tar.gz gcc-c220009946ae0a6e65fd638180201f8879482915.tar.bz2 |
defineclass.cc: Don't include alloca.h.
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.
From-SVN: r39719
Diffstat (limited to 'libjava/defineclass.cc')
-rw-r--r-- | libjava/defineclass.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/libjava/defineclass.cc b/libjava/defineclass.cc index 4977483..d580516 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 */ |