https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71868
Martin Liška <marxin at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |marxin at gcc dot gnu.org --- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> --- OK, I've just tests GCC 5.3.1, which works fine for me. Can you please try a more recent compiler than 4.9? However, using the latest GCC 7.0 branch, I see: $ cc -c -flto -fprofile-use=/tmp/prof/ -fprofile-arcs -ftest-coverage -I src/core -I src/event -I src/event/modules -I src/os/unix -I objs -o objs/src/core/nginx.o src/core/nginx.c src/core/nginx.c: In function ‘ngx_get_options’: src/core/nginx.c:1540:1: internal compiler error: Segmentation fault } ^ 0xdf16a6 crash_signal ../../gcc/toplev.c:335 0x94123b expected_loop_iterations_unbounded(loop const*, bool*) ../../gcc/cfgloopanal.c:247 0xd3fbf7 branch_prob() ../../gcc/profile.c:1343 0xf0a770 tree_profiling ../../gcc/tree-profile.c:540 0xf0ab3c execute ../../gcc/tree-profile.c:642 I'm going to attach tree dump of the problematic function. I'll have a fix for that.