This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: %pc relative addressing of string literals/const data


Joakim Tjernlund/Transmode wrote on 2010/10/09 18:32:40:
> 
> Michael Meissner <meissner@linux.vnet.ibm.com> wrote on 2010/10/07 
20:21:38:
> > 
> > On Thu, Oct 07, 2010 at 04:50:50PM +0200, Joakim Tjernlund wrote:
> > > Why not offer some of this on PowerPC32? mcmodel=small would 
probably be enough.
> > 
> > Well as they say, contributions are welcome.  Note, 32-bit mode 
doesn't need

> A first contribution, support msingle-pic-base on ppc.
> 
> From b418def9575d6ea3698077888157ae52631e52f3 Mon Sep 17 00:00:00 2001
> From: Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
> Date: Sat, 9 Oct 2010 12:45:39 +0200
> Subject: [PATCH] PowerPC: Add msingle-pic-base option.
> 
> Do not generate PIC prolougue.

This works great with -fpic but not with -fPIC. Any ideas why
and how it can be made to work for -fPIC too?

      Jocke


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]