public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/101562] New: [9/10/11/12 Regression] ICE in insert, at wide-int.cc:682
@ 2021-07-21 17:45 gscfq@t-online.de
  2021-07-21 17:46 ` [Bug rtl-optimization/101562] " pinskia at gcc dot gnu.org
                   ` (13 more replies)
  0 siblings, 14 replies; 15+ messages in thread
From: gscfq@t-online.de @ 2021-07-21 17:45 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 101562
           Summary: [9/10/11/12 Regression] ICE in insert, at
                    wide-int.cc:682
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: gscfq@t-online.de
  Target Milestone: ---

Started with r7, at -O2+ :

(gcc here configured with --enable-checking=yes)
(helpful warning with -O2 -Wall, but not with -O1 -Wall)
(-> array subscript is above array bounds)


$ cat z1.c
struct S { char c; };
void g (struct S a, struct S b);
void f ()
{
  struct S x[1];
  x[0].c = 0;
  x[1].c = 1;
  g (x[0], x[1]);
  return;
}


$ gcc-6 -c z1.c -O2
$ gcc-12-20210718 -c z1.c -O1
$
$ gcc-12-20210718 -c z1.c -O2
during RTL pass: combine
z1.c: In function 'f':
z1.c:10:1: internal compiler error: in insert, at wide-int.cc:682
   10 | }
      | ^
0x11ad9c1 wi::insert(generic_wide_int<wide_int_storage> const&,
generic_wide_int<wide_int_storage> const&, unsigned int, unsigned int)
        ../../gcc/wide-int.cc:682
0x17f6c2e try_combine
        ../../gcc/combine.c:2839
0x17f9860 combine_instructions
        ../../gcc/combine.c:1269
0x17f9860 rest_of_handle_combine
        ../../gcc/combine.c:14873
0x17f9860 execute
        ../../gcc/combine.c:14918

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

end of thread, other threads:[~2022-05-11  6:36 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-21 17:45 [Bug c/101562] New: [9/10/11/12 Regression] ICE in insert, at wide-int.cc:682 gscfq@t-online.de
2021-07-21 17:46 ` [Bug rtl-optimization/101562] " pinskia at gcc dot gnu.org
2021-07-21 18:05 ` pinskia at gcc dot gnu.org
2021-07-21 18:07 ` pinskia at gcc dot gnu.org
2021-07-22  6:55 ` rguenth at gcc dot gnu.org
2021-07-22  8:47 ` jakub at gcc dot gnu.org
2021-07-22  8:53 ` jakub at gcc dot gnu.org
2021-07-22  9:32 ` jakub at gcc dot gnu.org
2021-07-23 17:56 ` cvs-commit at gcc dot gnu.org
2021-07-23 17:57 ` [Bug rtl-optimization/101562] [9/10/11 " jakub at gcc dot gnu.org
2021-07-28  9:06 ` cvs-commit at gcc dot gnu.org
2021-07-28  9:08 ` [Bug rtl-optimization/101562] [9/10 " jakub at gcc dot gnu.org
2022-05-10  8:20 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:21 ` cvs-commit at gcc dot gnu.org
2022-05-11  6:36 ` jakub 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).