libssp only checks for alloca.h header for alloca(), but mingw headers define it in malloc.h. this results in the following warning: ../../../gcc-svn/libssp/ssp.c: In function 'fail': ../../../gcc-svn/libssp/ssp.c:109: warning: implicit declaration of function 'alloca' ../../../gcc-svn/libssp/ssp.c:109: warning: incompatible implicit declaration of built-in function 'alloca' Atached patch fixes it.
Created attachment 17221 [details] libssp alloca patch for mingw
http://gcc.gnu.org/ml/gcc-patches/2009-03/msg00636.html
Subject: Bug 39062 Author: ktietz Date: Mon Apr 13 10:37:17 2009 New Revision: 146000 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=146000 Log: 2009-04-13 Ozkan Sezer <sezeroz@gmail.com> PR target/39062 * ssp.c: Also include malloc.h for alloca(). MinGW needs it. * configure.ac: Also check for malloc.h. * configure: Regenerated. * config.h.in: Regenerated. Modified: trunk/libssp/ChangeLog trunk/libssp/config.h.in trunk/libssp/configure trunk/libssp/configure.ac trunk/libssp/ssp.c
Applied to 4.5 at revision 146000.