------- Comment #3 from rguenth at gcc dot gnu dot org  2009-08-28 08:42 -------
Reduced testcase:

typedef unsigned char uint8_t;
typedef short int16_t;
static void
bit_alloc_masking(uint8_t exp_strategy[6][6], int16_t psd[6][6][(1 << 9)/2])
{ 
  int blk, ch;
  for(blk=0; blk<6; blk++)
    for(ch=0; ch<6; ch++)
      if(exp_strategy[blk][ch] == 0)
        __builtin_memcpy(psd[blk][ch], psd[blk-1][ch],
                         ((1 << 9)/2)*sizeof(int16_t));
}
void
AC3_encode_frame(void)
{ 
  uint8_t exp_strategy[6][6];
  int16_t psd[6][6][(1 << 9)/2];
  bit_alloc_masking(exp_strategy, psd);
}

triggers at -O1 during forwprop.  Mine.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|UNCONFIRMED                 |ASSIGNED
          Component|c                           |tree-optimization
     Ever Confirmed|0                           |1
  GCC build triplet|x86_64-gnu-linux            |
   GCC host triplet|x86_64-gnu-linux            |
 GCC target triplet|x86_64-w64-mingw32          |x86_64-*-*
           Keywords|                            |ice-checking, ice-on-valid-
                   |                            |code
   Last reconfirmed|0000-00-00 00:00:00         |2009-08-28 08:42:55
               date|                            |
            Summary|internal compiler error when|[4.5 Regression] internal
                   |using x86_64-w64-mingw32-gcc|compiler error when using
                   |to build ffmpeg ac3enc.c    |x86_64-w64-mingw32-gcc to
                   |                            |build ffmpeg ac3enc.c
   Target Milestone|---                         |4.5.0


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=41181

Reply via email to