public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111514] New: [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2
@ 2023-09-21  7:09 shaohua.li at inf dot ethz.ch
  2023-09-21  7:22 ` [Bug tree-optimization/111514] " pinskia at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-09-21  7:09 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111514
           Summary: [14 Regression] ICE: in lower_bound, at
                    value-range.h:1078 since r14-3644-g1aceceb1e2
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: shaohua.li at inf dot ethz.ch
                CC: guojiufu at gcc dot gnu.org
  Target Milestone: ---

gcc at -O3 crashes on the following testcase.

Bisected to r14-3644-g1aceceb1e2

Compiler explorer: https://godbolt.org/z/65G54cY8Y

$ cat a.c
unsigned a;
int b, f, g, h;
int e[1];
void j() {
  int k;
  b = 0;
  for (; k;)
    if (f)
      if (h)
        b ^= 0 <= 0;
}
void i() {
  j();
  for (; a; ++a) {
    {
      int c = b, d;
      if (b >= 'z' && d)
        c = 5;
      g = c;
    }
    *e = g;
  }
}

int main() {}
$
$ gcc -O3 a.c
during GIMPLE pass: vrp
a.c: In function ‘i’:
a.c:12:6: internal compiler error: in lower_bound, at value-range.h:1078
   12 | void i() {
      |      ^
0x7fa1dcb81082 __libc_start_main
        ../csu/libc-start.c:308
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] 4+ messages in thread

* [Bug tree-optimization/111514] [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2
  2023-09-21  7:09 [Bug tree-optimization/111514] New: [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2 shaohua.li at inf dot ethz.ch
@ 2023-09-21  7:22 ` pinskia at gcc dot gnu.org
  2023-09-21  8:15 ` shaohua.li at inf dot ethz.ch
  2023-10-17 12:58 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-09-21  7:22 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
   Target Milestone|---                         |14.0
           Keywords|                            |ice-on-valid-code

--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I suspect r14-4192-g4d80863d7f93c0a839d1fe5 fixed this ...

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

* [Bug tree-optimization/111514] [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2
  2023-09-21  7:09 [Bug tree-optimization/111514] New: [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2 shaohua.li at inf dot ethz.ch
  2023-09-21  7:22 ` [Bug tree-optimization/111514] " pinskia at gcc dot gnu.org
@ 2023-09-21  8:15 ` shaohua.li at inf dot ethz.ch
  2023-10-17 12:58 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-09-21  8:15 UTC (permalink / raw)
  To: gcc-bugs

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

--- Comment #2 from Shaohua Li <shaohua.li at inf dot ethz.ch> ---
(In reply to Andrew Pinski from comment #1)
> I suspect r14-4192-g4d80863d7f93c0a839d1fe5 fixed this ...

I checked the commit r14-4192-g4d80863d7f93c0a839d1fe5, and it indeed fixed the
issue.

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

* [Bug tree-optimization/111514] [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2
  2023-09-21  7:09 [Bug tree-optimization/111514] New: [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2 shaohua.li at inf dot ethz.ch
  2023-09-21  7:22 ` [Bug tree-optimization/111514] " pinskia at gcc dot gnu.org
  2023-09-21  8:15 ` shaohua.li at inf dot ethz.ch
@ 2023-10-17 12:58 ` rguenth at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-10-17 12:58 UTC (permalink / raw)
  To: gcc-bugs

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

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

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

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

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

end of thread, other threads:[~2023-10-17 12:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-21  7:09 [Bug tree-optimization/111514] New: [14 Regression] ICE: in lower_bound, at value-range.h:1078 since r14-3644-g1aceceb1e2 shaohua.li at inf dot ethz.ch
2023-09-21  7:22 ` [Bug tree-optimization/111514] " pinskia at gcc dot gnu.org
2023-09-21  8:15 ` shaohua.li at inf dot ethz.ch
2023-10-17 12:58 ` 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).