From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 1C2DA393D02C; Mon, 1 Mar 2021 17:46:37 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1C2DA393D02C From: "msebor at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/99295] [9/10/11 Regression] documentation on __attribute__((malloc)) is wrong Date: Mon, 01 Mar 2021 17:46:36 +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: 11.0 X-Bugzilla-Keywords: documentation, patch X-Bugzilla-Severity: normal X-Bugzilla-Who: msebor at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: msebor at gcc dot gnu.org X-Bugzilla-Target-Milestone: 11.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cf_known_to_fail short_desc assigned_to cf_known_to_work keywords bug_status 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 X-BeenThere: gcc-bugs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-bugs mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 01 Mar 2021 17:46:37 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D99295 Martin Sebor changed: What |Removed |Added ---------------------------------------------------------------------------- Known to fail| |10.2.1, 9.3.0 Summary|[11 Regression] |[9/10/11 Regression] |documentation on |documentation on |__attribute__((malloc)) is |__attribute__((malloc)) is |wrong |wrong Assignee|unassigned at gcc dot gnu.org |msebor at gcc dot g= nu.org Known to work|10.2.1 |8.3.0 Keywords| |patch Status|NEW |ASSIGNED --- Comment #3 from Martin Sebor --- I agree the insertion of the sentence: Compiler predicts that a function with the attribute returns non-null in = most cases. make the following sentence at least ambiguous if not incorrect. The senten= ce was added in r263355, in response to pr83023. I have posted the following change to avoid the unintended reading: https://gcc.gnu.org/pipermail/gcc-patches/2021-March/566030.html=