public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "marxin at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug ipa/103099] New: [12 Regression] ICE tree check: expected ssa_name, have debug_expr_decl in split_function, at ipa-split.c:1397 since r12-4920-g1ece90ffa9ce63b4
Date: Fri, 05 Nov 2021 11:55:54 +0000	[thread overview]
Message-ID: <bug-103099-4@http.gcc.gnu.org/bugzilla/> (raw)

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

            Bug ID: 103099
           Summary: [12 Regression] ICE tree check: expected ssa_name,
                    have debug_expr_decl in split_function, at
                    ipa-split.c:1397 since r12-4920-g1ece90ffa9ce63b4
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: ipa
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: jamborm at gcc dot gnu.org, marxin at gcc dot gnu.org
  Target Milestone: ---

The following was isolated from Godot game engine:

$ cat canvas.ii
void pthread_mutex_unlock(int *);
int __gthread_mutex_unlock___mutex, unlock___trans_tmp_1;
struct Object {
  void _change_notify() {}
  bool _is_queued_for_deletion;
};
struct ClassDB {
  template <class N, class M> static int bind_method(N, M);
};
struct CanvasItemMaterial : Object {
  bool particles_animation;
  void set_particles_animation(bool);
};
void CanvasItemMaterial::set_particles_animation(bool p_particles_anim) {
  particles_animation = p_particles_anim;
  if (unlock___trans_tmp_1)
    pthread_mutex_unlock(&__gthread_mutex_unlock___mutex);
  _change_notify();
}
void CanvasItemMaterial_bind_methods() {
  ClassDB::bind_method("", &CanvasItemMaterial::set_particles_animation);
}

$ g++ canvas.ii -O2 -g
during GIMPLE pass: fnsplit
canvas.ii: In member function ‘void
CanvasItemMaterial::set_particles_animation(bool)’:
canvas.ii:22:1: internal compiler error: tree check: expected ssa_name, have
debug_expr_decl in split_function, at ipa-split.c:1397
   22 | }
      | ^
0x8cfd28 tree_check_failed(tree_node const*, char const*, int, char const*,
...)
        /home/marxin/Programming/gcc/gcc/tree.c:8689
0x978716 tree_check(tree_node*, char const*, int, char const*, tree_code)
        /home/marxin/Programming/gcc/gcc/tree.h:3433
0x978716 split_function
        /home/marxin/Programming/gcc/gcc/ipa-split.c:1397
0x1f2613b execute_split_functions
        /home/marxin/Programming/gcc/gcc/ipa-split.c:1867
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.

             reply	other threads:[~2021-11-05 11:55 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-05 11:55 marxin at gcc dot gnu.org [this message]
2021-11-05 11:56 ` [Bug ipa/103099] " marxin at gcc dot gnu.org
2021-11-05 13:07 ` rguenth at gcc dot gnu.org
2021-11-05 13:07 ` rguenth at gcc dot gnu.org
2021-11-05 13:15 ` jamborm at gcc dot gnu.org
2021-11-05 15:06 ` dcb314 at hotmail dot com
2021-11-05 17:51 ` jamborm at gcc dot gnu.org
2021-11-08 16:54 ` cvs-commit at gcc dot gnu.org
2021-11-08 17:04 ` 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-103099-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).