This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug tree-optimization/23414] const function is not dectected for functions with non infinite loops



------- 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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]