http://gcc.gnu.org/bugzilla/show_bug.cgi?id=57737
Bug ID: 57737 Summary: -fopenmp + -femit-struct-debug-reduced/baseonly = internal compiler error: Segmentation fault Product: gcc Version: 4.7.2 Status: UNCONFIRMED Severity: critical Priority: P3 Component: libgomp Assignee: unassigned at gcc dot gnu.org Reporter: evgeny.gavrin at hotmail dot com CC: jakub at gcc dot gnu.org Created attachment 30392 --> http://gcc.gnu.org/bugzilla/attachment.cgi?id=30392&action=edit File to reproduce bug Compilation of debug-1.c file from ./libgomp/testsuite with the following options: -g -fopenmp -O0 -gdwarf-2 -femit-struct-debug-reduced - causes segfault in the compiler. The described bug is actual for GCC versions 4.4, 4.6, 4.7. Works for -femit-struct-debug-reduced and -femit-struct-debug-baseonly I've attached both problem example and preprocessed file to the report. Console logs: egavrin@debian:~/dev/vd-issues/report-omp-failtest$ gcc-4.7 -g -fopenmp -O0 -gdwarf-2 -femit-struct-debug-baseonly ./debug-1.c ./debug-1.c: In function ‘f7._omp_fn.0’: ./debug-1.c:136:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccWoFu5C.out file, please attach this to your bugreport. egavrin@debian:~/dev/vd-issues/report-omp-failtest$ gcc-4.7 -g -fopenmp -O0 -gdwarf-2 -femit-struct-debug-reduced ./debug-1.c ./debug-1.c: In function ‘f7._omp_fn.0’: ./debug-1.c:136:11: internal compiler error: Segmentation fault Please submit a full bug report, with preprocessed source if appropriate. See <file:///usr/share/doc/gcc-4.7/README.Bugs> for instructions. Preprocessed source stored into /tmp/ccw1Cilr.out file, please attach this to your bugreport. Host system info: Linux debian 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2+deb7u2 x86_64 GNU/Linux