From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 4C0233858D34; Tue, 26 May 2020 12:41:47 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 4C0233858D34 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590496907; bh=gTHxsstx2C+HRNvnYS0c+l7QwBGlGY5vBUpPBRM59rY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=QZ6lSSotdPVCGGOfY5pdoo7s8cOgIbW8+xVo/i6voFNKYVqPpjJFWrcBzWkl2o7FJ 3sT4T1mqtY5ch6Rul48jwqtvofmA1c6ZhKIEIVCdmT95/4p05rsHBf7q2Vtx1zd3d3 IeFmNy/MC/Fb3DuS1fwU1lsLda3nF4F/PG9dFq/E= From: "haoxintu at gmail dot com" To: gcc-bugs@gcc.gnu.org Subject: [Bug middle-end/95326] GCC can not detect signed-integer-overflow correctly Date: Tue, 26 May 2020 12:41:47 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: middle-end X-Bugzilla-Version: 11.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: haoxintu at gmail 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 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, 26 May 2020 12:41:47 -0000 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D95326 --- Comment #3 from Haoxin Tu --- Would GCC shorten the multiple to be other types early as well? I also find some cases in "short" type with the same symptom. I am still testing now and don't know there are any cases in rest of types(such as char, int, long...) have the problem. By the way, should I file a new bug report when I found another type (for example,int) that GCC can not detect the signed-integer-overflow UB issues?=