avr-libc-dev
[Top][All Lists]
Advanced

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

Re: [avr-libc-dev] [bug #14616] definition of sei() in interrupts.h is f


From: Björn Haase
Subject: Re: [avr-libc-dev] [bug #14616] definition of sei() in interrupts.h is faulty
Date: Tue, 27 Sep 2005 07:40:39 +0200
User-agent: KMail/1.7.1

Dmitry K. wrote on Dienstag, 27. September 2005 05:03 :
> On Tuesday 27 September 2005 01:54, Björn wrote:
> > Follow-up Comment #5, bug #14616 (project avr-libc):
> >
> > The unfortunate thing is, that using volatile is not enough. Even if it
> > works for your extremely simple test case: I am having a more complex
> > test case example in my application code, where it does *not* work
> > because gcc reorders the statements.
>
> [...]
>
> I am discouraged.
> I have try the next example with 3 compilers:
>       3.3.5, 3.4.4 and 4.0.0
> with 2 optimization levels:
>       -Os, -O3
> All 6 results are fine:  write to volatile is not reordered.

I'll try to strip the test case that I have at work so that it is no longer 
confidential property of my employer.

Bjoern.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]