http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59875
--- Comment #2 from josephlawrie at hotmail dot com --- (In reply to Marc Glisse from comment #1) > I don't think it has anything to do with glibc or weak. If I patch > tree-ssa-loop-ivcanon.c (couldn't find a sufficient option or parameter) to > convince the compiler that it is ok to unroll the loop although it isn't an > inner loop and it contains calls on the "hot" path, it manages to optimize > foo to nothing. Am I correct in understanding this would not be possible without -fno-weak or when linking dynamically? In those cases, the function of delete could not be know when optimizingm, surely?