From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28692 invoked by alias); 24 Jun 2014 19:36:48 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 28682 invoked by uid 89); 24 Jun 2014 19:36:47 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 24 Jun 2014 19:36:47 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WzWWH-00075r-Ld from Iain_Sandoe@mentor.com ; Tue, 24 Jun 2014 12:36:41 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Tue, 24 Jun 2014 12:36:41 -0700 Received: from [127.0.0.1] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.2.247.3; Tue, 24 Jun 2014 20:36:40 +0100 Subject: Re: Another AIX Bootstrap failure MIME-Version: 1.0 (Apple Message framework v1283) Content-Type: text/plain; charset="us-ascii" From: Iain Sandoe In-Reply-To: <20140623173633.GA2676@kam.mff.cuni.cz> Date: Tue, 24 Jun 2014 19:36:00 -0000 CC: Dominique Dhumieres , Content-Transfer-Encoding: quoted-printable Message-ID: <5BF1AF63-5D45-4CA4-9601-09E0D94EA066@codesourcery.com> References: <20140623164855.A8D52105@mailhost.lps.ens.fr> <20140623173633.GA2676@kam.mff.cuni.cz> To: Jan Hubicka X-SW-Source: 2014-06/txt/msg01932.txt.bz2 Hi Honza, On 23 Jun 2014, at 18:36, Jan Hubicka wrote: >> The tests gcc.dg/globalalias-2.c and gcc.dg/localalias-2.c fail on darwi= n with >>=20 >> /opt/gcc/work/gcc/testsuite/gcc.dg/globalalias-2.c:20:2: warning: alias = definitions not supported in Mach-O; ignored >>=20 >> I think they should be protected by >>=20 >> /* { dg-require-alias "" } */ >=20 > I see, the anoying property of dg.exp where we compile the additional sou= rces separately, too. Will fix that. > Is it really the case that Mach-O have no way of creating alias, even by = putting alternative symbol into the > source as we intend to do for AIX? The status is this:=20 There is a symbol flag in Mach-O (N_INDR) that would permit marking one sym= bol as an alias of another. At present, this is ignored by ld64 (and not emitted by cctools-as) [although, ironically, it used to be acted on in the ancient ld_classic of = ~2004 vintage] Fortunately, it seems that the darwin/OSX community within llvm is interest= ed in having support for this functionality which is Good News, since witho= ut ld64 suppport, it would make maintaining it for future systems very diff= icult. The statement is "it's on the TODO, but not a high priority". ---- For any darwin < 13 (or maybe even 14) it would mean that we would have to = roll our own implementation. Actually, I am quite close to having both GAS ports and a more generally bu= ildable ld64 version - so rolling our own is really a possibility.=20=20 However, as I'm sure you know, Darwin stuff on GCC/GAS is on a volunteer ba= sis, so it's difficult to say in which decade the support might appear ;) cheers Iain