public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
@ 2024-03-27 3:14 sjames at gcc dot gnu.org
2024-03-27 3:18 ` [Bug ipa/114493] " pinskia at gcc dot gnu.org
` (7 more replies)
0 siblings, 8 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-27 3:14 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
Bug ID: 114493
Summary: internal compiler error: in fld_incomplete_type_of, at
ipa-free-lang-data.cc:257
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Severity: normal
Priority: P3
Component: ipa
Assignee: unassigned at gcc dot gnu.org
Reporter: sjames at gcc dot gnu.org
Target Milestone: ---
Created attachment 57819
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=57819&action=edit
odb_pack.c.i.xz
11/12/13/14 all fail. 10 fails b/c of malloc attribute so needs to be checked.
I hit this after adding may_alias to a struct.
```
$ gcc src/libgit2/CMakeFiles/libgit2.dir/odb_pack.c.i -std=c90 -c -flto
during IPA pass: *free_lang_data
/home/sam/git/libgit2/src/libgit2/odb_pack.c:986:1: internal compiler error: in
fld_incomplete_type_of, at ipa-free-lang-data.cc:257
986 | }
| ^
0x55e8b946cd88 fld_incomplete_type_of
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-free-lang-data.cc:257
0x55e8baa704cd fld_simplified_type
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-free-lang-data.cc:344
0x55e8baa704cd free_lang_data_in_type
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-free-lang-data.cc:439
0x55e8bb0d2280 free_lang_data_in_cgraph
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-free-lang-data.cc:1072
0x55e8bb0d2280 free_lang_data
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-free-lang-data.cc:1109
0x55e8bb0d2280 execute
/usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/ipa-free-lang-data.cc:1176
Please submit a full bug report, with preprocessed source (by using
-freport-bug).
Please include the complete backtrace with any bug report.
See <https://bugs.gentoo.org/> for instructions.
``
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ipa/114493] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
@ 2024-03-27 3:18 ` pinskia at gcc dot gnu.org
2024-03-27 3:40 ` sjames at gcc dot gnu.org
` (6 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-27 3:18 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://gcc.gnu.org/bugzill
| |a/show_bug.cgi?id=101312
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
I have seen TYPE_CANONICAL issues with may_alias before.
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug ipa/114493] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
2024-03-27 3:18 ` [Bug ipa/114493] " pinskia at gcc dot gnu.org
@ 2024-03-27 3:40 ` sjames at gcc dot gnu.org
2024-03-27 3:50 ` [Bug c/114493] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
` (5 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-03-27 3:40 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
--- Comment #2 from Sam James <sjames at gcc dot gnu.org> ---
Pfff.
```
typedef struct git_midx_writer git_midx_writer;
int git_futils_rmdir_flags;
int __attribute__git_midx_writer_new(git_midx_writer **);
struct __attribute__((__may_alias__)) git_midx_writer {};
```
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/114493] [11/12/13/14 Regression] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
2024-03-27 3:18 ` [Bug ipa/114493] " pinskia at gcc dot gnu.org
2024-03-27 3:40 ` sjames at gcc dot gnu.org
@ 2024-03-27 3:50 ` pinskia at gcc dot gnu.org
2024-03-27 4:00 ` pinskia at gcc dot gnu.org
` (4 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-27 3:50 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Known to work| |8.1.0
Known to fail| |9.1.0
Status|UNCONFIRMED |NEW
Keywords| |ice-on-valid-code, lto
Ever confirmed|0 |1
Summary|internal compiler error: in |[11/12/13/14 Regression]
|fld_incomplete_type_of, at |internal compiler error: in
|ipa-free-lang-data.cc:257 |fld_incomplete_type_of, at
| |ipa-free-lang-data.cc:257
Component|ipa |c
Target Milestone|--- |11.5
Last reconfirmed| |2024-03-27
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Works with the C++ front-end ...
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/114493] [11/12/13/14 Regression] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
` (2 preceding siblings ...)
2024-03-27 3:50 ` [Bug c/114493] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
@ 2024-03-27 4:00 ` pinskia at gcc dot gnu.org
2024-03-27 4:01 ` pinskia at gcc dot gnu.org
` (3 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-27 4:00 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Also related is commit r7-1272-g5545a9071573a5 .
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/114493] [11/12/13/14 Regression] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
` (3 preceding siblings ...)
2024-03-27 4:00 ` pinskia at gcc dot gnu.org
@ 2024-03-27 4:01 ` pinskia at gcc dot gnu.org
2024-03-27 8:37 ` rguenth at gcc dot gnu.org
` (2 subsequent siblings)
7 siblings, 0 replies; 9+ messages in thread
From: pinskia at gcc dot gnu.org @ 2024-03-27 4:01 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Depends on| |35980
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
Ah yes PR 35980 which describes the exact issue ...
Referenced Bugs:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=35980
[Bug 35980] The canonical type of types with may_alias attribute is incorrect
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/114493] [11/12/13/14 Regression] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
` (4 preceding siblings ...)
2024-03-27 4:01 ` pinskia at gcc dot gnu.org
@ 2024-03-27 8:37 ` rguenth at gcc dot gnu.org
2024-06-01 21:22 ` [Bug c/114493] [11/12/13/14/15 " matoro_gcc_bugzilla at matoro dot tk
2024-06-02 2:35 ` [Bug c/114493] [11/12/13/14/15 Regression] internal compiler error: in fld_incomplete_type_of with may_alias sjames at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: rguenth at gcc dot gnu.org @ 2024-03-27 8:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |hubicka at gcc dot gnu.org
Priority|P3 |P2
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/114493] [11/12/13/14/15 Regression] internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
` (5 preceding siblings ...)
2024-03-27 8:37 ` rguenth at gcc dot gnu.org
@ 2024-06-01 21:22 ` matoro_gcc_bugzilla at matoro dot tk
2024-06-02 2:35 ` [Bug c/114493] [11/12/13/14/15 Regression] internal compiler error: in fld_incomplete_type_of with may_alias sjames at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: matoro_gcc_bugzilla at matoro dot tk @ 2024-06-01 21:22 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
matoro <matoro_gcc_bugzilla at matoro dot tk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |matoro_gcc_bugzilla@matoro.
| |tk
--- Comment #6 from matoro <matoro_gcc_bugzilla at matoro dot tk> ---
Hit this as well building samba on 14.
Minimized:
void _talloc_array();
struct sockaddr_storage
resolve_lmhosts_file_as_sockaddr(struct sockaddr_storage **);
struct __attribute__((__may_alias__)) sockaddr_storage {
} resolve_name_multiple_recv() {
_talloc_array();
}
$ x86_64-pc-linux-gnu-gcc-14 -flto -c resolve.c.10.i
during IPA pass: *free_lang_data
resolve.c.10.i:7:1: internal compiler error: in fld_incomplete_type_of, at
ipa-free-lang-data.cc:257
7 | }
| ^
^ permalink raw reply [flat|nested] 9+ messages in thread
* [Bug c/114493] [11/12/13/14/15 Regression] internal compiler error: in fld_incomplete_type_of with may_alias
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
` (6 preceding siblings ...)
2024-06-01 21:22 ` [Bug c/114493] [11/12/13/14/15 " matoro_gcc_bugzilla at matoro dot tk
@ 2024-06-02 2:35 ` sjames at gcc dot gnu.org
7 siblings, 0 replies; 9+ messages in thread
From: sjames at gcc dot gnu.org @ 2024-06-02 2:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=114493
Sam James <sjames at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |fw at gcc dot gnu.org
--- Comment #7 from Sam James <sjames at gcc dot gnu.org> ---
I've been scratching my head as to why matoro and someone else reported it with
Samba today out of nowhere.
I assume it's because of
https://sourceware.org/git/?p=glibc.git;a=commit;h=26e7005728f0eea2972474e6be2905c467661237.
I think it was suggested that a forward decl might work to mitigate the ICE but
I haven't tried (yet).
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2024-06-02 2:35 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-03-27 3:14 [Bug ipa/114493] New: internal compiler error: in fld_incomplete_type_of, at ipa-free-lang-data.cc:257 sjames at gcc dot gnu.org
2024-03-27 3:18 ` [Bug ipa/114493] " pinskia at gcc dot gnu.org
2024-03-27 3:40 ` sjames at gcc dot gnu.org
2024-03-27 3:50 ` [Bug c/114493] [11/12/13/14 Regression] " pinskia at gcc dot gnu.org
2024-03-27 4:00 ` pinskia at gcc dot gnu.org
2024-03-27 4:01 ` pinskia at gcc dot gnu.org
2024-03-27 8:37 ` rguenth at gcc dot gnu.org
2024-06-01 21:22 ` [Bug c/114493] [11/12/13/14/15 " matoro_gcc_bugzilla at matoro dot tk
2024-06-02 2:35 ` [Bug c/114493] [11/12/13/14/15 Regression] internal compiler error: in fld_incomplete_type_of with may_alias sjames 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).