This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33146] [4.3 Regression] ICE in build_polynomial_chrec, at tree-chrec.h:136
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 22 Aug 2007 08:34:16 -0000
- Subject: [Bug tree-optimization/33146] [4.3 Regression] ICE in build_polynomial_chrec, at tree-chrec.h:136
- References: <bug-33146-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from tbm at cyrius dot com 2007-08-22 08:34 -------
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
typedef struct
{
int end;
int term;
}
jpc_enc_pass_t;
void foo(int numpasses, jpc_enc_pass_t *p)
{
jpc_enc_pass_t *pass;
jpc_enc_pass_t *termpass;
for (pass = p; pass != termpass; ++pass)
if (!pass->term)
{
termpass = pass;
while (termpass - pass < numpasses && !termpass->term)
++termpass;
pass->end = termpass->end;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33146