lkml.org 
[lkml]   [2017]   [Nov]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [GIT PULL] core kernel fixes
On Sun, Nov 05, 2017 at 12:12:31PM -0800, Linus Torvalds wrote:
> On Sun, Nov 5, 2017 at 11:53 AM, Josh Poimboeuf <jpoimboe@redhat.com> wrote:
> >
> > The GCC manual says:
> >
> > "asm statements that have no output operands, including asm goto
> > statements, are implicitly volatile."
>
> Hmm. Fair enough.
>
> And the manual does say that it can merge and duplicate those asms
> (and suggests using "%=" to generate a unique number, but I guess
> "%c0" with __COUNTER__ is equivalent).
>
> I think the gcc manual has changed. I'm pretty certain it used to say
> that "volatile" asms would not be "moved significantly". They've
> silently changed semantics before too, oh well.

I had tried the '%=' thing before, because that was exactly what I
needed. But alas, it's not supported by the older GCCs.

--
Josh

\
 
 \ /
  Last update: 2017-11-05 22:01    [W:0.044 / U:28.156 seconds]
©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site