public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "alexhenrie24 at gmail dot com" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/111107] i686-w64-mingw32 does not realign stack when __attribute__((aligned)) or __attribute__((vector_size)) are used Date: Sat, 25 Nov 2023 07:34:39 +0000 [thread overview] Message-ID: <bug-111107-4-6jJPAPg5Uu@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-111107-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=111107 Alex Henrie <alexhenrie24 at gmail dot com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |alexhenrie24 at gmail dot com --- Comment #8 from Alex Henrie <alexhenrie24 at gmail dot com> --- Created attachment 56685 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=56685&action=edit File that crashed my patched MinGW I tried to compile Wine 8.21 with GCC 12 plus the patch from comment #5 and -march=native on a Ryzen 7800X3D, but MinGW crashed with: i686-w64-mingw32-gcc -c -o libs/tiff/i386-windows/libtiff/tif_aux.o libs/tiff/libtiff/tif_aux.c -Ilibs/tiff -Iinclude -Iinclude/msvcrt \ -Ilibs/tiff/libtiff -Ilibs/jpeg -Ilibs/zlib -D_UCRT -DFAR= -DZ_SOLO -D__WINE_PE_BUILD \ -fno-strict-aliasing -Wno-packed-not-aligned -fno-omit-frame-pointer -march=native -freport-bug during RTL pass: split1 libs/tiff/libtiff/tif_aux.c: In function ‘_TIFFUInt64ToFloat’: libs/tiff/libtiff/tif_aux.c:415:1: internal compiler error: in assign_stack_local_1, at function.cc:429 415 | } | ^ 0x19408f7 internal_error(char const*, ...) ???:0 0x6674e6 fancy_abort(char const*, int, char const*) ???:0 0xee3860 assign_386_stack_local(machine_mode, ix86_stack_slot) ???:0 0x130bfa7 gen_split_56(rtx_insn*, rtx_def**) ???:0 0x17066c2 split_insns(rtx_def*, rtx_insn*) ???:0 0x873ece try_split(rtx_def*, rtx_insn*, int) ???:0 0xb60f02 split_all_insns() ???:0 Please submit a full bug report, with preprocessed source. Please include the complete backtrace with any bug report. See <https://bugs.archlinux.org/> for instructions. Preprocessed source stored into /tmp/cc824MzT.out file, please attach this to your bugreport. make: *** [Makefile:179744: libs/tiff/i386-windows/libtiff/tif_aux.o] Error 1 Omitting -march=native or using unpatched GCC avoids the compiler crash. I used GCC 12 because unfortunately, Arch Linux does not yet have packaging for GCC 13, and compiling MinGW without the help of a PKGBUILD file looked pretty daunting. If you want to try it yourself, just clone https://gitlab.winehq.org/wine/wine.git and run `./configure CROSSCFLAGS='-march=native' && make -j16`.
next prev parent reply other threads:[~2023-11-25 7:34 UTC|newest] Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top 2023-08-22 21:27 [Bug target/111107] New: " zfigura at codeweavers dot com 2023-08-22 21:29 ` [Bug target/111107] " pinskia at gcc dot gnu.org 2023-08-22 21:41 ` zfigura at codeweavers dot com 2023-08-22 21:41 ` pinskia at gcc dot gnu.org 2023-08-22 21:56 ` zfigura at codeweavers dot com 2023-08-23 7:55 ` rguenth at gcc dot gnu.org 2023-08-24 20:29 ` zfigura at codeweavers dot com 2023-08-28 18:28 ` gabrielopcode at gmail dot com 2023-11-25 7:34 ` alexhenrie24 at gmail dot com [this message] 2023-11-25 8:57 ` amonakov at gcc dot gnu.org 2023-11-25 17:40 ` gabrielopcode at gmail dot com 2023-11-25 18:54 ` alexhenrie24 at gmail dot com 2023-11-25 19:20 ` alexhenrie24 at gmail dot com 2023-11-25 21:45 ` alexhenrie24 at gmail dot com 2023-11-28 22:34 ` ebotcazou at gcc dot gnu.org 2023-11-28 22:58 ` ebotcazou at gcc dot gnu.org 2023-11-29 3:54 ` zfigura at codeweavers dot com 2023-11-29 7:49 ` ebotcazou at gcc dot gnu.org 2023-11-29 19:05 ` zfigura at codeweavers dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-111107-4-6jJPAPg5Uu@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).