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]

[gfortran,PATCH] alloca() is undeclared in env.c


Paul,

alloca() is declared in stdlib.h not alloca.h on FreeBSD.
In fact, FreeBSD does not have a alloca.h.  This patch
fixes the gfortran build.  You may want to check that I 
changed configure.ac appropriately.

2004-09-15  Steven G. Kargl  <kargls@comcast.net>
 
         * configure.ac: Add test for HAVE_ALLOCA_H
         * intrinsics/env.c: Use it and HAVE_STDLIB_H for alloca().
         * configure: Regenerated.

-- 
Steve

Attachment: env.c.diff
Description: Text document


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