FYI ARM GCC 4.6.x miscompiles the kernel

Marek Vasut marek.vasut at gmail.com
Sat Aug 13 21:27:05 EDT 2011


On Sunday, August 14, 2011 01:10:21 AM Krzysztof Halasa wrote:
> Current gcc-4.6.x SVN, ARMEB EABI.

Shouldn't this go to GCC ML too ?

Cheers

> 
> 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



More information about the linux-arm-kernel mailing list