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
This commit is contained in:
committed by
Anthony Green
parent
85b99cbe64
commit
c220009946
@@ -10,10 +10,6 @@ details. */
|
||||
|
||||
#include <config.h>
|
||||
|
||||
#if HAVE_ALLOCA_H
|
||||
#include <alloca.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include <gcj/cni.h>
|
||||
@@ -166,11 +162,7 @@ java::lang::Double::parseDouble(jstring str)
|
||||
int length = str->length();
|
||||
// Note that UTF can expand 3x.
|
||||
|
||||
#ifdef HAVE_ALLOCA
|
||||
char *data = (char *) alloca (3 * length + 1);
|
||||
#else
|
||||
#error --- need an alternate implementation here ---
|
||||
#endif
|
||||
char *data = (char *) __builtin_alloca (3 * length + 1);
|
||||
|
||||
data[_Jv_GetStringUTFRegion (str, 0, length, data)] = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user