[U-Boot] [PATCH 1/2 v6] Make libgcc inclusion from common Makefile overridable by platform config file

Mike Frysinger vapier at gentoo.org
Mon Jul 13 20:16:53 CEST 2009


On Monday 13 July 2009 03:36:39 Stefan Roese wrote:
> On Sunday 12 July 2009 12:29:32 Wolfgang Denk wrote:
> > > > Any idea why this still happens *with* libgcc patches? Any idea how
> > > > to fix this? Add __umoddi3 and __udivdi3 to libgcc patch, too?
> > >
> > > I have to admit that I'm not sure why this is the case. But I suggest
> > > that you take a look at Simon's patch sent to the list a few days ago:
> > >
> > > [PATCH 5/8]: Use do_div from div64.h for vsprintf
> > >
> > > This should fix this issue.
> >
> > It will hush up the current errors, but that's actually a  bad  thing
> > here  -  the  errors  are  an indication that Jean-Christophe's patch
> > might not be working as it is supposed to.
>
> From my point of view those two patches address different issues. I just
> noticed that Simon's patch solved some of the current ARM toolchain
> problems as well. That's why I referred to it.
>
> So I think that regardless of this ARM libgcc discussion, we should apply
> Simons patch "[PATCH 5/8]: Use do_div from div64.h for vsprintf" as it uses
> the common do_div() implementation instead of a local version.

correct.  doing 64bit math is expensive and should be avoided.  this is 
another reason the linux kernel includes libgcc -- they dont import many of 
the 64bit math functions because it's so expensive and 99% of the time, it's 
wrong.  when the source uses it, they get link failures right away.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
Url : http://lists.denx.de/pipermail/u-boot/attachments/20090713/0f3bd181/attachment.pgp 


More information about the U-Boot mailing list