This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH mingw32 Another change to allow mainline to bootstrap.
- From: "Aaron W. LaFramboise" <aaronblue6 at cox-internet dot com>
- To: gcc-patches at gcc dot gnu dot org
- Cc: dannysmith at users dot sourceforge dot net
- Date: Mon, 31 May 2004 11:56:17 -0500
- Subject: PATCH mingw32 Another change to allow mainline to bootstrap.
Sorry, I missed one.
Fixes this warning. While PCH does not yet work on mingw, it's probably
worth
making this warning go away anyhow so we can bootstrap with -Werror.
stage1/xgcc.exe -Bstage1/ -B/usr/i686-pc-mingw32/bin/ -c -g -O2
-DIN_GCC -W -Wall -Wwrite-strings -Wstrict-prototypes
-Wmissing-prototypes -pedantic -Wno-long-long -Wno-variadic-macros
-Wold-style-definition -Werror -fno-common -DHAVE_CONFIG_H -I. -I.
-I../../../../../src/cvs/mainline/gcc/gcc
-I../../../../../src/cvs/mainline/gcc/gcc/.
-I../../../../../src/cvs/mainline/gcc/gcc/../include
-I../../../../../src/cvs/mainline/gcc/gcc/../libcpp/include
-I../../../../../src/cvs/mainline/gcc/gcc/../libbanshee/libcompat
-I../../../../../src/cvs/mainline/gcc/gcc/../libbanshee
-I../../../../../src/cvs/mainline/gcc/gcc/../libbanshee/points-to
../../../../../src/cvs/mainline/gcc/gcc/ggc-common.c -o ggc-common.o
../../../../../src/cvs/mainline/gcc/gcc/ggc-common.c: In function
`gt_pch_save':
../../../../../src/cvs/mainline/gcc/gcc/ggc-common.c:434: warning:
implicit declaration of function 'getpagesize'
2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
* ggc.h: Prototype getpagesize on Windows.
Index: gcc/gcc/ggc.h
===================================================================
RCS file: /cvsroot/gcc/gcc/gcc/ggc.h,v
retrieving revision 1.66
diff -c -3 -p -r1.66 ggc.h
*** gcc/gcc/ggc.h 3 Mar 2004 11:25:48 -0000 1.66
--- gcc/gcc/ggc.h 28 May 2004 11:26:16 -0000
*************** Software Foundation, 59 Temple Place - S
*** 21,26 ****
--- 21,32 ----
#ifndef GCC_GGC_H
#define GCC_GGC_H
+
+ /* Windows: prototype getpagesize, defined in libgcc2.c */
+ #if defined(WINNT) && ! defined(__CYGWIN__) && ! defined (_UWIN)
+ extern long getpagesize (void);
+ #endif /* WINNT && ! __CYGWIN__ && ! _UWIN */
+
#include "statistics.h"
/* Symbols are marked with `ggc' for `gcc gc' so as not to interfere with
Aaron W. LaFramboise