This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
[libgfortran,committed] Have libgfortran.h include <stdarg.h>
- From: FX Coudert <fxcoudert at gmail dot com>
- To: GFORTRAN list <fortran at gcc dot gnu dot org>, GCC-patches list <gcc-patches at gcc dot gnu dot org>
- Date: Mon, 30 Jul 2007 14:05:02 +0100
- Subject: [libgfortran,committed] Have libgfortran.h include <stdarg.h>
- Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=BAXPQTiGdDieRjiO+BJszPIKVeShhrGVW/nN5r2o01g/2EmW4QVV0o+17zdY38aIQDQdaS0VJZgukiPt1e3FQ6WDoVxruiUHzq7ZtPMkDExM4K4JJjs8H6wdux77wZvuxI6+YdqB7STw007WE7EcKXI8RJC8wN4zEwqOTp4o5fc=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=Eu779OMQBaaOuZB/wbyKxP/R9Tc7hE9JY2aO0mXqRseuJiypNLqn9j0RO89aIcbZ+e1YNPg2ZQ297VWSL8qDWz68uACIziKTa7oHS6WJASX/tAWNGpSNueqscBzdT5fOW9H2kY3ttTSqbGqyXKl1djfDUabHh2FDoFYtkZGsmNA=
This patch, committed as rev. 127060, fixes bootstrap on i386-pc-
minw32; without including <stdarg.h>, compilation of the library
fails with gfortran choking on the st_vprintf prototype, which
contains va_list (although I wondered why it doesn't appear on
linux). Committed after bootstrap on both i386-mingw32 and i686-linux.
FX
Index: ChangeLog
===================================================================
--- ChangeLog (revision 127059)
+++ ChangeLog (working copy)
@@ -1,3 +1,7 @@
+2007-07-30 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ * libgfortran.h: Include <stdarg.h>.
+
2007-07-29 Thomas Koenig <tkoenig@gcc.gnu.org>
PR libfortran/32858
Index: libgfortran.h
===================================================================
--- libgfortran.h (revision 127059)
+++ libgfortran.h (working copy)
@@ -35,6 +35,7 @@ Boston, MA 02110-1301, USA. */
#include <math.h>
#include <stddef.h>
#include <float.h>
+#include <stdarg.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327