public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/109303] New: [13 Regression] ICE in push_agg_values_from_plats, at ipa-cp.cc:1458
@ 2023-03-27 18:41 gscfq@t-online.de
  2023-03-27 18:52 ` [Bug ipa/109303] " pinskia at gcc dot gnu.org
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: gscfq@t-online.de @ 2023-03-27 18:41 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 109303
           Summary: [13 Regression] ICE in push_agg_values_from_plats, at
                    ipa-cp.cc:1458
           Product: gcc
           Version: 13.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started between 20221016 and 20221023, at -O2+ :


$ cat z1.c
struct s
{
  struct s1
  {
    unsigned char c1;
    unsigned short a1[2147483647];
  } __attribute__ ((packed)) p1;
  struct s2
  {
    unsigned char c2;
    unsigned short a2[100];
  } __attribute__ ((packed)) p2[4];
} __attribute__ ((packed));

typedef struct
{
  struct s b;
} qs;

static int
f (qs *q)
{
  int i, j;
  for (i = 0; i < q->b.p1.c1; i++)
    for (j = 0; j < q->b.p2[i].c2; j++)
      g (q->b.p2[i].a2[j]);
}

int main (void)
{
  qs q;
  q.b.p2[0].c2 = q.b.p2[1].c2 = 3;
  return f (&q);
}


$ gcc-13-20230326 -c z1.c -O2
z1.c: In function 'f':
z1.c:26:7: warning: implicit declaration of function 'g'
[-Wimplicit-function-declaration]
   26 |       g (q->b.p2[i].a2[j]);
      |       ^
during IPA pass: cp
z1.c: At top level:
z1.c:34:1: internal compiler error: in push_agg_values_from_plats, at
ipa-cp.cc:1458
   34 | }
      | ^
0x1db8677 push_agg_values_from_plats
        ../../gcc/ipa-cp.cc:1457
0x1db8aef gather_context_independent_values
        ../../gcc/ipa-cp.cc:3641
0x1dc0d59 estimate_local_effects
        ../../gcc/ipa-cp.cc:3746
0x1dcbe38 propagate_constants_topo
        ../../gcc/ipa-cp.cc:4105
0x1dcbe38 ipcp_propagate_stage
        ../../gcc/ipa-cp.cc:4292
0x1dcbe38 ipcp_driver
        ../../gcc/ipa-cp.cc:6616

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

end of thread, other threads:[~2023-04-05  8:40 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-27 18:41 [Bug c/109303] New: [13 Regression] ICE in push_agg_values_from_plats, at ipa-cp.cc:1458 gscfq@t-online.de
2023-03-27 18:52 ` [Bug ipa/109303] " pinskia at gcc dot gnu.org
2023-03-27 20:06 ` [Bug ipa/109303] [13 Regression] ICE in push_agg_values_from_plats, at ipa-cp.cc:1458 since r13-3358-ge0403e95689af7d5 marxin at gcc dot gnu.org
2023-03-28  7:22 ` rguenth at gcc dot gnu.org
2023-03-29 15:37 ` jakub at gcc dot gnu.org
2023-03-29 16:26 ` jakub at gcc dot gnu.org
2023-03-29 16:40 ` jakub at gcc dot gnu.org
2023-03-29 22:20 ` jamborm at gcc dot gnu.org
2023-03-30  7:21 ` jakub at gcc dot gnu.org
2023-03-30  7:28 ` jakub at gcc dot gnu.org
2023-03-30 16:48 ` jamborm at gcc dot gnu.org
2023-03-31  8:51 ` jamborm at gcc dot gnu.org
2023-04-03 14:01 ` cvs-commit at gcc dot gnu.org
2023-04-03 14:02 ` jamborm at gcc dot gnu.org
2023-04-05  8:40 ` marxin at gcc dot gnu.org
2023-04-05  8:40 ` marxin 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).