Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 May 1996 13:08:29 +0200 (MET DST)
From:      grog@lemis.de (Greg Lehey)
To:        gpalmer@FreeBSD.org (Gary Palmer)
Cc:        hackers@FreeBSD.org, scrappy@ki.net
Subject:   Re: I HATE OPTIMISING COMPILERS
Message-ID:  <199605291108.NAA20309@allegro.lemis.de>
In-Reply-To: <13116.833311188@palmer.demon.co.uk> from "Gary Palmer" at May 28, 96 08:19:48 pm

next in thread | previous in thread | raw e-mail | index | archive | help
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?

Greg



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605291108.NAA20309>