public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23414] New: function call not optimized away after unsafe-loop-optimizations
@ 2005-08-16  1:00 tkho at ucla dot edu
  2005-08-16  1:05 ` [Bug tree-optimization/23414] " tkho at ucla dot edu
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: tkho at ucla dot edu @ 2005-08-16  1:00 UTC (permalink / raw)
  To: gcc-bugs

I built the attached test case with -O2 -save-temps -funsafe-loop-optimizations.

The entire call to a() should be optimized away if the loop optimization works
right, but it's not.

The assembly shows these three useless instructions left in a():
a:
        pushl   %ebp
        movl    %esp, %ebp
        popl    %ebp
        ret

-- 
           Summary: function call not optimized away after unsafe-loop-
                    optimizations
           Product: gcc
           Version: 4.1.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: tkho at ucla dot edu
                CC: gcc-bugs at gcc dot gnu dot org
  GCC host triplet: i686-unknown-linux-gnu


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


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2005-08-16  1:26 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-16  1:00 [Bug tree-optimization/23414] New: function call not optimized away after unsafe-loop-optimizations tkho at ucla dot edu
2005-08-16  1:05 ` [Bug tree-optimization/23414] " tkho at ucla dot edu
2005-08-16  1:05 ` pinskia at gcc dot gnu dot org
2005-08-16  1:23 ` tkho at ucla dot edu
2005-08-16  1:26 ` [Bug tree-optimization/23414] pure function is not dectected for functions with non infinite loops pinskia at gcc dot gnu dot org
2005-08-16  2:21 ` [Bug tree-optimization/23414] const " pinskia at gcc dot gnu dot 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).