[Bug libgomp/49231] #pragma omp parallel for never returns

parviz_fariborz at mentor dot com gcc-bugzilla@gcc.gnu.org
Mon May 30 15:17:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49231

Parviz Fariborz <parviz_fariborz at mentor dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |parviz_fariborz at mentor
                   |                            |dot com

--- Comment #2 from Parviz Fariborz <parviz_fariborz at mentor dot com> 2011-05-30 15:11:16 UTC ---


-Parviz(In reply to comment #1)
> Can't reproduce, tried gcc 4.4.5, 4.6 and 4.7, both -m32 and -m64, gcc and g++,
> and various options.

The compile/link option -static seems to be significant in this case. The
executable built with the following command :

/tools/linux64/gcc-4.4.3/bin/g++ -o omp -g -static -fopenmp -lgomp -lpthread
-I/tools/linux64/gcc-4.4.3/include -L/usr/lib64
-L/tools/linux64/gcc-4.4.3/lib64 omp.cc

Do not work. When I remove the -static option, it does work. Any ideas?



More information about the Gcc-bugs mailing list