From patchwork Mon Nov 5 14:49:24 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jakub Jelinek X-Patchwork-Id: 197207 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 B97282C00C4 for ; Tue, 6 Nov 2012 01:49:35 +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=1352731776; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Received:Date:From:To:Subject:Message-ID:Reply-To: 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=w8i2AhEPjMLqz/zvSFgV X4pcSfg=; b=jP8zm4l2Kxtvciwk6YIo0AklVD8f7lpI4s9LNxyfjrxRics554AD iFA6qUJ33sDytAd4xx+hydgxIK72AgPusk7J81/WSlXJXOnrW4Q1wvkgWP/9vWux /LzG3mILtmRaF0H4ARDoQ0948mga+bQFXty5AiPpYHfXC5o89mmGLq8= 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:Received:Received:Date:From:To:Subject:Message-ID:Reply-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:X-IsSubscribed:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=k5uPY56FT/BSLtGMmKIqEnsJHFg0RUHnmOfYJzH/+h8Vgf/0RmIf70lZEzWZD4 QQcfUUduI5QIpjYb+3+6xiz9h0zq9sqwLZVyZPnPCmwXXRr30RbMYeeP//vpkC7z 8rDcmRMZOyl5uegTDNU9KNxisJHrrxd95h0ZDtbYwweJE=; Received: (qmail 25263 invoked by alias); 5 Nov 2012 14:49:31 -0000 Received: (qmail 25254 invoked by uid 22791); 5 Nov 2012 14:49:31 -0000 X-SWARE-Spam-Status: No, hits=-6.5 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; Mon, 05 Nov 2012 14:49:27 +0000 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id qA5EnRoC019829 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 5 Nov 2012 09:49:27 -0500 Received: from zalov.redhat.com (vpn1-7-9.ams2.redhat.com [10.36.7.9]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id qA5EnPHJ031968 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 5 Nov 2012 09:49:26 -0500 Received: from zalov.cz (localhost [127.0.0.1]) by zalov.redhat.com (8.14.5/8.14.5) with ESMTP id qA5EnOwj013433 for ; Mon, 5 Nov 2012 15:49:25 +0100 Received: (from jakub@localhost) by zalov.cz (8.14.5/8.14.5/Submit) id qA5EnO4m013432 for gcc-patches@gcc.gnu.org; Mon, 5 Nov 2012 15:49:24 +0100 Date: Mon, 5 Nov 2012 15:49:24 +0100 From: Jakub Jelinek To: gcc-patches@gcc.gnu.org Subject: [committed] Fix up pr54970.c testcase Message-ID: <20121105144924.GL1881@tucnak.redhat.com> Reply-To: Jakub Jelinek MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes 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 Hi! I've noticed that while I'm including ../nop.h header, I was using "NOP" and so the inclusion was useless. It makes a difference only on ia64/s390*/mmix where I didn't test, anyway, this should fix that. Committed as obvious. 2012-11-05 Jakub Jelinek PR debug/54970 PR debug/54971 * gcc.dg/guality/pr54970.c: Use NOP instead of "NOP" in inline-asm. Jakub --- gcc.dg/guality/pr54970.c (revision 193161) +++ gcc.dg/guality/pr54970.c (working copy) @@ -12,28 +12,28 @@ main () int *p = a + 2; /* { dg-final { gdb-test 15 "a\[1\]" "2" } } */ int *q = a + 1; /* { dg-final { gdb-test 15 "a\[2\]" "3" } } */ /* { dg-final { gdb-test 15 "*p" "3" } } */ - asm volatile ("NOP"); /* { dg-final { gdb-test 15 "*q" "2" } } */ + asm volatile (NOP); /* { dg-final { gdb-test 15 "*q" "2" } } */ *p += 10; /* { dg-final { gdb-test 20 "a\[0\]" "1" } } */ /* { dg-final { gdb-test 20 "a\[1\]" "2" } } */ /* { dg-final { gdb-test 20 "a\[2\]" "13" } } */ /* { dg-final { gdb-test 20 "*p" "13" } } */ - asm volatile ("NOP"); /* { dg-final { gdb-test 20 "*q" "2" } } */ + asm volatile (NOP); /* { dg-final { gdb-test 20 "*q" "2" } } */ *q += 10; /* { dg-final { gdb-test 25 "a\[0\]" "1" } } */ /* { dg-final { gdb-test 25 "a\[1\]" "12" } } */ /* { dg-final { gdb-test 25 "a\[2\]" "13" } } */ /* { dg-final { gdb-test 25 "*p" "13" } } */ - asm volatile ("NOP"); /* { dg-final { gdb-test 25 "*q" "12" } } */ + asm volatile (NOP); /* { dg-final { gdb-test 25 "*q" "12" } } */ __builtin_memcpy (&a, (int [3]) { 4, 5, 6 }, sizeof (a)); /* { dg-final { gdb-test 31 "a\[0\]" "4" } } */ /* { dg-final { gdb-test 31 "a\[1\]" "5" } } */ /* { dg-final { gdb-test 31 "a\[2\]" "6" } } */ /* { dg-final { gdb-test 31 "*p" "6" } } */ - asm volatile ("NOP"); /* { dg-final { gdb-test 31 "*q" "5" } } */ + asm volatile (NOP); /* { dg-final { gdb-test 31 "*q" "5" } } */ *p += 20; /* { dg-final { gdb-test 36 "a\[0\]" "4" } } */ /* { dg-final { gdb-test 36 "a\[1\]" "5" } } */ /* { dg-final { gdb-test 36 "a\[2\]" "26" } } */ /* { dg-final { gdb-test 36 "*p" "26" } } */ - asm volatile ("NOP"); /* { dg-final { gdb-test 36 "*q" "5" } } */ + asm volatile (NOP); /* { dg-final { gdb-test 36 "*q" "5" } } */ *q += 20; /* { dg-final { gdb-test 45 "a\[0\]" "4" } } */ /* { dg-final { gdb-test 45 "a\[1\]" "25" } } */ /* { dg-final { gdb-test 45 "a\[2\]" "26" } } */ @@ -42,6 +42,6 @@ main () /* { dg-final { gdb-test 45 "p\[-2\]" "4" } } */ /* { dg-final { gdb-test 45 "q\[-1\]" "4" } } */ /* { dg-final { gdb-test 45 "q\[1\]" "26" } } */ - asm volatile ("NOP"); /* { dg-final { gdb-test 45 "*q" "25" } } */ + asm volatile (NOP); /* { dg-final { gdb-test 45 "*q" "25" } } */ return 0; }