https://gcc.gnu.org/bugzilla/show_bug.cgi?id=88967

--- Comment #9 from Roman Lebedev <lebedev.ri at gmail dot com> ---
(In reply to Jakub Jelinek from comment #8)
> Well, in your case firstprivate is really what you want, unless the compiler
> figures that out for you magically you want to firstprivatize these
> variables.

Hm, i understand that this is going further off-topic, but can you
explain/point to some reading material as to why firstprivate() is the thing i
want,
instead of shared()? The variables are already const, i won't be modifying them
in any case. How is it better to make a copy of them for each thread, instead
of using the same single variable?

Perhaps that was the motivational reason for that OpenMP spec change,
and i'm missing something very subtle yet important?

Anyway, thank you for replying.

Reply via email to