https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103268
H.J. Lu <hjl.tools at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |crazylht at gmail dot com, | |hjl.tools at gmail dot com --- Comment #2 from H.J. Lu <hjl.tools at gmail dot com> --- A simplified test: [hjl@gnu-cfl-2 pr103268]$ cat x.c static int si; long test_types (long n) { unsigned int u2 = __atomic_fetch_xor (&si, 0, 5); return u2; } [hjl@gnu-cfl-2 pr103268]$ make /export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/xgcc -B/export/build/gnu/tools-build/gcc-gitlab-debug/build-x86_64-linux/gcc/ -O2 -S x.c during GIMPLE pass: fab x.c: In function ‘test_types’: x.c:3:1: internal compiler error: in optimize_atomic_bit_test_and, at tree-ssa-ccp.c:3645 3 | test_types (long n) | ^~~~~~~~~~ 0x1515c9d optimize_atomic_bit_test_and /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-ssa-ccp.c:3645 0x151790a execute /export/gnu/import/git/gitlab/x86-gcc/gcc/tree-ssa-ccp.c:4115 Please submit a full bug report, with preprocessed source if appropriate. Please include the complete backtrace with any bug report. See <https://gcc.gnu.org/bugs/> for instructions. make: *** [Makefile:43: x.s] Error 1 [hjl@gnu-cfl-2 pr103268]$