[Bug c++/49575] OpenMP has a problem with -funroll-loops

2011-06-29 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49575 --- Comment #3 from Jakub Jelinek 2011-06-29 19:49:47 UTC --- With firstprivate of course you get a copy of the variable, but it is still a variable. The *.omp_fn* function which is created from the #omp parallel region will load it from paramet

[Bug c++/49575] OpenMP has a problem with -funroll-loops

2011-06-29 Thread sailorweb2 at hotmail dot com
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49575 --- Comment #2 from Duncan 2011-06-29 19:38:00 UTC --- I am new to OpenMP so I do not know the details, but as far as I know, variable k is defined as firstprivate, so each thread will have an independent local copy. Why does it need defining con

[Bug c++/49575] OpenMP has a problem with -funroll-loops

2011-06-29 Thread jakub at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49575 Jakub Jelinek changed: What|Removed |Added Keywords||openmp CC|