https://gcc.gnu.org/bugzilla/show_bug.cgi?id=89684
Bug ID: 89684 Summary: [8/9 Regression] ICE in gsi_for_stmt, at gimple-iterator.c:613 Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: c Assignee: unassigned at gcc dot gnu.org Reporter: gs...@t-online.de Target Milestone: --- Started with gcc-8, compiles with gcc-7 and older : $ cat z1.c __attribute__((target_clones ("default", "avx"))) int f () { g (0, f); g (0, f); } $ gcc-9-20190310 -c z1.c z1.c: In function 'f': z1.c:4:3: warning: implicit declaration of function 'g' [-Wimplicit-function-declaration] 4 | g (0, f); | ^ during IPA pass: targetclone z1.c: At top level: z1.c:6:1: internal compiler error: Segmentation fault 6 | } | ^ 0xa8ab5f crash_signal ../../gcc/toplev.c:326 0x8334b0 gsi_for_stmt(gimple*) ../../gcc/gimple-iterator.c:613 0x1233aae create_dispatcher_calls ../../gcc/multiple_target.c:143 0x1233aae ipa_target_clone ../../gcc/multiple_target.c:505 0x1233aae execute ../../gcc/multiple_target.c:537