From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id C0B9B386F43C; Tue, 21 Apr 2020 06:51:26 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C0B9B386F43C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1587451886; bh=dUEibmFYihZekv65Os2KEpum0OtwWLzun9gHstwxhZE=; h=From:To:Subject:Date:In-Reply-To:References:From; b=DxBfj3D/5MZuG1q0qpy9IekOFYCKXlYNiNuQrBUB/vI1byO8CKmTkreAEAyHmuM0R 33u9QrQcE8Elxa0JYAgpQd/Jod9Vin/AlJ0hlkxf4O82ghwaLuj4brKw4J+5vfKVfn 8LSxMrMX00exfsQTn6WQgImXYTU3Mf06s+jqGCyE= From: "chantry.xavier at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/94675] [9 regression] -Warray-bounds false positive with -O2 Date: Tue, 21 Apr 2020 06:51:26 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: chantry.xavier at gmail dot com X-Bugzilla-Status: UNCONFIRMED 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 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: Tue, 21 Apr 2020 06:51:26 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D94675 --- Comment #2 from Xavier --- Note that in our code, we are not even dereferencing the pointer, it's just ps->s +=3D len. And since we always keep a pointer right after the array (p_end / s_end), w= on't that be a source of problems for Warray-bounds ?=