From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 958303858D3C; Mon, 6 Nov 2023 21:00:36 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 958303858D3C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699304436; bh=8KEuDWKgstVwrTM/JFqS1lfXup6Bnynoio3MV9nSiBw=; h=From:To:Subject:Date:From; b=xGbItbwM6IKpGWuMX9XrBv4Z9CsmniPXRSJ4CHcaWsvjgeef8tBFkWfC8mggJA1rm iH1ztUOXgRc9p6lgXw4967HdeGg4IRm4QrV7YUeOHCOaaZCJVE/WlMmzHL5jNbG5cR n1ggOf8frr/hhLv+X4gM1+HreFGm1OS5afGT06cM= From: "sjames at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112415] New: [14 regression] Python 3.11 miscompiled with new RTL fold mem offset pass, since r14-4664-g04c9cf5c786b94 Date: Mon, 06 Nov 2023 21:00:35 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: sjames at gcc dot gnu.org 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: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter cc target_milestone Message-ID: 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=3D112415 Bug ID: 112415 Summary: [14 regression] Python 3.11 miscompiled with new RTL fold mem offset pass, since r14-4664-g04c9cf5c786b94 Product: gcc Version: 14.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: rtl-optimization Assignee: unassigned at gcc dot gnu.org Reporter: sjames at gcc dot gnu.org CC: danglin at gcc dot gnu.org, manolis.tsamis at vrull dot= eu Target Milestone: --- I've bisected this twice and come to r14-4664-g04c9cf5c786b94 ('Implement n= ew RTL optimizations pass: fold-mem-offsets'). -fno-fold-mem-offsets makes thi= ngs work. Python 3.11.6 fails to build on HPPA since that commit with the built-Python segfaulting during the build. ``` hppa2.0-unknown-linux-gnu-gcc -c -Wsign-compare -DNDEBUG -O2 -pipe -march=3D2.0 -fdiagnostics-color=3Dalways -frecord-gcc-switches -ggdb3 -fwr= apv -std=3Dc11 -Wextra -Wno-unused-parameter -Wno-missing-field-init ializers -Wstrict-prototypes -Werror=3Dimplicit-function-declaration -fvisibility=3Dhidden -I./Include/internal -I. -I./Include -I/usr/include/ncursesw -fPIC -DPy_BUILD_CORE -o Python/frozen.o Python/frozen.c ./_bootstrap_python ./Tools/scripts/deepfreeze.py \ Python/frozen_modules/importlib._bootstrap.h:importlib._bootstrap \ Python/frozen_modules/importlib._bootstrap_external.h:importlib._bootstrap_= external \ Python/frozen_modules/zipimport.h:zipimport \ Python/frozen_modules/abc.h:abc \ Python/frozen_modules/codecs.h:codecs \ Python/frozen_modules/io.h:io \ Python/frozen_modules/_collections_abc.h:_collections_abc \ Python/frozen_modules/_sitebuiltins.h:_sitebuiltins \ Python/frozen_modules/genericpath.h:genericpath \ Python/frozen_modules/ntpath.h:ntpath \ Python/frozen_modules/posixpath.h:posixpath \ Python/frozen_modules/os.h:os \ Python/frozen_modules/site.h:site \ Python/frozen_modules/stat.h:stat \ Python/frozen_modules/importlib.util.h:importlib.util \ Python/frozen_modules/importlib.machinery.h:importlib.machinery \ Python/frozen_modules/runpy.h:runpy \ Python/frozen_modules/__hello__.h:__hello__ \ Python/frozen_modules/__phello__.h:__phello__ \ Python/frozen_modules/__phello__.ham.h:__phello__.ham \ Python/frozen_modules/__phello__.ham.eggs.h:__phello__.ham.eggs \ Python/frozen_modules/__phello__.spam.h:__phello__.spam \ Python/frozen_modules/frozen_only.h:frozen_only \ -o Python/deepfreeze/deepfreeze.c make: *** [Makefile:1298: Python/deepfreeze/deepfreeze.c] Segmentation fault (core dumped) make: *** Waiting for unfinished jobs.... hppa2.0-unknown-linux-gnu-gcc -c -I./Modules/_decimal/libmpdec -DCONFIG_32= =3D1 -DANSI=3D1 -Wsign-compare -DNDEBUG -O2 -pipe -march=3D2.0 -fdiagnostics-color=3Dalways -frecord-gcc-switches -ggdb3 -fwrapv -std=3Dc11 -Wextra -Wno-unused-parameter -Wno-missing-field-initializers -Wstrict-prototypes -Werror=3Dimplicit-function-declaration -fvisibility=3D= hidden=20 -I./Include/internal -I. -I./Include -I/usr/include/ncursesw -fPIC -fPIC = -o Modules/_decimal/libmpdec/mpdecimal.o ./Modules/_decimal/libmpdec/mpdecimal= .c * ERROR: dev-lang/python-3.11.6::gentoo failed (compile phase): * emake failed ```=