--- Luke Dunstan <coder_infidel@...> wrote: >
> I applied your patches to the gcc-3.1-20020510 prerelease snapshot, and I
> got the following compile errors (during "make bootstrap"):
> ./xgcc -B./ -Bc:/devl/mingw/i686-pc-mingw32/bin/ -isystem
> c:/devl/mingw/i686-pc-mingw32/include -isystem
> c:/devl/mingw/i686-pc-mingw32/sys-include -O2 -I../../gcc-3.1-20020510/gcc/.
> ./winsup/include -I../../gcc-3.1-20020510/gcc/../winsup/cygwin/include -I../
> ../gcc-3.1-20020510/gcc/../winsup/w32api/include -DIN_GCC -W -Wall -Wwrit
> e-strings -Wstrict-prototypes -Wmissing-prototypes -isystem
> ./include -g -DHAVE_GTHR_DEFAULT -DIN_LIBGCC2 -D__GCC_FLOAT_NOT_NEEDED -I
> . -I. -I../../gcc-3.1-20020510/gcc -I../../gcc-3.1-20020510/gcc/. -I../../gc
> c-3.1-20020510/gcc/config -I../../gcc-3.1-20020510/gcc/../include -fexceptio
> ns -c ../../gcc-3.1-20020510/gcc/unwind-dw2.c -o libgcc/./unwind-dw2.o
> In file included from c:/devl/mingw/include/windef.h:155,
> from ../../gcc-3.1-20020510/gcc/gthr-win32.h:335,
> from gthr-default.h:1,
> from ../../gcc-3.1-20020510/gcc/gthr.h:98,
> from ../../gcc-3.1-20020510/gcc/unwind-dw2.c:28:
> c:/devl/mingw/include/winnt.h:1754: parse error before "_ANONYMOUS_STRUCT"
> c:/devl/mingw/include/winnt.h:1757: parse error before '}' token
> c:/devl/mingw/include/winnt.h:1760: parse error before '}' token
> These errors are simply caused by #including windef.h/winbase.h instead of
> windows.h, because as far as I can see, _ANONYMOUS_STRUCT is defined in
> windows.h. As I have been doing previously, I unpacked
> mingw-runtime-2.0-20020430 and w32api-1.3 into the $prefix directory before
> configuring and building. If you have made a few modifications to w32api for
> this purpose then never mind; I will just try "#include <windows.h>" in
> gthr-win32.h. Looking at the preprocessor conditionals in gthr-win32.h,
> would it matter that I am building only the C/C++ language parts (not
Thanks. I've found the bug here in gthr-win32.h. The >= 1003 should be > 1003.
My w32.api is still 1.3 but I've applied some patches in CVS.
#if defined __MINGW32__ || defined __CYGWIN__
#if ((__W32API_MAJOR_VERSION * 1000) \
+ ( __W32API_MINOR_VERSION )) >= 1003
DWORD WINAPI GetLastError(void); /* from winuser.h */
#else /* __W32API */
#endif /* __W32API */
#endif /* __MINGW32__ || __CYGWIN__ */
> By the way, I think you mentioned earlier that you modified mingw-runtime to
> get DWARF2 EH working. Is this necessary with the patches you just posted?
If you configure with --enable-sjlj-exceptions, the old runtime will work, but
using sjlj. I haven't committed the mod's to runtime yet. The critical one is
removal of gccmain.o from libmingw32.a so that the 3.1 __main in libgcc.a gets
I'll post updated patches in morning.
> ----- Original Message -----
> From: "Danny Smith" <danny_r_smith_2001@...>
> To: "Christopher Faylor" <cgf@...>
> Cc: "mingw-dvlpr" <mingw-dvlpr@...>
> Sent: Monday, May 13, 2002 10:37 AM
> Subject: [MinGW-dvlpr] Re: gcc 3.1
> > My patchset is attached. I haven't had time to sort these out by
> > Pick and choose as you wish. One thing to do is add warning if
> > -fnative-struct option seen and point to -mms-bitfields. The DWARF2 patch
> > the least intrusive one I can come up with now. It does work.
> > Danny
> Have big pipes? SourceForge.net is looking for download mirrors. We supply
> the hardware. You get the recognition. Email Us: bandwidth@...
> MinGW-dvlpr mailing list
http://messenger.yahoo.com.au - Yahoo! Messenger
- A great way to communicate long-distance for FREE!