From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C1A9E3858D20; Sat, 14 Jan 2023 21:56:09 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C1A9E3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1673733369; bh=afU+xwl7ldsdPDWxnWEqIWBTMGmvz1bSFFQno+KpWow=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Wu6Qr6VeYyMwy82VvxCcuLsfcWMYU8Q0xRq449ojLiXYlvT7L+ghlQFVialqfGwJZ ec72QHHHEWaFTixZb/LuAyOpNKVPYa1hR9YsQJh5i6/RgFNNl74Ke3baaPwXaKUnOM d+WEh4C07iIgBcoTFO8vt139MnT8+lZjdz6abAWY= From: "hubicka at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ipa/56139] [10/11/12/13 Regression] unmodified static data could go in .rodata, not .data Date: Sat, 14 Jan 2023 21:56:08 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ipa X-Bugzilla-Version: 4.8.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: hubicka at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc 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=3D56139 Jan Hubicka changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |hubicka at gcc dot gnu.org --- Comment #4 from Jan Hubicka --- I have some code that makes it possible to attach summaries to references (= like we do for calls and symbols) and then mark addresses that are never used for compoarsion. Similarly we could probably mark readonly addresses. We could even squeeze out a bit in the reference representation itself. Is there easy way to tell if address is never read from during IPA summary generation time?=