Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp3462632ioo; Wed, 25 May 2022 00:46:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzoUtjb4uB8RB2VmG7YjFzaRz0DEdsBuE1MdlkOSPmocNgsOs1vMAkaeOMZKlEn28A+7tCp X-Received: by 2002:a63:6cc8:0:b0:3fa:387b:3991 with SMTP id h191-20020a636cc8000000b003fa387b3991mr13205939pgc.19.1653464767212; Wed, 25 May 2022 00:46:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653464767; cv=none; d=google.com; s=arc-20160816; b=JQ6m29v0V2ZRF3/T5LFgGmieRo2PPLYI1BqxmJYGyemYTeXEhA+/qelhuPutNUgc7g EwcmX+V6Gb8JwXRE0dKGej+ZuRHaW42tObOoRN6Q4Hbf3nDvO0jZuYIbZm/yhjALJ/Pn O84nNI2j5w4paC22pQx2xDcLwMVoJ03rr/sGfN/ReME4Wwbf3W1qa1lulKrE75IZDX07 zLkUuK+o6derverdUtLPoSdV8ZXI8PGe8Jvx2COQFUDpJ9IVftYIGcIF8fzloypQXA1X Q4DCf8EpsOh1Lye2QyWePn6T9Jmx6n8HFNsA756jy8nvIpct2Oh85i4xsmIV0ekoxjep 2MsQ== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=PNMPNWwh1YEPDZuaUHl8w/zzvr+poVHau31vfMFmD40=; b=0QdQVP9oTnHGEF7sq19zZh5OxZe9k8hJyOlu/R1qdqEyloVxKSNYU8VNHidLC+BX8j fLuP+OQt6Jmhoc7u2/gqmcwcljtnvAxk5QZ9KBPxXRd5MowtVyqMmeLe5t+akQ6G2axj U7HbZNsL7g8gFkjCscH7lcdEv1R11lBru3fJMI5iroFVjs5zxgBO8+QSiBRQFxrzccc+ m0X+vfDrbYbI9iRyW0Fhi3FS3c7V9Ymt1IyHuzrUNuyWbxt/Z9rTS9I0NnYvxYMi2Up0 JcJCYQMqf6pYUmGKgdoAPYnTkIm8bO9zyBO3LTx33T3+84jRtlIC0l7N8SXLr05GpUZm hPqA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKhfeDp2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k14-20020a170902ce0e00b0015d1ef2dd92si17469169plg.47.2022.05.25.00.45.52; Wed, 25 May 2022 00:46:07 -0700 (PDT) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JKhfeDp2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239590AbiEXSNR (ORCPT + 99 others); Tue, 24 May 2022 14:13:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60992 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240317AbiEXSNJ (ORCPT ); Tue, 24 May 2022 14:13:09 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55CBF9CF01 for ; Tue, 24 May 2022 11:12:59 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E5EA2614E0 for ; Tue, 24 May 2022 18:12:58 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 2D58FC34100; Tue, 24 May 2022 18:12:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653415978; bh=KKmMzhfMf2IUd80WmWmo3TqKi63TjvQ6ruuivE274NE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=JKhfeDp24SV7L2MG5nT3JiaoEWk7MC6y/f25RRCQNNA885YCRwhNSQOAK1HuTXtMW x0gruMGOJwK1JtKvfnjDrCJ/LP6hd6kgiXO5VJZFMdP6L6i/+oPA4Ng6Cs+IWDUvqJ CLVizSwmt5oIdFUAsr/HuShZ5fOeRIxjBqfneZLqcDuOFcRkK5COjRxxL7jBda/+1N /XCx46wQhIhZYtXatGNW4c7JWCgsBTRIxygEoM6vfYnbN68D2viVOqshKshd5o4Hjv 5bBJcgS/QTh3RCLrQrR5Xtxafl3bR1M98AllZHWSE62zLXaBTGnKNf1cxd1BJDXcUL B5Mn4Vast99tA== Received: by pali.im (Postfix) id 37C6F9ED; Tue, 24 May 2022 20:12:55 +0200 (CEST) Date: Tue, 24 May 2022 20:12:55 +0200 From: Pali =?utf-8?B?Um9ow6Fy?= To: Segher Boessenkool Cc: Michael Ellerman , Benjamin Herrenschmidt , Paul Mackerras , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] powerpc: e500: Fix compilation with gcc e500 compiler Message-ID: <20220524181255.bmszzxmbwzv7zed7@pali> References: <20220524093939.30927-1-pali@kernel.org> <20220524175955.GI25951@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220524175955.GI25951@gate.crashing.org> User-Agent: NeoMutt/20180716 X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 On Tuesday 24 May 2022 12:59:55 Segher Boessenkool wrote: > Hi! > > On Tue, May 24, 2022 at 11:39:39AM +0200, Pali Rohár wrote: > > gcc e500 compiler does not support -mcpu=powerpc option. When it is > > specified then gcc throws compile error: > > > > gcc: error: unrecognized argument in option ‘-mcpu=powerpc’ > > gcc: note: valid arguments to ‘-mcpu=’ are: 8540 8548 native > > What? Are you using some modified version of GCC, perhaps? Hello! I'm using official gcc version, no special modification. > No version of GCC that isn't hamstrung can have this output. gcc for e500 cores has really this output when you pass -mcpu=powerpc. Upstream gcc dropped support for e500 cores during development of version 9. But you can still compile and install gcc 8.5.0 (last version of gcc 8) which has this full e500 support. Really, you can easily try it. Debian 10 (Buster) has gcc 8.3.0 in its default installation and also provides packages with cross compilers. Just run 'sudo apt install gcc-powerpc-linux-gnuspe' on desktop amd64 version of Debian 10, it will install e500 cross compiler. -mcpu=8540 specify e500v1 and -mcpu=8548 specify e500v2