https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61200
--- Comment #3 from Jakub Jelinek <jakub at gcc dot gnu.org> --- Author: jakub Date: Fri Oct 3 08:17:34 2014 New Revision: 215838 URL: https://gcc.gnu.org/viewcvs?rev=215838&root=gcc&view=rev Log: 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_9-branch/gcc/testsuite/c-c++-common/gomp/pr61200.c branches/gcc-4_9-branch/libgomp/testsuite/libgomp.c/pr61200.c Modified: branches/gcc-4_9-branch/gcc/ChangeLog branches/gcc-4_9-branch/gcc/omp-low.c branches/gcc-4_9-branch/gcc/testsuite/ChangeLog branches/gcc-4_9-branch/libgomp/ChangeLog