Return-Path: Received: from ozlabs.org (bilbo.ozlabs.org [IPv6:2401:3900:2:1::2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 42F0Gj1wwwzDq61 for ; Tue, 18 Sep 2018 20:53:49 +1000 (AEST) From: Michael Ellerman To: Joel Stanley , Nick Desaulniers Cc: linuxppc-dev@lists.ozlabs.org Subject: Re: [PATCH v2 2/5] powerpc/boot: Fix crt0.S syntax for clang In-Reply-To: References: <20180914040649.1794-1-joel@jms.id.au> <20180914040649.1794-3-joel@jms.id.au> <20180914210840.GT23155@gate.crashing.org> Date: Tue, 18 Sep 2018 20:53:48 +1000 Message-ID: <87sh27axfn.fsf@concordia.ellerman.id.au> MIME-Version: 1.0 Content-Type: text/plain List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Joel Stanley writes: > On Tue, 18 Sep 2018 at 06:11, Nick Desaulniers wrote: >> >> On Fri, Sep 14, 2018 at 2:08 PM Segher Boessenkool >> wrote: >> > >> > On Fri, Sep 14, 2018 at 10:47:08AM -0700, Nick Desaulniers wrote: >> > > On Thu, Sep 13, 2018 at 9:07 PM Joel Stanley wrote: >> > > > 10: addis r12,r12,(-RELACOUNT)@ha >> > > > - cmpdi r12,RELACOUNT@l >> > > > + cmpdi r12,(RELACOUNT)@l >> > > >> > > Yep, as we can see above, when RELACOUNT is negated, it's wrapped in >> > > parens. >> >> Looks like this was just fixed in Clang-8: >> https://bugs.llvm.org/show_bug.cgi?id=38945 >> https://reviews.llvm.org/D52188 > > Nice! > > mpe, given we need the local references to labels fix which is also in > clang-8 I suggest we drop this patch. OK, no worries. cheers