This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Another look at the ARM division routine
- From: "Zack Weinberg" <zack at codesourcery dot com>
- To: Richard dot Earnshaw at arm dot com
- Cc: mark at codesourcery dot com, Nicolas Pitre <nico at cam dot org>, Ian Lance Taylor <ian at wasabisystems dot com>, gcc-patches at gcc dot gnu dot org
- Date: Fri, 28 Nov 2003 12:21:51 -0800
- Subject: Re: Another look at the ARM division routine
- References: <200311122034.hACKYC614385@pc960.cambridge.arm.com>
Richard Earnshaw <rearnsha@arm.com> writes:
> There is a trick you can play, but I'm not sure if GCC's build system will
> support it. It relies on constructing your archive files quite carefully.
>
> Basically, you build both versions of __divsi3, one small and one fast.
> In the small one you make the definition of __divsi3 weak. In the fast
> one you make it strong, and also add a symbol definition, say
> __fast_divsi3.
Another approach would be to have __divsi3_big and __divsi3_small, in
different modules of libgcc.a, then have TARGET_INIT_LIBFUNCS rename
the __divsi3 libfunc based on optimize_size.
zw