From: Ian Campbell Subject: Re: [PATCH 11/34] xen/arm: Introduce __builtin_stack_pointer Date: Tue, 25 Mar 2014 17:18:00 +0000 Message-ID: <1395767880.22808.4.camel@kazak.uk.xensource.com> References: <1395766541-23979-1-git-send-email-julien.grall@linaro.org> <1395766541-23979-12-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WSUzG-0005uj-Si for xen-devel@lists.xenproject.org; Tue, 25 Mar 2014 17:18:06 +0000 In-Reply-To: <1395766541-23979-12-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Tue, 2014-03-25 at 16:55 +0000, Julien Grall wrote: > Clang doesn't support named register. Introduce __builtin_stack_pointer > to be able to use named register with gcc. I think gcc considers the __builtin namespace to be its own, not sure about clang. I think get_stack_pointer() would be a fine name for this macro. It seems like the clang version should work for both gcc and clang. Google seems to suggest that __builtin_stack_pointer might become a real compiler builtin at some point.