https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120619
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- [apinski@xeond2 gcc]$ ./cc1 -fsanitize=thread -fgnu-tm t.c f Analyzing compilation unit Performing interprocedural optimizations <*free_lang_data> {heap 1116k} <visibility> {heap 1116k} <build_ssa_passes> {heap 1116k} <opt_local_passes> {heap 1392k} <remove_symbols> {heap 1392k} <targetclone> {heap 1392k} <free-fnsummary> {heap 1392k} <tmipa>during IPA pass: tmipa t.c: In function âfâ: t.c:6:1: internal compiler error: Segmentation fault 6 | } | ^ 0x24fc50f internal_error(char const*, ...) /home/apinski/src/upstream-gcc-isel/gcc/gcc/diagnostic-global-context.cc:517 0x114f4ef crash_signal /home/apinski/src/upstream-gcc-isel/gcc/gcc/toplev.cc:321 0x1155ca0 is_tm_irrevocable /home/apinski/src/upstream-gcc-isel/gcc/gcc/trans-mem.cc:237 0x115801e ipa_tm_scan_irr_block /home/apinski/src/upstream-gcc-isel/gcc/gcc/trans-mem.cc:4403 0x115801e ipa_tm_scan_irr_blocks /home/apinski/src/upstream-gcc-isel/gcc/gcc/trans-mem.cc:4471 0x115875d ipa_tm_scan_irr_function /home/apinski/src/upstream-gcc-isel/gcc/gcc/trans-mem.cc:4633 0x1158f50 ipa_tm_execute /home/apinski/src/upstream-gcc-isel/gcc/gcc/trans-mem.cc:5535 0x1158f50 execute /home/apinski/src/upstream-gcc-isel/gcc/gcc/trans-mem.cc:5693 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions.