runtime: allocate more stack space in CgoCallbackGC test

Allocate enough stack space so that the test will work on a system
that does not support split stacks.

This test is actually not very meaningful for gccgo at present, but it
doesn't hurt to keep running it.

Updates golang/go#20931

Change-Id: I81f5b7d48cd7de828def6ae6180d0b7c12809902
Reviewed-on: https://go-review.googlesource.com/50630
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/go/runtime/testdata/testprogcgo/callback.go b/libgo/go/runtime/testdata/testprogcgo/callback.go
index 7b58f4a..a49fc19 100644
--- a/libgo/go/runtime/testdata/testprogcgo/callback.go
+++ b/libgo/go/runtime/testdata/testprogcgo/callback.go
@@ -23,7 +23,9 @@
     pthread_t th;
     pthread_attr_t attr;
     pthread_attr_init(&attr);
-    pthread_attr_setstacksize(&attr, 256 << 10);
+    // For gccgo use a stack size large enough for all the callbacks,
+    // in case we are on a platform that does not support -fsplit-stack.
+    pthread_attr_setstacksize(&attr, 512 * 10000);
     pthread_create(&th, &attr, thr, 0);
     pthread_join(th, 0);
 }