From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4B5C43857400; Wed, 8 Mar 2023 17:43:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4B5C43857400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1678297403; bh=aZPls78OvXcSbcadRhQGiu4gVPByZpsWuf3WNaKEi0Y=; h=From:To:Subject:Date:In-Reply-To:References:From; b=ekvNbeL1bTG63KMjVsYONUbfH5Bv/ZgVhpD7j/yTVQJoXRvAzC/2CB8Aep+IJRCTb F+UPJ/PgDXz4UbnMJXhTcl4bDwYc4dNNOQ0fnY8Pu33Isqd2qx2+vDn0qiEOBzcgAQ 4aXsXKAiP4/tpI+OovzbiDkUEc5Eg6XDR3MtKWQQ= From: "qinzhao at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/108896] provide "element_count" attribute to give more context to __builtin_dynamic_object_size() and -fsanitize=bounds Date: Wed, 08 Mar 2023 17:43:23 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: enhancement X-Bugzilla-Who: qinzhao at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: qinzhao 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=3D108896 --- Comment #27 from qinzhao at gcc dot gnu.org --- (In reply to Siddhesh Poyarekar from comment #22) > This really should have been the way __access__ was implemented, but we t= ied > that attribute to only functions. Would it be a terrible idea to make > __element_count__ more general purpose so that it ends up deprecating > __access__? I feel that __access__ and __element_count_ have some overlapping, but serve different purposes, might not be good to merge them?=