From patchwork Mon Feb 23 02:28:03 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Segher Boessenkool X-Patchwork-Id: 442336 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 621E91400DE for ; Mon, 23 Feb 2015 13:28:29 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id; q=dns; s=default; b=iwLoOMKoCj/X DUTThmPjHtHAw09oD+vAX8UDE10FqkqexDAwFCk6VqFLVKRfDE1qalk/X9JSP5tU Bn5BZP38F+0vb4JRPpNIPVKlXTKQlsjRJJU44SJYMPfsjtGCrkrbBeYiygZkxWEu +PBJ9hA5K+uMtPCH7SP8L9yXgqcAFqc= 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:from :to:cc:subject:date:message-id; s=default; bh=HiGVuCrEvWoj8aqQZP b+Zq57/Fs=; b=jFNmg4nVrOeI8Zsd3WLkJdvk/wQIF5EMk3GyiaYc096zrF6fNX GDftgu8UT6neOOsxPXPdg2SNbQO7Xhz7pd+JXuRDJ0kfPoPoZ8P3JG0f/ldHApks 6/EOiuns4XWeGPyoSfizthHK5cDeGjPPxqksCTkxViG3LuGErXBO8A7hg= Received: (qmail 12549 invoked by alias); 23 Feb 2015 02:28:21 -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 12534 invoked by uid 89); 23 Feb 2015 02:28:20 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.0 required=5.0 tests=AWL, BAYES_00, T_RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: gcc1-power7.osuosl.org Received: from gcc1-power7.osuosl.org (HELO gcc1-power7.osuosl.org) (140.211.15.137) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-GCM-SHA384 encrypted) ESMTPS; Mon, 23 Feb 2015 02:28:19 +0000 Received: from gcc1-power7.osuosl.org (localhost [127.0.0.1]) by gcc1-power7.osuosl.org (8.14.6/8.14.6) with ESMTP id t1N2SER3009221; Sun, 22 Feb 2015 18:28:14 -0800 Received: (from segher@localhost) by gcc1-power7.osuosl.org (8.14.6/8.14.6/Submit) id t1N2S9Gn006616; Sun, 22 Feb 2015 18:28:09 -0800 From: Segher Boessenkool To: gcc-patches@gcc.gnu.org Cc: Segher Boessenkool Subject: [PATCH] libgcc: Don't use "unused" in gthr-single.h Date: Sun, 22 Feb 2015 18:28:03 -0800 Message-Id: <412f749ad6a8a240748a580e7f01fb641be5ce44.1424657530.git.segher@kernel.crashing.org> X-IsSubscribed: yes Header files shouldn't use identifiers in the application namespace. gth-single.h does however; this makes the libstdc++ testsuite all_attributes.cc fail for targets without software threads. Is this okay for mainline? And 4.9, 4.8? Segher 2015-02-22 Segher Boessenkool libgcc/ * gthr-single.h: Use __unused__ instead of unused. --- libgcc/gthr-single.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libgcc/gthr-single.h b/libgcc/gthr-single.h index f084fe2..bddded4 100644 --- a/libgcc/gthr-single.h +++ b/libgcc/gthr-single.h @@ -38,7 +38,7 @@ typedef int __gthread_recursive_mutex_t; #define __GTHREAD_MUTEX_INIT_FUNCTION(mx) #define __GTHREAD_RECURSIVE_MUTEX_INIT 0 -#define UNUSED __attribute__((unused)) +#define UNUSED __attribute__((__unused__)) #ifdef _LIBOBJC