From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id DAC7C384F6F5; Thu, 24 Nov 2022 03:35:34 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org DAC7C384F6F5 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669260934; bh=BZmkbvcB/9GyYRA3ir8SVyrqo+SNCA0nC/8SSmNedHU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=N8KFkg/ieP5Js06RjeZFL7fpstPYl+/V8v9FXjq+Tkc+0IPNQIvUXQcP/au0Et3gG /mpw7KHZ+joPd5d8KsBG3FQyl/20C9cX9Ti9JqlNofNcjp5tEirH+xoV9C3ymNcJVL 1zD1IZPpmM57Q95vlVw4U//r4jUTmu6b89hbap80= From: "lh_mouse at 126 dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug target/105523] Wrong warning array subscript [0] is outside array bounds Date: Thu, 24 Nov 2022 03:35:32 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: target X-Bugzilla-Version: 12.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: lh_mouse at 126 dot com X-Bugzilla-Status: NEW 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D105523 --- Comment #13 from LIU Hao --- (In reply to Andrew Pinski from comment #11) > Yes but the inline-asm is just broken. Anyways this is not related to the > original issue reported here. It IS related. GCC should not warn about dereferencing a constant address, = no matter for what reason.=