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/105977] New: [12/13 Regression] ICE in gimple_call_static_chain_flags, at gimple.cc:1636
Date: Tue, 14 Jun 2022 17:47:28 +0000	[thread overview]
Message-ID: <bug-105977-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 105977
           Summary: [12/13 Regression] ICE in
                    gimple_call_static_chain_flags, at gimple.cc:1636
           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 20211107 and 20211114, at -Os :
(from gcc.c-torture/execute/920612-2.c)
(gcc configured with --enable-checking=yes)


$ cat z1.c
void f ()
{
  int i = 0;
  int a (int x)
    {
      while (x)
        i++, x--;
      return x;
    }
  if (a (2) != 0)
    return;
}


$ gcc-13-20220612 -c z1.c -O2 -fdisable-ipa-inline
cc1: note: disable pass ipa-inline for functions in the range of [0,
4294967295]
$
$ gcc-13-20220612 -c z1.c -Os -fdisable-ipa-inline
cc1: note: disable pass ipa-inline for functions in the range of [0,
4294967295]
during GIMPLE pass: alias
z1.c: In function 'f':
z1.c:1:6: internal compiler error: in gimple_call_static_chain_flags, at
gimple.cc:1636
    1 | void f ()
      |      ^
0xa75e29 gimple_call_static_chain_flags(gcall const*)
        ../../gcc/gimple.cc:1636
0x1086681 handle_rhs_call
        ../../gcc/tree-ssa-structalias.cc:4345
0x1087fe5 find_func_aliases_for_call
        ../../gcc/tree-ssa-structalias.cc:5010
0x1087fe5 find_func_aliases
        ../../gcc/tree-ssa-structalias.cc:5113
0x108b7a6 compute_points_to_sets
        ../../gcc/tree-ssa-structalias.cc:7536
0x108b7a6 compute_may_aliases()
        ../../gcc/tree-ssa-structalias.cc:8044
0xd0bbde execute_function_todo
        ../../gcc/passes.cc:2057
0xd0c712 execute_todo
        ../../gcc/passes.cc:2139

             reply	other threads:[~2022-06-14 17:47 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-14 17:47 gscfq@t-online.de [this message]
2022-06-15  9:12 ` [Bug c/105977] " rguenth at gcc dot gnu.org
2022-06-15 10:08 ` hubicka at kam dot mff.cuni.cz
2022-07-25 16:00 ` rguenth 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-105977-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).