https://gcc.gnu.org/bugzilla/show_bug.cgi?id=117213
Bug ID: 117213 Summary: ICE: maximum number of generated reload insns per insn achieved (90) Product: gcc Version: 13.3.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: tree-optimization Assignee: unassigned at gcc dot gnu.org Reporter: bic60176 at gmail dot com Target Milestone: --- Created attachment 59387 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=59387&action=edit testcase Compiler Explorer: https://godbolt.org/z/Mvd9ej331 We have found crashes on gcc-11.5.0, gcc-12.4.0, and gcc-13.3.0 at optimization level -O2. Console: <source>: In function 'fun': <source>:12:5: warning: implicit declaration of function '__builtin_lfusedpure2' [-Wimplicit-function-declaration] 12 | __builtin_lfusedpure2 (y); // mark Y as output only and pipelining is enabled for the next floating point operations | ^~~~~~~~~~~~~~~~~~~~~ <source>:14:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 14 | printf("Before calculating square, input: %f\n", x); | ^~~~~~ <source>:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | <source>:14:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 14 | printf("Before calculating square, input: %f\n", x); | ^~~~~~ <source>:14:5: note: include '<stdio.h>' or provide a declaration of 'printf' <source>: In function 'bar': <source>:30:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 30 | printf("Value multiplied with result of function, original: %f -> multiplied: %f \n", s.ub[i], s.ub[i] * y); | ^~~~~~ <source>:30:13: note: include '<stdio.h>' or provide a declaration of 'printf' during RTL pass: reload <source>:33:1: internal compiler error: maximum number of generated reload insns per insn achieved (90) 33 | } | ^ 0x1a3ae2c internal_error(char const*, ...) ???:0 0xaf01d0 lra_constraints(bool) ???:0 0xadd842 lra(_IO_FILE*) ???:0 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. ASM generation compiler returned: 1 <source>: In function 'fun': <source>:12:5: warning: implicit declaration of function '__builtin_lfusedpure2' [-Wimplicit-function-declaration] 12 | __builtin_lfusedpure2 (y); // mark Y as output only and pipelining is enabled for the next floating point operations | ^~~~~~~~~~~~~~~~~~~~~ <source>:14:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration] 14 | printf("Before calculating square, input: %f\n", x); | ^~~~~~ <source>:1:1: note: include '<stdio.h>' or provide a declaration of 'printf' +++ |+#include <stdio.h> 1 | <source>:14:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 14 | printf("Before calculating square, input: %f\n", x); | ^~~~~~ <source>:14:5: note: include '<stdio.h>' or provide a declaration of 'printf' <source>: In function 'bar': <source>:30:13: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch] 30 | printf("Value multiplied with result of function, original: %f -> multiplied: %f \n", s.ub[i], s.ub[i] * y); | ^~~~~~ <source>:30:13: note: include '<stdio.h>' or provide a declaration of 'printf' during RTL pass: reload <source>:33:1: internal compiler error: maximum number of generated reload insns per insn achieved (90) 33 | } | ^ 0x1a3ae2c internal_error(char const*, ...) ???:0 0xaf01d0 lra_constraints(bool) ???:0 0xadd842 lra(_IO_FILE*) ???:0 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. Execution build compiler returned: 1