https://gcc.gnu.org/bugzilla/show_bug.cgi?id=127351

            Bug ID: 127351
           Summary: internal compiler error: in assign_stack_local_1, at
                    function.cc:429
           Product: gcc
           Version: 12.5.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: c
          Assignee: unassigned at gcc dot gnu.org
          Reporter: fcasas at codeweavers dot com
  Target Milestone: ---

Created attachment 65573
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=65573&action=edit
Preprocessed source code.

I hit an internal compiler error when compiling 32-bit wine using
i686-w64-mingw32-gcc.

Here are the details of this report, I attach the preprocessed source as well.

---

Command and output:

# i686-w64-mingw32-gcc -c -o dlls/oleaut32/i386-windows/vartype.o
../wine-git/dlls/oleaut32/vartype.c -Idlls/oleaut32 -I../wine-git/dlls/oleaut32
  -Iinclude -I../wine-git/include -I../wine-git/include/msvcrt -D_UCRT
-D__WINESRC__ -D_OLEAUT32_  -D__WINE_PE_BUILD -Wall -fno-strict-aliasing
-Wempty-body -Wignored-qualifiers -Winit-self   -Wno-packed-not-aligned
-Wshift-overflow=2 -Wtype-limits -Wunused-but-set-parameter -Wvla 
-Wwrite-strings -Wpointer-arith -Wlogical-op -ffunction-sections
-Wno-misleading-indentation   -fno-omit-frame-pointer
-mpreferred-stack-boundary=2 -mlong-double-64 -msse2 -gdwarf-4 
-Wdeclaration-after-statement -Wstrict-prototypes -Wabsolute-value -g -O2
-freport-bug -save-temps
during RTL pass: split1
../wine-git/dlls/oleaut32/vartype.c: In function 'VarR4FromUI8':
../wine-git/dlls/oleaut32/vartype.c:3000:1: internal compiler error: in
assign_stack_local_1, at function.cc:429
 3000 | }
      | ^
0x1969a77 internal_error(char const*, ...)
    ???:0
0x65b024 fancy_abort(char const*, int, char const*)
    ???:0
0xeea410 assign_386_stack_local(machine_mode, ix86_stack_slot)
    ???:0
0x132f147 gen_split_56(rtx_insn*, rtx_def**)
    ???:0
0x172efc2 split_insns(rtx_def*, rtx_insn*)
    ???:0
0x875f4e try_split(rtx_def*, rtx_insn*, int)
    ???:0
0xb65292 split_all_insns()
    ???:0
Please submit a full bug report, with preprocessed source.
Please include the complete backtrace with any bug report.
See <https://gcc.gnu.org/bugs/> for instructions.
Preprocessed source stored into /tmp/ccOhEQzU.out file, please attach this to
your bugreport.

---

Compiler version:

# i686-w64-mingw32-gcc -v
Using built-in specs.
COLLECT_GCC=i686-w64-mingw32-gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-w64-mingw32/12-win32/lto-wrapper
Target: i686-w64-mingw32
Configured with: ../../src/configure --build=x86_64-linux-gnu --prefix=/usr
--includedir='/usr/include' --mandir='/usr/share/man'
--infodir='/usr/share/info' --sysconfdir=/etc --localstatedir=/var
--disable-option-checking --disable-silent-rules
--libdir='/usr/lib/x86_64-linux-gnu' --libexecdir='/usr/lib/x86_64-linux-gnu'
--disable-maintainer-mode --disable-dependency-tracking --prefix=/usr
--enable-shared --enable-static --disable-multilib --with-system-zlib
--libexecdir=/usr/lib --without-included-gettext --libdir=/usr/lib
--enable-libstdcxx-time=yes --with-tune=generic --with-headers
--enable-version-specific-runtime-libs --enable-fully-dynamic-string
--enable-libgomp --enable-languages=c,c++,fortran,objc,obj-c++,ada --enable-lto
--enable-threads=win32 --program-suffix=-win32
--program-prefix=i686-w64-mingw32- --target=i686-w64-mingw32
--with-as=/usr/bin/i686-w64-mingw32-as --with-ld=/usr/bin/i686-w64-mingw32-ld
--enable-libatomic --enable-libstdcxx-filesystem-ts=yes
--enable-dependency-tracking SED=/bin/sed --disable-sjlj-exceptions
--with-dwarf2
Thread model: win32
Supported LTO compression algorithms: zlib
gcc version 12-win32 (GCC)

---

This happened within a Podman container:

OS: Debian GNU/Linux 12 (bookworm) x86_64
Host: 12RRCTO1WW ThinkCentre M75q Gen 5
Kernel: 7.1.9-arch1-2
Packages: 1148 (dpkg)
CPU: AMD Ryzen 7 PRO 8700GE w/ Radeon 780M Graphics (16) @ 5.185GHz
GPU: AMD ATI 05:00.0 Phoenix1

The host is:

OS: Arch Linux x86_64
Host: 12RRCTO1WW ThinkCentre M75q Gen 5
Kernel: 7.1.9-arch1-2
Packages: 1624 (pacman)
CPU: AMD Ryzen 7 PRO 8700GE w/ Radeon 780M Graphics (16) @ 5.185GHz
GPU: AMD ATI 05:00.0 Phoenix1

Reply via email to