* FYI ARM GCC 4.6.x miscompiles the kernel
@ 2011-08-13 23:10 Krzysztof Halasa
2011-08-14 1:27 ` Marek Vasut
0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Halasa @ 2011-08-13 23:10 UTC (permalink / raw)
To: linux-arm-kernel
Current gcc-4.6.x SVN, ARMEB EABI.
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
--
Krzysztof Halasa
^ permalink raw reply [flat|nested] 4+ messages in thread
* FYI ARM GCC 4.6.x miscompiles the kernel
2011-08-13 23:10 FYI ARM GCC 4.6.x miscompiles the kernel Krzysztof Halasa
@ 2011-08-14 1:27 ` Marek Vasut
2011-08-14 16:05 ` Krzysztof Halasa
0 siblings, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2011-08-14 1:27 UTC (permalink / raw)
To: linux-arm-kernel
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: FYI GCC 4.6.x miscompiles the kernel
2011-08-14 1:27 ` Marek Vasut
@ 2011-08-14 16:05 ` Krzysztof Halasa
0 siblings, 0 replies; 4+ messages 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] 4+ messages in thread
* FYI GCC 4.6.x miscompiles the kernel
@ 2011-08-14 16:05 ` Krzysztof Halasa
0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Halasa @ 2011-08-14 16:05 UTC (permalink / raw)
To: linux-arm-kernel
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] 4+ messages in thread
end of thread, other threads:[~2011-08-14 16:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-13 23:10 FYI ARM GCC 4.6.x miscompiles the kernel Krzysztof Halasa
2011-08-14 1:27 ` Marek Vasut
2011-08-14 16:05 ` FYI " Krzysztof Halasa
2011-08-14 16:05 ` Krzysztof Halasa
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.