[Bug tree-optimization/23414] const function is not dectected for functions with non infinite loops
tkoenig at gcc dot gnu dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 31 22:00:00 GMT 2009
------- 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
More information about the Gcc-bugs
mailing list