From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 0A8C23858D37; Wed, 8 Nov 2023 18:59:07 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0A8C23858D37 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1699469947; bh=KP3pI2FnsuekiXrqy9dJyq7yKnsIurcGB+9sQtQcN/I=; h=From:To:Subject:Date:In-Reply-To:References:From; b=aCgHgdM1rWuRJZLu+WIgXG2APj4v0kV54ZEANKss6YU2QRScDxq+rJnLothcwvM3Q ax8z46Ypa8oHZpqBKtcIGupZkozgMqJiTmtmIM+w6vfkIsRUQOOHhsCl5Na+imKfDV 4k2ZXyYtk9o2iQ9ixajU2IP6092BC3DUN8aBnxlM= From: "dave.anglin at bell dot net" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/112415] [14 regression] Python 3.11 miscompiled on HPPA with new RTL fold mem offset pass, since r14-4664-g04c9cf5c786b94 Date: Wed, 08 Nov 2023 18:59:06 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Version: 14.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: dave.anglin at bell dot net 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: 14.0 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D112415 --- Comment #17 from dave.anglin at bell dot net --- On 2023-11-08 9:42 a.m., jeffreyalaw at gmail dot com wrote: > I'd probably continue with the process of narrowing down what code is > affected using the attributes. We already know the file, narrowing it > down to a function might help considerably with the evaluation effort. The problem seems to be in compiler_visit_expr(). -static int compiler_visit_expr(struct compiler *, expr_ty); +static int compiler_visit_expr(struct compiler *, expr_ty) __attribute__((optimize("no-inline-small-functions"))); Python builds okay if this function is not inlined, if it is compiled at -O= 1, or if -fno-inline-small-functions is specified as above.=C2=A0 Can't specify -fno-fold-mem-offsets as a function attribute.=