This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
emutls.c: warnings on master
- From: Joel Sherrill <joel dot sherrill at oarcorp dot com>
- To: GCC Mailing List <gcc at gcc dot gnu dot org>
- Date: Mon, 3 Aug 2015 13:40:58 -0500
- Subject: emutls.c: warnings on master
- Authentication-results: sourceware.org; auth=none
Hi
I saw these warnings in the build of some RTEMS targets on
the gcc head.
/home/joel/test-gcc/gcc/libgcc/emutls.c:159:7: warning: implicit declaration of function 'calloc' [-Wimplicit-function-declaration]
/home/joel/test-gcc/gcc/libgcc/emutls.c:159:13: warning: incompatible implicit declaration of built-in function 'calloc'
/home/joel/test-gcc/gcc/libgcc/emutls.c:171:7: warning: implicit declaration of function 'realloc' [-Wimplicit-function-declaration]
/home/joel/test-gcc/gcc/libgcc/emutls.c:171:13: warning: incompatible implicit declaration of built-in function 'realloc'
What magic is needed so emutls.c includes <stdlib.h>?
--joel