delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2011/05/23/03:23:55

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: <E1QOPUT-0000ZC-5Q@fencepost.gnu.org>
From: Eli Zaretskii <eliz AT gnu DOT org>
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
Reply-To: djgpp AT delorie DOT com

> From: Jim Michaels <jmichae3 AT yahoo DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Sun, 22 May 2011 21:45:37 -0700 (PDT)
> 
> On May 22, 9:30 pm, Jim Michaels <jmich DOT  DOT  DOT  AT yahoo DOT com> 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)?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019