------- Comment #5 from jakub at gcc dot gnu dot org 2010-08-31 20:13 ------- That's because the whole foo function doesn't have any side-effects, so it is optimized away completely.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45467
jakub at gcc dot gnu dot org Tue, 31 Aug 2010 13:14:00 -0700
------- Comment #5 from jakub at gcc dot gnu dot org 2010-08-31 20:13 ------- That's because the whole foo function doesn't have any side-effects, so it is optimized away completely.
-- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45467