re PR go/48407 (libgo/configure --without-libffi doesn't work)
[gcc.git] / libgo / runtime / go-string-to-int-array.c
index 8d7f94f93ab213835dec9d391801cc87fbbf9cad..aff146872a9e506314499c95ff3a2c689d51e19f 100644 (file)
@@ -8,6 +8,7 @@
 #include "go-string.h"
 #include "array.h"
 #include "runtime.h"
+#include "arch.h"
 #include "malloc.h"
 
 struct __go_open_array
@@ -31,7 +32,7 @@ __go_string_to_int_array (struct __go_string str)
       p += __go_get_rune (p, pend - p, &rune);
     }
 
-  data = (uint32_t *) runtime_mallocgc (c * sizeof (uint32_t), RefNoPointers,
+  data = (uint32_t *) runtime_mallocgc (c * sizeof (uint32_t), FlagNoPointers,
                                        1, 0);
   p = str.__data;
   pd = data;