From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) by sourceware.org (Postfix) with ESMTP id 86AD5384D1AA for ; Wed, 29 Jun 2022 17:00:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 86AD5384D1AA Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=kernel.crashing.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=kernel.crashing.org Received: from gate.crashing.org (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.14.1) with ESMTP id 25TGxeWZ019566; Wed, 29 Jun 2022 11:59:40 -0500 Received: (from segher@localhost) by gate.crashing.org (8.14.1/8.14.1/Submit) id 25TGxdZU019565; Wed, 29 Jun 2022 11:59:39 -0500 X-Authentication-Warning: gate.crashing.org: segher set sender to segher@kernel.crashing.org using -f Date: Wed, 29 Jun 2022 11:59:39 -0500 From: Segher Boessenkool To: unlvsur unlvsur Cc: Richard Sandiford , unlvsur unlvsur via Gcc-help Subject: Re: Treat GCC cross compiler as a native compiler? Message-ID: <20220629165939.GH25951@gate.crashing.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i X-Spam-Status: No, score=-3.2 required=5.0 tests=BAYES_00, JMQ_SPF_NEUTRAL, KAM_DMARC_STATUS, SPF_HELO_PASS, SPF_PASS, TXREP, 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 server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 29 Jun 2022 17:00:46 -0000 On Wed, Jun 29, 2022 at 03:15:27PM +0000, unlvsur unlvsur via Gcc-help wrote: > “cross-native” toolchain should be called canadian toolchain. build=host=target makes a "native compiler". host=target otherwise is a "cross-built native compiler". build=host otherwise is a "cross-compiler". build=target otherwise is sometimes called a "cross-back compiler". And all three of build, host, and target different is what is called a "Canadian cross". The main difficulty with doing cross-built native is that many checks for native compilers only work on the systems themselves, and do not usually have a convenient way to override that either. It's a fight you cannot win, just build your native compilers on the system itself, everyone else does! Segher