This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug rtl-optimization/28243] [4.1 Regression] internal consistency failure when building fontforge with -O3 -fPIC -ftracer
- From: "reichelt at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 19 Jul 2006 11:40:50 -0000
- Subject: [Bug rtl-optimization/28243] [4.1 Regression] internal consistency failure when building fontforge with -O3 -fPIC -ftracer
- References: <bug-28243-10160@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #5 from reichelt at gcc dot gnu dot org 2006-07-19 11:40 -------
Here's a slightly shorter testcase:
=========================================
struct A
{
char c[13];
int k[1];
};
struct A a[1];
void foo(int* p)
{
int i, j;
for (i=0; i<2; ++i)
if (memcmp (a[i].k, p, j))
{
*p = a[i].k[0];
bar ((struct A*) (a[i].k));
break;
}
}
=========================================
Btw, the error should be an internal_error and not a fatal_error IMHO:
flow.c:493: fatal_error ("internal consistency failure");
flow.c:518: fatal_error ("internal consistency failure");
flow.c:540: fatal_error ("internal consistency failure");
We already have issue an ICE with the same message here:
emit-rtl.c:2239: internal_error ("internal consistency failure");
--
reichelt at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |reichelt at gcc dot gnu dot
| |org
Keywords| |monitored
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=28243