This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [gomp] OMP_STACKSIZE env variable


> 	* env.c (gomp_nthreads_var): Change to unsigned long.
> 	(gomp_run_sched_chunk): Likewise.
> 	(parse_unsigned_long): Rename from parse_num_threads and generalize.
> 	(initialize_env): Initialize gomp_thread_attr.
> 	* libgomp.h (gomp_nthreads_var): Update decl.
> 	(gomp_run_sched_chunk): Likewise.
> 	(gomp_thread_attr): Declare.
> 	* team.c (gomp_thread_attr): Export.
> 	(initialize_team): Don't initialize it.

On arm-netbsdelf this causes:

/work/rearnsha/gnu/gcc/trunk/./gcc/xgcc -B/work/rearnsha/gnu/gcc/trunk/./gcc/ -B/work/rearnsha/gnu/testinstall/arm-netbsdelf2/bin/ -B/work/rearnsha/gnu/testinstall/arm-netbsdelf2/lib/ -isystem /work/rearnsha/gnu/testinstall/arm-netbsdelf2/include -isystem /work/rearnsha/gnu/testinstall/arm-netbsdelf2/sys-include -DHAVE_CONFIG_H -I. -I/home/rearnsha/gnusrc/gcc/trunk/libgomp -I. -I/home/rearnsha/gnusrc/gcc/trunk/libgomp/config/posix -I/home/rearnsha/gnusrc/gcc/trunk/libgomp -Wall -pthread -Werror -O2 -g -O2 -MT env.lo -MD -MP -MF .deps/env.Tpo -c /home/rearnsha/gnusrc/gcc/trunk/libgomp/env.c  -fPIC -DPIC -o .libs/env.o /home/rearnsha/gnusrc/gcc/trunk/libgomp/env.c: In function 'initialize_env':
/home/rearnsha/gnusrc/gcc/trunk/libgomp/env.c:172: error: 'PTHREAD_STACK_MIN' undeclared (first use in this function)

IIRC libjava had the same problem at one point, so presumably the same fix will apply here.

R.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]