Bug 114250 - [14 regression] ICE when building glslang-1.3.275 (error: invalid types in nop conversion)
Summary: [14 regression] ICE when building glslang-1.3.275 (error: invalid types in no...
Status: RESOLVED DUPLICATE of bug 114249
Alias: None
Product: gcc
Classification: Unclassified
Component: tree-optimization (show other bugs)
Version: 14.0
: P3 normal
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-06 05:20 UTC by Sam James
Modified: 2024-03-06 08:28 UTC (History)
0 users

See Also:
Host:
Target:
Build:
Known to work:
Known to fail:
Last reconfirmed:


Attachments
disassemble.ii.xz (156.54 KB, application/x-xz)
2024-03-06 05:20 UTC, Sam James
Details
reduced.ii (626 bytes, text/plain)
2024-03-06 07:11 UTC, Sam James
Details
reduced.ii (359 bytes, text/plain)
2024-03-06 07:34 UTC, Sam James
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James 2024-03-06 05:20:08 UTC
Created attachment 57621 [details]
disassemble.ii.xz

Not sure if this is a dupe of PR114249 but I figured I'd file it for the testcase if nothing else.

```
$ gcc -c /var/tmp/portage/dev-util/glslang-1.3.275/work/glslang-vulkan-sdk-1.3.275.0/SPIRV/disassemble.cpp -O3 -fno-semantic-interposition -march=znver2
/var/tmp/portage/dev-util/glslang-1.3.275/work/glslang-vulkan-sdk-1.3.275.0/SPIRV/disassemble.cpp: In member function ‘void spv::SpirvStream::disassembleInstruction(spv::Id, spv::Id, spv::Op, int)’:
/var/tmp/portage/dev-util/glslang-1.3.275/work/glslang-vulkan-sdk-1.3.275.0/SPIRV/disassemble.cpp:340:6: error: invalid types in nop conversion
  340 | void SpirvStream::disassembleInstruction(Id resultId, Id /*typeId*/, Op opCode, int numOperands)
      |      ^~~~~~~~~~~
unsigned long
<<< error >>>
_1800 = (unsigned long) _1973;
during GIMPLE pass: slp
/var/tmp/portage/dev-util/glslang-1.3.275/work/glslang-vulkan-sdk-1.3.275.0/SPIRV/disassemble.cpp:340:6: internal compiler error: verify_gimple failed
0x5611a3ee60b8 verify_gimple_in_cfg(function*, bool, bool)
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/tree-cfg.cc:5663
0x5611a562cd44 execute_function_todo
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2088
0x5611a562cd44 do_per_function
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:1687
0x5611a562cd44 execute_todo
        /usr/src/debug/sys-devel/gcc-14.0.9999/gcc-14.0.9999/gcc/passes.cc:2142
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.
```

```
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-pc-linux-gnu/14/lto-wrapper
Target: x86_64-pc-linux-gnu
Configured with: /var/tmp/portage/sys-devel/gcc-14.0.9999/work/gcc-14.0.9999/configure --host=x86_64-pc-linux-gnu --build=x86_64-pc-linux-gnu --prefix=/usr --bindir=/usr/x86_64-pc-linux-gnu/gcc-bin/14 --includedir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=c,c++,fortran,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=yes,extra,rtl --with-bugurl=https://bugs.gentoo.org/ --with-pkgversion='Gentoo Hardened 14.0.9999 p, commit c8305c9bdf09abe3e2f89783fe62f2e4049468fa' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-multilib --with-multilib-list=m32,m64 --disable-fixed-point --enable-targets=all --enable-libgomp --disable-libssp --disable-libada --disable-cet --disable-systemtap --enable-valgrind-annotations --disable-vtable-verify --disable-libvtv --with-zstd --with-isl --disable-isl-version-check --enable-default-pie --enable-host-pie --enable-host-bind-now --enable-default-ssp --disable-fixincludes --with-build-config='bootstrap-O3 bootstrap-lto'
Thread model: posix
Supported LTO compression algorithms: zlib zstd
gcc version 14.0.1 20240305 (experimental) 8776468d9e57ace5f832c1368243a6dbce9984d5 (Gentoo Hardened 14.0.9999 p, commit c8305c9bdf09abe3e2f89783fe62f2e4049468fa)
```
Comment 1 Sam James 2024-03-06 07:11:15 UTC
Created attachment 57623 [details]
reduced.ii
Comment 2 Sam James 2024-03-06 07:34:07 UTC
Created attachment 57624 [details]
reduced.ii
Comment 3 Richard Biener 2024-03-06 08:28:13 UTC
Yes, duplicate.

*** This bug has been marked as a duplicate of bug 114249 ***