This is the mail archive of the gcc-patches@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: PING for PowerPC: Add msingle-pic-base option


On Wed, Nov 03, 2010 at 11:38:04AM +0100, Joakim Tjernlund wrote:
> 
> http://gcc.gnu.org/ml/gcc-patches/2010-10/msg01677.html

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
>  http://gcc.gnu.org/ml/gcc-patches/2010-10/msg02301.html

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
meissner@linux.vnet.ibm.com	fax +1 (978) 399-6899


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