https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78582
Bug ID: 78582 Summary: [7 Regression] ICE in walk_stmt_load_store_addr_ops with -fprofile-generate Product: gcc Version: unknown Status: UNCONFIRMED Severity: normal Priority: P3 Component: gcov-profile Assignee: unassigned at gcc dot gnu.org Reporter: marxin at gcc dot gnu.org Target Milestone: --- Started by my commit r241821: $ cat ice.i int a; void main (argc, argv, env) int argc; char argv, env; { __sigsetjmp (); argc = a = argc; reader_loop (); } $ gcc -fprofile-generate ice.i ice.i: In function ‘main’: ice.i:5:3: warning: implicit declaration of function ‘__sigsetjmp’; did you mean ‘__builtin_setjmp’? [-Wimplicit-function-declaration] __sigsetjmp (); ^~~~~~~~~~~ __builtin_setjmp ice.i:7:3: warning: implicit declaration of function ‘reader_loop’ [-Wimplicit-function-declaration] reader_loop (); ^~~~~~~~~~~ ice.i:8:1: internal compiler error: Segmentation fault } ^ 0xf0a488 crash_signal ../../gcc/toplev.c:333 0xba9263 walk_stmt_load_store_addr_ops(gimple*, void*, bool (*)(gimple*, tree_node*, tree_node*, void*), bool (*)(gimple*, tree_node*, tree_node*, void*), bool (*)(gimple*, tree_node*, tree_node*, void*)) ../../gcc/gimple-walk.c:915 0x9c872b cgraph_node::record_stmt_references(gimple*) ../../gcc/cgraphbuild.c:277 0x9c8f54 cgraph_edge::rebuild_edges() ../../gcc/cgraphbuild.c:445 0x1026003 tree_profiling ../../gcc/tree-profile.c:714 0x1026088 execute ../../gcc/tree-profile.c:749