On Thu, Oct 29, 2009 at 2:38 AM, Stefan Reinauer <[email protected]>wrote:

> Myles Watson wrote:
> > Signed-off-by: Myles Watson <[email protected] <mailto:[email protected]
> >>
> >
> > Thanks,
> > Myles
> I wouldn't move those, ... they're never ever going to be called by
> anyone. (explicitly)
>
How about this, then.  Either way silences these warnings:

src/lib/gcc.c:30: warning: no previous prototype for '__wrap___divdi3'
src/lib/gcc.c:31: warning: no previous prototype for '__wrap___udivdi3'
src/lib/gcc.c:32: warning: no previous prototype for '__wrap___moddi3'
src/lib/gcc.c:33: warning: no previous prototype for '__wrap___umoddi3'

Signed-off-by: Myles Watson <[email protected]>

Thanks,
Myles
Index: svn/src/lib/gcc.c
===================================================================
--- svn.orig/src/lib/gcc.c
+++ svn/src/lib/gcc.c
@@ -22,9 +22,9 @@
  * compiler call specifies. Therefore we need a wrapper around those
  * functions. See gcc bug PR41055 for more information.
  */
-
 #define WRAP_LIBGCC_CALL(type, name) \
 	type __real_##name(type a, type b) __attribute__((regparm(0))); \
+	type __wrap_##name(type a, type b); \
 	type __wrap_##name(type a, type b) { return __real_##name(a, b); }
 
 WRAP_LIBGCC_CALL(long long, __divdi3)
-- 
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to