[Bug middle-end/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)

sje at cup dot hp dot com gcc-bugzilla@gcc.gnu.org
Thu Sep 3 17:26:00 GMT 2009



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



More information about the Gcc-bugs mailing list