This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Could not build libstdc++-v3 with --target=sh-elf
- To: gcc-patches at gcc dot gnu dot org
- Subject: Re: Could not build libstdc++-v3 with --target=sh-elf
- From: Alexandre Oliva <oliva at lsd dot ic dot unicamp dot br>
- Date: 07 Jan 2001 09:30:27 -0200
- Cc: amylaar at redhat dot com
- References: <orofxjlmnr.fsf@guarana.lsd.ic.unicamp.br>
On Jan 7, 2001, Alexandre Oliva <aoliva@redhat.com> wrote:
> Since we're going to split med_cbranches anyway (maybe we shouldn't?),
> we shouldn't let fixup_pcload take the size of a med_cbranch into
> account.
> I'm checking this in right now, but I'd appreciate some feedback from
> you, Joern.
Fortunately, I couldn't check the patch in at that time. Further
investigation revealed that the patch was not enough for SH4. The
problem was that we were not taking the additional alignment inserted
after the unconditional branch resulting from the cbranch split.
Here's a patch that actually fixes the problem. I'll try to check
this in now.
Index: gcc/ChangeLog
from Alexandre Oliva <aoliva@redhat.com>
* config/sh/sh.c (sh_insn_length_adjustment): Take alignment of
barrier after to-be-split conditional branch into account.
--
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