This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
- From: "sje at cup dot hp dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Sep 2009 17:25:35 -0000
- Subject: [Bug middle-end/41248] [4.5 Regression] VTA: Assertion at 2910 of cfgexpand.c (expand_debug_locations)
- References: <bug-41248-3107@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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