This is the mail archive of the
mailing list for the GCC project.
Re: PING for PowerPC: Add msingle-pic-base option
- From: Michael Meissner <meissner at linux dot vnet dot ibm dot com>
- To: Joakim Tjernlund <joakim dot tjernlund at transmode dot se>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Mon, 22 Nov 2010 12:43:26 -0500
- Subject: Re: PING for PowerPC: Add msingle-pic-base option
- References: <OFAD9A5580.8A3F765B-ONC12577D0.003A25EC-C12577D0.003A6AE2@transmode.se>
On Wed, Nov 03, 2010 at 11:38:04AM +0100, Joakim Tjernlund wrote:
Please don't use a Mask in the rs6000.opt file, as we are out of bits (or
nearly out of ISA bits). Instead you should use Var to use a separate
variable. This way it won't cause extra pressure on the ISA bits, and possibly
break some ports.
While this option isn't likely to be used in a target attribute, you probably
should add a Save option, just in case.
I didn't see any patches to doc/invoke.texi to document this new option.
> and a mini ping for powerpc: Support -fpic too with mrelocatable
I haven't looked at -mrelocatable in 10+ years, but the original motivation for
it was it was added in the early days of the eABI compiler before -fpic was
added to the PowerPC compiler, and a client needed a simple method of having
his/her code relocated. What would -fpic -mrelocatable do that that either
-mrelocatable or -fpic alone already does not do? If people are still using
-mrelocatable, perhaps it is time to teach the embedded ports about doing full
pic, and migrate to that.
Michael Meissner, IBM
5 Technology Place Drive, M/S 2757, Westford, MA 01886-3141, USA
email@example.com fax +1 (978) 399-6899