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: Could not build libstdc++-v3 with --target=sh-elf


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

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