This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug fortran/38979] OpenMP extension: THREADPRIVATE for EQUIVALENCEd symbols
- From: "burnus at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Jan 2009 18:42:09 -0000
- Subject: [Bug fortran/38979] OpenMP extension: THREADPRIVATE for EQUIVALENCEd symbols
- References: <bug-38979-13404@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #1 from burnus at gcc dot gnu dot org 2009-01-26 18:42 -------
Note: The standard does not allow this, see
http://www.openmp.org/mp-documents/spec30.pdf, page 94: Section "2.9.2
threadprivate Directive" has under "Restrictions":
"A variable can only appear in a threadprivate directive in the scope in which
it is declared. It must not be an element of a common block or appear in an
EQUIVALENCE statement."
I don't see any fundamental problem with allowing it thus simply removing the
check should work - but I have not tested it.
I think one should not silently accept it; as there is no -fopenmp-std=legacy
option, I think the easiest would be to generate a warning such as:
Warning: OpenMP extension: THREADPRIVATE for EQUIVALENCEd variable
--
burnus at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|OpenMP extension: |OpenMP extension:
| |THREADPRIVATE for
| |EQUIVALENCEd symbols
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38979