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]

Re: Splitting call_insns


On Nov 24, 2000, Richard Henderson <rth@redhat.com> wrote:

> On Thu, Nov 23, 2000 at 12:15:59PM -0200, Alexandre Oliva wrote:

>> However, we won't do PC-relative calls if optimization isn't
>> enabled, because otherwise the intermediate call pattern would
>> be split too late.

> I think you'd be better off running split_all_insns at the 
> beginning of machine_dependent_reorg than have two methods
> of call generation.

Well, we already use the alternate call generation mechanism for
non-PIC and for SH1 code, so it's no big deal to keep it.  And then,
claiming that using the PLT for a call is an optimization is
defensible :-)

But I'll look into splitting insns at machine_dependent_reorg()
entry.  Probably only if optimize == 0.

Meanwhile, I'm checking in the bug fix as-is.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

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