public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug translation/107301] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114
@ 2022-10-18  3:49 asolokha at gmx dot com
  2022-10-18  7:34 ` [Bug tree-optimization/107301] " rguenth at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: asolokha at gmx dot com @ 2022-10-18  3:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 107301
           Summary: [13 Regression] ICE in duplicate_block, at
                    cfghooks.cc:1114
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: translation
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---

gcc 13.0.0 20221016 snapshot (g:6366e3e8847af98d4728d55951534769d034d02a) ICEs
when compiling the following testcase w/ -O2:

__attribute__ ((pure, returns_twice)) int
foo (int x)
{
  int a;

  a = x ? 3 : 0;
  x /= a;
  a = foo (x);
  if (x == a)
    __builtin_unreachable ();

  return 0;
}

% gcc-13 -O2 -c ybzomcfk.c
during GIMPLE pass: isolate-paths
ybzomcfk.c: In function 'foo':
ybzomcfk.c:2:1: internal compiler error: in duplicate_block, at
cfghooks.cc:1114
    2 | foo (int x)
      | ^~~
0x6a97c8 duplicate_block(basic_block_def*, edge_def*, basic_block_def*,
copy_bb_data*)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/cfghooks.cc:1114
0x1d679dc isolate_path(basic_block_def*, basic_block_def*, edge_def*, gimple*,
tree_node*, bool)
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/gimple-ssa-isolate-paths.cc:157
0x1d6970b find_implicit_erroneous_behavior
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/gimple-ssa-isolate-paths.cc:770
0x1d6970b gimple_ssa_isolate_erroneous_paths
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/gimple-ssa-isolate-paths.cc:932
0x1d6970b execute
       
/var/tmp/portage/sys-devel/gcc-13.0.0_p20221016/work/gcc-13-20221016/gcc/gimple-ssa-isolate-paths.cc:987

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107301] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114
  2022-10-18  3:49 [Bug translation/107301] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114 asolokha at gmx dot com
@ 2022-10-18  7:34 ` rguenth at gcc dot gnu.org
  2022-10-18  7:54 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-18  7:34 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2022-10-18
   Target Milestone|---                         |13.0
             Status|UNCONFIRMED                 |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org
          Component|translation                 |tree-optimization

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  We fail to check whether we can duplicate a block.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107301] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114
  2022-10-18  3:49 [Bug translation/107301] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114 asolokha at gmx dot com
  2022-10-18  7:34 ` [Bug tree-optimization/107301] " rguenth at gcc dot gnu.org
@ 2022-10-18  7:54 ` rguenth at gcc dot gnu.org
  2022-10-18  7:58 ` marxin at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-18  7:54 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P3                          |P1

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107301] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114
  2022-10-18  3:49 [Bug translation/107301] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114 asolokha at gmx dot com
  2022-10-18  7:34 ` [Bug tree-optimization/107301] " rguenth at gcc dot gnu.org
  2022-10-18  7:54 ` rguenth at gcc dot gnu.org
@ 2022-10-18  7:58 ` marxin at gcc dot gnu.org
  2022-10-18  8:31 ` cvs-commit at gcc dot gnu.org
  2022-10-18  8:31 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-10-18  7:58 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |amonakov at gcc dot gnu.org,
                   |                            |marxin at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with r13-1753-g26cea5f108e0facd.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107301] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114
  2022-10-18  3:49 [Bug translation/107301] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2022-10-18  7:58 ` marxin at gcc dot gnu.org
@ 2022-10-18  8:31 ` cvs-commit at gcc dot gnu.org
  2022-10-18  8:31 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-10-18  8:31 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #3 from CVS Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:

https://gcc.gnu.org/g:5ad3cc1ecc3c7c61d5e319f74cb7287fb80944fd

commit r13-3352-g5ad3cc1ecc3c7c61d5e319f74cb7287fb80944fd
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Oct 18 09:38:03 2022 +0200

    tree-optimization/107301 - check if we can duplicate block before doing so

    Path isolation failed to do that.

            PR tree-optimization/107301
            * gimple-ssa-isolate-paths.cc (handle_return_addr_local_phi_arg):
            Check whether we can duplicate the block.
            (find_implicit_erroneous_behavior): Likewise.

            * gcc.dg/torture/pr107301.c: New testcase.

^ permalink raw reply	[flat|nested] 6+ messages in thread

* [Bug tree-optimization/107301] [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114
  2022-10-18  3:49 [Bug translation/107301] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114 asolokha at gmx dot com
                   ` (3 preceding siblings ...)
  2022-10-18  8:31 ` cvs-commit at gcc dot gnu.org
@ 2022-10-18  8:31 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-10-18  8:31 UTC (permalink / raw)
  To: gcc-bugs

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

Richard Biener <rguenth at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
         Resolution|---                         |FIXED

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed.

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-10-18  8:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-18  3:49 [Bug translation/107301] New: [13 Regression] ICE in duplicate_block, at cfghooks.cc:1114 asolokha at gmx dot com
2022-10-18  7:34 ` [Bug tree-optimization/107301] " rguenth at gcc dot gnu.org
2022-10-18  7:54 ` rguenth at gcc dot gnu.org
2022-10-18  7:58 ` marxin at gcc dot gnu.org
2022-10-18  8:31 ` cvs-commit at gcc dot gnu.org
2022-10-18  8:31 ` rguenth at gcc dot gnu.org

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).