https://gcc.gnu.org/bugzilla/show_bug.cgi?id=128253

            Bug ID: 128253
           Summary: ICE at O2: in expand_call, at calls.cc:3765
           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 66012
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=66012&action=edit
testcase

Compiler Explorer: https://godbolt.org/z/esbqo8j9E
Console:
<source>: In function 'main':
<source>:32:9: sorry, unimplemented: passing too large argument on stack
   32 |         f2b(G511);
      |         ^~~~~~~~~
during RTL pass: expand
<source>:32:9: internal compiler error: in expand_call, at calls.cc:3765
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
0xc70a8e expand_call(tree_node*, rtx_def*, int)
        ???:0
0xdcc642 expand_expr_real_1(tree_node*, rtx_def*, machine_mode,
expand_modifier, rtx_def**, bool)
        ???: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

Reply via email to