This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [Bug c/24455] New: [gomp] Trouble with threadprivate and extern


On Thursday 20 October 2005 12:34, reichelt at gcc dot gnu dot org wrote:

> I'd expect that i is threadprivate in file1.c and file2.c.
>
But you have to mark it so in both places.

> Am I misreading the OpenMP spec or is this a bug in the frontends?
>
I think you're misreading the spec, in 2.8.2. page 69, lines 4-6:

"If a variable is specified in a threadprivate directive in one translation 
unit, it must be specified in a threadprivate directive in every 
translation unit in which it is declared."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]