Re: [llvmlinux] [PATCH] [RFC] [X86] Fix a compilation issue with clang.
From: Jan-Simon Möller
Date: Thu Aug 29 2013 - 14:02:09 EST
On Thursday 29 August 2013 10:28:52 H. Peter Anvin wrote:
> On 08/29/2013 10:13 AM, dl9pf@xxxxxx wrote:
> > From: Jan-Simon Möller <dl9pf@xxxxxx>
> >
> > Clang does not support the "shortcut" we're taking here for gcc (see
> > below).
> Read: clang is gratuitously incompatible with gcc.
Let's discuss this during the llvm track @ plumbers .
> > The patch extends and uses the macro _ASM_DX to do the job.
>
> You just changed the sematics of the _ASM_* macros... that doesn't seem
> like a great idea. It's probably okay for the registers, but still...
>
Well, we followed your idea for the _ASM_DX macros as you mentioned them
earlier.
I tested this change for both clang-3.3 and gcc-4.7.2 .
Best,
JS
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/