From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 60CA93858C2F; Sat, 20 Jan 2024 00:44:38 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 60CA93858C2F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705711478; bh=zT9CkTrfoJv3JjX1i11mrRBq45vD6CFU9Jw8/16BDQo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=fgrwxyroLZXCgH/WvBfQVCxvSO46/i6eOLqEoho+5QPwVYnPgelPE7YZJZhJRs5J1 fD/HxnytQ58LQA0rkFJhbIrLkMtuuld76XJMHKAHRulLYzsZlr/IzGcVUZ84cuC+AM LCpiPLT9XBf0abbxwDv/4MD7u6wRgr79MZSVbXrY= From: "sandra at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/102998] Wrong documentation for -Warray-parameter Date: Sat, 20 Jan 2024 00:44:37 +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: 12.0 X-Bugzilla-Keywords: diagnostic, documentation X-Bugzilla-Severity: normal X-Bugzilla-Who: sandra at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: sandra at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: cc assigned_to 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=3D102998 sandra at gcc dot gnu.org changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |sandra at gcc dot gnu.org Assignee|unassigned at gcc dot gnu.org |sandra at gcc dot g= nu.org --- Comment #3 from sandra at gcc dot gnu.org --- The argument to malloc is 4, but it's given in bytes, not array elements. I can tweak this example to make it more clear that the array is too small. There are other problems here too; -Warray-parameter isn't listed in the Options Summary section, it doesn't say what N defaults to if you omit it, = or=20 that the negative form is equivalent to -Warray-parameter=3D0.=