From patchwork Wed Apr 23 10:22:48 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Polacek X-Patchwork-Id: 341767 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 842871400F1 for ; Wed, 23 Apr 2014 20:23:02 +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:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=ml8QhRe07hxCOywxsGhjDa/nwAH/1jLpkZK1PGRXdMuW7eRyhQ 5JRGj/y7GVVXp3LI+PIBB1t6Uu4v0GDn2JSV5acK91SJRwY7ScC9CMdB8jJiODmD Fw9tvOOKb3MAuqoKObIrUi2F9MgWgkq7d/agA3SLOy1XL1YJFjT5/bUUA= 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:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=WrC8wmHYUVd4NWyRX2B98QHZN9g=; b=aJVd9newljNNAzIF8PRB tu7CHXKfU5wVf3d5+f09iW5dXCF0oELr4Xdp/oIq7JYN8T4npg/OJSLPhnBT9VxC 1w3Op0yZXmElLhu4ISr7/y15bzf9UjMOyNxMzYtFRFw49xFOHwgNnSyofmNfkpF1 M2bdJi9FDKAx3LZZfgvBd+o= Received: (qmail 19944 invoked by alias); 23 Apr 2014 10:22:55 -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 19935 invoked by uid 89); 23 Apr 2014 10:22:55 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-3.1 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD, SPF_HELO_PASS, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 23 Apr 2014 10:22:54 +0000 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s3NAMqCl023899 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Wed, 23 Apr 2014 06:22:52 -0400 Received: from redhat.com (ovpn-116-53.ams2.redhat.com [10.36.116.53]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id s3NAMnFB004745 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO); Wed, 23 Apr 2014 06:22:51 -0400 Date: Wed, 23 Apr 2014 12:22:48 +0200 From: Marek Polacek To: GCC Patches Cc: Richard Henderson , Aldy Hernandez Subject: [PATCH] Tweak an error msg a little Message-ID: <20140423102248.GB2103@redhat.com> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) I think it's better to be consistent and always quote the "transaction_wrap" name, it even looks nicer. I ran tm.exp tests, ok for trunk? 2014-04-23 Marek Polacek * c-common.c (handle_tm_wrap_attribute): Tweak error message. Marek diff --git gcc/c-family/c-common.c gcc/c-family/c-common.c index 0b5ded8..a08c873 100644 --- gcc/c-family/c-common.c +++ gcc/c-family/c-common.c @@ -8421,7 +8421,7 @@ handle_tm_wrap_attribute (tree *node, tree name, tree args, error ("%qD is not compatible with %qD", wrap_decl, decl); } else - error ("transaction_wrap argument is not a function"); + error ("%qE argument is not a function", name); } }