From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 5ACAC3858434; Thu, 18 May 2023 05:59:39 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5ACAC3858434 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1684389579; bh=9NAEI3oJl9eATkuJ1YLKtDgFzZlTZvxgKGivQDTCpYc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=eSZHtw5xf0o08eoPWNvCvWfr/Hqj5ARraHqVqeSAeZ5FrGzDY5AS4kx57FUKLGR4Z aFQxoYdub8+hWWDEDgNQuZjEM5SYOurZg5yTsmTBk+PzpfJJuSodiaGjFtlXn3CPb9 MHhW7YqE5OY/8nm0FYmFzVkccZ9CiCgTKyC0c7/A= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/105713] [gimplefe] need a way to specify TREE_ADDRESSABLE Date: Thu, 18 May 2023 05:59:38 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: rguenth at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105713 --- Comment #2 from Richard Biener --- Similarly DECL_NOT_GIMPLE_REG_P. "easiest" to do with attributes on the declaration I guess. GIMPLE FE specific attributes should be not recognized without -fgimple and should be prefixed g_addressable, g_not_gimple_reg_p? Optimistic clearing is going to be difficult, we'd need to have a lot of attributes that way. There's a narrow subset of cases we "ignore" & for addressability and __MEM parsing is separate so eventually we can introduce a flag into the C frontend to not set TREE_ADDRESSABLE when in some "context".=