public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/111571] New: [13/14 Regression] ICE in modify_call, at ipa-param-manipulation.cc:656
@ 2023-09-24 13:06 shaohua.li at inf dot ethz.ch
  2023-09-24 13:22 ` [Bug tree-optimization/111571] " jamborm at gcc dot gnu.org
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: shaohua.li at inf dot ethz.ch @ 2023-09-24 13:06 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 111571
           Summary: [13/14 Regression] ICE in modify_call, at
                    ipa-param-manipulation.cc:656
           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: mjambor at suse dot cz
  Target Milestone: ---

gcc at -O2 crashes on the following testcase.

Bisected to r13-4685-g4834e9360f7

Compiler explorer: https://godbolt.org/z/3b9ra7Kf8

$ cat a.c
struct a {
  int b;
};
struct c {
  long d;
  struct a e;
  long f;
};
int g, h, i;
int j() {return 0;}
static void k(struct a l, int p) {
  if (h)
    g = 0;
  for (; g; g = j())
    if (l.b)
      break;
}
static void m(struct c l) {
  k(l.e, l.f);
  for (;; --i)
    ;
}
int main() {
  struct c n = {10, 9};
  m(n);
}
$
$ gcc -O2 a.c
during IPA pass: inline
a.c: In function ‘main’:
a.c:25:9: internal compiler error: in modify_call, at
ipa-param-manipulation.cc:655
   25 |         m(n);
      |         ^~~~
0x7f9be5bb7082 __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] 11+ messages in thread

end of thread, other threads:[~2024-05-08 12:17 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-24 13:06 [Bug tree-optimization/111571] New: [13/14 Regression] ICE in modify_call, at ipa-param-manipulation.cc:656 shaohua.li at inf dot ethz.ch
2023-09-24 13:22 ` [Bug tree-optimization/111571] " jamborm at gcc dot gnu.org
2023-09-24 16:55 ` [Bug ipa/111571] " pinskia at gcc dot gnu.org
2023-11-02  9:37 ` noamlewis at google dot com
2024-03-07 21:52 ` law at gcc dot gnu.org
2024-03-12 13:26 ` jakub at gcc dot gnu.org
2024-03-15 17:57 ` jamborm at gcc dot gnu.org
2024-04-04 20:59 ` cvs-commit at gcc dot gnu.org
2024-04-04 21:16 ` [Bug ipa/111571] [13 " jamborm at gcc dot gnu.org
2024-04-19 14:58 ` cvs-commit at gcc dot gnu.org
2024-05-08 12:17 ` 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).