------- Comment #14 from victor dot pasko at gmail dot com 2010-07-20 06:19 ------- (In reply to comment #13) > You clearly haven't looked at the code.
Yes, I didn't look at libgfortran sources. However, I am not sure about 'terrible performance' if just two instructions (load and test) are added before every call to pthread-function. Or remove weak pthread symbols there to have thread-safety by default. But currently, namely crash occurs when -static -fopenmp are used :( And in my opinion, it's not good to not allow using -static option in GNU FORTRAN. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44927