From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C521D3858D39; Sat, 4 Nov 2023 14:32:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C521D3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699108329; bh=tbfFKVwsRVgXztGzvyizgEYXo1lhI2zvky28WKE+mAM=; h=From:To:Subject:Date:From; b=RZAcB7D2Xc3muvrWZB6YI3/pJGcnQCsp2KyfN9vouEJptE9ok9CPOdYybwp1ifxwH XzLRROWxCuF6xlacKUiHyXZeYJQG9IptEM1UDB36VgBkFiscASfCEXrnyZBWt+lAHV MOf/N630GUEMFqoY1WCiyQTGjFpOsyBPreAMAg4M= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112380] New: [14 regression] ICE when building mesa Date: Sat, 04 Nov 2023 14:32:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112380 Bug ID: 112380 Summary: [14 regression] ICE when building mesa Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org Target Milestone: --- Created attachment 56505 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=3D56505&action=3Dedit nir_nir_to_tgsi.c.i.xz Originally reported downstream in Gentoo by Agostino Sarubbo at https://bugs.gentoo.org/916852. gcc -c nir_nir_to_tgsi.c.i -O2 seems to be enough to reproduce. ``` FAILED: src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o x86_64-pc-linux-gnu-gcc -Isrc/gallium/auxiliary/libgallium.a.p -Isrc/gallium/auxiliary -I../mesa-23.2.1/src/gallium/auxiliary -Isrc/loader -I../mesa-23.2.1/src/loader -I../mesa-23.2.1/src/gallium/include -Isrc -I../mesa-23.2.1/src -Iinclude -I../mesa-23.2.1/include -I../mesa-23.2.1/src/gallium/auxiliary/util -Isrc/compiler/nir -I../mesa-23.2.1/src/compiler/nir -I/usr/include/libdrm -fvisibility=3Dhidd= en -fdiagnostics-color=3Dalways -D_FILE_OFFSET_BITS=3D64 -Wall -Winvalid-pch -= std=3Dc11 -O0 -g '-DPACKAGE_VERSION=3D"23.2.1"' '-DPACKAGE_BUGREPORT=3D"https://gitlab.freedesktop.org/mesa/mesa/-/issues"' -DHAVE_OPENGL=3D1 -DHAVE_OPENGL_ES_1=3D0 -DHAVE_OPENGL_ES_2=3D1 -DHAVE_CROC= US -DHAVE_I915 -DHAVE_IRIS -DHAVE_NOUVEAU -DHAVE_R300 -DHAVE_R600 -DHAVE_RADEO= NSI -DHAVE_SWRAST -DVIDEO_CODEC_VC1DEC=3D1 -DVIDEO_CODEC_H264DEC=3D1 -DVIDEO_CODEC_H264ENC=3D1 -DVIDEO_CODEC_H265DEC=3D1 -DVIDEO_CODEC_H265ENC= =3D1 -DHAVE_X11_PLATFORM -DHAVE_SURFACELESS_PLATFORM -DHAVE_DRM_PLATFORM -DHAVE_XCB_PLATFORM -DENABLE_ST_OMX_BELLAGIO=3D0 -DENABLE_ST_OMX_TIZONIA=3D0 -DGLX_INDIRECT_RENDERING -DGLX_DIRECT_RENDERING -DGLX_USE_DRM -DGLAPI_EXPORT_PROTO_ENTRY_POINTS=3D0 -DALLOW_KCMP -DDEBUG -DENABLE_SHADER_= CACHE -DHAVE___BUILTIN_BSWAP32 -DHAVE___BUILTIN_BSWAP64 -DHAVE___BUILTIN_CLZ -DHAVE___BUILTIN_CLZLL -DHAVE___BUILTIN_CTZ -DHAVE___BUILTIN_EXPECT -DHAVE___BUILTIN_FFS -DHAVE___BUILTIN_FFSLL -DHAVE___BUILTIN_POPCOUNT -DHAVE___BUILTIN_POPCOUNTLL -DHAVE___BUILTIN_UNREACHABLE -DHAVE___BUILTIN_TYPES_COMPATIBLE_P -DHAVE_FUNC_ATTRIBUTE_CONST -DHAVE_FUNC_ATTRIBUTE_FLATTEN -DHAVE_FUNC_ATTRIBUTE_MALLOC -DHAVE_FUNC_ATTRIBUTE_PURE -DHAVE_FUNC_ATTRIBUTE_UNUSED -DHAVE_FUNC_ATTRIBUTE_WARN_UNUSED_RESULT -DHAVE_FUNC_ATTRIBUTE_WEAK -DHAVE_FUNC_ATTRIBUTE_FORMAT -DHAVE_FUNC_ATTRIBUTE_PACKED -DHAVE_FUNC_ATTRIBUTE_RETURNS_NONNULL -DHAVE_FUNC_ATTRIBUTE_ALIAS -DHAVE_FUNC_ATTRIBUTE_NORETURN -DHAVE_FUNC_ATTRIBUTE_VISIBILITY -DHAVE_UINT= 128 -DHAVE_REALLOCARRAY -DHAVE_FMEMOPEN -DUSE_SSE41 -DUSE_GCC_ATOMIC_BUILTINS -DUSE_X86_64_ASM -DMAJOR_IN_SYSMACROS -DHAS_SCHED_H -DHAS_SCHED_GETAFFINITY -DHAVE_LINUX_FUTEX_H -DHAVE_ENDIAN_H -DHAVE_DLFCN_H -DHAVE_SYS_SHM_H -DHAVE_CET_H -DHAVE_SYS_INOTIFY_H -DHAVE_STRTOF -DHAVE_MKOSTEMP -DHAVE_MEMFD_CREATE -DHAVE_RANDOM_R -DHAVE_FLOCK -DHAVE_STRTOK_R -DHAVE_GETRANDOM -DHAVE_POSIX_FALLOCATE -DHAVE_GNU_QSORT_R -DHAVE_STRUCT_TIMESPEC -DHAVE_PROGRAM_INVOCATION_NAME -DHAVE_ISSIGNALING -DHAVE_POSIX_MEMALIGN -DHAVE_DIRENT_D_TYPE -DHAVE_STRTOD_L -DHAVE_DLADDR -DHAVE_DL_ITERATE_PHDR -DSUPPORT_INTEL_INTEGRATED_GPUS -DHAVE_ZLIB -DHAVE_Z= STD -DHAVE_COMPRESSION -DHAVE_PTHREAD -DHAVE_PTHREAD_SETAFFINITY -DHAVE_LIBDRM -DHAVE_LIBUDEV -DLLVM_AVAILABLE '-DMESA_LLVM_VERSION_STRING=3D"16.0.6"' -DLLVM_IS_SHARED=3D1 -DDRAW_LLVM_AVAILABLE -DUSE_LIBELF -DUSE_LIBGLVND=3D1 -DHAVE_OPENMP -DXCB_KEYSYMS_AVAILABLE -DHAVE_DRI -DHAVE_DRI2 -DHAVE_DRI3 -DHAVE_DRI3_MODIFIERS -DHAVE_DRISW_KMS -mtls-dialect=3Dgnu2 -Werror=3Dimplicit-function-declaration -Werror=3Dmissing-prototypes -Werror=3Dreturn-type -Werror=3Dempty-body -Werror=3Dincompatible-pointer-t= ypes -Werror=3Dint-conversion -Wimplicit-fallthrough -Wmisleading-indentation -Wno-missing-field-initializers -Wno-format-truncation -Wno-nonnull-compare -fno-math-errno -fno-trapping-math -fno-common -Wno-unused-function -Werror=3Dformat -Wformat-security -ffunction-sections -fdata-sections -O2 -march=3Dx86-64 -pipe -frecord-gcc-switches -fno-diagnostics-color -fmessage-length=3D0 -fPIC -pthread -isystem/usr/lib/llvm/16/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS -Werror=3Dpointer-arith -Werror=3Dvla -MD -MQ src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o -MF src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o.d -o src/gallium/auxiliary/libgallium.a.p/nir_nir_to_tgsi.c.o -c ../mesa-23.2.1/src/gallium/auxiliary/nir/nir_to_tgsi.c during RTL pass: combine ../mesa-23.2.1/src/gallium/auxiliary/nir/nir_to_tgsi.c: In function =E2=80=98ntt_emit_alu=E2=80=99: ../mesa-23.2.1/src/gallium/auxiliary/nir/nir_to_tgsi.c:1715:1: internal compiler error: in simplify_subreg, at simplify-rtx.cc:7554 1715 | } | ^ 0x563ef78ca654 simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/simplify-rtx.c= c:7554 0x563ef8ef091d simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/simplify-rtx.c= c:7804 0x563ef8ef097d simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/simplify-rtx.c= c:7805 0x563ef8ef091d simplify_context::simplify_subreg(machine_mode, rtx_def*, machine_mode, poly_int<1u, unsigned long>) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/simplify-rtx.c= c:7804 0x563ef9091703 make_compound_operation_int /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/rtl.h:= 3516 0x563ef9091703 make_compound_operation(rtx_def*, rtx_code) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:8439 0x563ef9091f14 make_compound_operation_int =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:8198 0x563ef9091f14 make_compound_operation(rtx_def*, rtx_code) =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:8439 0x563ef908e22c simplify_set =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:6954 0x563ef8fb86d7 subst =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:5609 0x563ef8fb8bb9 subst =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:5470 0x563ef8faedc3 try_combine =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:3369 0x563ef8f3494c combine_instructions =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:1357 0x563ef8f318d9 rest_of_handle_combine =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:150= 80 0x563ef8f318d9 execute =20=20=20=20=20=20=20 /usr/src/debug/sys-devel/gcc-14.0.0.9999/gcc-14.0.0.9999/gcc/combine.cc:151= 24 Please submit a full bug report, with preprocessed source (by using -freport-bug). Please include the complete backtrace with any bug report. See for instructions. ``` ``` Using built-in specs. COLLECT_GCC=3Dgcc COLLECT_LTO_WRAPPER=3D/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.0.9999/work/gcc-14.0.0.9999/configure --host=3Dx86_64-pc-linux-gnu --build=3Dx86_64-pc-linux-gnu --prefix=3D/usr --bindir=3D/usr/x86_64-pc-linux-gnu/gcc-bin/14 --includedir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include --datadir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14 --mandir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man --infodir=3D/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info --with-gxx-include-dir=3D/usr/lib/gcc/x86_64-pc-linux-gnu/14/include/g++-v14 --disable-silent-rules --disable-dependency-tracking --with-python-dir=3D/share/gcc-data/x86_64-pc-linux-gnu/14/python --enable-languages=3Dc,c++,fortran,rust --enable-obsolete --enable-secureplt --disable-werror --with-system-zlib --enable-nls --without-included-gettext --disable-libunwind-exceptions --enable-checking=3Dyes,extra,rtl --with-bugurl=3Dhttps://bugs.gentoo.org/ --with-pkgversion=3D'Gentoo Harden= ed 14.0.0 p, commit 2b02f083e67e97f8187d3ec023c3d281f49232c0' --with-gcc-major-version-only --enable-libstdcxx-time --enable-lto --disable-libstdcxx-pch --enable-shared --enable-threads=3Dposix --enable-__cxa_atexit --enable-clocale=3Dgnu --enable-multilib --with-multilib-list=3Dm32,m64 --disable-fixed-point --enable-targets=3Dall --enable-libgomp --disable-libssp --disable-libada --enable-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 --with-build-config=3D'bootstrap-O3 bootstrap-lto bootstrap-cet' Thread model: posix Supported LTO compression algorithms: zlib zstd gcc version 14.0.0 20231104 (experimental) 8d22ac6a18cf542cd541c06b2a7df8fdd293946d (Gentoo Hardened 14.0.0 p, commit 2b02f083e67e97f8187d3ec023c3d281f49232c0) ```=