🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.gcc.bug
Article #1837

Re: GCC 1.30 complaints

#1837
From: Ron Light
Date: Sun, 23 Oct 1988 15:02
10 lines
920 bytes
In article <8810220131.AA00312@ucsci.ucsc.edu>,
dsgn047@UCSCI.UCSC.EDU (10017047) writes:
> 2)  Loop optimization.  GCC 1.30 does *not* get rid of empty for loops;
> does anybody know why? (I.e., 'for (a=0;a<100;a++);' is executed in its
> entirety.)

I would find it sheer lunacy to have that loop eliminated in favor of a=100.
That type of loop is used QUIET often for DELAY loops.  Try writing a driver
sometime where you need a delay loop, and see what happens when "a=100" is
all that's generated with no delay.
Technical Details
Message-ID: <1531@vaxnix.tandy.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!rutgers!mit-eddie!killer!vaxnix!ron
References: <8810220131.AA00312@ucsci.ucsc.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!water!watmath!uunet!tut.cis.ohio-state.edu!rutgers!mit-eddie!killer!vaxnix!ron
From: ron@vaxnix.tandy.COM (Ron Light)
Newsgroups: gnu.gcc.bug
Subject: Re: GCC 1.30 complaints
Message-ID: <1531@vaxnix.tandy.COM>
Date: 23 Oct 88 15:02:26 GMT
References: <8810220131.AA00312@ucsci.ucsc.edu>
Distribution: gnu
Organization: VideOmega Inc. - Ft. Worth Texas
Lines: 10