public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/100888] New: ICE: symtab_node::verify failed, symtab_node::verify()
@ 2021-06-02 21:32 cnsun at uwaterloo dot ca
  2021-06-03  9:33 ` [Bug ipa/100888] " marxin at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: cnsun at uwaterloo dot ca @ 2021-06-02 21:32 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 100888
           Summary: ICE: symtab_node::verify failed, symtab_node::verify()
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: cnsun at uwaterloo dot ca
  Target Milestone: ---

$ gcc-trunk -v
Using built-in specs.
COLLECT_GCC=gcc-trunk
COLLECT_LTO_WRAPPER=/scratch/software/gcc-trunk/libexec/gcc/x86_64-pc-linux-gnu/12.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/configure
--enable-languages=c,c++,lto --enable-checking-yes --enable-multiarch
--prefix=/scratch/software/gcc-trunk --disable-bootstrap
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 12.0.0 20210602 (experimental) [master revision
:5b6bc0f6e:b75978d14fc35981ffd8bf060ee52300db4dae50] (GCC)

$ cat mutant.c
register __sys_res asm("r10");
r10() {}

$ gcc-trunk  mutant.c
mutant.c:1:10: warning: type defaults to ‘int’ in declaration of ‘__sys_res’
[-Wimplicit-int]
    1 | register __sys_res asm("r10");
      |          ^~~~~~~~~
mutant.c:1:10: warning: call-clobbered register used for global register
variable
mutant.c:2:1: warning: return type defaults to ‘int’ [-Wimplicit-int]
    2 | r10() {}
      | ^~~
mutant.c:2:1: error: assembler name hash list corrupted
*r10/0 (__sys_res) @0x7f5bf87f5000
  Type: variable definition analyzed
  Visibility: force_output no_reorder public
  References:
  Referring:
  Availability: not-ready
  Varpool flags:
mutant.c:2:1: internal compiler error: symtab_node::verify failed
0xa717c9 symtab_node::verify()
        /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/gcc/symtab.c:1361
0xa717c9 symtab_node::verify()
        /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/gcc/symtab.c:1349
0xa72a27 symtab_node::verify_symtab_nodes()
        /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/gcc/symtab.c:1384
0xa88b04 symtab_node::checking_verify_symtab_nodes()
        /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/gcc/cgraph.h:678
0xa88b04 symbol_table::compile()
        /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/gcc/cgraphunit.c:2272
0xa8b7db symbol_table::compile()
        /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/gcc/cgraphunit.c:2269
0xa8b7db symbol_table::finalize_compilation_unit()
        /tmp/tmp.2G3KkJkZyC-gcc-builder/gcc/gcc/cgraphunit.c:2537
Please submit a full bug report,
with preprocessed source if appropriate.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.

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

* [Bug ipa/100888] ICE: symtab_node::verify failed, symtab_node::verify()
  2021-06-02 21:32 [Bug c/100888] New: ICE: symtab_node::verify failed, symtab_node::verify() cnsun at uwaterloo dot ca
@ 2021-06-03  9:33 ` marxin at gcc dot gnu.org
  2021-08-13  9:58 ` marxin at gcc dot gnu.org
  2021-12-24 10:34 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-06-03  9:33 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
     Ever confirmed|0                           |1
           Assignee|unassigned at gcc dot gnu.org      |marxin at gcc dot gnu.org
             Status|UNCONFIRMED                 |ASSIGNED
   Last reconfirmed|                            |2021-06-03

--- Comment #1 from Martin Liška <marxin at gcc dot gnu.org> ---
Started with my r9-6392-g606711a1671cc637.

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

* [Bug ipa/100888] ICE: symtab_node::verify failed, symtab_node::verify()
  2021-06-02 21:32 [Bug c/100888] New: ICE: symtab_node::verify failed, symtab_node::verify() cnsun at uwaterloo dot ca
  2021-06-03  9:33 ` [Bug ipa/100888] " marxin at gcc dot gnu.org
@ 2021-08-13  9:58 ` marxin at gcc dot gnu.org
  2021-12-24 10:34 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: marxin at gcc dot gnu.org @ 2021-08-13  9:58 UTC (permalink / raw)
  To: gcc-bugs

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

Martin Liška <marxin at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |NEW
           Keywords|ice-on-valid-code           |ice-on-invalid-code
           Assignee|marxin at gcc dot gnu.org          |unassigned at gcc dot gnu.org

--- Comment #2 from Martin Liška <marxin at gcc dot gnu.org> ---
It's an invalid code as a global register variable shares the same name with a
function.

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

* [Bug ipa/100888] ICE: symtab_node::verify failed, symtab_node::verify()
  2021-06-02 21:32 [Bug c/100888] New: ICE: symtab_node::verify failed, symtab_node::verify() cnsun at uwaterloo dot ca
  2021-06-03  9:33 ` [Bug ipa/100888] " marxin at gcc dot gnu.org
  2021-08-13  9:58 ` marxin at gcc dot gnu.org
@ 2021-12-24 10:34 ` pinskia at gcc dot gnu.org
  2 siblings, 0 replies; 4+ messages in thread
From: pinskia at gcc dot gnu.org @ 2021-12-24 10:34 UTC (permalink / raw)
  To: gcc-bugs

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

Andrew Pinski <pinskia at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |DUPLICATE
             Status|NEW                         |RESOLVED

--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Martin Liška from comment #1)
> Started with my r9-6392-g606711a1671cc637.

It didn't exactly start with patch as it was failing with LTO before that.

Dup of bug 61192.

*** This bug has been marked as a duplicate of bug 61192 ***

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

end of thread, other threads:[~2021-12-24 10:34 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02 21:32 [Bug c/100888] New: ICE: symtab_node::verify failed, symtab_node::verify() cnsun at uwaterloo dot ca
2021-06-03  9:33 ` [Bug ipa/100888] " marxin at gcc dot gnu.org
2021-08-13  9:58 ` marxin at gcc dot gnu.org
2021-12-24 10:34 ` pinskia 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).