Attached is the smallest trimmed down file that is able to reproduce the ICE:
$ g++-4.6 -O2 -c memops_testcase.cpp -o memops_testcase.o
memops_testcase.cpp: In function ‘void sample_move_d32u24_sS(char*,
audio_sample_t*, long unsigned int, long unsigned int,
dither_state_t*)’:
memops_testcase.cpp:28:1: internal compiler error: in
get_arm_condition_code, at config/arm/arm.c:17152
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.6/README.Bugs> for instructions.