X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Recipient: djgpp AT delorie DOT com Date: Mon, 23 May 2011 03:23:49 -0400 Message-Id: From: Eli Zaretskii To: djgpp AT delorie DOT com In-reply-to: <572246ce-db12-406b-a5da-1fa4272e10e9 AT 17g2000prr DOT googlegroups DOT com> (message from Jim Michaels on Sun, 22 May 2011 21:45:37 -0700 (PDT)) Subject: Re: issue with 4.5.3 beta, 4.5.2 beta References: <1b5aeeeb-ffaa-42ce-88c4-ec8773bcceef AT j13g2000pro DOT googlegroups DOT com> <572246ce-db12-406b-a5da-1fa4272e10e9 AT 17g2000prr DOT googlegroups DOT com> MIME-version: 1.0 Content-type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Reply-To: djgpp AT delorie DOT com > From: Jim Michaels > Newsgroups: comp.os.msdos.djgpp > Date: Sun, 22 May 2011 21:45:37 -0700 (PDT) > > On May 22, 9:30 pm, Jim Michaels wrote: > > I have a program and small library that I recently worked the bugs out > > of to my best understanding. > > I included a lot of debug output using #if defined(_DEBUG). > > that debug ouput is flushed at every instance. > > the library output shows with -g compiler switch, but not without. > > the main program's debug output always shows. > > > > can someone explain this?  I have the #define on in both the library > > file and the main source and the header file. > > I think I am running into a compiler bug. > > > > and this doesn't happen with mingw-w64 (a gnu compiler for windows). > > I should mention, the program throws a SIGSEGV or SIGILL if I execute > the program my normal way (with debug symbols stripped out with -s) > and only 1 argument is partially processed and dies as soon as it hits > the library. > with -g, works perfect. Does the problem go away if you compile with another version of GCC, but still in the DJGPP environment (as opposed to MinGW)?