On Fri, Nov 28, 2014 at 02:52:11AM +0300, Ilya Verbin wrote: > On 21 Nov 21:36, Jakub Jelinek wrote: > > On Fri, Nov 21, 2014 at 11:19:26PM +0300, Ilya Verbin wrote: > > > '#pragma omp critical (name)' can be placed in the function, marked > > > with '#pragma omp declare target', in this case the corresponding node > > > should be marked as offloadable too. > > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? > > > > Please add a testcase for this. > > Here is the testcase, based on critical-2.c, ok for trunk? > > > gcc/ > * omp-low.c (lower_omp_critical): Mark critical sections > inside target functions as offloadable. > > libgomp/ > * testsuite/libgomp.c/target-critical-1.c: New test.
Ok, thanks. Jakub