This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/54136] Compiling phoronix/dcraw with gcc 4.8 trunk causes infinite execution.
- From: "pinskia at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Tue, 31 Jul 2012 09:06:55 +0000
- Subject: [Bug tree-optimization/54136] Compiling phoronix/dcraw with gcc 4.8 trunk causes infinite execution.
- Auto-submitted: auto-generated
- References: <bug-54136-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=54136
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |INVALID
--- Comment #3 from Andrew Pinski <pinskia at gcc dot gnu.org> 2012-07-31 09:06:55 UTC ---
> double cam_xyz[4][3];
> cam_xyz[0][j]
Yes you are going past the array bounds of cam_xyz[0] .Rewrite the loop like:
for (j0=0; j0 < 4; j0++)
for (j=0; j < 3; j++)
cam_xyz[j0][j] = table[i].trans[j0*3+j] / 10000.0;
Instead of change cam_xyz to be array of size 12.