From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 428jSk0tmmzF37t for ; Tue, 11 Sep 2018 21:32:37 +1000 (AEST) Date: Tue, 11 Sep 2018 06:32:28 -0500 From: Segher Boessenkool To: Joel Stanley Cc: linuxppc-dev@lists.ozlabs.org, Anton Blanchard Subject: Re: [PATCH 1/2] powerpc/boot: Fix crt0.S syntax for clang Message-ID: <20180911113228.GF23155@gate.crashing.org> References: <20180910085714.4834-1-joel@jms.id.au> <20180910085714.4834-2-joel@jms.id.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: <20180910085714.4834-2-joel@jms.id.au> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Mon, Sep 10, 2018 at 06:57:13PM +1000, Joel Stanley wrote: > Clang's assembler does not like the syntax of the cmpdi: > > arch/powerpc/boot/crt0.S:168:22: error: unexpected modifier on variable reference > cmpdi 12,RELACOUNT@l > ^ > arch/powerpc/boot/crt0.S:168:11: error: unknown operand > cmpdi 12,RELACOUNT@l > ^ > Enclosing RELACOUNT in () makes it is happy. Tested with GCC 8 and Clang > 8 (trunk). Is clang going to fix this? You also might want to add a comment that this is a workaround for that broken assembler. Segher