From: Julian Seward Date: Thu, 1 Jul 2010 14:50:30 +0000 (+0000) Subject: Give prototypes for the 64-bit integer division replacements, so X-Git-Tag: svn/VALGRIND_3_6_0~239 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=77f742ee156371444c4da5ed5ada8ba634de6923;p=thirdparty%2Fvalgrind.git Give prototypes for the 64-bit integer division replacements, so gcc doesn't complain about the lack thereof. (x86-darwin only). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11206 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index e076386d30..c57a7fd520 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -3087,7 +3087,9 @@ void _start_in_C_darwin ( UWord* pArgc ) #endif -//////////////////////////////////////////////////////////////// +/*====================================================================*/ +/*=== {u,}{div,mod}di3 replacements ===*/ +/*====================================================================*/ /* For static linking on x86-darwin, we need to supply our own 64-bit integer division code, else the link dies thusly: @@ -3378,16 +3380,19 @@ static Long divdi3(Long u, Long v) // ---------------------------- end cut -------------------------------- +ULong __udivdi3 (ULong u, ULong v); ULong __udivdi3 (ULong u, ULong v) { return udivdi3(u,v); } +Long __divdi3 (Long u, Long v); Long __divdi3 (Long u, Long v) { return divdi3(u,v); } +ULong __umoddi3 (ULong u, ULong v); ULong __umoddi3 (ULong u, ULong v) { ULong q = __udivdi3(u, v); @@ -3395,6 +3400,7 @@ ULong __umoddi3 (ULong u, ULong v) return r; } +Long __moddi3 (Long u, Long v); Long __moddi3 (Long u, Long v) { Long q = __divdi3(u, v);