public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug target/104910] New: [10/11/12 Regression] ICE: internal consistency failure (error: invalid rtl sharing found in the insn)
@ 2022-03-14  9:49 asolokha at gmx dot com
  2022-03-14 11:48 ` [Bug target/104910] " jakub at gcc dot gnu.org
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: asolokha at gmx dot com @ 2022-03-14  9:49 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 104910
           Summary: [10/11/12 Regression] ICE: internal consistency
                    failure (error: invalid rtl sharing found in the insn)
           Product: gcc
           Version: 12.0
            Status: UNCONFIRMED
          Keywords: ice-on-valid-code
          Severity: normal
          Priority: P3
         Component: target
          Assignee: unassigned at gcc dot gnu.org
          Reporter: asolokha at gmx dot com
  Target Milestone: ---
            Target: aarch64-linux-gnu

Created attachment 52621
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=52621&action=edit
-freport-bug output

gcc 12.0.1 20220313 snapshot (g:7e28750395889d16a9cba49cd5935ced7dc00ce8) ICEs
when compiling the following testcase w/ -Os -fstack-protector-all
-fno-forward-propagate -fno-PIC:

void
bar (void);

void
foo (int x)
{
  if (x)
    bar ();
}

% aarch64-linux-gnu-gcc-12.0.1 -Os -fstack-protector-all -fno-forward-propagate
-fno-PIC -c k1n69laf.c
k1n69laf.c: In function 'foo':
k1n69laf.c:9:1: error: invalid rtl sharing found in the insn
    9 | }
      | ^
(insn 51 50 10 2 (set (reg/f:DI 100)
        (lo_sum:DI (reg:DI 101)
            (const:DI (unspec:DI [
                        (symbol_ref:DI ("__stack_chk_guard") [flags 0xc0]
<var_decl 0x7fb7e4364240 __stack_chk_guard>)
                        (const_int 1 [0x1])
                    ] UNSPEC_SALT_ADDR)))) -1
     (expr_list:REG_EQUAL (const:DI (unspec:DI [
                    (symbol_ref:DI ("__stack_chk_guard") [flags 0xc0] <var_decl
0x7fb7e4364240 __stack_chk_guard>)
                    (const_int 1 [0x1])
                ] UNSPEC_SALT_ADDR))
        (nil)))
k1n69laf.c:9:1: error: shared rtx
(const:DI (unspec:DI [
            (symbol_ref:DI ("__stack_chk_guard") [flags 0xc0] <var_decl
0x7fb7e4364240 __stack_chk_guard>)
            (const_int 1 [0x1])
        ] UNSPEC_SALT_ADDR))
during RTL pass: hoist
k1n69laf.c:9:1: internal compiler error: internal consistency failure
0xaf3439 verify_rtx_sharing
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/emit-rtl.cc:2898
0xaf335d verify_rtx_sharing
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/emit-rtl.cc:2913
0xaf335d verify_rtx_sharing
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/emit-rtl.cc:2913
0xaf37cf verify_insn_sharing
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/emit-rtl.cc:2984
0xaf883e verify_rtl_sharing()
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/emit-rtl.cc:3007
0xe138f1 execute_function_todo
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/passes.cc:2105
0xe13e4b execute_todo
       
/var/tmp/portage/cross-aarch64-linux-gnu/gcc-12.0.1_p20220313/work/gcc-12-20220313/gcc/passes.cc:2138

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

end of thread, other threads:[~2022-05-10 10:26 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-14  9:49 [Bug target/104910] New: [10/11/12 Regression] ICE: internal consistency failure (error: invalid rtl sharing found in the insn) asolokha at gmx dot com
2022-03-14 11:48 ` [Bug target/104910] " jakub at gcc dot gnu.org
2022-03-14 14:29 ` rguenth at gcc dot gnu.org
2022-03-16 10:04 ` cvs-commit at gcc dot gnu.org
2022-03-16 10:05 ` [Bug target/104910] [10/11 " jakub at gcc dot gnu.org
2022-03-29  5:54 ` cvs-commit at gcc dot gnu.org
2022-03-30  8:15 ` [Bug target/104910] [10 " jakub at gcc dot gnu.org
2022-05-10  8:25 ` cvs-commit at gcc dot gnu.org
2022-05-10 10:26 ` 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).