From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28922 invoked by alias); 6 Mar 2013 08:56:51 -0000 Received: (qmail 28635 invoked by uid 48); 6 Mar 2013 08:55:50 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/49234] [4.6/4.7/4.8 Regression] -Wstrict-overflow gives obviously unwarranted warning Date: Wed, 06 Mar 2013 08:56:00 -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-Keywords: diagnostic X-Bugzilla-Severity: minor X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: aldyh at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.6.4 X-Bugzilla-Changed-Fields: Summary Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2013-03/txt/msg00451.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=49234 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|[4.5/4.6/4.7/4.8 |[4.6/4.7/4.8 Regression] |Regression] |-Wstrict-overflow gives |-Wstrict-overflow gives |obviously unwarranted |obviously unwarranted |warning |warning | --- Comment #17 from Richard Biener 2013-03-06 08:55:46 UTC --- The patch is a hack. Comparing SSA_NAME_VAR is very fragile, nothing but debug info cares about SSA_NAME_VAR. I can't see why constant PHI arguments should be in any way special - in fact this is just the very usual induction variable PHI with a constant initial value ...