From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 787 invoked by alias); 30 Apr 2015 18:42:11 -0000 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 Received: (qmail 671 invoked by uid 55); 30 Apr 2015 18:42:07 -0000 From: "mpolacek at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/63551] [4.9/5 Regression] wrong code (segfaults) at -Os on x86_64-linux-gnu Date: Thu, 30 Apr 2015 18:42: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-Version: 5.0 X-Bugzilla-Keywords: wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: mpolacek at gcc dot gnu.org X-Bugzilla-Status: RESOLVED X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.3 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-04/txt/msg02689.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63551 --- Comment #17 from Marek Polacek --- Author: mpolacek Date: Thu Apr 30 18:41:33 2015 New Revision: 222653 URL: https://gcc.gnu.org/viewcvs?rev=222653&root=gcc&view=rev Log: * g++.dg/ipa/pr63551.C: New test. Backported from mainline 2014-12-15 Jakub Jelinek PR tree-optimization/63551 * gcc.dg/ipa/pr63551.c (fn2): Use 4294967286U instead of 4294967286 to avoid warnings. 2014-12-03 Martin Jambor PR ipa/64153 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Check type sizes before view_converting. 2014-12-01 Martin Jambor PR ipa/63551 * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Convert value of the argument to the type of the value in the condition. * gcc.dg/ipa/pr63551.c: New test. * gcc.dg/ipa/pr64041.c: Likewise. Added: branches/gcc-4_8-branch/gcc/testsuite/g++.dg/ipa/pr63551.C branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/ipa/pr63551.c branches/gcc-4_8-branch/gcc/testsuite/gcc.dg/ipa/pr64041.c Modified: branches/gcc-4_8-branch/gcc/ChangeLog branches/gcc-4_8-branch/gcc/ipa-inline-analysis.c branches/gcc-4_8-branch/gcc/testsuite/ChangeLog