This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Splitting call_insns
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: Splitting call_insns
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 25 Nov 2000 02:26:14 -0200
- Cc: gcc-patches at gcc dot gnu dot org, NIIBE Yutaka <gniibe at chroot dot org>
- Organization: GCC Team, Red Hat
- References: <ork89uvko0.fsf@guarana.lsd.ic.unicamp.br><20001124153316.C23326@redhat.com>
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