public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c/111809] New: GCC-14: internal error, internal compiler error: in release_function_body, at cgraph.cc:1805
@ 2023-10-14 15:56 141242068 at smail dot nju.edu.cn
2023-10-14 15:57 ` [Bug c/111809] " 141242068 at smail dot nju.edu.cn
2023-11-04 19:16 ` [Bug c/111809] gimpleFE: unreferenced inline function with _GIMPLE(ssa) definition causes ICE pinskia at gcc dot gnu.org
0 siblings, 2 replies; 3+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-10-14 15:56 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111809
Bug ID: 111809
Summary: GCC-14: internal error, internal compiler error: in
release_function_body, at cgraph.cc:1805
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: ---
Reproducer: https://godbolt.org/z/MP7qnTKz6
when compile this with `gcc-14 -O0 -fgimple`, gcc crashes:
```
inline __GIMPLE (ssa) void
bar (void)
{
int _3;
__BB(2):
return;
}
```
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug c/111809] GCC-14: internal error, internal compiler error: in release_function_body, at cgraph.cc:1805
2023-10-14 15:56 [Bug c/111809] New: GCC-14: internal error, internal compiler error: in release_function_body, at cgraph.cc:1805 141242068 at smail dot nju.edu.cn
@ 2023-10-14 15:57 ` 141242068 at smail dot nju.edu.cn
2023-11-04 19:16 ` [Bug c/111809] gimpleFE: unreferenced inline function with _GIMPLE(ssa) definition causes ICE pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: 141242068 at smail dot nju.edu.cn @ 2023-10-14 15:57 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111809
--- Comment #1 from wierton <141242068 at smail dot nju.edu.cn> ---
Full stack backtrace:
<source>: In function 'bar':
<source>:8:1: error: SSA name '<unknown>' with version 3 has no definition
8 | }
| ^
At top level:
cc1: internal compiler error: in release_function_body, at cgraph.cc:1805
0x22ff3ee internal_error(char const*, ...)
???:0
0x9fc0a8 fancy_abort(char const*, int, char const*)
???:0
0xbd8857 cgraph_node::release_body(bool)
???:0
0xbde851 cgraph_node::remove()
???:0
0xbe92d1 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] 3+ messages in thread
* [Bug c/111809] gimpleFE: unreferenced inline function with _GIMPLE(ssa) definition causes ICE
2023-10-14 15:56 [Bug c/111809] New: GCC-14: internal error, internal compiler error: in release_function_body, at cgraph.cc:1805 141242068 at smail dot nju.edu.cn
2023-10-14 15:57 ` [Bug c/111809] " 141242068 at smail dot nju.edu.cn
@ 2023-11-04 19:16 ` pinskia at gcc dot gnu.org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu.org @ 2023-11-04 19:16 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111809
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-11-04
Keywords|error-recovery, |
|ice-on-invalid-code |
Status|UNCONFIRMED |NEW
Summary|GIMPLEFE: ICE after `SSA |gimpleFE: unreferenced
|name '<unknown>' with |inline function with
|version 3 has no |_GIMPLE(ssa) definition
|definition` |causes ICE
Ever confirmed|0 |1
--- Comment #2 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Reduced testcase:
```
inline
__GIMPLE (ssa) void
bar (void)
{
__BB(2):
return;
}
```
So basically it is due to the function be declared as inline (or static and
unused with -O1).
Confirmed.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-11-04 19:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-14 15:56 [Bug c/111809] New: GCC-14: internal error, internal compiler error: in release_function_body, at cgraph.cc:1805 141242068 at smail dot nju.edu.cn
2023-10-14 15:57 ` [Bug c/111809] " 141242068 at smail dot nju.edu.cn
2023-11-04 19:16 ` [Bug c/111809] gimpleFE: unreferenced inline function with _GIMPLE(ssa) definition causes ICE 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).