Received: by 2002:a05:6a10:9afc:0:0:0:0 with SMTP id t28csp720563pxm; Fri, 25 Feb 2022 18:16:37 -0800 (PST) X-Google-Smtp-Source: ABdhPJzf9AghMtHoaB742dY4g1WCQ58yMDPnhNcRQxWAff0d0K8x6Qd3TjzicB6QwPm9NHutD8AV X-Received: by 2002:a05:6a00:1aca:b0:4e1:a2b6:5b9 with SMTP id f10-20020a056a001aca00b004e1a2b605b9mr10584963pfv.4.1645841797226; Fri, 25 Feb 2022 18:16:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645841797; cv=none; d=google.com; s=arc-20160816; b=q3O8aYcpOwV0zeRRd5gmO2MQ9j1lyTJHnEwI/6RUbxPCvklq6gJTh9fOtXVIBOg3sP wFZrYJwdtmd8CtytZsfWP6f6EPh/YqQ8VlBm/F4FC281OWR8D73UBvrxaEADcfOFKjms Ez65fZ0Tl21C6r6lXrDsyet5sPVomh053Pki8xy45y/kMFJuuORbGKKZ2Iq015yhwTgR R9xOu7UL/7IPy39tG0CzBhdHwj4xZypdloT/vSqlMyOorCi3fTqCbH7GbkgaeQd7epi9 C3RKeoXex7RuqPu40JyWglnMbitQJTDWCDtANI5xn/SmnxE4/e9RoaiVxG4NCh7A1y42 gnxA== 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=zevk8t4V1WtJR9ksU0Teae6oBHF2SbjsuPQmr/aCgKc=; b=Z5vHjBp9ZqwcbpfpF2VoIi097N01mkNPhx0M2eiX3GeF0ZZ7IZ4NOWxH59hUzIf4gn ndebTdG+ND8t3B91Zopmo2qLJBa1uVgcO2s2LbgSn1Pi4ZLbfwOZL3x5rB+n6MQN9kgh pYb+IQPsn2oJiKbkj3DA8I6NrSnrNXSytDVTMfKve8pIn+AWEsrf9J1qenUtPtSobhd7 5rDudPOsgKaH+zV1QmtA+gA06cAxZ+K8tr1svEFHmPz5oYj8d793K1q11jqfU4obk9xq vWRmfaFStvNb3ZV1HOUDwjItLZuaaJH2Y9sZbHiCiSbGWO7SnxAiqU9R5m5H4PNcutYy x92w== 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:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id o21-20020a056a0015d500b004e1523f2f32si3664979pfu.337.2022.02.25.18.16.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Feb 2022 18:16:36 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 035872BCF96; Fri, 25 Feb 2022 17:49:46 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238427AbiBYWjG (ORCPT + 99 others); Fri, 25 Feb 2022 17:39:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236215AbiBYWjF (ORCPT ); Fri, 25 Feb 2022 17:39:05 -0500 Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id E6E5C140C5; Fri, 25 Feb 2022 14:38:31 -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 21PMXKWJ022487; Fri, 25 Feb 2022 16:33:20 -0600 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 21PMXJBw022486; Fri, 25 Feb 2022 16:33:19 -0600 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Fri, 25 Feb 2022 16:33:19 -0600 From: Segher Boessenkool To: Nicholas Piggin Cc: Anders Roxell , Arnd Bergmann , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, mpe@ellerman.id.au, stable@vger.kernel.org Subject: Re: [PATCH 2/3] powerpc: fix build errors Message-ID: <20220225223319.GT614@gate.crashing.org> References: <20220223135820.2252470-1-anders.roxell@linaro.org> <20220223135820.2252470-2-anders.roxell@linaro.org> <1645670923.t0z533n7uu.astroid@bobo.none> <1645678884.dsm10mudmp.astroid@bobo.none> <20220224171207.GM614@gate.crashing.org> <1645748601.idp48wexp9.astroid@bobo.none> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1645748601.idp48wexp9.astroid@bobo.none> User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 On Fri, Feb 25, 2022 at 10:32:02AM +1000, Nicholas Piggin wrote: > Excerpts from Segher Boessenkool's message of February 25, 2022 3:12 am: > > On Thu, Feb 24, 2022 at 03:05:28PM +1000, Nicholas Piggin wrote: > >> + * gcc 10 started to emit a .machine directive at the beginning of generated > >> + * .s files, which overrides assembler -Wa,-m options passed down. > >> + * Unclear if this behaviour will be reverted. > > > > It will not be reverted. If you need a certain .machine for some asm > > code, you should write just that! > > It should be reverted because it breaks old binutils which did not have > the workaround patch for this broken gcc behaviour. And it is just > unnecessary because -m option can already be used to do the same thing. > > Not that I expect gcc to revert it. Nothing will happen if you do not file a bug report. And do read the bug reporting instructions first please. > >> +#ifdef CONFIG_CC_IS_GCC > >> +#if (GCC_VERSION >= 100000) > >> +#if (CONFIG_AS_VERSION == 23800) > >> +asm(".machine any"); > >> +#endif > >> +#endif > >> +#endif > >> +#endif /* __ASSEMBLY__ */ > > > > Abusing toplevel asm like this is broken and you *will* end up with > > unhappiness all around. > > It actually unbreaks things and reduces my unhappiness. It is broken. You will need -fno-toplevel-reorder, and you really do not want that, if you *can* use it in the kernel even. > It's only done > for broken compiler versions and only where as does not have the > workaround for the breakage. What compiler versions? Please file a PR. Segher