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: PowerPC [target/17828] -O2 -fPIC doesn't work with switches in linkonce functions and new binutils


On Tue, Jul 26, 2005 at 10:44:39PM -0400, David Edelsohn wrote:
> 	Can you reuse any of the MINIMAL_TOC functionality?  That option
> is able to create a TOC per function with much less pervasive changes.

Not really.  ABI_V4 doesn't have a global toc pointer register, but
rather sets up the toc pointer on function entry.  Given that model,
it doesn't make sense to use a two-level toc.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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