Use less stack for pr29629.f90 of libgomp testsuite
Jie Zhang
jie.zhang@analog.com
Thu Feb 19 15:36:00 GMT 2009
Dave Korn wrote:
> Jie Zhang wrote:
>> Blackfin uses linuxthreads on Linux. Its default stack size of thread is
>> less than 16000 bytes. The threads in pr29629.f90 needs more than 40000
>> bytes for each. This patch changes n from 10000 to 1000 to enable this
>> test for Blackfin, as well as other targets using linuxthreads. Is it OK?
>
> It might be suitable to put it under control of the STACK_SIZE macro, no?
> Then targets with big stacks could still run the full test.
>
The STACK_SIZE macro is not good here. The STACK_SIZE macro is for the
stack size of main thread. For Blackfin FD-PIC application, the default
main stack size is 131072, which is much larger than the default thread
stack size.
And the original test case in the bugzilla didn't care what n is. So I
think changing from 10000 to 1000 does not affect what the test is
testing for.
Jie
More information about the Gcc-patches
mailing list