Bug 39062 - libssp/ssp.c needs malloc.h for mingw
Summary: libssp/ssp.c needs malloc.h for mingw
Status: RESOLVED FIXED
Alias: None
Product: gcc
Classification: Unclassified
Component: other (show other bugs)
Version: 4.4.0
: P3 trivial
Target Milestone: ---
Assignee: Not yet assigned to anyone
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-02-01 16:46 UTC by Ozkan Sezer
Modified: 2009-04-13 10:38 UTC (History)
3 users (show)

See Also:
Host:
Target: x86_64-pc-mingw32
Build:
Known to work:
Known to fail:
Last reconfirmed: 2009-02-21 09:50:34


Attachments
libssp alloca patch for mingw (587 bytes, patch)
2009-02-01 16:47 UTC, Ozkan Sezer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ozkan Sezer 2009-02-01 16:46:26 UTC
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.
Comment 1 Ozkan Sezer 2009-02-01 16:47:22 UTC
Created attachment 17221 [details]
libssp alloca patch for mingw
Comment 3 Kai Tietz 2009-04-13 10:37:31 UTC
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

Comment 4 Kai Tietz 2009-04-13 10:38:25 UTC
Applied to 4.5 at revision 146000.