From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 072EB382EAC5; Tue, 22 Dec 2020 15:29:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 072EB382EAC5 From: "mhillen at linux dot ibm.com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/98341] [11 Regression] Ada bootstrap fails with Storage_Error stack overflow or erroneous memory access on m68k Date: Tue, 22 Dec 2020 15:29:23 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mhillen at linux dot ibm.com 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: 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: Tue, 22 Dec 2020 15:29:24 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98341 --- Comment #3 from Marius Hillenbrand --- Potential duplicate: I have seen very similar errors on s390x while reprodu= cing https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D98228 There, bisecting lead back to d119f34c952f ("New modref/ipa_modref optimiza= tion passes"). In my tests, the first stage that is compiled with -flto then lat= er fails with errors of that kind (e.g., stage3 with config bootstrap-lto-lean= ). .../gcc/build-ada3/./prev-gcc/xgcc -B/.../gcc/build-ada3/./prev-gcc/=20 -fchecking=3D1 -c -g -O2 -fchecking=3D1 -flto=3Djobserver -frandom-seed=3D1= -gnatpg -gnata -W -Wall -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I.. /../gcc/ada -I../../gcc/ada/gcc-interface -Iada/libgnat -I../../gcc/ada/lib= gnat ../../gcc/ada/libgnat/a-elchha.adb -o ada/libgnat/a-elchha.o +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3DGNAT BUG DETECTED=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ | 11.0.0 20201218 (experimental) (s390x-linux-gnu) Storage_Error stack over= flow or erroneous memory access| | Error detected at a-elchha.adb:144:20 | | Please submit a bug report; see https://gcc.gnu.org/bugs/ . | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact command that you entered. | | Also include sources listed below. | +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. Consider also -gnatd.n switch (see debug.adb). ../../gcc/ada/gcc-interface/system.ads ../../gcc/ada/libgnat/a-elchha.adb ../../gcc/ada/libgnat/a-elchha.ads ../../gcc/ada/libgnat/a-except.ads ../../gcc/ada/libgnat/ada.ads ../../gcc/ada/libgnat/s-parame.ads ../../gcc/ada/libgnat/s-stalib.ads ../../gcc/ada/libgnat/a-unccon.ads ../../gcc/ada/libgnat/s-traent.ads ../../gcc/ada/libgnat/s-soflin.ads ../../gcc/ada/libgnat/s-secsta.ads ../../gcc/ada/libgnat/s-stoele.ads ../../gcc/ada/libgnat/s-stache.ads and .../gcc/build-ada3/./prev-gcc/xgcc -B/.../gcc/build-ada3/./prev-gcc/=20 -fchecking=3D1 -c -g -O2 -fchecking=3D1 -flto=3Djobserver -frandom-seed=3D1= -gnatpg -gnata -W -Wall -g -O1 -fno-inline \ -nostdinc -I- -I. -Iada/generated -Iada -Iada/gcc-interface -I../../gcc/ada -I../../gcc/ada/gcc-interface -Iada/libgnat -I../ ../gcc/ada/libgnat ../../gcc/ada/libgnat/a-except.adb -o ada/libgnat/a-exce= pt.o +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3DGNAT BUG DETECTED=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ | 11.0.0 20201218 (experimental) (s390x-linux-gnu) Storage_Error stack over= flow or erroneous memory access| | Error detected at a-exexda.adb:472:23 | | Please submit a bug report; see https://gcc.gnu.org/bugs/ . | | Use a subject line meaningful to you and us to track the bug. | | Include the entire contents of this bug box in the report. | | Include the exact command that you entered. | | Also include sources listed below. | +=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D+ Please include these source files with error report Note that list may not be accurate in some cases, so please double check that the problem can still be reproduced with the set of files listed. Consider also -gnatd.n switch (see debug.adb). ../../gcc/ada/gcc-interface/system.ads ../../gcc/ada/libgnat/a-except.adb ../../gcc/ada/libgnat/a-except.ads ../../gcc/ada/libgnat/ada.ads ../../gcc/ada/libgnat/s-parame.ads ../../gcc/ada/libgnat/s-stalib.ads ../../gcc/ada/libgnat/a-unccon.ads ../../gcc/ada/libgnat/s-traent.ads ../../gcc/ada/libgnat/s-except.ads ../../gcc/ada/libgnat/s-excdeb.ads ../../gcc/ada/libgnat/s-soflin.ads ../../gcc/ada/libgnat/s-secsta.ads ../../gcc/ada/libgnat/s-stoele.ads ../../gcc/ada/libgnat/s-stache.ads ../../gcc/ada/libgnat/s-wchcon.ads ../../gcc/ada/libgnat/s-wchstw.ads ../../gcc/ada/libgnat/s-traceb.ads ../../gcc/ada/libgnat/s-trasym.ads ../../gcc/ada/libgnat/s-exctab.ads ../../gcc/ada/libgnat/a-excach.adb ../../gcc/ada/libgnat/a-exexda.adb=