bug-indent
[Top][All Lists]
Advanced

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

Re: Problem with macro parameters in inline assembly


From: Andrej Shadura
Subject: Re: Problem with macro parameters in inline assembly
Date: Mon, 3 Sep 2018 14:22:41 +0200

Hi,

On 1 August 2017 at 20:45, Michael Thayer <address@hidden> wrote:
> Hello,
>
> I wonder whether this is something known: when I run the attached file
> from VirtualBox through "indent -linux" (or other settings), the
> parameters of the _ASM_EXTABLE invocation near the end of the file are
> transformed from "1b, 3b" to "1 b, 3 b", which does not make gcc happy.

I’m afraid there’s not much to be done about this, since that is not
part of C syntax, and in fact the macro in question just turns its
parameters into strings and substitutes them into the assembly code.
There doesn’t seem to be a way for indent to know all that. The best
thing you can do is to use "*INDENT-OFF*" and "*INDENT-ON*" to prevent
indent from touching that bit of code.

-- 
Cheers,
  Andrej



reply via email to

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