Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 17:08, Alex Elder wrote: > On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: >> On 28 January 2015 at 14:11, Alex Elder wrote: >>> On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: On 28 January 2015 at 05:18, Behan Webster wrote: > From: Alex Elder > > My

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: > On 28 January 2015 at 05:18, Behan Webster wrote: >> From: Alex Elder >> >> My GCC-based build environment likes to call register r12 by the >> name "ip" in inline asm. Behan Webster informed me that his Clang- >> based build environment likes

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Behan Webster
On 01/28/15 12:11, Ard Biesheuvel wrote: > On 28 January 2015 at 19:38, Ard Biesheuvel wrote: >> On 28 January 2015 at 19:27, Alex Elder wrote: >>> On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: On 28 January 2015 at 17:20, Ard Biesheuvel wrote: > On 28 January 2015 at 17:08, Alex

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Behan Webster
On 01/28/15 11:38, Ard Biesheuvel wrote: > On 28 January 2015 at 19:27, Alex Elder wrote: >> On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: >>> On 28 January 2015 at 17:20, Ard Biesheuvel >>> wrote: On 28 January 2015 at 17:08, Alex Elder wrote: > On 01/28/2015 10:17 AM, Ard Biesheuvel

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 05:18, Behan Webster wrote: > From: Alex Elder > > My GCC-based build environment likes to call register r12 by the > name "ip" in inline asm. Behan Webster informed me that his Clang- > based build environment likes "r12" instead. > > Try to make them both happy. > >

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: > On 28 January 2015 at 14:11, Alex Elder wrote: >> On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: >>> On 28 January 2015 at 05:18, Behan Webster >>> wrote: From: Alex Elder My GCC-based build environment likes to call register r12 by

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Behan Webster
On 01/28/15 11:17, Ard Biesheuvel wrote: > On 28 January 2015 at 17:20, Ard Biesheuvel wrote: >> On 28 January 2015 at 17:08, Alex Elder wrote: >>> On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: On 28 January 2015 at 14:11, Alex Elder wrote: > On 01/28/2015 05:15 AM, Ard Biesheuvel

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 19:27, Alex Elder wrote: > On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: >> On 28 January 2015 at 17:20, Ard Biesheuvel >> wrote: >>> On 28 January 2015 at 17:08, Alex Elder wrote: On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: > On 28 January 2015 at 14:11, Alex

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: > On 28 January 2015 at 17:20, Ard Biesheuvel wrote: >> On 28 January 2015 at 17:08, Alex Elder wrote: >>> On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: On 28 January 2015 at 14:11, Alex Elder wrote: > On 01/28/2015 05:15 AM, Ard Biesheuvel

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 14:11, Alex Elder wrote: > On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: >> On 28 January 2015 at 05:18, Behan Webster wrote: >>> From: Alex Elder >>> >>> My GCC-based build environment likes to call register r12 by the >>> name "ip" in inline asm. Behan Webster informed

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 17:20, Ard Biesheuvel wrote: > On 28 January 2015 at 17:08, Alex Elder wrote: >> On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: >>> On 28 January 2015 at 14:11, Alex Elder wrote: On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: > On 28 January 2015 at 05:18, Behan

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 02:11 PM, Ard Biesheuvel wrote: > Actually, if clang is guaranteed to emit the correct register name > inside the inline asm for register asm variables used in input or > output constraints, I think it makes sense to #define __asmeq as a nop > if __clang__ is defined. (Note that

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 19:38, Ard Biesheuvel wrote: > On 28 January 2015 at 19:27, Alex Elder wrote: >> On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: >>> On 28 January 2015 at 17:20, Ard Biesheuvel >>> wrote: On 28 January 2015 at 17:08, Alex Elder wrote: > On 01/28/2015 10:17 AM, Ard

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 14:11, Alex Elder el...@linaro.org wrote: On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: On 28 January 2015 at 05:18, Behan Webster beh...@converseincode.com wrote: From: Alex Elder el...@linaro.org My GCC-based build environment likes to call register r12 by the name ip

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 17:20, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 17:08, Alex Elder el...@linaro.org wrote: On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: On 28 January 2015 at 14:11, Alex Elder el...@linaro.org wrote: On 01/28/2015 05:15 AM, Ard Biesheuvel

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: On 28 January 2015 at 14:11, Alex Elder el...@linaro.org wrote: On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: On 28 January 2015 at 05:18, Behan Webster beh...@converseincode.com wrote: From: Alex Elder el...@linaro.org My GCC-based build

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: On 28 January 2015 at 17:20, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 17:08, Alex Elder el...@linaro.org wrote: On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: On 28 January 2015 at 14:11, Alex Elder el...@linaro.org

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Behan Webster
On 01/28/15 11:17, Ard Biesheuvel wrote: On 28 January 2015 at 17:20, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 17:08, Alex Elder el...@linaro.org wrote: On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: On 28 January 2015 at 14:11, Alex Elder el...@linaro.org wrote:

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 19:27, Alex Elder el...@linaro.org wrote: On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: On 28 January 2015 at 17:20, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 17:08, Alex Elder el...@linaro.org wrote: On 01/28/2015 10:17 AM, Ard Biesheuvel

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 05:18, Behan Webster beh...@converseincode.com wrote: From: Alex Elder el...@linaro.org My GCC-based build environment likes to call register r12 by the name ip in inline asm. Behan Webster informed me that his Clang- based build environment likes r12 instead. Try to

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Behan Webster
On 01/28/15 11:38, Ard Biesheuvel wrote: On 28 January 2015 at 19:27, Alex Elder el...@linaro.org wrote: On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: On 28 January 2015 at 17:20, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 17:08, Alex Elder el...@linaro.org wrote:

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 17:08, Alex Elder el...@linaro.org wrote: On 01/28/2015 10:17 AM, Ard Biesheuvel wrote: On 28 January 2015 at 14:11, Alex Elder el...@linaro.org wrote: On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: On 28 January 2015 at 05:18, Behan Webster beh...@converseincode.com

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Behan Webster
On 01/28/15 12:11, Ard Biesheuvel wrote: On 28 January 2015 at 19:38, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 19:27, Alex Elder el...@linaro.org wrote: On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: On 28 January 2015 at 17:20, Ard Biesheuvel

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 05:15 AM, Ard Biesheuvel wrote: On 28 January 2015 at 05:18, Behan Webster beh...@converseincode.com wrote: From: Alex Elder el...@linaro.org My GCC-based build environment likes to call register r12 by the name ip in inline asm. Behan Webster informed me that his Clang- based

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Ard Biesheuvel
On 28 January 2015 at 19:38, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 19:27, Alex Elder el...@linaro.org wrote: On 01/28/2015 01:17 PM, Ard Biesheuvel wrote: On 28 January 2015 at 17:20, Ard Biesheuvel ard.biesheu...@linaro.org wrote: On 28 January 2015 at 17:08,

Re: [PATCH] bcm: address clang inline asm incompatibility

2015-01-28 Thread Alex Elder
On 01/28/2015 02:11 PM, Ard Biesheuvel wrote: Actually, if clang is guaranteed to emit the correct register name inside the inline asm for register asm variables used in input or output constraints, I think it makes sense to #define __asmeq as a nop if __clang__ is defined. (Note that __asmeq

[PATCH] bcm: address clang inline asm incompatibility

2015-01-27 Thread Behan Webster
From: Alex Elder My GCC-based build environment likes to call register r12 by the name "ip" in inline asm. Behan Webster informed me that his Clang- based build environment likes "r12" instead. Try to make them both happy. Signed-off-by: Alex Elder Signed-off-by: Behan Webster ---

[PATCH] bcm: address clang inline asm incompatibility

2015-01-27 Thread Behan Webster
From: Alex Elder el...@linaro.org My GCC-based build environment likes to call register r12 by the name ip in inline asm. Behan Webster informed me that his Clang- based build environment likes r12 instead. Try to make them both happy. Signed-off-by: Alex Elder el...@linaro.org Signed-off-by: