From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 709713858D33; Thu, 4 May 2023 15:30:58 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 709713858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683214258; bh=l/nLNADqsuS2wXFTxNr+ozyrgXAXi3iqjulYZTa9AeA=; h=From:To:Subject:Date:In-Reply-To:References:From; b=MnLZ5vkWuYw2fPlUozzXBkwKpo5UOkZAd3G+tzdxaCo7sToHUYGmIPZNUmhZX23cB aQbauhOQ0AyDgmDrmQ6NWDEWF1vNbJidGxV2D4auTaoWDm2Bugkz+cSk58jza1B+ur fzxSwLh7iiEoGDHt5hd1aZBZTP0EWfnwynxOfr4E= 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: Thu, 04 May 2023 15:30:58 +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 #44 from qinzhao at gcc dot gnu.org --- (In reply to Martin Uecker from comment #43) > works with the bounds checking code? Does it also interact with the obje= ct > size pass? both array-bounds sanitizer and object size pass are updated to use this new attribute.=20 I will refine the patch a little bit before posting it in the next week.=