summaryrefslogtreecommitdiff
path: root/libjava/java/lang/natDouble.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libjava/java/lang/natDouble.cc')
-rw-r--r--libjava/java/lang/natDouble.cc10
1 files changed, 1 insertions, 9 deletions
diff --git a/libjava/java/lang/natDouble.cc b/libjava/java/lang/natDouble.cc
index bc60ddaec28..9ed7e53910d 100644
--- a/libjava/java/lang/natDouble.cc
+++ b/libjava/java/lang/natDouble.cc
@@ -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;