* configure.ac: Check for __ctzdi2 and __ctzsi2.
* include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
This commit is contained in:
parent
366e34fa5a
commit
2afb7f6cbf
3 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* configure.ac: Check for __ctzdi2 and __ctzsi2.
|
||||||
|
* include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
|
||||||
|
|
||||||
2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
|
2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
Fix few obvious type discrepancies.
|
Fix few obvious type discrepancies.
|
||||||
|
|
|
@ -587,7 +587,7 @@ CFLAGS="$CFLAGS -Wl,--defsym,abort=main"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check for libgcc symbols
|
# Check for libgcc symbols
|
||||||
AC_CHECK_FUNCS(__bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x __ia64_trampoline __udivsi3 __umoddi3 __udivdi3 __divsi3 __modsi3 __umodsi3 __moddi3 __divdi3)
|
AC_CHECK_FUNCS(__bswapsi2 __bswapdi2 __ashldi3 __ashrdi3 __lshrdi3 __trampoline_setup __ucmpdi2 _restgpr_14_x __ia64_trampoline __udivsi3 __umoddi3 __udivdi3 __divsi3 __modsi3 __umodsi3 __moddi3 __divdi3 __ctzdi2 __ctzsi2)
|
||||||
|
|
||||||
if test "x$TARGET_APPLE_CC" = x1 ; then
|
if test "x$TARGET_APPLE_CC" = x1 ; then
|
||||||
CFLAGS="$TARGET_CFLAGS -nostdlib"
|
CFLAGS="$TARGET_CFLAGS -nostdlib"
|
||||||
|
|
|
@ -63,6 +63,12 @@ void EXPORT_FUNC (__divsi3) (void);
|
||||||
# ifdef HAVE___MODSI3
|
# ifdef HAVE___MODSI3
|
||||||
void EXPORT_FUNC (__modsi3) (void);
|
void EXPORT_FUNC (__modsi3) (void);
|
||||||
# endif
|
# endif
|
||||||
|
# ifdef HAVE___CTZDI2
|
||||||
|
void EXPORT_FUNC (__ctzdi2) (void);
|
||||||
|
# endif
|
||||||
|
# ifdef HAVE___CTZSI2
|
||||||
|
void EXPORT_FUNC (__ctzsi2) (void);
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
# ifdef HAVE___IA64_TRAMPOLINE
|
# ifdef HAVE___IA64_TRAMPOLINE
|
||||||
|
|
Loading…
Reference in a new issue