Re: FYI ARM GCC 4.6.x miscompiles the kernel

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel


[Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [PDAs]     [Linux]     [Linux MIPS]     [Yosemite Campsites]     [Photos]

Add to Google Follow linuxarm on Twitter