------- Comment #3 from christian dot bruel at st dot com 2010-01-22 11:47 ------- Hello,
I had a similar problem a while ago, but was never able to reproduce on trunk. I was a phasing problem between branch_shortening from sh_reorg and the delayed branch scheduler, that would change the size of a bf (2) against a bf/s+instruction (4). Thus breaking surrounding branch offsets. -fno-delayed-branch is the workaround. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42841