------- Additional Comments From pinskia at gcc dot gnu dot org 2004-10-19 23:49 ------- Oh, I forgot to say the problem is that we are not taking the variables in the size out of SSA form for some reason. Here is the tree level at .vars which shows the problem: saved_stack.3 = __builtin_stack_save (); D.1135 = __builtin_alloca ((unsigned int) (level * stride1) * 3); memcpy ((unsigned char *) (unsigned char[(unsigned int) (block_w_3 * stride_5 - 1)] *) (unsigned char[2][(unsigned int) (block_w_3 * stride_5 - 1)] *) D.1135, t, 1); __builtin_stack_restore (saved_stack.3);
Note the block_w_3 and stride_5. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=18067