Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 752B3C433EF for ; Tue, 8 Feb 2022 21:08:39 +0000 (UTC) Received: from localhost ([::1]:42688 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHXj4-0005Iq-Es for qemu-devel@archiver.kernel.org; Tue, 08 Feb 2022 16:08:38 -0500 Received: from eggs.gnu.org ([209.51.188.92]:50468) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nHXaW-0000rQ-2z for qemu-devel@nongnu.org; Tue, 08 Feb 2022 15:59:48 -0500 Received: from [187.72.171.209] (port=29752 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nHXaT-0005qQ-3v for qemu-devel@nongnu.org; Tue, 08 Feb 2022 15:59:47 -0500 Received: from p9ibm ([10.10.71.235]) by outlook.eldorado.org.br over TLS secured channel with Microsoft SMTPSVC(8.5.9600.16384); Tue, 8 Feb 2022 17:57:09 -0300 Received: from [127.0.0.1] (unknown [10.10.70.45]) by p9ibm (Postfix) with ESMTP id B9910801D19; Tue, 8 Feb 2022 17:57:08 -0300 (-03) Message-ID: Date: Tue, 8 Feb 2022 17:57:08 -0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0 From: "Matheus K. Ferst" Subject: Re: [PATCH v2] Use long endian options for ppc64 To: Miroslav Rezanina , qemu-devel@nongnu.org References: <20220131091714.4825-1-mrezanin@redhat.com> Content-Language: en-US In-Reply-To: <20220131091714.4825-1-mrezanin@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 08 Feb 2022 20:57:09.0106 (UTC) FILETIME=[6FEEED20:01D81D2E] X-Host-Lookup-Failed: Reverse DNS lookup failed for 187.72.171.209 (failed) Received-SPF: pass client-ip=187.72.171.209; envelope-from=matheus.ferst@eldorado.org.br; helo=outlook.eldorado.org.br X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, NICE_REPLY_A=-0.001, PDS_HP_HELO_NORDNS=0.001, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: pbonzini@redhat.com, richard.henderson@linaro.org, f4bug@amsat.org Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On 31/01/2022 06:17, Miroslav Rezanina wrote: > GCC options pairs -mlittle/-mlittle-endian and -mbig/-mbig-endian are > equivalent on ppc64 architecture. However, Clang supports only long > version of the options. > > Use longer form in configure to properly support both GCC and Clang > compiler. In addition, fix this issue in tcg test configure. > > Signed-off-by: Miroslav Rezanina > > --- > This is v2 of configure: Use -mlittle-endian instead of -mlittle for ppc64. > > v2: > - handle both -mlittle and -mbig usage > - fix tests/tcg/configure.sh > --- > configure | 4 ++-- > tests/tcg/configure.sh | 4 ++-- > 2 files changed, 4 insertions(+), 4 deletions(-) > > diff --git a/configure b/configure > index e6cfc0e4be..066fa29b70 100755 > --- a/configure > +++ b/configure > @@ -655,10 +655,10 @@ case "$cpu" in > ppc) > CPU_CFLAGS="-m32" ;; > ppc64) > - CPU_CFLAGS="-m64 -mbig" ;; > + CPU_CFLAGS="-m64 -mbig-endian" ;; > ppc64le) > cpu="ppc64" > - CPU_CFLAGS="-m64 -mlittle" ;; > + CPU_CFLAGS="-m64 -mlittle-endian" ;; > > s390) > CPU_CFLAGS="-m31" ;; > diff --git a/tests/tcg/configure.sh b/tests/tcg/configure.sh > index 309335a2bd..21959e1fde 100755 > --- a/tests/tcg/configure.sh > +++ b/tests/tcg/configure.sh > @@ -64,9 +64,9 @@ fi > : ${cross_cc_ppc="powerpc-linux-gnu-gcc"} > : ${cross_cc_cflags_ppc="-m32"} > : ${cross_cc_ppc64="powerpc64-linux-gnu-gcc"} > -: ${cross_cc_cflags_ppc64="-m64 -mbig"} > +: ${cross_cc_cflags_ppc64="-m64 -mbig-endian"} > : ${cross_cc_ppc64le="$cross_cc_ppc64"} > -: ${cross_cc_cflags_ppc64le="-m64 -mlittle"} > +: ${cross_cc_cflags_ppc64le="-m64 -mlittle-endian"} > : ${cross_cc_riscv64="riscv64-linux-gnu-gcc"} > : ${cross_cc_s390x="s390x-linux-gnu-gcc"} > : ${cross_cc_sh4="sh4-linux-gnu-gcc"} > -- > 2.34.1 > > The patch is fine, but some PPC tests are not compiling with Clang. I've sent an RFC about these issues: https://lists.gnu.org/archive/html/qemu-ppc/2022-02/msg00116.html Thanks, Matheus K. Ferst Instituto de Pesquisas ELDORADO Analista de Software Aviso Legal - Disclaimer