public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111865] New: GCC: 14: internal compiler error: symtab_node::verify failed
@ 2023-10-18 14:50 141242068 at smail dot nju.edu.cn
2023-10-18 18:48 ` [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name pinskia at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-10-18 14:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111865
Bug ID: 111865
Summary: GCC: 14: internal compiler error: symtab_node::verify
failed
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: c
Assignee: unassigned at gcc dot gnu.org
Reporter: 141242068 at smail dot nju.edu.cn
Target Milestone: ---
When compile this program, gcc crashes:
```
register unsigned long x asm("rsp");
struct {
int a;
} * p asm("rsp");
```
Compiler Explorer: https://godbolt.org/z/xYq8KP8M3
The stack dump:
```
<source>:5:1: error: assembler name hash list corrupted
5 | } * p asm("rsp");
| ^
*rsp/0 (x)
Type: variable definition analyzed
Visibility: force_output semantic_interposition no_reorder public
References:
Referring:
Availability: not-ready
Varpool flags:
<source>:5:1: internal compiler error: symtab_node::verify failed
0x231210e internal_error(char const*, ...)
???:0
0xbd03a9 symtab_node::verify()
???:0
0xbd168f symtab_node::verify_symtab_nodes()
???:0
0xbebdab symbol_table::finalize_compilation_unit()
???:0
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] 6+ messages in thread
* [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name
2023-10-18 14:50 [Bug c/111865] New: GCC: 14: internal compiler error: symtab_node::verify failed 141242068 at smail dot nju.edu.cn
@ 2023-10-18 18:48 ` pinskia at gcc dot gnu.org
2023-10-18 18:52 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-18 18:48 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111865
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Target Milestone|--- |11.5
Summary|GCC: 14: internal compiler |[11/12/13/14 Regression]
|error: symtab_node::verify |ICE with register decl and
|failed |extern decl with the same
| |asm name
Known to fail| |9.1.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name
2023-10-18 14:50 [Bug c/111865] New: GCC: 14: internal compiler error: symtab_node::verify failed 141242068 at smail dot nju.edu.cn
2023-10-18 18:48 ` [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name pinskia at gcc dot gnu.org
@ 2023-10-18 18:52 ` pinskia at gcc dot gnu.org
2023-10-18 18:53 ` pinskia at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-18 18:52 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111865
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Created attachment 56143
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56143&action=edit
testcase that could go into the testsuite with more targets supported
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name
2023-10-18 14:50 [Bug c/111865] New: GCC: 14: internal compiler error: symtab_node::verify failed 141242068 at smail dot nju.edu.cn
2023-10-18 18:48 ` [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name pinskia at gcc dot gnu.org
2023-10-18 18:52 ` pinskia at gcc dot gnu.org
@ 2023-10-18 18:53 ` pinskia at gcc dot gnu.org
2023-10-18 18:53 ` pinskia at gcc dot gnu.org
2023-10-18 18:54 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-18 18:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111865
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
(In reply to Andrew Pinski from comment #1)
> Created attachment 56143 [details]
> testcase that could go into the testsuite with more targets supported
Add:
```
#elif defined __aarch64__
# define ASM __asm__("sp")
```
To it too.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name
2023-10-18 14:50 [Bug c/111865] New: GCC: 14: internal compiler error: symtab_node::verify failed 141242068 at smail dot nju.edu.cn
` (2 preceding siblings ...)
2023-10-18 18:53 ` pinskia at gcc dot gnu.org
@ 2023-10-18 18:53 ` pinskia at gcc dot gnu.org
2023-10-18 18:54 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-18 18:53 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111865
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |NEW
Last reconfirmed| |2023-10-18
Ever confirmed|0 |1
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name
2023-10-18 14:50 [Bug c/111865] New: GCC: 14: internal compiler error: symtab_node::verify failed 141242068 at smail dot nju.edu.cn
` (3 preceding siblings ...)
2023-10-18 18:53 ` pinskia at gcc dot gnu.org
@ 2023-10-18 18:54 ` pinskia at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-10-18 18:54 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111865
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |DUPLICATE
Status|NEW |RESOLVED
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Basically a dup of bug 61192.
*** This bug has been marked as a duplicate of bug 61192 ***
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-10-18 18:54 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-18 14:50 [Bug c/111865] New: GCC: 14: internal compiler error: symtab_node::verify failed 141242068 at smail dot nju.edu.cn
2023-10-18 18:48 ` [Bug middle-end/111865] [11/12/13/14 Regression] ICE with register decl and extern decl with the same asm name pinskia at gcc dot gnu.org
2023-10-18 18:52 ` pinskia at gcc dot gnu.org
2023-10-18 18:53 ` pinskia at gcc dot gnu.org
2023-10-18 18:53 ` pinskia at gcc dot gnu.org
2023-10-18 18:54 ` 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).