public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/106844] New: ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4
@ 2022-09-06  4:10 marxin at gcc dot gnu.org
  2022-09-06  4:10 ` [Bug tree-optimization/106844] " marxin at gcc dot gnu.org
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-06  4:10 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 106844
           Summary: ICE in init_use_preds, at
                    gimple-predicate-analysis.cc:1944 since
                    r13-2436-ge9ea2688271bd0b4
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
                CC: rguenth at gcc dot gnu.org
  Target Milestone: ---

The following crashes:

$ cat ice.c
struct {
  int count;
  int array[];
} fde_merge_v1;

void
fde_merge_i2() {
  unsigned i1;
  do
    while (i1 && fde_merge_v1.array[i1 - 1])
      i1--;
  while (fde_merge_i2);
}

$ gcc ice.c --param=uninit-control-dep-attempts=1 -O1 -c -Wmaybe-uninitialized
during GIMPLE pass: uninit
ice.c: In function ‘fde_merge_i2’:
ice.c:7:1: internal compiler error: in init_use_preds, at
gimple-predicate-analysis.cc:1924
    7 | fde_merge_i2() {
      | ^~~~~~~~~~~~
0x8a35ff uninit_analysis::init_use_preds(predicate&, basic_block_def*,
basic_block_def*)
        /home/marxin/Programming/gcc/gcc/gimple-predicate-analysis.cc:1924
0x1d68f8b uninit_analysis::is_use_guarded(gimple*, basic_block_def*, gphi*,
unsigned int, hash_set<gphi*, false, default_hash_traits<gphi*> >*)
        /home/marxin/Programming/gcc/gcc/gimple-predicate-analysis.cc:2086
0x1d69573 uninit_analysis::is_use_guarded(gimple*, basic_block_def*, gphi*,
unsigned int)
        /home/marxin/Programming/gcc/gcc/gimple-predicate-analysis.cc:2127
0x11b6614 find_uninit_use
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.cc:1238
0x11b6f55 warn_uninitialized_phi
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.cc:1308
0x11b6f55 execute_late_warn_uninitialized
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.cc:1429
0x11b6f55 execute
        /home/marxin/Programming/gcc/gcc/tree-ssa-uninit.cc:1446
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug tree-optimization/106844] ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4
  2022-09-06  4:10 [Bug tree-optimization/106844] New: ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4 marxin at gcc dot gnu.org
@ 2022-09-06  4:10 ` marxin at gcc dot gnu.org
  2022-09-06  8:36 ` rguenth at gcc dot gnu.org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: marxin at gcc dot gnu.org @ 2022-09-06  4:10 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |NEW
   Last reconfirmed|                            |2022-09-06
     Ever confirmed|0                           |1
   Target Milestone|---                         |13.0

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

* [Bug tree-optimization/106844] ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4
  2022-09-06  4:10 [Bug tree-optimization/106844] New: ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4 marxin at gcc dot gnu.org
  2022-09-06  4:10 ` [Bug tree-optimization/106844] " marxin at gcc dot gnu.org
@ 2022-09-06  8:36 ` rguenth at gcc dot gnu.org
  2022-09-06  9:29 ` cvs-commit at gcc dot gnu.org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-06  8:36 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|unassigned at gcc dot gnu.org      |rguenth at gcc dot gnu.org

--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Let me have a look.

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

* [Bug tree-optimization/106844] ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4
  2022-09-06  4:10 [Bug tree-optimization/106844] New: ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4 marxin at gcc dot gnu.org
  2022-09-06  4:10 ` [Bug tree-optimization/106844] " marxin at gcc dot gnu.org
  2022-09-06  8:36 ` rguenth at gcc dot gnu.org
@ 2022-09-06  9:29 ` cvs-commit at gcc dot gnu.org
  2022-09-06  9:29 ` rguenth at gcc dot gnu.org
  2022-09-07  8:55 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2022-09-06  9:29 UTC (permalink / raw)
  To: gcc-bugs

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

--- 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:1a4e1425f8498580994e32ceb3c50bd52616a82d

commit r13-2493-g1a4e1425f8498580994e32ceb3c50bd52616a82d
Author: Richard Biener <rguenther@suse.de>
Date:   Tue Sep 6 10:42:50 2022 +0200

    tree-optimization/106844 - fix ICE in init_use_preds

    The following fixes an oversight in the last change to
    compute_control_dep_chain where we have to return whether we found
    a chain.

            PR tree-optimization/106844
            * gimple-predicate-analysis.cc (compute_control_dep_chain):
            Return whether we found a chain.

            * gcc.dg/pr106844.c: New testcase.

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

* [Bug tree-optimization/106844] ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4
  2022-09-06  4:10 [Bug tree-optimization/106844] New: ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4 marxin at gcc dot gnu.org
                   ` (2 preceding siblings ...)
  2022-09-06  9:29 ` cvs-commit at gcc dot gnu.org
@ 2022-09-06  9:29 ` rguenth at gcc dot gnu.org
  2022-09-07  8:55 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-06  9:29 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

* [Bug tree-optimization/106844] ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4
  2022-09-06  4:10 [Bug tree-optimization/106844] New: ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4 marxin at gcc dot gnu.org
                   ` (3 preceding siblings ...)
  2022-09-06  9:29 ` rguenth at gcc dot gnu.org
@ 2022-09-07  8:55 ` rguenth at gcc dot gnu.org
  4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2022-09-07  8:55 UTC (permalink / raw)
  To: gcc-bugs

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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |dcb314 at hotmail dot com

--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
*** Bug 106862 has been marked as a duplicate of this bug. ***

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

end of thread, other threads:[~2022-09-07  8:55 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-09-06  4:10 [Bug tree-optimization/106844] New: ICE in init_use_preds, at gimple-predicate-analysis.cc:1944 since r13-2436-ge9ea2688271bd0b4 marxin at gcc dot gnu.org
2022-09-06  4:10 ` [Bug tree-optimization/106844] " marxin at gcc dot gnu.org
2022-09-06  8:36 ` rguenth at gcc dot gnu.org
2022-09-06  9:29 ` cvs-commit at gcc dot gnu.org
2022-09-06  9:29 ` rguenth at gcc dot gnu.org
2022-09-07  8:55 ` 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).