Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 1996 12:13:13 -0400 (EDT)
From:      "Marc G. Fournier" <scrappy@ki.net>
To:        Greg Lehey <grog@lemis.de>
Cc:        Gary Palmer <gpalmer@FreeBSD.org>, hackers@FreeBSD.org
Subject:   Re: I HATE OPTIMISING COMPILERS
Message-ID:  <Pine.NEB.3.93.960529121137.7224C-100000@ki.net>
In-Reply-To: <199605291108.NAA20309@allegro.lemis.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, 29 May 1996, Greg Lehey wrote:

> Gary Palmer writes:
> >
> > Well, I certainly do at the minute.
> >
> > Take the following innocuous piece of code:
> >
> >     if (pdu->version == SNMP_DEFAULT_VERSION)
> > 	pdu->version = session->version;
> >
> >     if (pdu->version == SNMP_DEFAULT_VERSION){
> > 	fprintf(stderr, "No version specified\n");
> > 	snmp_errno = SNMPERR_BAD_ADDRESS;
> > 	return 0;
> >}
> >
> > (etc). 
> 
> Well, it looks like what you hate is a broken compiler.  That's not
> optimizing, that's just broken.
> 
> How come you didn't use gdb to follow up the problem?
>
	How do you follow up a problem like this with gdb?  I hadn't
even thought about an optimizing problem when I started to try to
debug this with gdb, but I couldn't find a thing that seemed to
indicate whree the problem lay ...

Marc G. Fournier                                  scrappy@ki.net
Systems Administrator @ ki.net               scrappy@freebsd.org




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.NEB.3.93.960529121137.7224C-100000>