public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug c++/43529]  New: G++ doesn't optimize away empty loop when index is a double
@ 2010-03-25 23:42 evouga at gmail dot com
  2010-03-26 11:46 ` [Bug tree-optimization/43529] " rguenth at gcc dot gnu dot org
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: evouga at gmail dot com @ 2010-03-25 23:42 UTC (permalink / raw)
  To: gcc-bugs

Empty loops where the loop index is an integer are optimized away, but the
following loop is not (presumably because it is more difficult to prove that it
terminates in finite time?)

int main()
{
        for(double i=0; i<1e9; i+=1);
}

Command line: g++ -O3


-- 
           Summary: G++ doesn't optimize away empty loop when index is a
                    double
           Product: gcc
           Version: 4.4.1
            Status: UNCONFIRMED
          Severity: minor
          Priority: P3
         Component: c++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: evouga at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=43529


^ permalink raw reply	[flat|nested] 7+ messages in thread
[parent not found: <bug-43529-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2023-08-08  1:38 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-03-25 23:42 [Bug c++/43529] New: G++ doesn't optimize away empty loop when index is a double evouga at gmail dot com
2010-03-26 11:46 ` [Bug tree-optimization/43529] " rguenth at gcc dot gnu dot org
2010-06-04 23:15 ` changpeng dot fang at amd dot com
2010-06-04 23:29 ` changpeng dot fang at amd dot com
2010-06-05  0:05 ` pinskia at gcc dot gnu dot org
2010-06-05 10:40 ` rguenth at gcc dot gnu dot org
     [not found] <bug-43529-4@http.gcc.gnu.org/bugzilla/>
2023-08-08  1:38 ` pinskia at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).