public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/100398] New: [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082
@ 2021-05-03 16:36 asolokha at gmx dot com
  2021-05-04  6:59 ` [Bug tree-optimization/100398] " rguenth at gcc dot gnu.org
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: asolokha at gmx dot com @ 2021-05-03 16:36 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100398
           Summary: [12 Regression] ICE in
                    gimple_redirect_edge_and_branch, at tree-cfg.c:6082
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: x86_64-unknown-linux-gnu

gcc-12.0.0-alpha20210502 snapshot (g:92f59e47f5a468b96b12b15233a6729904b1a1ee)
ICEs when compiling the following testcase, reduced from
test/CodeGen/asm-goto.c from the clang 11.1.0 test suite, w/ -O1:

int
test5_limit (void)
{
  int addr;

  asm goto ("" : "+r" (addr) : : : t_err);
  return 0;

 t_err:
  return 1;
}

% x86_64-unknown-linux-gnu-gcc-12.0.0 -O1 -c xttz2qcb.c
during GIMPLE pass: veclower2
xttz2qcb.c: In function 'test5_limit':
xttz2qcb.c:2:1: internal compiler error: in gimple_redirect_edge_and_branch, at
tree-cfg.c:6082
    2 | test5_limit (void)
      | ^~~~~~~~~~~
0x6cfa49 gimple_redirect_edge_and_branch
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/tree-cfg.c:6082
0x9701e9 redirect_edge_and_branch(edge_def*, basic_block_def*)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/cfghooks.c:373
0xe610a6 remove_forwarder_block
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/tree-cfgcleanup.c:585
0xe610a6 cleanup_tree_cfg_bb
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/tree-cfgcleanup.c:754
0xe61808 cleanup_tree_cfg_noloop
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/tree-cfgcleanup.c:1103
0xe61808 cleanup_tree_cfg(unsigned int)
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/tree-cfgcleanup.c:1187
0xd2bf64 execute_function_todo
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/passes.c:2008
0xd2c89b execute_todo
       
/var/tmp/portage/sys-devel/gcc-12.0.0_alpha20210502/work/gcc-12-20210502/gcc/passes.c:2096

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

* [Bug tree-optimization/100398] [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082
  2021-05-03 16:36 [Bug tree-optimization/100398] New: [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082 asolokha at gmx dot com
@ 2021-05-04  6:59 ` rguenth at gcc dot gnu.org
  2021-05-04  6:59 ` rguenth at gcc dot gnu.org
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-04  6:59 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
   Last reconfirmed|                            |2021-05-04
             Status|UNCONFIRMED                 |ASSIGNED

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.  The asm goto is gone.  Mine (it's elided in DSE).

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

* [Bug tree-optimization/100398] [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082
  2021-05-03 16:36 [Bug tree-optimization/100398] New: [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082 asolokha at gmx dot com
  2021-05-04  6:59 ` [Bug tree-optimization/100398] " rguenth at gcc dot gnu.org
@ 2021-05-04  6:59 ` rguenth at gcc dot gnu.org
  2021-05-04 10:32 ` cvs-commit at gcc dot gnu.org
  2021-05-04 10:43 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-04  6:59 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |12.0
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

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

* [Bug tree-optimization/100398] [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082
  2021-05-03 16:36 [Bug tree-optimization/100398] New: [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082 asolokha at gmx dot com
  2021-05-04  6:59 ` [Bug tree-optimization/100398] " rguenth at gcc dot gnu.org
  2021-05-04  6:59 ` rguenth at gcc dot gnu.org
@ 2021-05-04 10:32 ` cvs-commit at gcc dot gnu.org
  2021-05-04 10:43 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2021-05-04 10:32 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 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:2326627eb19d8c21251fd60479f1a190621c475b

commit r12-430-g2326627eb19d8c21251fd60479f1a190621c475b
Author: Richard Biener <rguenther@suse.de>
Date:   Tue May 4 09:18:11 2021 +0200

    tree-optimization/100398 - avoid DSE of control flow stmt

    The following makes sure to preserve control altering stmts
    when removing trivially dead stmts in DSE.

    2021-05-04  Richard Biener  <rguenther@suse.de>

            PR tree-optimization/100398
            * tree-ssa-dse.c (pass_dse::execute): Preserve control
            altering stmts.

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

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

* [Bug tree-optimization/100398] [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082
  2021-05-03 16:36 [Bug tree-optimization/100398] New: [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082 asolokha at gmx dot com
                   ` (2 preceding siblings ...)
  2021-05-04 10:32 ` cvs-commit at gcc dot gnu.org
@ 2021-05-04 10:43 ` rguenth at gcc dot gnu.org
  3 siblings, 0 replies; 5+ messages in thread
From: rguenth at gcc dot gnu.org @ 2021-05-04 10:43 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

end of thread, other threads:[~2021-05-04 10:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-03 16:36 [Bug tree-optimization/100398] New: [12 Regression] ICE in gimple_redirect_edge_and_branch, at tree-cfg.c:6082 asolokha at gmx dot com
2021-05-04  6:59 ` [Bug tree-optimization/100398] " rguenth at gcc dot gnu.org
2021-05-04  6:59 ` rguenth at gcc dot gnu.org
2021-05-04 10:32 ` cvs-commit at gcc dot gnu.org
2021-05-04 10:43 ` 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).