public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug lto/112732] New: during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto
@ 2023-11-27 19:05 zsojka at seznam dot cz
2023-11-28 11:25 ` [Bug lto/112732] " rguenth at gcc dot gnu.org
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: zsojka at seznam dot cz @ 2023-11-27 19:05 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112732
Bug ID: 112732
Summary: during IPA pass: *free_lang_data ICE: 'verify_type'
failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P'
with -Os -Wstrict-aliasing=2 -flto
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: lto
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
CC: marxin at gcc dot gnu.org
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Created attachment 56702
--> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56702&action=edit
reduced testcase
Compiler output:
$ x86_64-pc-linux-gnu-gcc -Os -Wstrict-aliasing=2 -flto testcase.c
testcase.c:11:1: error: type variant with 'TYPE_ALIAS_SET_KNOWN_P'
11 | }
| ^
<vector_type 0x7f152f4a9540
type <integer_type 0x7f152f31b9d8 __int128 public TI
size <integer_cst 0x7f152f2fbf90 constant 128>
unit-size <integer_cst 0x7f152f2fbfa8 constant 16>
align:128 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f152f31b9d8 precision:128 min <integer_cst 0x7f152f2fc680
-170141183460469231731687303715884105728> max <integer_cst 0x7f152f2fc6a0
170141183460469231731687303715884105727>>
BLK
size <integer_cst 0x7f152f31d2b8 type <integer_type 0x7f152f31b0a8
bitsizetype> constant 256>
unit-size <integer_cst 0x7f152f31d3a8 type <integer_type 0x7f152f31b000
sizetype> constant 32>
align:256 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f152f4a9540 nunits:2
pointer_to_this <pointer_type 0x7f152f4d2000>>
<vector_type 0x7f152f4d2150
type <integer_type 0x7f152f31b9d8 __int128 public TI
size <integer_cst 0x7f152f2fbf90 constant 128>
unit-size <integer_cst 0x7f152f2fbfa8 constant 16>
align:128 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f152f31b9d8 precision:128 min <integer_cst 0x7f152f2fc680
-170141183460469231731687303715884105728> max <integer_cst 0x7f152f2fc6a0
170141183460469231731687303715884105727>>
BLK
size <integer_cst 0x7f152f31d2b8 type <integer_type 0x7f152f31b0a8
bitsizetype> constant 256>
unit-size <integer_cst 0x7f152f31d3a8 type <integer_type 0x7f152f31b000
sizetype> constant 32>
align:256 warn_if_not_align:0 symtab:0 alias-set 1 canonical-type
0x7f152f4a9540 nunits:2>
during IPA pass: *free_lang_data
testcase.c:11:1: internal compiler error: 'verify_type' failed
0x180729e verify_type(tree_node const*)
/repo/gcc-trunk/gcc/tree.cc:14384
0x25dd002 free_lang_data
/repo/gcc-trunk/gcc/ipa-free-lang-data.cc:1134
0x25dd002 execute
/repo/gcc-trunk/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://gcc.gnu.org/bugs/> for instructions.
$ x86_64-pc-linux-gnu-gcc -v
Using built-in specs.
COLLECT_GCC=/repo/gcc-trunk/binary-latest/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-5872-20231127103959-gd9abaa8d58f-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.0/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /repo/gcc-trunk//configure --enable-languages=c,c++
--enable-valgrind-annotations --disable-nls --enable-checking=yes,rtl,df,extra
--disable-bootstrap --with-cloog --with-ppl --with-isl
--build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu
--target=x86_64-pc-linux-gnu --with-ld=/usr/bin/x86_64-pc-linux-gnu-ld
--with-as=/usr/bin/x86_64-pc-linux-gnu-as --disable-libstdcxx-pch
--prefix=/repo/gcc-trunk//binary-trunk-r14-5872-20231127103959-gd9abaa8d58f-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.0 20231127 (experimental) (GCC)
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/112732] during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto
2023-11-27 19:05 [Bug lto/112732] New: during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto zsojka at seznam dot cz
@ 2023-11-28 11:25 ` rguenth at gcc dot gnu.org
2023-11-28 11:35 ` rguenth at gcc dot gnu.org
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-28 11:25 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112732
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2023-11-28
Status|UNCONFIRMED |NEW
Ever confirmed|0 |1
--- Comment #1 from Richard Biener <rguenth at gcc dot gnu.org> ---
Confirmed.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/112732] during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto
2023-11-27 19:05 [Bug lto/112732] New: during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto zsojka at seznam dot cz
2023-11-28 11:25 ` [Bug lto/112732] " rguenth at gcc dot gnu.org
@ 2023-11-28 11:35 ` rguenth at gcc dot gnu.org
2023-11-28 15:58 ` cvs-commit at gcc dot gnu.org
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-28 11:35 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112732
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |rguenth at gcc dot gnu.org
Keywords| |ice-checking
CC| |hubicka at gcc dot gnu.org
Status|NEW |ASSIGNED
--- Comment #2 from Richard Biener <rguenth at gcc dot gnu.org> ---
The vector type is built as a distinct type copy from a vector type that has
the alias set already set (by the diagnostic code).
#0 0x0000000001adac14 in build_opaque_vector_type (
innertype=<integer_type 0x7ffff6a2b9d8 __int128>, nunits=...)
at /home/rguenther/src/trunk/gcc/tree.cc:10271
#1 0x0000000000d97c7c in build_binary_op (location=279873, code=EQ_EXPR,
orig_op0=<var_decl 0x7ffff6a19cf0 w>,
orig_op1=<var_decl 0x7ffff6a19d80 d>, convert_p=true)
at /home/rguenther/src/trunk/gcc/c/c-typeck.cc:12617
#2 0x0000000000d7230f in parser_build_binary_op (location=279873,
code=EQ_EXPR, arg1=..., arg2=...)
at /home/rguenther/src/trunk/gcc/c/c-typeck.cc:3766
I think given this checking that build_opaque_vector_type should clear
TYPE_ALIAS_SET.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/112732] during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto
2023-11-27 19:05 [Bug lto/112732] New: during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto zsojka at seznam dot cz
2023-11-28 11:25 ` [Bug lto/112732] " rguenth at gcc dot gnu.org
2023-11-28 11:35 ` rguenth at gcc dot gnu.org
@ 2023-11-28 15:58 ` cvs-commit at gcc dot gnu.org
2023-11-28 15:59 ` rguenth at gcc dot gnu.org
2024-05-08 12:45 ` cvs-commit at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2023-11-28 15:58 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112732
--- Comment #3 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Richard Biener <rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:f26d68d5d128c86faaceeb81b1e8f22254ad53df
commit r14-5934-gf26d68d5d128c86faaceeb81b1e8f22254ad53df
Author: Richard Biener <rguenther@suse.de>
Date: Tue Nov 28 12:36:21 2023 +0100
middle-end/112732 - stray TYPE_ALIAS_SET in type variant
The following fixes a stray TYPE_ALIAS_SET in a type variant built
by build_opaque_vector_type which is diagnosed by type checking
enabled with -flto.
PR middle-end/112732
* tree.cc (build_opaque_vector_type): Reset TYPE_ALIAS_SET
of the newly built type.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/112732] during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto
2023-11-27 19:05 [Bug lto/112732] New: during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto zsojka at seznam dot cz
` (2 preceding siblings ...)
2023-11-28 15:58 ` cvs-commit at gcc dot gnu.org
@ 2023-11-28 15:59 ` rguenth at gcc dot gnu.org
2024-05-08 12:45 ` cvs-commit at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: rguenth at gcc dot gnu.org @ 2023-11-28 15:59 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112732
Richard Biener <rguenth at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Target Milestone|--- |14.0
Status|ASSIGNED |RESOLVED
--- Comment #4 from Richard Biener <rguenth at gcc dot gnu.org> ---
Fixed on trunk.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug lto/112732] during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto
2023-11-27 19:05 [Bug lto/112732] New: during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto zsojka at seznam dot cz
` (3 preceding siblings ...)
2023-11-28 15:59 ` rguenth at gcc dot gnu.org
@ 2024-05-08 12:45 ` cvs-commit at gcc dot gnu.org
4 siblings, 0 replies; 6+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-05-08 12:45 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112732
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The releases/gcc-13 branch has been updated by Richard Biener
<rguenth@gcc.gnu.org>:
https://gcc.gnu.org/g:664ab9c6e8a5d031031596100997e025e5334e86
commit r13-8721-g664ab9c6e8a5d031031596100997e025e5334e86
Author: Richard Biener <rguenther@suse.de>
Date: Tue Nov 28 12:36:21 2023 +0100
middle-end/112732 - stray TYPE_ALIAS_SET in type variant
The following fixes a stray TYPE_ALIAS_SET in a type variant built
by build_opaque_vector_type which is diagnosed by type checking
enabled with -flto.
PR middle-end/112732
* tree.cc (build_opaque_vector_type): Reset TYPE_ALIAS_SET
of the newly built type.
(cherry picked from commit f26d68d5d128c86faaceeb81b1e8f22254ad53df)
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2024-05-08 12:45 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-27 19:05 [Bug lto/112732] New: during IPA pass: *free_lang_data ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -Os -Wstrict-aliasing=2 -flto zsojka at seznam dot cz
2023-11-28 11:25 ` [Bug lto/112732] " rguenth at gcc dot gnu.org
2023-11-28 11:35 ` rguenth at gcc dot gnu.org
2023-11-28 15:58 ` cvs-commit at gcc dot gnu.org
2023-11-28 15:59 ` rguenth at gcc dot gnu.org
2024-05-08 12:45 ` cvs-commit 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).