On Sat, Oct 15, 2011 at 11:02:12AM +0200, Thomas Koenig wrote: > Hello world, > > here is a fix for PR 50690, pretty self-explanatory. Regression-tested. > OK for trunk?
This looks wrong. Threadprivate variables aren't completely cheap, much better would be an automatic variable instead. As Fortran FE IL doesn't have block local variables, I guess you want to create the var at function scope and add a private(that_temporary) clause to the nearest enclosing OpenMP directive. Jakub