From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21279 invoked by alias); 24 Jan 2013 10:10:03 -0000 Received: (qmail 21208 invoked by uid 22791); 24 Jan 2013 10:10:01 -0000 X-SWARE-Spam-Status: No, hits=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_GJ X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 Jan 2013 10:09:53 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1TyJkn-0004Mj-6p from ChungLin_Tang@mentor.com for libc-ports@sourceware.org; Thu, 24 Jan 2013 02:09:53 -0800 Received: from SVR-ORW-FEM-03.mgc.mentorg.com ([147.34.97.39]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 24 Jan 2013 02:09:52 -0800 Received: from [0.0.0.0] (147.34.91.1) by svr-orw-fem-03.mgc.mentorg.com (147.34.97.39) with Microsoft SMTP Server id 14.1.289.1; Thu, 24 Jan 2013 02:09:51 -0800 Message-ID: <5101086C.2000107@codesourcery.com> Date: Thu, 24 Jan 2013 10:10:00 -0000 From: Chung-Lin Tang User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:17.0) Gecko/20130107 Thunderbird/17.0.2 MIME-Version: 1.0 To: "Joseph S. Myers" CC: "Maciej W. Rozycki" , Subject: Re: [PATCH 2/2] MIPS16: MIPS16 support proper References: In-Reply-To: Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2013-01/txt/msg00047.txt.bz2 On 2013/1/24 01:22 AM, Joseph S. Myers wrote: >> >> > -void >> > -__longjmp (env_arg, val_arg) >> > +static void __attribute__ ((nomips16)) >> > +____longjmp (env_arg, val_arg) >> > __jmp_buf env_arg; >> > int val_arg; >> > { >> > @@ -86,3 +86,5 @@ __longjmp (env_arg, val_arg) >> > /* Avoid `volatile function does return' warnings. */ >> > for (;;); >> > } >> > + >> > +strong_alias (____longjmp, __longjmp); > Why is the renaming / alias needed? > This was because the declaration of __longjmp() in setjmp.h prohibited us from tagging it directly with __attribute__ ((nomips16)) locally; there will be a declaration inconsistent with header error. Chung-Lin