From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21073 invoked by alias); 9 Dec 2004 16:41:02 -0000 Mailing-List: contact binutils-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: binutils-owner@sources.redhat.com Received: (qmail 21004 invoked from network); 9 Dec 2004 16:40:55 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sourceware.org with SMTP; 9 Dec 2004 16:40:55 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.12.11/8.12.11) with ESMTP id iB9GeoEi003677; Thu, 9 Dec 2004 11:40:55 -0500 Received: from talisman.cambridge.redhat.com (talisman.cambridge.redhat.com [172.16.18.81]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id iB9Genr11944; Thu, 9 Dec 2004 11:40:49 -0500 Received: from talisman.cambridge.redhat.com (localhost.localdomain [127.0.0.1]) by talisman.cambridge.redhat.com (8.13.1/8.12.10) with ESMTP id iB9Gemo4016588; Thu, 9 Dec 2004 16:40:48 GMT Received: (from rsandifo@localhost) by talisman.cambridge.redhat.com (8.13.1/8.12.10/Submit) id iB9GemiI016587; Thu, 9 Dec 2004 16:40:48 GMT X-Authentication-Warning: talisman.cambridge.redhat.com: rsandifo set sender to rsandifo@redhat.com using -f To: Ian Lance Taylor Cc: binutils@sourceware.org Subject: Re: News MIPS option -mno-shared References: <20041209153403.5294.qmail@gossamer.airs.com> From: Richard Sandiford Date: Thu, 09 Dec 2004 16:41:00 -0000 In-Reply-To: <20041209153403.5294.qmail@gossamer.airs.com> (Ian Lance Taylor's message of "9 Dec 2004 10:34:03 -0500") Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-12/txt/msg00099.txt.bz2 Ian Lance Taylor writes: > This patch adds a new option to the MIPS assembler: -mno-shared. > Normally the .cpload pseudo-op generates code which looks like this: > > lui $gp,%hi(_gp_disp) > addiu $gp,$gp,%lo(_gp_disp) > addu $gp,$gp,.cpload argument > > With -mno-shared, the .cpload pseudo-op will generate code that looks > like this: > > lui $gp,%hi(_gp) > addiu $gp,$gp,%lo(_gp) > > The idea is that you can use -KPIC -mno-shared and get code which > still uses the usual Unix calling convention, but is slightly more > efficient at each function entry. Yeah, this has been on my to-do list for a while ;) Are you going to do the same thing for n32 or are you only interested in o32? FWIW, the patch looks good to me if it's o32 only. Richard