This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] libssp/ssp.c needs malloc.h for mingw


> 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'
>
> The attached trivial patch fixes it.
>
> --
> Ozkan Sezer
>
> PS: this was previously entered as an entry in the gcc bugzilla (39062).
>

The patch in the original mail seems to have missed updating config.h.in,
here is the correct one.

--
Ozkan

Attachment: libssp-alloca.patch
Description: Binary data


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]