------- Comment #2 from sje at cup dot hp dot com 2009-09-03 17:25 ------- The original file was libgcov.c, I used delta to cut it down into an example that will fail to compile with '-g -O2'.
Testcase: struct __gcov_var { unsigned int offset; unsigned int buffer[(1 << 10) + 1]; } __gcov_var; unsigned int * gcov_write_words (unsigned int words) { unsigned int *result; result = &__gcov_var.buffer[__gcov_var.offset]; return result; } -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41248