* Re: FYI GCC 4.6.x miscompiles the kernel
[not found] ` <201108140327.06726.marek.vasut@gmail.com>
@ 2011-08-14 16:05 ` Krzysztof Halasa
0 siblings, 0 replies; only message in thread
From: Krzysztof Halasa @ 2011-08-14 16:05 UTC (permalink / raw)
To: Marek Vasut; +Cc: linux-arm-kernel, lkml
Correction: this bug isn't ARM-specific.
Marek Vasut <marek.vasut@gmail.com> 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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-08-14 16:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <m3y5ywx602.fsf@intrepid.localdomain>
[not found] ` <201108140327.06726.marek.vasut@gmail.com>
2011-08-14 16:05 ` FYI GCC 4.6.x miscompiles the kernel Krzysztof Halasa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®