From patchwork Fri Jul 3 11:16:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Carlos_S=C3=A1nchez_de_La_Lama?= X-Patchwork-Id: 490994 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 D477E1402BD for ; Fri, 3 Jul 2015 21:06:53 +1000 (AEST) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b=NeLZYeVG; dkim-atps=neutral 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:subject:date:message-id:mime-version:content-type; q=dns; s= default; b=HtlrfYT3X+D2x18H7XedddCl/cz6WNsVK9MpeqN/5s3OJQVN36jAB ZfSF2CjYZ70boShbw3BDm6MaWA6M3Md+pFGRhaRTS0kqzMNb4obhJeU0F06ICd+L wIyMrFlTcBOOfMh/qVQgGciobJM9nqnD3uiKptrcutiMcES9K6kJhM= 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:subject:date:message-id:mime-version:content-type; s= default; bh=R+uyseKQw47pEirYau2rigJ8+Pk=; b=NeLZYeVGPPJNPgshzkhh ejHIbgYGg0cwhYUNDYQWdVEUFbT5BKx6hcVMNUiodRJS55c6t/YEax+6Y1axR8vg FZGzJA7Bm1VZeNjTWH5Qm2K2rBBdQOezT3Ay1UHUoNzHeMJgOZYNWZnpc4LllzkF hqI3Si+9wisrvJOXrTDLrQU= Received: (qmail 86698 invoked by alias); 3 Jul 2015 11:06:46 -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 86688 invoked by uid 89); 3 Jul 2015 11:06:45 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wi0-f182.google.com Received: from mail-wi0-f182.google.com (HELO mail-wi0-f182.google.com) (209.85.212.182) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 03 Jul 2015 11:06:44 +0000 Received: by wibdq8 with SMTP id dq8so97285033wib.1 for ; Fri, 03 Jul 2015 04:06:41 -0700 (PDT) X-Received: by 10.194.200.73 with SMTP id jq9mr19586535wjc.52.1435921601900; Fri, 03 Jul 2015 04:06:41 -0700 (PDT) Received: from ibook-g4-de-carlos-sanchez-de-la-lama.local (19.Red-80-38-102.staticIP.rima-tde.net. [80.38.102.19]) by mx.google.com with ESMTPSA id a6sm12827753wjy.33.2015.07.03.04.06.40 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Jul 2015 04:06:41 -0700 (PDT) From: csanchezdll@gmail.com (Carlos =?utf-8?Q?S=C3=A1nchez?= de La Lama) To: gcc-patches@gcc.gnu.org Subject: Fix PR52482, libitm compilation in OSX ppc with old cctools Date: Fri, 03 Jul 2015 13:16:24 +0200 Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) MIME-Version: 1.0 Hi all, PR52482 seems to be cause by old gas not supporting named parameters in macros. Xcode-2.5 (last available for OSX PPC) gas version is 1.38. Patch is against gcc-4.8.4, but affected lines have not changed in SVN HEAD. BR Carlos diff -ur gcc-4.8.4.old/libitm/config/powerpc/sjlj.S gcc-4.8.4/libitm/config/powerpc/sjlj.S --- gcc-4.8.4.old/libitm/config/powerpc/sjlj.S 2014-04-04 16:17:55.000000000 +0200 +++ gcc-4.8.4/libitm/config/powerpc/sjlj.S 2015-07-03 11:34:23.000000000 +0200 @@ -83,16 +83,16 @@ bl \name .endm #elif defined(_CALL_DARWIN) -.macro FUNC name +.macro FUNC .globl _$0 _$0: .endmacro -.macro END name +.macro END .endmacro -.macro HIDDEN name +.macro HIDDEN .private_extern _$0 .endmacro -.macro CALL name +.macro CALL bl _$0 .endmacro # ifdef __ppc64__