|
From: <sv...@va...> - 2010-07-01 14:50:40
|
Author: sewardj
Date: 2010-07-01 15:50:30 +0100 (Thu, 01 Jul 2010)
New Revision: 11206
Log:
Give prototypes for the 64-bit integer division replacements, so
gcc doesn't complain about the lack thereof. (x86-darwin only).
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
===================================================================
--- trunk/coregrind/m_main.c 2010-07-01 14:17:32 UTC (rev 11205)
+++ trunk/coregrind/m_main.c 2010-07-01 14:50:30 UTC (rev 11206)
@@ -3087,7 +3087,9 @@
#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 @@
// ---------------------------- 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 @@
return r;
}
+Long __moddi3 (Long u, Long v);
Long __moddi3 (Long u, Long v)
{
Long q = __divdi3(u, v);
|