Date: Wed, 4 Feb 1998 17:38:47 -0800 (PST) Message-Id: <199802050138.RAA05586@adit.ap.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" To: "Andrew R. Gillett" , djgpp AT delorie DOT com From: Nate Eldredge Subject: Re: HELP! GCC hangs for no apparent reason! Precedence: bulk At 07:50 2/4/1998 -0800, Andrew R. Gillett wrote: > >I'm writing a game with DJGPP and Allegro, but a few lines are causing >problems: > > >if ( (sprite[bullet_collision_counter].spr_id == BULLET_HORIZONTAL) > || (sprite[bullet_collision_counter].spr_id == BULLET_VERTICAL) > || (game_counter % 2 == 0) ) // doesn't compile with any other value > > >If I change % 2 to % 3, GCC hangs. >Elsewhere in the program, there are two (perfectly normal) lines which are >required for a small but important purpose. GCC gives a General Protection >Fault if these lines are not commented out... >This is what my environment variables look like: [snipped] Interesting. First try this: cd \tools\djgpp\bin stubedit cc1.exe Minimum amount of stack space? If, after doing that, GCC still crashes when compiling, would you please try to reduce the source to the minimum compilable piece that reproduces these problems, and send it to me (NOT the group). Also send me what compiler flags you used, compiler version, whether it's the stock version or one you built, etc. I will try to reproduce it. It's possible this is due to some strange software config issue, or perhaps hardware failure (like bad RAM), or it could be an actual GCC bug. >I've also got the output from GCC, but not in text format, it's a PCX >screenshot (zipped to 6K). I don't know if this group would object to a >binary (even a small one) being posted, so I haven't included it here. I think they would. If you transcribed it to text, that would be fine. Compiling with the `-v' and `-Q' flags might help diagnose the problem, too. Nate Eldredge eldredge AT ap DOT net