Am 15.10.2011 13:36, schrieb Jakub Jelinek:
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.
Actually, Fortran does have BLOCK local variables, which I used in the first place. This caused the ICE with workshare, because BLOCK is not supported for workshare. I'll work on your suggestion, though. Thanks! Thomas