🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.programmer
Article #3674

Re: gcc -O2 bug

#3674
From: John Hasler
Date: Fri, 09 Aug 1996 00:00
16 lines
1318 bytes
Thomas Wolf writes:
> How your compiler determined that 'time' does not return something
> that results in 'flag' == 0 is a mystery to me.

I don't think it did.  I think it converted the loop into a test of 'flag'
and an infinite loop, and jumped either over or into the loop depending
on the value of 'flag'.

-- 


John Hasler		   This posting is in the public domain.
jghasler@win.bright.net	   Do with it what you will.
Dancing Horse Hill	   Make money from it if you can; I don't mind.
Elmwood, Wisconsin
Technical Details
Message-ID: <ybjo91vh.fsf@hasler.gt.org>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <4ubnat$75u@freeside.fc.net> <3209b0dc.0@epflnews.epfl.ch>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 11318c,7d30cae02ba9b089
X-Google-Attributes: gid11318c,public
X-Google-Thread: 10c696,7d30cae02ba9b089
X-Google-Attributes: gid10c696,public
X-Google-Thread: fc89c,7d30cae02ba9b089
X-Google-Attributes: gidfc89c,public
X-Google-Thread: 1014db,7d30cae02ba9b089
X-Google-Attributes: gid1014db,public
From: jghasler@win.bright.net (John Hasler)
Subject: Re: gcc -O2 bug
Date: 1996/08/09
Message-ID: <ybjo91vh.fsf@hasler.gt.org>
X-Deja-AN: 173400637
sender: root@hasler.gt.org
references: <4ubnat$75u@freeside.fc.net> <3209b0dc.0@epflnews.epfl.ch>
organization: Dancing Horse Hill
reply-to: jghasler@win.bright.net (John Hasler)
newsgroups: comp.unix.programmer,gnu.gcc.help,comp.os.linux.development.apps,comp.lang.c