https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104890
--- Comment #16 from H.J. Lu <hjl.tools at gmail dot com> --- [hjl@gnu-skx-1 gcc]$ ./xgcc -B./ -O2 -m32 /tmp/x.c -S -march=sapphirerapids -mshstk In file included from ./include/x86gprintrin.h:45, from /tmp/x.c:1: ./include/cetintrin.h: In function ?_Unwind_Resume_or_Rethrow?: ./include/cetintrin.h:55:1: error: inlining failed in call to ?always_inline? ?_inc_ssp?: target specific option mismatch 55 | _inc_ssp (unsigned int __B) | ^~~~~~~~ /tmp/x.c:7:3: note: called from here 7 | _inc_ssp(1); | ^~~~~~~~~~~ [hjl@gnu-skx-1 gcc]$ ./xgcc -B./ -O2 -m32 /tmp/x.c -S -march=tigerlake -mshstkIn file included from ./include/x86gprintrin.h:45, from /tmp/x.c:1: ./include/cetintrin.h: In function ?_Unwind_Resume_or_Rethrow?: ./include/cetintrin.h:55:1: error: inlining failed in call to ?always_inline? ?_inc_ssp?: target specific option mismatch 55 | _inc_ssp (unsigned int __B) | ^~~~~~~~ /tmp/x.c:7:3: note: called from here 7 | _inc_ssp(1); | ^~~~~~~~~~~ [hjl@gnu-skx-1 gcc]$ ./xgcc -B./ -O2 -m32 /tmp/x.c -S -march=alderlake -mshstkIn file included from ./include/x86gprintrin.h:45, from /tmp/x.c:1: ./include/cetintrin.h: In function ?_Unwind_Resume_or_Rethrow?: ./include/cetintrin.h:55:1: error: inlining failed in call to ?always_inline? ?_inc_ssp?: target specific option mismatch 55 | _inc_ssp (unsigned int __B) | ^~~~~~~~ /tmp/x.c:7:3: note: called from here 7 | _inc_ssp(1); | ^~~~~~~~~~~ [hjl@gnu-skx-1 gcc]$ ./xgcc -B./ -O2 -m32 /tmp/x.c -S -march=cascadelake -mshstk [hjl@gnu-skx-1 gcc]$