From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 7FF9C3858D39; Mon, 9 Oct 2023 02:08:23 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7FF9C3858D39 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1696817303; bh=3JjPHx1kqiyQ9Mf7wCtWRH2plZ0A1Z2W2KFj2kgxKug=; h=From:To:Subject:Date:In-Reply-To:References:From; b=iXp/oahjZi7ZCDQVK5OoO8hQg7gK4dxWIyb0zE6gYN1sZ40yDo0xJWEm+SEovzrze /dL/yL8eZwt8XeTcXTyZHgmzhsnbhY+RxNoMbuuaHmCVQgyvt29KbkkVUbZ6g9/KQn yu+xoOoiVPlp6EcygPcXcMinmR/roAbGMS/oKo+Y= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/111730] erroneous alloc-size-larger-than warning with -O1 Date: Mon, 09 Oct 2023 02:08:23 +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: 13.2.1 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org 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 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111730 --- Comment #2 from Andrew Pinski --- The difference between -O1 and -O2 is -O2 removes the empty loops.=