http://gcc.gnu.org/bugzilla/show_bug.cgi?id=60801
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- This sounds like you are running out of stack space. a 515x515 array of 4 byte wide is over a meg of data which is too big for the stack.