This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [gomp] OMP_STACKSIZE env variable
On Wed, 14 Jun 2006 08:14:10 PDT, Richard Henderson <rth@redhat.com>
wrote:
> On Mon, Jun 12, 2006 at 12:26:00AM +0100, Richard Earnshaw wrote:
> > error: 'PTHREAD_STACK_MIN' undeclared (first use in this function)
>
> By my reading, this number isn't optional. But my use of it
> here is merely for better error messages, so it's not worth
> worrying about.
By my reading of 1003.1 it is optional. In particular:
1) An implementation may omit a definition if it is indeterminate at
compile time. An application can then call pthread_attr_getstacksize().
2) pthread_attr_{get,set}stacksize() are optional and part of the Threads
and Thread Stack Size Attribute option _POSIX_THREAD_ATTR_STACKSIZE.
R.