This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: m68k PIC fixes
Richard Henderson wrote:
> On Tue, Apr 12, 2005 at 10:53:47AM -0400, Daniel Jacobowitz wrote:
>
>>- else if ((flag_pic == 1) || TARGET_68020)
>>+ else if (TARGET_68020)
>> #if defined(USE_GAS)
>> out = "bsr.l %0@PLTPC";
>
> I wonder if the intent with -fpic was to use the 16-bit offset?
Actually, we'd better split it like this:
else if (flag_pic == 1)
out = "bsr.w %0@PLTPC";
else if (TARGET_68020)
out = "bsr.l %0@PLTPC";
BTW, why is libiberty built with -fpic on the m68k?
Wouldn't -fPIC be more appropriate and safer?
Today, -fpic has lost much of its applicability outside
tiny embedded systems.
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/