public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/113394] New: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g
@ 2024-01-15 6:28 zsojka at seznam dot cz
2024-01-29 19:03 ` [Bug debug/113394] " aoliva at gcc dot gnu.org
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: zsojka at seznam dot cz @ 2024-01-15 6:28 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113394
Bug ID: 113394
Summary: ICE: 'verify_type' failed: type variant with
'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g
Product: gcc
Version: 14.0
Status: UNCONFIRMED
Keywords: ice-on-valid-code
Severity: normal
Priority: P3
Component: rtl-optimization
Assignee: unassigned at gcc dot gnu.org
Reporter: zsojka at seznam dot cz
Target Milestone: ---
Host: x86_64-pc-linux-gnu
Target: x86_64-pc-linux-gnu
This fails on the gcc.c-torture/compile/20020210-1.c testcase.
Compiler output:
$ x86_64-pc-linux-gnu-gcc -fstrub=internal -g
/repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c
/repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:15: warning:
anonymous struct declared inside parameter list will not be visible outside of
this definition or declaration
2 | void f(int a, struct {int b[a];} c) {}
| ^~~~~~
/repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c: In function
'f.strub.0':
/repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:38: error:
type variant with 'TYPE_ALIAS_SET_KNOWN_P'
2 | void f(int a, struct {int b[a];} c) {}
...
during RTL pass: final
/repo/gcc-trunk/gcc/testsuite/gcc.c-torture/compile/20020210-1.c:2:38: internal
compiler error: 'verify_type' failed
0x1837cee verify_type(tree_node const*)
/repo/gcc-trunk/gcc/tree.cc:14386
0x1051814 gen_type_die_with_usage
/repo/gcc-trunk/gcc/dwarf2out.cc:26258
0x104e566 gen_type_die
/repo/gcc-trunk/gcc/dwarf2out.cc:26489
0x104e566 gen_decl_die
/repo/gcc-trunk/gcc/dwarf2out.cc:27226
0x104a93d gen_subprogram_die
/repo/gcc-trunk/gcc/dwarf2out.cc:24094
0x104eab9 gen_decl_die
/repo/gcc-trunk/gcc/dwarf2out.cc:27106
0x104f6eb dwarf2out_decl
/repo/gcc-trunk/gcc/dwarf2out.cc:27687
0x104fb8e dwarf2out_function_decl
/repo/gcc-trunk/gcc/dwarf2out.cc:27702
0x10dfea4 rest_of_handle_final
/repo/gcc-trunk/gcc/final.cc:4273
0x10dfea4 execute
/repo/gcc-trunk/gcc/final.cc:4317
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-amd64/bin/x86_64-pc-linux-gnu-gcc
COLLECT_LTO_WRAPPER=/repo/gcc-trunk/binary-trunk-r14-7237-20240115123527-g65678b2bae5-checking-yes-rtl-df-extra-nobootstrap-amd64/bin/../libexec/gcc/x86_64-pc-linux-gnu/14.0.1/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-7237-20240115123527-g65678b2bae5-checking-yes-rtl-df-extra-nobootstrap-amd64
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240115 (experimental) (GCC)
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/113394] ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g
2024-01-15 6:28 [Bug rtl-optimization/113394] New: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g zsojka at seznam dot cz
@ 2024-01-29 19:03 ` aoliva at gcc dot gnu.org
2024-01-31 3:24 ` cvs-commit at gcc dot gnu.org
2024-01-31 3:37 ` aoliva at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: aoliva at gcc dot gnu.org @ 2024-01-29 19:03 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113394
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Assignee|unassigned at gcc dot gnu.org |aoliva at gcc dot gnu.org
Last reconfirmed| |2024-01-29
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
--- Comment #1 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Mine
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/113394] ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g
2024-01-15 6:28 [Bug rtl-optimization/113394] New: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g zsojka at seznam dot cz
2024-01-29 19:03 ` [Bug debug/113394] " aoliva at gcc dot gnu.org
@ 2024-01-31 3:24 ` cvs-commit at gcc dot gnu.org
2024-01-31 3:37 ` aoliva at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2024-01-31 3:24 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113394
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alexandre Oliva <aoliva@gcc.gnu.org>:
https://gcc.gnu.org/g:d826596acb02edf41ac4f76af2aed5efa3b8c698
commit r14-8643-gd826596acb02edf41ac4f76af2aed5efa3b8c698
Author: Alexandre Oliva <oliva@adacore.com>
Date: Wed Jan 31 00:13:27 2024 -0300
strub: drop nonaliased parm from build_ref_type_for [PR113394]
Variant type copies can't have their own alias sets any more, and it's
not like setting them affected the pointed-to objects anyway.
for gcc/ChangeLog
PR debug/113394
* ipa-strub.cc (build_ref_type_for): Drop nonaliased. Adjust
caller.
for gcc/testsuite/ChangeLog
PR debug/113394
* gcc.dg/strub-internal-pr113394.c: New.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug debug/113394] ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g
2024-01-15 6:28 [Bug rtl-optimization/113394] New: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g zsojka at seznam dot cz
2024-01-29 19:03 ` [Bug debug/113394] " aoliva at gcc dot gnu.org
2024-01-31 3:24 ` cvs-commit at gcc dot gnu.org
@ 2024-01-31 3:37 ` aoliva at gcc dot gnu.org
2 siblings, 0 replies; 4+ messages in thread
From: aoliva at gcc dot gnu.org @ 2024-01-31 3:37 UTC (permalink / raw)
To: gcc-bugs
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=113394
Alexandre Oliva <aoliva at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |FIXED
Status|ASSIGNED |RESOLVED
--- Comment #3 from Alexandre Oliva <aoliva at gcc dot gnu.org> ---
Fixed
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-01-31 3:37 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-01-15 6:28 [Bug rtl-optimization/113394] New: ICE: 'verify_type' failed: type variant with 'TYPE_ALIAS_SET_KNOWN_P' with -fstrub=internal -g zsojka at seznam dot cz
2024-01-29 19:03 ` [Bug debug/113394] " aoliva at gcc dot gnu.org
2024-01-31 3:24 ` cvs-commit at gcc dot gnu.org
2024-01-31 3:37 ` aoliva 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).