Skip site navigation (1)Skip section navigation (2)
Date:      26 Apr 2001 15:53:10 +0200
From:      Dag-Erling Smorgrav <des@ofug.org>
To:        Jason Andresen <jandrese@mitre.org>
Cc:        hackers@freebsd.org
Subject:   Re: gcc -O bug
Message-ID:  <xzpzod3vkc9.fsf@flood.ping.uio.no>
In-Reply-To: <3AE82644.50ED4A0@mitre.org>
References:  <xzplmonx31m.fsf@flood.ping.uio.no> <3AE82644.50ED4A0@mitre.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Jason Andresen <jandrese@mitre.org> writes:
> Dag-Erling Smorgrav wrote:
> > I ran into this bug while analyzing a customer's logs to determine the
> > best time of day for an upgrade.  The original script was in Perl, but
> > I rewrote it in C because it was too slow.  The C version produces
> > incorrect results when compiled with -O.  Note that the log starts at
> > 16:27.
> Er, isn't this the kind of problem the GCC folks are more likly to be
> able to fix?

Sure, but I thought people on this list (especially David O'Brien)
might have some insights.

Anyway, I found the bug - it's not a compiler bug, it's simply a
matter of passing a partially uninitialized struct tm to mktime().

DES
-- 
Dag-Erling Smorgrav - des@ofug.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




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