https://gcc.gnu.org/bugzilla/show_bug.cgi?id=116324
Bug ID: 116324 Summary: [lra] error: inconsistent operand constraints in an 'asm' Product: gcc Version: 15.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: gjl at gcc dot gnu.org Target Milestone: --- Created attachment 58896 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=58896&action=edit lra-bug2.c: GNU-C99 test case This error occurs when we try to build avr libgcc with -mlra: $ avr-gcc lra-bug2.c -S -mlra -Os or $ avr-gcc lra-bug2.c -S -mlra In function '__f7_clr', inlined from '__f7_madd_msub' at lra-bug2.c:77:3: lra-bug2.c:42:3: error: inconsistent operand constraints in an 'asm' 42 | __asm ("%~call %x[f]" | ^~~~~ The input constraint is like "z" (cc) where cc is a void* that perfectly fits into 16-bit regster Z (reg:HI 30) which has register constraint "z". Target: avr Configured with: ../../source/gcc-master/configure --target=avr --disable-nls --with-dwarf2 --with-gnu-as --with-gnu-ld --disable-shared --with-long-double=64 --enable-languages=c,c++