This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23414] const function is not dectected for functions with non infinite loops
- From: "tkoenig at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 31 Jan 2009 22:00:03 -0000
- Subject: [Bug tree-optimization/23414] const function is not dectected for functions with non infinite loops
- References: <bug-23414-11148@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #6 from tkoenig at gcc dot gnu dot org 2009-01-31 22:00 -------
Test case now generates this assembly:
.globl main
.type main, @function
main:
pushl %ebp
movl %esp, %ebp
#APP
# 18 "gaga.c" 1
#start1
# 0 "" 2
# 20 "gaga.c" 1
#end1
# 0 "" 2
# 22 "gaga.c" 1
#start2
# 0 "" 2
# 24 "gaga.c" 1
#end2
# 0 "" 2
# 26 "gaga.c" 1
#start3
# 0 "" 2
# 30 "gaga.c" 1
#end3
# 0 "" 2
#NO_APP
popl %ebp
ret
.size main, .-main
.ident "GCC: (GNU) 4.4.0 20090124 (experimental)"
.section .note.GNU-stack,"",@progbits
Fixed.
--
tkoenig at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23414