libmudflap
Eyal Lebedinsky
eyal@eyal.emu.id.au
Fri Apr 25 13:06:00 GMT 2003
Eyal Lebedinsky wrote:
>
> Now that I am adding many wrapper functions, I note that there are
> a large number of compile warnings even in the vanilla build:
>
> ../../../gcc/libmudflap/mf-runtime.c:1821: warning: implicit declaration
> of function `__wrap_alloca'
[trimmed]
> These relate to two issues
> 1) the library is built with strict rules, so non-posix funcs
> are not prototyped.
> 2) some wrappers refer to other wrappers using CALL_WRAP() and
> no prototype is present for the callee.
OK, I figured the main problem here - the Makefile specifies '-ansi'.
Removing it fixes the simple problems.
strnlen(), memmem() and memrchr() need "#define _GNU_SOURCE"
for <string.h> which is probably missing.
The reference to __wrap_alloca() is really unprototyped and
mf-runtime.c needs fixing.
--
Eyal Lebedinsky (eyal@eyal.emu.id.au) <http://samba.org/eyal/>
More information about the Gcc
mailing list