https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128251
Bug ID: 128251
Summary: ICE at O2: in curr_insn_transform, at
lra-constraints.cc:4885
Product: gcc
Version: 17.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: bic60176 at gmail dot com
Target Milestone: ---
Created attachment 66010
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66010&action=edit
testcase
Compiler Explorer: https://godbolt.org/z/d9n9rrThs
Console:
<source>: In function 'check_struct_passing1':
<source>:286:1: note: the ABI for passing parameters with 32-byte alignment has
changed in GCC 4.6
286 | check_struct_passing1 (struct m256_struct ms1 ATTRIBUTE_UNUSED,
| ^~~~~~~~~~~~~~~~~~~~~
<source>: In function 'check_struct_passing2':
<source>:305:1: error: unable to generate reloads for:
305 | }
| ^
(insn 7 6 8 2 (set (reg:XF 107 [ _2 ])
(float:XF (plus:DI (reg/f:DI 16 argp)
(const_int 16 [0x10])))) "<source>":303:3 248 {floatdixf2}
(expr_list:REG_EQUAL (float:XF (reg/f:DI 16 argp))
(nil)))
during RTL pass: reload
<source>:305:1: internal compiler error: in curr_insn_transform, at
lra-constraints.cc:4885
0x2912368 diagnostics::context::diagnostic_impl(rich_location*,
diagnostics::metadata const*, diagnostics::option_id, char const*,
__va_list_tag (*) [1], diagnostics::kind)
???:0
0x2906fab internal_error(char const*, ...)
???:0
0xa9f008 fancy_abort(char const*, int, char const*)
???:0
0x8c55a1 _fatal_insn(char const*, rtx_def const*, char const*, int, char
const*)
???:0
0x1073776 lra_constraints(bool)
???:0
0x10582f2 lra(_IO_FILE*, int)
???:0
/cefs/7f/7fa6d45b591391d387e52988_gcc-trunk-20261028/bin/../libexec/gcc/x86_64-linux-gnu/17.0.0/cc1
-quiet -imultiarch x86_64-linux-gnu -iprefix
/cefs/7f/7fa6d45b591391d387e52988_gcc-trunk-20261028/bin/../lib/gcc/x86_64-linux-gnu/17.0.0/
<source> -quiet -dumpdir /app/ -dumpbase output.c -dumpbase-ext .c -masm=intel
-mtune=generic -march=x86-64 -g -O2 -fdiagnostics-color=always -fno-verbose-asm
-o /app/output.s
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.
Compiler returned: 1