From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C2103385380E; Sat, 3 Jul 2021 07:27:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C2103385380E From: "ebotcazou at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/100486] Ada build fails for 32bit Windows Date: Sat, 03 Jul 2021 07:27:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 11.1.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: ebotcazou at gcc dot gnu.org X-Bugzilla-Status: WAITING 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: 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Jul 2021 07:27:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D100486 --- Comment #6 from Eric Botcazou --- Thanks. > '--with-bugurl=3Dhttps://github.com/msys2/MINGW-packages/issues' > '--with-gnu-as' '--with-gnu-ld' '--with-boot-ldflags=3D-pipe > -Wl,--dynamicbase,--nxcompat,--no-seh -Wl,--large-address-aware > -Wl,--disable-dynamicbase -static-libstdc++ -static-libgcc' > 'LDFLAGS_FOR_TARGET=3D-pipe -Wl,--dynamicbase,--nxcompat,--no-seh > -Wl,--large-address-aware' > '--enable-linker-plugin-flags=3DLDFLAGS=3D-static-libstdc++\\ -static-lib= gcc\\ > -pipe\\ -Wl,--dynamicbase,--nxcompat,--no-seh\\ -Wl,--large-address-aware= \\ > -Wl,--stack,12582912' '--disable-sjlj-exceptions' '--with-dwarf2' > 'build_alias=3Di686-w64-mingw32' 'host_alias=3Di686-w64-mingw32' > 'target_alias=3Di686-w64-mingw32' 'CC=3Dgcc' 'CFLAGS=3D-march=3Di686 -mtu= ne=3Dgeneric > -O2 -pipe' 'LDFLAGS=3D-pipe -Wl,--dynamicbase,--nxcompat,--no-seh > -Wl,--large-address-aware -Wl,--disable-dynamicbase' > 'CPPFLAGS=3D-D__USE_MINGW_ANSI_STDIO=3D1' 'CXX=3Dg++' 'CXXFLAGS=3D-march= =3Di686 > -mtune=3Dgeneric -O2 -pipe' > '--enable-languages=3Dc,ada,c++,fortran,jit,lto,objc,obj-c++'" AFAICS the failure occurs during stage #2 so the stage #1 compiler might be miscompiled by the base compiler. Could you change the -O2 into -O1 above? If this still does not work, could you change it into -O0?=