From patchwork Thu Feb 21 10:05:21 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 222234 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) by ozlabs.org (Postfix) with SMTP id 295422C0090 for ; Thu, 21 Feb 2013 21:06:15 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1362045976; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Date:From:To:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:Sender: Delivered-To; bh=WM1Q9sqvCSx9eDHoAXDTk/FHojk=; b=EHh26h/y2vg+rxN pojAcY6e2X8M/ngcPCgxmAUe8TXIuPsiUOp2z/ldbEeoYMSAr8jyf6YS8pk+a0Gg HEYbI81wxpcdCevLhVS4d3dNPp8yKb6H9iM9ri+0Kg3+a0HKm+ilrlnWiK1rXMc/ WCYHF+yucJ/sog31EGrMxOJ/Ypxw= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Date:From:To:Subject:Message-ID:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=uryXLiADV6MIN3Tjcd+QH1/3e+N2N2f8w3T0u403E54hnJGT6V2YvqUfV2fGrB Vn8FXsRuDfrelqWOxcC8I0ZrjA7+WIJhVasO4Iig+2U+PgjJ1RqqqjTrwL8iodjS ifxiBNsVoMz2uiLanr1uvyhfJTXMerclQ/Q8t22f5AzFM=; Received: (qmail 24314 invoked by alias); 21 Feb 2013 10:06:06 -0000 Received: (qmail 24298 invoked by uid 22791); 21 Feb 2013 10:06:05 -0000 X-SWARE-Spam-Status: No, hits=-6.7 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, KHOP_SPAMHAUS_DROP, RCVD_IN_DNSWL_HI, RCVD_IN_HOSTKARMA_W, RP_MATCHES_RCVD, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 21 Feb 2013 10:05:25 +0000 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r1LA5PwD032035 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 21 Feb 2013 05:05:25 -0500 Received: from redhat.com (ovpn-116-99.ams2.redhat.com [10.36.116.99]) by int-mx12.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id r1LA5LG0023380 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO) for ; Thu, 21 Feb 2013 05:05:24 -0500 Date: Thu, 21 Feb 2013 11:05:21 +0100 From: Marek Polacek To: GCC Patches Subject: [PATCH] Add testcase for PR56398 Message-ID: <20130221100521.GA18098@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org This adds a reduced testcase for PR56398. Ok for trunk? 2013-02-21 Marek Polacek PR tree-optimization/56398 * g++.dg/torture/pr56398.C: New test. Marek --- gcc/g++.dg/torture/pr56398.C.mp 2013-02-21 10:58:14.388913070 +0100 +++ gcc/g++.dg/torture/pr56398.C 2013-02-21 10:58:53.301026474 +0100 @@ -0,0 +1,22 @@ +// { dg-do compile } +// { dg-options "-g" } + +namespace +{ +#0 "/usr/include/c/4.8/bits/postypes.h" 3 +} + +vtkpow (int b) +{ + int a1; + int b1; + int c; + while (b1) + { + while (b) + b1 = 0; + b1 = b1 - 1; + c = c * a1; + } + return c; +}