[PATCH] powerpc/math-emu: Fix building with clang

Nick Desaulniers ndesaulniers at google.com
Sat Nov 3 04:38:36 AEDT 2018


On Fri, Nov 2, 2018 at 10:34 AM Segher Boessenkool
<segher at kernel.crashing.org> wrote:
>
> On Fri, Nov 02, 2018 at 02:07:13PM +1030, Joel Stanley wrote:
> >   arch/powerpc/math-emu/fnmsub.c:46:2: error: invalid use of a cast in a
> >   inline asm context requiring an l-value: remove the cast or build with
> >   -fheinous-gnu-extensions
>
> (It is spelled lvalue).
>
> *All* of extended asm is a GNU extension, what is clang trying to say here?
> Confused :-)

Isn't the result of a cast a temporary value?  Probably just need to
move the case out of the inline asm block to a separate statement.
Having the full backtrace should help.

-- 
Thanks,
~Nick Desaulniers


More information about the Linuxppc-dev mailing list