------- Additional Comments From pinskia at gcc dot gnu dot org 2004-12-17 16:18 ------- This is because sum is not used outside of the loop with optimization turned on. We always use 0. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=19058