public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org>
To: gcc-bugs@gcc.gnu.org
Subject: [Bug rtl-optimization/101347] [11/12/13 Regression] ICE in cfg_layout_initialize with __builtin_setjmp and -fprofile-generate -fprofile-use
Date: Wed, 20 Jul 2022 13:12:55 +0000	[thread overview]
Message-ID: <bug-101347-4-zyoEpy50Tm@http.gcc.gnu.org/bugzilla/> (raw)
In-Reply-To: <bug-101347-4@http.gcc.gnu.org/bugzilla/>

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

--- Comment #5 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alexander Monakov <amonakov@gcc.gnu.org>:

https://gcc.gnu.org/g:daa36cfc2fc2538810db071b81d250f4d621f7ea

commit r13-1766-gdaa36cfc2fc2538810db071b81d250f4d621f7ea
Author: Alexander Monakov <amonakov@ispras.ru>
Date:   Tue Jul 19 18:04:30 2022 +0300

    Avoid registering __builtin_setjmp_receiver label twice [PR101347]

    The testcase in the PR demonstrates how it is possible for one
    __builtin_setjmp_receiver label to appear in
    nonlocal_goto_handler_labels list twice (after the block with
    __builtin_setjmp_setup referring to it was duplicated).

    remove_node_from_insn_list did not account for this possibility and
    removed only the first copy from the list. Add an assert verifying that
    duplicates are not present.

    To avoid adding a label to the list twice, move registration of the
    label from __builtin_setjmp_setup handling to __builtin_setjmp_receiver.

    gcc/ChangeLog:

            PR rtl-optimization/101347
            * builtins.cc (expand_builtin) [BUILT_IN_SETJMP_SETUP]: Move
            population of nonlocal_goto_handler_labels from here ...
            (expand_builtin) [BUILT_IN_SETJMP_RECEIVER]: ... to here.
            * rtlanal.cc (remove_node_from_insn_list): Verify that a
            duplicate is not present in the remainder of the list.

  parent reply	other threads:[~2022-07-20 13:12 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-07-06 17:29 [Bug c/101347] New: [11/12 Regression] ICE in cfg_layout_initialize, at cfgrtl.c:4478 gscfq@t-online.de
2021-07-06 19:20 ` [Bug rtl-optimization/101347] [11/12 Regression] ICE in cfg_layout_initialize with __builtin_setjmp and -fprofile-generate -fprofile-use pinskia at gcc dot gnu.org
2021-07-07  6:38 ` rguenth at gcc dot gnu.org
2021-07-07  6:38 ` rguenth at gcc dot gnu.org
2021-07-28  7:07 ` rguenth at gcc dot gnu.org
2022-04-21  7:49 ` rguenth at gcc dot gnu.org
2022-07-14 18:15 ` [Bug rtl-optimization/101347] [11/12/13 " amonakov at gcc dot gnu.org
2022-07-20 13:12 ` cvs-commit at gcc dot gnu.org [this message]
2022-07-20 13:15 ` [Bug rtl-optimization/101347] [11/12 " amonakov at gcc dot gnu.org
2022-07-27  7:18 ` 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-101347-4-zyoEpy50Tm@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).