https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61200
--- Comment #5 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Nov 28 17:03:01 2014 New Revision: 218165 URL: https://gcc.gnu.org/viewcvs?rev=218165&root=gcc&view=rev Log: Backported from mainline 2014-10-03 Jakub Jelinek <ja...@redhat.com> PR libgomp/61200 * omp-low.c (taskreg_contexts): New variable. (scan_omp_parallel): Push newly created context into taskreg_contexts vector and move record layout code to finish_taskreg_scan. (scan_omp_task): Likewise. (finish_taskreg_scan): New function. (execute_lower_omp): Call finish_taskreg_scan on all taskreg_contexts vector elements and release it. * c-c++-common/gomp/pr61200.c: New test. * testsuite/libgomp.c/pr61200.c: New test. Added: branches/gcc-4_8-branch/gcc/testsuite/c-c++-common/gomp/pr61200.c branches/gcc-4_8-branch/libgomp/testsuite/libgomp.c/pr61200.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/omp-low.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog branches/gcc-4_8-branch/libgomp/ChangeLog