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

sailorweb2 at hotmail dot com gcc-bugzilla@gcc.gnu.org
Wed Jun 29 19:38:00 GMT 2011


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49575

--- Comment #2 from Duncan <sailorweb2 at hotmail dot com> 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 constant or declaring it in the body of the
parallel region even though it is defined firstprivate? Won't firstprivate
automatically define a local copy of k in the body of the parallel region?



More information about the Gcc-bugs mailing list