public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111800] New: [14 Regression] ICE with -fdump-tree-ccp1-details
@ 2023-10-13 15:51 pinskia at gcc dot gnu.org
  2023-10-13 15:52 ` [Bug tree-optimization/111800] " pinskia at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-13 15:51 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111800
           Summary: [14 Regression] ICE with -fdump-tree-ccp1-details
           Product: gcc
           Version: 14.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: pinskia at gcc dot gnu.org
  Target Milestone: ---

Testcase at -O3 -fdump-tree-ccp1-details:
```

void foo(void);
static struct d {
    short e;
} g = {205}, *h = &g;
static int i;
static int *j, *a = &i;
static int **k = &j;
static int ****l;
static int *****m;
static char(n)(char b, char c) { return b + c; }
static char(o)(char b, char c) { return b * c; }
static short(p)(short f) {
    if (!(((f) >= 1) && ((f) <= 65459))) {
        __builtin_unreachable();
    }
    return 0;
}
static int *q(short);
static void s(struct d) { *k = q(i); }
static int *q(short ad) {
    int b = *a;
    ad = -21;
    for (; ad; ad = n(ad, 7)) p((ad ^ b && *a) <= *a);
    return *k;
}
int main() {
    i = 0;
    for (;; i = 1) {
        q(3);
        char r = o(126 | 1, g.e);
        p(r);
        s(*h);
        if (i) break;
        m = &l;
    }
    if (m)
        ;
    else
        foo();
    ;
}
```

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

end of thread, other threads:[~2023-10-16  6:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-13 15:51 [Bug tree-optimization/111800] New: [14 Regression] ICE with -fdump-tree-ccp1-details pinskia at gcc dot gnu.org
2023-10-13 15:52 ` [Bug tree-optimization/111800] " pinskia at gcc dot gnu.org
2023-10-13 15:54 ` pinskia at gcc dot gnu.org
2023-10-13 16:14 ` pinskia at gcc dot gnu.org
2023-10-13 16:27 ` pinskia at gcc dot gnu.org
2023-10-13 16:28 ` jakub at gcc dot gnu.org
2023-10-13 18:27 ` jakub at gcc dot gnu.org
2023-10-13 18:44 ` jakub at gcc dot gnu.org
2023-10-13 18:47 ` jakub at gcc dot gnu.org
2023-10-15 12:25 ` cvs-commit at gcc dot gnu.org
2023-10-16  6:36 ` 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).