Correction: this bug isn't ARM-specific. Marek Vasut <marek.vasut@xxxxxxxxx> writes: >> Current gcc-4.6.x SVN, ARMEB EABI. > > Shouldn't this go to GCC ML too ? Nope, I put it in bugzilla. >> unsigned var[2]; >> >> void test(int arg) >> { >> unsigned v = *(volatile unsigned *)(&var[arg]); >> *(volatile unsigned *)(&var[arg]) = v; >> } >> >> Disassembly of section .text: >> >> 00000000 <test>: >> 0: e12fff1e bx lr On x86-64: 0000000000000000 <test>: 0: f3 c3 repz retq -- Krzysztof Halasa _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/linux-arm-kernel