https://gcc.gnu.org/bugzilla/show_bug.cgi?id=100767
Bug ID: 100767 Summary: arm: ice when inlining at -flto with different cpu and arch settings Product: gcc Version: 11.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: target Assignee: unassigned at gcc dot gnu.org Reporter: rearnsha at gcc dot gnu.org Target Milestone: --- reproducer: gcc -O -c -march=armv8-a+simd -flto t1.c gcc -O -c -mcpu=native -flto main.c gcc -flto -o main main.o t1.o Where t1.c is int f() { return 1;} and main.c is int f(void); int main() { return f(); } Results in calling strcmp with a NULL argument. The problem starts in arm_can_inline_p.