From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7525F3858C39; Thu, 11 May 2023 22:45:48 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7525F3858C39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683845148; bh=5zs2h8h7BPbWOjnmNIGCy9T0nm5ymLe/D6flqYDor18=; h=From:To:Subject:Date:In-Reply-To:References:From; b=HW5uKzkg3KVDLPi/gNj1Sdz/AAPwxdGDY+jA4EG1IOJRcskc3OAwl0OUEbEGmn2c+ Dr1HXRY8HNq3wyD9r/06I+mYFKeIoDX2OIayyFCw1GppDND+hvwJquHLu+CnLKYLt4 lshZmX1J8XMqLmmfAxv/lfhiVMBlGPr5aoTjnQX4= From: "reiter.christoph at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/109806] [13/14 Regression] 13.1.0 cc1plus stack smashing crash with C array of complex structs Date: Thu, 11 May 2023 22:45:48 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 13.1.0 X-Bugzilla-Keywords: ice-on-valid-code, memory-hog X-Bugzilla-Severity: critical X-Bugzilla-Who: reiter.christoph at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.2 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc Message-ID: In-Reply-To: References: 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=3D109806 Christoph Reiter changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |reiter.christoph at gmail = dot com --- Comment #10 from Christoph Reiter -= -- I've compared [0] the stack size of the two builds now, and it looks like me setting BOOT_LDFLAGS [1] somehow made the build skip the stack size adjustm= ent here: https://gcc.gnu.org/git/?p=3Dgcc.git;a=3Dblob;f=3Dconfig/mh-mingw;h=3De9136= 7a711284148e16849d3066fb94599204a6c;hb=3DHEAD#l15 leading to the low Windows stack size defaults So this might not be a bug, but having built gcc wrong. [0] objdump.exe -x /ucrt64/lib/gcc/x86_64-w64-mingw32/13.1.0/cc1plus.exe | = grep SizeOfStackReserve [1] https://github.com/msys2/MINGW-packages/commit/518e217a129eeeb92e5090f1bb14= deaf0ed70edf#diff-cf683a120abf18dd9f774ea5df77137d01e19f359f7cb40c1fc152355= cde7b80R265=