https://gcc.gnu.org/bugzilla/show_bug.cgi?id=97078
Bug ID: 97078 Summary: [11 Regression] ICE in set_rtl building glibc tests with -ffloat-store Product: gcc Version: 11.0 Status: UNCONFIRMED Keywords: ice-on-valid-code Severity: normal Priority: P3 Component: middle-end Assignee: unassigned at gcc dot gnu.org Reporter: jsm28 at gcc dot gnu.org CC: ebotcazou at gcc dot gnu.org Target Milestone: --- Target: alpha*-*-* s390*-*-* sparc*-*-* Created attachment 49230 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=49230&action=edit preprocessed source Compile the attached test (from the glibc testsuite) for alpha-linux-gnu with -S -O2 -ffloat-store (you may need -mlong-double-128 as well depending on the configuration of your cross compiler). The following ICE was introduced by commit a7d8dcdf2f3cf9a801e655f2eec3967a3a3ba666, "Fix dangling references in thunks at -O0" (bisection done and preprocessed source generated for alpha; the same ICE also appears building the glibc testsuite for s390 and 32-bit sparc, likely with the same cause). during RTL pass: expand In file included from /scratch/jmyers/glibc/many11/build/glibcs/alpha-linux-gnu/glibc/math/libm-test-support-ldouble.c:2: ./libm-test-support.c: In function 'print_float': ./libm-test-support.c:259:1: internal compiler error: in set_rtl, at cfgexpand.c:199 0x734169 set_rtl /scratch/jmyers/glibc/many11/src/gcc/gcc/cfgexpand.c:178 0x73a239 set_parm_rtl(tree_node*, rtx_def*) /scratch/jmyers/glibc/many11/src/gcc/gcc/cfgexpand.c:1312 0x8ce172 assign_parm_setup_reg /scratch/jmyers/glibc/many11/src/gcc/gcc/function.c:3379 0x8d1846 assign_parms /scratch/jmyers/glibc/many11/src/gcc/gcc/function.c:3685 0x8d1846 expand_function_start(tree_node*) /scratch/jmyers/glibc/many11/src/gcc/gcc/function.c:5129 0x74728f execute /scratch/jmyers/glibc/many11/src/gcc/gcc/cfgexpand.c:6464 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.