From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id CAEAB3949097; Thu, 15 Oct 2020 13:47:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org CAEAB3949097 From: "glaubitz at physik dot fu-berlin.de" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/97431] [SH] Python crashes with 'Segmentation fault with -finline-small-functions Date: Thu, 15 Oct 2020 13:47:41 +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: 10.2.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: glaubitz at physik dot fu-berlin.de 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: --- 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: Thu, 15 Oct 2020 13:47:41 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D97431 --- Comment #5 from John Paul Adrian Glaubitz --- (In reply to Oleg Endo from comment #4) > Just to point out the obvious, r13 is never initialized nor referenced by > anything else throughout the function. What are the compiler options? One additional observation. It seems that the static build does not crash, = just the shared build. >>From the build log, we have for the shared build that crashes: sh4-linux-gnu-gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fdebug-prefix-map=3D/<>=3D. -fstack-prot= ector -Wformat -Werror=3Dformat-security -std=3Dc99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=3Dimplicit-function-declaration -fvisibility=3Dhidden=20 -I../Include/internal -IObjects -IInclude -IPython -I. -I../Include -Wdate-= time -D_FORTIFY_SOURCE=3D2 -fPIC -DPy_BUILD_CORE -o Objects/longobject.o ../Objects/longobject.c For the static build, which did not crash in my test, we have: sh4-linux-gnu-gcc -pthread -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -g -fdebug-prefix-map=3D/<>=3D. -fstack-prot= ector -Wformat -Werror=3Dformat-security -std=3Dc99 -Wextra -Wno-unused-result -Wno-unused-parameter -Wno-missing-field-initializers -Werror=3Dimplicit-function-declaration -fvisibility=3Dhidden=20 -I../Include/internal -IObjects -IInclude -IPython -I. -I../Include -Wdate-= time -D_FORTIFY_SOURCE=3D2 -DPy_BUILD_CORE -o Objects/longobject.o ../Objects/longobject.c=