This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
DI support in libgcc2
- From: "Hartmut Schirmer" <hartmut dot schirmer at arcor dot de>
- To: <gcc at gcc dot gnu dot org>
- Date: Fri, 19 Jul 2002 14:33:55 +0200
- Subject: DI support in libgcc2
Hi,
Several functions in libgcc2.c call __negdi2 even if
the target supports negating a DI.
I tried this hack for i386 with gcc 3.1
#include "insn-flags.h"
DWtype
__negdi2 (DWtype u)
{
#if HAVE_negdi2
return -u;
#else
...
to get an optimized version. The same could be done
for other support routines (shifting, mul, mod, ...)
Is this the right way to go ?
Hartmut