From patchwork Sat Jul 20 06:41:29 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joern Rennecke X-Patchwork-Id: 260413 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]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 8203D2C008C for ; Sat, 20 Jul 2013 16:41:43 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=MVBEp++zCOwk/4Sj UX6G+MmrD5wIlwAYjh8G9ghdwsogFKw9KhEnn0qI9HsyPVsnvJ050L4b7MdWd3o9 1Y9fe/Jw29wfVmH29ytx9PK97Sr8p2alGWm+gz5AasbsLJ57o4zeCLgtw9EVlZ/5 Vnh8VAmZI06qjkF6a59CEqoPrYM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender :message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding; s=default; bh=rgey0ZW/9scnVDf4Kcsuvh Opa88=; b=gjELv2VCasm+cApQgRA0CzOAFZVOaMWw1546GeFUfNmaDwZOngxuaG odxTTEaRqVEsgBNPQz+ATcs0+IwnCplM5CJDCXrB0pcHUWnTT3SauLV1w7jTlWHb HgtQXphc+qZXAgGnjzqJWKzy0OFAQtggAocnjg39wOTxGRhKxWAtY= Received: (qmail 32296 invoked by alias); 20 Jul 2013 06:41:37 -0000 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 Received: (qmail 32286 invoked by uid 89); 20 Jul 2013 06:41:37 -0000 X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, MIME_QP_LONG_LINE, RCVD_IN_DNSWL_MED, RCVD_IN_HOSTKARMA_NO, RCVD_IN_HOSTKARMA_W, RDNS_NONE autolearn=ham version=3.3.1 Received: from Unknown (HELO c62.cesmail.net) (216.154.195.54) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Sat, 20 Jul 2013 06:41:36 +0000 Received: from unknown (HELO epsilon2) ([192.168.1.60]) by c62.cesmail.net with ESMTP; 20 Jul 2013 02:41:29 -0400 Received: from cust213-dsl91-135-11.idnet.net (cust213-dsl91-135-11.idnet.net [91.135.11.213]) by webmail.spamcop.net (Horde MIME library) with HTTP; Sat, 20 Jul 2013 02:41:29 -0400 Message-ID: <20130720024129.l4jnpy3y0wkok40k-nzlynne@webmail.spamcop.net> Date: Sat, 20 Jul 2013 02:41:29 -0400 From: Joern Rennecke To: gcc-patches@gcc.gnu.org Subject: committed: testsuite patches (11/14): Don't expect null pointer check elimination for target { keeps_null_pointer_checks } MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) H3 (4.1.4) X-Virus-Found: No Tested for avr with --target_board=atmega128-sim and native on i686-pc-linuc-gnu. Committed as obvious. 2013-07-17 Joern Rennecke * gcc.dg/tree-ssa/pr21090.c: Do vrp1 scan check only for target { ! keeps_null_pointer_checks }. * gcc.dg/tree-ssa/unreachable.c: Do optimized scan check only for target { ! keeps_null_pointer_checks }. Index: gcc.dg/tree-ssa/pr21090.c =================================================================== --- gcc.dg/tree-ssa/pr21090.c (revision 201032) +++ gcc.dg/tree-ssa/pr21090.c (working copy) @@ -19,5 +19,5 @@ foo (int a) return 0; } -/* { dg-final { scan-tree-dump-times "Folding predicate.*to 1" 1 "vrp1" } } */ +/* { dg-final { scan-tree-dump-times "Folding predicate.*to 1" 1 "vrp1" { target { ! keeps_null_pointer_checks } } } } */ /* { dg-final { cleanup-tree-dump "vrp1" } } */ Index: gcc.dg/tree-ssa/unreachable.c =================================================================== --- gcc.dg/tree-ssa/unreachable.c (revision 201032) +++ gcc.dg/tree-ssa/unreachable.c (working copy) @@ -11,5 +11,5 @@ main() return 1; return 0; } -/* { dg-final { scan-tree-dump-not "bad_boy" "optimized"} } */ +/* { dg-final { scan-tree-dump-not "bad_boy" "optimized" { target { ! keeps_null_pointer_checks } } } } */ /* { dg-final { cleanup-tree-dump "optimized" } } */