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

Wolfgang Denk wd at denx.de
Sun Jul 12 16:36:07 CEST 2009


Dear Jean-Christophe PLAGNIOL-VILLARD,

In message <20090712120655.GA21713 at game.jcrosoft.org> you wrote:
>
> > 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.
> They do fix what they are suppose to , fix FPU and EABI problem which was
> re-introduce by the 64 bit mtd support
> here the problem is different you try to div64 which is not supported on arm
> you do need to do_div

What do you mean - not supported by ARM?  Of course ARM supports 64
bit division.

Compiling this little test code:

	long long div(long long x, long long y)
	{
	        return x / y;
	}

will result in a call to  __aeabi_ldivmod  using  an  EABI  compliant
version  of  GCC,  resp.  to __divdi3 using an older compiler. So GCC
knows how to handle this, and it provides adequate  functions  to  do
it.

> please apply this patch so I'll be able to send a pull request with the arm
> specific part and other patch be go in vacancy for one week this night

I really hesitate to do that. It seems that not  using  the  compiler
provided library is not such a clever thing to do. The compile writes
probably  know  better  what  a  specific  version  of GCC needs that
anybody else.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
The more complex the mind, the greater the need for the simplicity of
play.
	-- Kirk, "Shore Leave", stardate 3025.8


More information about the U-Boot mailing list