public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "gscfq@t-online.de" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug c++/106935] New: [12/13 Regression] ICE in redirect_call_stmt_to_callee, at cgraph.cc:1505
Date: Tue, 13 Sep 2022 19:33:55 +0000	[thread overview]
Message-ID: <bug-106935-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 106935
           Summary: [12/13 Regression] ICE in
                    redirect_call_stmt_to_callee, at cgraph.cc:1505
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c++
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20211114 and 20211121, at -Ofast,
with file g++.dg/ipa/pr71146.C :
(gcc configured with --enable-checking=yes)


$ g++-13-20220911 -c pr71146.C -m32 -mandroid --param ipa-cp-eval-threshold=200
-O3
$
$ g++-13-20220911 -c pr71146.C -m32 -mandroid --param ipa-cp-eval-threshold=200
-Ofast
during IPA pass: inline
pr71146.C: In member function 'void C::fn2()':
pr71146.C:20:11: internal compiler error: in redirect_call_stmt_to_callee, at
cgraph.cc:1505
   20 |   foo->fn (0, 0, 0);
      |   ~~~~~~~~^~~~~~~~~
0xc9e883 cgraph_edge::redirect_call_stmt_to_callee(cgraph_edge*)
        ../../gcc/cgraph.cc:1505
0x1260f1f redirect_all_calls(copy_body_data*, basic_block_def*)
        ../../gcc/tree-inline.cc:3002
0x12645d3 copy_cfg_body
        ../../gcc/tree-inline.cc:3157
0x12645d3 copy_body
        ../../gcc/tree-inline.cc:3338
0x1267898 expand_call_inline
        ../../gcc/tree-inline.cc:5123
0x1269919 gimple_expand_calls_inline
        ../../gcc/tree-inline.cc:5318
0x1269919 optimize_inline_calls(tree_node*)
        ../../gcc/tree-inline.cc:5490
0xf2bc6b inline_transform(cgraph_node*)
        ../../gcc/ipa-inline-transform.cc:790
0x10c2e50 execute_one_ipa_transform_pass
        ../../gcc/passes.cc:2336
0x10c2e50 execute_all_ipa_transforms(bool)
        ../../gcc/passes.cc:2399
0xca5875 cgraph_node::expand()
        ../../gcc/cgraphunit.cc:1827
0xca7216 expand_all_functions
        ../../gcc/cgraphunit.cc:1998
0xca7216 symbol_table::compile()
        ../../gcc/cgraphunit.cc:2348
0xcaa8ef symbol_table::compile()
        ../../gcc/cgraphunit.cc:2532
0xcaa8ef symbol_table::finalize_compilation_unit()
        ../../gcc/cgraphunit.cc:2529

             reply	other threads:[~2022-09-13 19:33 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-13 19:33 gscfq@t-online.de [this message]
2022-09-13 19:39 ` [Bug ipa/106935] " pinskia at gcc dot gnu.org
2022-09-13 20:10 ` [Bug ipa/106935] [10/11/12/13 Regression] ICE in redirect_call_stmt_to_callee, at cgraph.cc:1505 since r10-5098-g9b14fc3326e08797 marxin at gcc dot gnu.org
2022-09-14  7:03 ` rguenth at gcc dot gnu.org
2023-05-08 12:25 ` [Bug ipa/106935] [10/11/12/13/14 " rguenth at gcc dot gnu.org
2024-04-30 13:23 ` [Bug ipa/106935] [11/12/13/14/15 " jamborm at gcc dot gnu.org
2024-05-10 15:28 ` jamborm at gcc dot gnu.org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-106935-4@http.gcc.gnu.org/bugzilla/ \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=gcc-bugs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).