Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp3113027rwb; Fri, 16 Dec 2022 10:13:02 -0800 (PST) X-Google-Smtp-Source: AA0mqf5Oupa0naSUGJVKoqPGtAZIcCW9y1oW0Yb98nRa7WqZEy7c4s1Q4L3OPhfiAxIrw179DaLW X-Received: by 2002:a17:90a:ba01:b0:218:8263:4aac with SMTP id s1-20020a17090aba0100b0021882634aacmr34753115pjr.17.1671214382159; Fri, 16 Dec 2022 10:13:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1671214382; cv=none; d=google.com; s=arc-20160816; b=AcZrVxJx28NgoGP7kEOEGfLEC0HXUG4CRSIorNEfo0MCUpO5u0jCp8Caf2aq3VDe7D VSpfXIaqu4rQrV9+FpaPuIpp8QRzpzsz7NFU0svxATV9Kjv3nzdWDp7j0KUTCdtiGjw3 o6VhAJPCN89iJiudBS54Ru5h3efA0D5VC30vB6zvHHnPvEHdGGKNXm3RYmV7MxGSuL4x RkL8+RX0+zAbRR6d4QvAx6B7QCJ/bL4JvMLx4289vS34GJ47QVwuBy6wYz+TShL+Ioeq V4dCojHPGsTTucmJUf1Rq5RXvw16dTTvDsH1IHkXNAvk+ddW4YIkROUe1ZLNqdynhcYv qTwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6Jr18MHXrAoJ/2lSy7Gbr84O4cr0owIm0WVlRLsuyvY=; b=WserVE4G8Vg3eoIbLcQeSdTOxT0Q2Jt/CehP0NqtXw+SEZwSwDuiCdMXcXd8Bq//Zo MbdYq1jddcxBj7qKa02BisXrlHrLr1dcrLGztV2f7+WGqX4KqsZUW5B53Bswjw5wcG3v +7hB0J3hN4OvKs5JzO/TCLBh+r+SPOb82LlqopWXZQgmt/nG0mWNo77ew+Vnz5gR7TJT e4m1xil8KdfMlGTS7CZlvrovb9h8yfJDVOEgQDjhFIGtxixeIDU8MDDbh1CSPZP8SeRf 9ije8kLyhbeVA+BRb6Uem6jVb9ENk2LG93awyoimXrweI1ejYf5kW6W1EJAshZ/Q1Smw LPSA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id nu18-20020a17090b1b1200b00213997a5fe6si3555318pjb.113.2022.12.16.10.12.53; Fri, 16 Dec 2022 10:13:02 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231791AbiLPRXz (ORCPT + 68 others); Fri, 16 Dec 2022 12:23:55 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231787AbiLPRXn (ORCPT ); Fri, 16 Dec 2022 12:23:43 -0500 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D1DF7747D8 for ; Fri, 16 Dec 2022 09:23:42 -0800 (PST) Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 2BGHINAG022024; Fri, 16 Dec 2022 11:18:23 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 2BGHILVe022023; Fri, 16 Dec 2022 11:18:21 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 16 Dec 2022 11:18:21 -0600 From: Segher Boessenkool To: Christophe Leroy Cc: Michael Ellerman , Nicholas Piggin , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org, Jan-Benedict Glaw Subject: Re: [PATCH v2] powerpc: Pass correct CPU reference to assembler Message-ID: <20221216171821.GA25951@gate.crashing.org> References: <01fe73614988e2402a7526fb6b6e903bc3777bb5.1671179743.git.christophe.leroy@csgroup.eu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <01fe73614988e2402a7526fb6b6e903bc3777bb5.1671179743.git.christophe.leroy@csgroup.eu> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_PASS, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi! On Fri, Dec 16, 2022 at 09:35:50AM +0100, Christophe Leroy wrote: > The problem comes from the fact that CONFIG_PPC_E500MC is selected for > both the e500mc (32 bits) and the e5500 (64 bits), and therefore the > following makefile rule is wrong: > > cpu-as-$(CONFIG_PPC_E500MC) += $(call as-option,-Wa$(comma)-me500mc) Yes. > Today we have CONFIG_TARGET_CPU which provides the identification of the > expected CPU, it is used for GCC. Use it as well for the assembler. Why do you use -Wa, at all for this? The compiler should already pass proper options always! > +cpu-as-$(CONFIG_PPC_BOOK3S_64) += $(call as-option,-Wa$(comma)-many) What is this for? Using -many is a huge step back, it hides many problems :-( Segher