This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


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

mingw32 2.8.0 explodes on this code


Hello,

trying to compile bullet (http://www.40th.com, very fast database engine) I
got a compiler exception. Managed to cut the code down to the following -
further trimming removes the problem.

I don't have a cygwin b18 config to test it on - is this a problem with the
GCC code, or just with the mingw32 version?

It happens under 4DOS and COMMAND.COM shells, haven't tried bash.

To see it, just do "gcc -c bang.c".

Any ideas, anyone?

Regards,
Tom.

-------------------------------------------------------

/* bang.c
   module causes illegal instruction error in CC1.EXE
   system: Win95 OSR2 32Mb Dell P II 233 configured for JanJaap's
           mingw32 2.8.0

   based on bd_rixu.c -  4-Oct-1996  Cornel Huth   http://www.40th.com
   Thomas.Nichols@mail.com  1998/01/30  No rights reserved
 */


#define WINDOWS_LEAN_AND_MEAN
#include <windows.h>


int bang(void) {


 // required for bang...
 void bang0 (FIELDDESCTYPE a);

// required for bang ...
LONG APIENTRY bang1 (PVOID b, PVOID c, LONG d, ULONG e);
 return 0;
}

// required for bang --- why??
#if PLATFORM == ON_OS2 || PLATFORM == ON_WIN32

// required for bang...
void APIENTRY bang2(int f) {
}
#endif

// required for bang
LONG APIENTRY bang3 (PVOID g, PVOID h, LONG i, ULONG j) {
    return 0L;
}

/*
"gcc -c bang.c" gives:

CC1 caused an invalid page fault in
module CC1.EXE at 0137:0042f8c6.
Registers:
EAX=0000001d CS=0137 EIP=0042f8c6 EFLGS=00010286
EBX=ffffffff SS=013f ESP=0265f798 EBP=0265f7a8
ECX=00014680 DS=013f ESI=028c5bdc FS=2ad7
EDX=00000962 ES=013f EDI=000229b3 GS=0000
Bytes at CS:EIP:
39 7b 04 0f 85 93 00 00 00 8b 53 08 8a 46 08 38
Stack dump:
028c5bdc 00014680 000229b3 00022996 0265f7c4 0042f9ec 000229b3
028c5bdc 028c5bdc 00014680 0051e1e0 0265f7e0 0042f477 000229b3
028c5bdc 00000000
*/

/* ----------- end -------------------------- */


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


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