From patchwork Tue Mar 26 15:25:31 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Philip Belemezov X-Patchwork-Id: 231418 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 195992C007C for ; Wed, 27 Mar 2013 02:45:03 +1100 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:in-reply-to :references:date:from:to; q=dns; s=default; b=coD4t9JgI3uXQ5vERl hAP8IFQiPxczr8AtCAOBfvL8aaKBZ9f6iLModus+JASLR8yyvLy11ONcBs0fwlzT PL+t+xveVYdfwskikEVwVK7K0IQCRCWaBvl3Cc/pL2ZcQp7pNdcmnNmdPQrr4aD9 yuci9cvpY6mffHaSnSfVax7CM= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:content-type:mime-version :content-transfer-encoding:subject:message-id:in-reply-to :references:date:from:to; s=default; bh=zetE6toueM1iXUIF2+CGUmFi vQw=; b=KxWI8jbcellRdIZn5sjN8lJqAyyZWK28I24aJxLleQ/s9ysv3lqBib0W vgIqzSOi8QOx437eHqHC5NZu8riTDbdRtqgihnukDJ/6QY+qsexfx56qi4gqkowb NsviqQGWlQ5/2Il89XPyf+viHHrjIb0/slvOcuRLlbk0v8CWgZk= Received: (qmail 8045 invoked by alias); 26 Mar 2013 15:28:01 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 7846 invoked by uid 89); 26 Mar 2013 15:27:54 -0000 X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, TW_FC autolearn=ham version=3.3.1 Received: from mail-bk0-f45.google.com (HELO mail-bk0-f45.google.com) (209.85.214.45) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 26 Mar 2013 15:27:52 +0000 Received: by mail-bk0-f45.google.com with SMTP id j10so662873bkw.32 for ; Tue, 26 Mar 2013 08:27:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:content-type:mime-version:content-transfer-encoding :subject:x-mercurial-node:message-id:in-reply-to:references :user-agent:date:from:to:x-gm-message-state; bh=7zUlh1dbd5nr69/Y2nlDJckDC/VtlL8pQFGmvWCc7Kk=; b=hTF2zPr9466aDlyBAP+jvStDNF1209OWs9nQgSX12zW75VvdvsKLtrd2etOZf5kyKy ebjEKqw3HTQSLiW9YRZs91oGCjHTF02QAwQwuwTmgYpTMqsKcb9Gnzz7puDAwrLBXhCq rjHKQL79TkdFj7lUKxgBBtZCwMwIbb+FRI5dpEyAeakspYXcgsYL2YKrHAhtQnQHu0aL FAxF+nzBkkriJBtGh6L6WjpxJE6o8aGhgWuqVcVWWlU3tw8EPTienTg+L2WcOca2ETmv 62pWsyKT1Ei1FaxqILX9ydNCV1jfT4mjNY7TddkGqF3KRdZINKkwBPjd10nQZjlkUv0l x+XQ== X-Received: by 10.204.170.202 with SMTP id e10mr7541939bkz.41.1364311669673; Tue, 26 Mar 2013 08:27:49 -0700 (PDT) Received: from ([212.36.1.26]) by mx.google.com with ESMTPS id r17sm4206963bkw.21.2013.03.26.08.27.48 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 26 Mar 2013 08:27:48 -0700 (PDT) MIME-Version: 1.0 Subject: [PATCH 1 of 2] libc/eglibc: [OS X] Don't Use __block as a Name of an Argument X-Mercurial-Node: fcdf7fc7fd1c00715c3d9651ff00d805ecfb8aa8 Message-Id: In-Reply-To: References: User-Agent: Mercurial-patchbomb/2.5.2 Date: Tue, 26 Mar 2013 17:25:31 +0200 From: Philip Belemezov To: crossgcc@sourceware.org X-Gm-Message-State: ALoCoQnh6vqqJHe7WlwX93HwM4l+lMqQlcrk0kG/Xvvg3ZCIMLrtWV1Rh2yZGVrbfd64VtoVqF6k # HG changeset patch # User Philip Belemezov # Date 1364300812 -7200 # Node ID fcdf7fc7fd1c00715c3d9651ff00d805ecfb8aa8 # Parent 0fc56e62cecf07e4cdaf866ee24d6893c4ade436 libc/eglibc: [OS X] Don't Use __block as a Name of an Argument Apple's GCC defines __block as #define __block __attribute__((__blocks__(byref))) which causes compilation to fail (attribute cannot be applied to argument). Signed-Off-By: Philip Belemezov --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 0fc56e62cecf -r fcdf7fc7fd1c patches/eglibc/2_17/fix_param_name_obstack_free.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/patches/eglibc/2_17/fix_param_name_obstack_free.patch Tue Mar 26 14:26:52 2013 +0200 @@ -0,0 +1,16 @@ +Don't use __block, because Apple's GCC already defines it as + +#define __block __attribute__((__blocks__(byref))) + +diff -Naur eglibc-2_17-orig/malloc/obstack.h eglibc-2_17-new/malloc/obstack.h +--- eglibc-2_17-orig/malloc/obstack.h 2012-02-18 04:24:59.000000000 +0200 ++++ eglibc-2_17-new/malloc/obstack.h 2013-03-26 12:36:50.000000000 +0200 +@@ -186,7 +186,7 @@ + void (*) (void *, void *), void *); + extern int _obstack_memory_used (struct obstack *); + +-void obstack_free (struct obstack *__obstack, void *__block); ++void obstack_free (struct obstack *__obstack, void *block); + + + /* Error handler called when `obstack_chunk_alloc' failed to allocate