[patch, Fortran] Fix PR 50690

Thomas Koenig tkoenig@netcologne.de
Sat Oct 15 16:37:00 GMT 2011


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



More information about the Gcc-patches mailing list