This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/33834] [4.3 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1829
- From: "tbm at cyrius dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Oct 2007 06:25:10 -0000
- Subject: [Bug tree-optimization/33834] [4.3 Regression] ICE in vect_get_vec_def_for_operand, at tree-vect-transform.c:1829
- References: <bug-33834-12387@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #4 from tbm at cyrius dot com 2007-10-21 06:25 -------
Here's another one (requires -O3):
/* Testcase by Martin Michlmayr <tbm@cyrius.com> */
extern int sscanf (__const char *__restrict __s,
__const char *__restrict __format, ...);
unsigned char got_elevation_pattern;
struct site
{
float antenna_pattern[361][1001];
}
LR;
void
LoadPAT (char *filename)
{
int x, y;
char string[255];
float elevation, amplitude, elevation_pattern[361][1001];
for (x = 0; filename[x] != '.' ; x++)
sscanf (string, "%f %f", &elevation, &litude);
for (y = 0; y <= 1000; y++)
{
if (got_elevation_pattern)
elevation = elevation_pattern[x][y];
else
elevation = 1.0;
LR.antenna_pattern[x][y] = elevation;
}
}
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33834