From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM11-BN8-obe.outbound.protection.outlook.com (mail-bn8nam11olkn2100.outbound.protection.outlook.com [40.92.20.100]) by sourceware.org (Postfix) with ESMTPS id 3DF85384D163 for ; Wed, 29 Jun 2022 17:58:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3DF85384D163 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=UchCV3PUrX98+v4Ox8RhhY9i48AULQTpH32oEpvRpA93JHWujSxGxRjp2VvD/CK7snpu7FD/mQXl3uIkVvpRVhWWnADkJ/cdTTiVHtrs3XnEQBnl2hRWOIL4ge1I6jdgMlXV0iNX62bz6ilTp2SXueYonBpqnUWu959dVkqIGNFPmBUdyKFQJXyf/Q5kfxLckMkFI44Hcj3QfwgMuRx20Gzjujf6mSfAEhv6jb5czwaKSdHsKo+MFIqoVyTtBkSuzjpSd/mWctHzmciezAUvHKht8Ls62JjXCHPn/4ZrehTmwHbJIUGRimjZidFxg63qJvZnfoIIkZyGqZfoIEt64g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=ad53dn0cml0Q4b0NBYaTdD8Mm6nr0NOV6kSi+alnH3w=; b=YDps18CnRCclZc4m2TEkdU6WG1TwFMPXS2+AEfD1GOVf0uzcOnUJrH3yhwXI5xsU1lS3qfUmF8dnSjUovTvDP5/PTvLL6tPOoQt4tJqIb3WPCt0OKgMBHVoYVn58YxkMeLH75JEqzkUtkzuYxlJR7uhSX3ydxePq4vIqN6mW9bKJO8oo9nfE33q5euOMcvmfNcP6b4E5z3+UTA4KmPlB0Dpoc577MnhUdCBzCylNsapjpHwTdzlR+LXTJp6BXPkn8DW3zDXAWhbKyn0WaXaLASsDklYjBmguZ+dk+JKS1OtMCmqXLtyieQigpkjutFcXoGfG/+jVRI3tBZzhPn1txg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; arc=none Received: from DM6PR05MB4697.namprd05.prod.outlook.com (2603:10b6:5:18::13) by CO6PR05MB7747.namprd05.prod.outlook.com (2603:10b6:5:344::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5395.11; Wed, 29 Jun 2022 17:58:18 +0000 Received: from DM6PR05MB4697.namprd05.prod.outlook.com ([fe80::a989:7fa3:6f28:119e]) by DM6PR05MB4697.namprd05.prod.outlook.com ([fe80::a989:7fa3:6f28:119e%5]) with mapi id 15.20.5395.014; Wed, 29 Jun 2022 17:58:17 +0000 From: unlvsur unlvsur To: Segher Boessenkool CC: unlvsur unlvsur via Gcc-help , Richard Sandiford Subject: RE: Treat GCC cross compiler as a native compiler? Thread-Topic: Treat GCC cross compiler as a native compiler? Thread-Index: AQHYi2uk2IgjkvrTGUi/cfbU5r0YM61mAVh7gAB8+ZSAAB4UgIAAAJABgAAOS4CAAAB0LA== Date: Wed, 29 Jun 2022 17:58:17 +0000 Message-ID: References: <20220629165939.GH25951@gate.crashing.org> <20220629175249.GI25951@gate.crashing.org> In-Reply-To: <20220629175249.GI25951@gate.crashing.org> Accept-Language: en-US, zh-CN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-tmn: [0hRxC6Rg05ykKYF4LPWrRUQfvWSMP6OQxd89agVm4wo=] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: f3350427-3d7c-4c98-ad29-08da59f8f261 x-ms-traffictypediagnostic: CO6PR05MB7747:EE_ x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: cG14eHlYIlCtSmFFkM7rJW8k254CQDKnvpbeSVHSm3jCybiOTBQndovMGWrEMLgCOzTyrZbr+bN+qP5nfCanwWdyrB0Zi8tWrSEtHML8eWYz+ejbJCRx2fteMSKetWyRp8VnLTaOQVAGG6pwTiuDvpMVfZBtsCntaycnrVoZB5bhWaNxoAfl8Y3mrkDV9lkvNRyjJstZ89Ny+hh4FEsk9ySbJdgKbPuWA5s0AEpcrKb+oYaUqiFm9oubZYbd4L5lthHtv1QK3885/wB/5oPzYCvK0kH6sTMxj60XCtqErgzMcshAmPgqToLj0D2JOnx5EqOB5q/FircZXiF+J/OvvQH4sYq1Pl9xvvuSzhYP06eRDG43jJeQQbNzJWVQ696QtM9aXfLeuV2HYHkQHWmWC34OIP4rabYDycB39zKTyrebzdeoCJE+Sj3SHutaCQxoCHG4uuTx7ImUgXZtZprQV4UfIGSUGb/eDCdUucaPmbuMoxCANtnurkur7c4huvsUqHYYq0kh7maIFuhMYVctFL2SMXzkXvMYXObzLb/m6SczdJTs4W2n+UlyBThhKKYGQWfyYL2fsGnlPOYiMoA1CtfHyqqm6qCT0Pabt8T3jqyFRbZSI2KduTqfe2SU4QFP x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?Windows-1252?Q?frVF2B4UmaTlLb0v0UgryuauyhMivcNfgomJuxjrK9GAw+IBJ0D/xXHs?= =?Windows-1252?Q?ybx8mKDCroRXpXul34gnam6Mdas3rA9MNOv18GymxoFjRZKHN52ujEmU?= =?Windows-1252?Q?+u4lWjK7MXWnfb5R76RibBqWD/WPur3mKpTIE1cGFuBDoGXY70Xdeg9M?= =?Windows-1252?Q?SvnWa0v9p8GalAz28Y1Fk+QNtZhmRNblx4VLt3BJV/T4c2XgRZSuNSQT?= =?Windows-1252?Q?0Wb3LLbiv/6uCUbTLXxIQQYj8A0+38etfKMlisv1XfQBewBd06DzW6kF?= =?Windows-1252?Q?BeUUSs2WLA7oZCEwRHl9mnVmHydWJuAlybh/PezznN0v+stZU65qEeHq?= =?Windows-1252?Q?w1Z9OvhYOPSV/IungPAEVq+9bM6/+w1goWjDlW4itZi9dztFeqlHhwPB?= =?Windows-1252?Q?3gnwQld7qqt5+T3pTH1s5SiowsTM1s7KsUxdaUSvFDuIqYkC7zJv8RsT?= =?Windows-1252?Q?2vGAy7/7ULA/5Fi7la5BAORsnBAqzdlfkYk5IyIMrbpSIDeAjCfr/DMA?= =?Windows-1252?Q?K7YQow5piu0dD0KtqzpCYAGgPC/r02QeAIH5+AN/xgcY0SZuT7Wet0Za?= =?Windows-1252?Q?m6+yZR/hTAwMeMwqzP0Tg9Pxp9rHKEpSW6ylvSiYGlx1G1LrJlEREzY0?= =?Windows-1252?Q?HOlv4fc18h4JyAlKjvUU/TfLYkscsgqwhicfQ/a4tPsKWRHKs68Ji9Ui?= =?Windows-1252?Q?tLGaJgPkIThlpLVmQ595U9ggqmaOqsbRgq/h1J41uUHQabiTc0Yoydyk?= =?Windows-1252?Q?h/suFID/bRMWNxHlfvy6Pd/sEQIKBn4DmNMRgPw5e68l2mHeOu6vz0x6?= =?Windows-1252?Q?TjAPW8wB8dZqo9iVqEVRZ9TGsUYkXvy5Lt98FD0JnJ7MIGP5fbous/5t?= =?Windows-1252?Q?Y6i1VDf+kDQgKpTu1K+YYTGZAN89pBCgtDMocd5vsg879n9MiX2DSHxB?= =?Windows-1252?Q?PehW0jobaLC5mlJytmoxLW1vEn/ddw2YlV54BN91gnLw3o6EWjY3GlnV?= =?Windows-1252?Q?7M9Y5FjiiNsuiZJuedBAJx7ZlmleCG8wZIIdQl+0cbZvmdzw9CJYS/xo?= =?Windows-1252?Q?cvBC4Rsb1XeMyUF4T4mdielkg/D3TOYW+zFnugeE9bnSrPYgCa4T68jn?= =?Windows-1252?Q?bx/E9R7E+FEeiEMTwMSZrhgv4iFUbf9zgekFkpcvTMRQEZzRyMB+hls+?= =?Windows-1252?Q?c6qWTwKbbPWpnSYbmgQ9XKespUbd3ROc8SANcikwKpv4uG4qmWQshjDO?= =?Windows-1252?Q?hVHDeROSqPjxbCum3EZX+wosBjH9ICrZySc5tX1Zr4t4MwYhfu0MGfkj?= =?Windows-1252?Q?jwpPH3gzLYGXjJ5D/ub8Pvg77oX7C3T+Kim4mJWPKj3gY+kn/yc10+kL?= =?Windows-1252?Q?b5AWE1bXpsbeGA=3D=3D?= MIME-Version: 1.0 X-OriginatorOrg: sct-15-20-4823-7-msonline-outlook-84f76.templateTenant X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR05MB4697.namprd05.prod.outlook.com X-MS-Exchange-CrossTenant-RMS-PersistedConsumerOrg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-CrossTenant-Network-Message-Id: f3350427-3d7c-4c98-ad29-08da59f8f261 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Jun 2022 17:58:17.9283 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-CrossTenant-rms-persistedconsumerorg: 00000000-0000-0000-0000-000000000000 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO6PR05MB7747 X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, HTML_MESSAGE, KAM_SHORT, RCVD_IN_DNSWL_NONE, SPF_HELO_PASS, SPF_PASS, TXREP, 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 server2.sourceware.org Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.29 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:58:20 -0000 No. clang does not have cross compilation. The native compiler is also cross co= mpiler. There are no differences. Native compilation: clang++ -o hello hello.cc -Ofast -std=3Dc++2b -s -flto=3Dthin -fuse-ld=3Dll= d =93Cross=94 compilation clang++ -o hello hello.cc -Ofast -std=3Dc++2b -s -flto=3Dthin -fuse-ld=3Dll= d =96target=3Dx86_64-windows-gnu You just give =96target to clang and it is a =93cross=94 compiler now. It i= s just a compiler flag. So for clang, it completely eliminates the idea of cross compiler. The only thing that makes more sense is to build compilers that would run o= n another machine (Like building clang on linux that would run on windows).= This new compiler can also do =93native=94 or =93cross=94 compilation with= just a toggle. So for clang, the only thing that matters is the difference between native = and Canadian. Cross, Canadian cross or cross-back does not even exist for c= lang. Sent from Mail for Window= s From: Segher Boessenkool Sent: Wednesday, June 29, 2022 13:53 To: unlvsur unlvsur Cc: unlvsur unlvsur via Gcc-help; Richard Sand= iford Subject: Re: Treat GCC cross compiler as a native compiler? On Wed, Jun 29, 2022 at 05:03:17PM +0000, unlvsur unlvsur via Gcc-help wrot= e: > > No. Canadian simply means build !=3D host which is building compilers for= other platforms. Please don't top-post. > It does not necessarily mean it is a native or cross. Sure it does. > And for clang, it does not differentiate native and cross at all. Clang o= nly has native and Canadian compilation. That is either their problem, or your misunderstanding. This is a GCC mailing list, we deal with GCC here. These concepts are all older than LLVM, I doubt they want to use different names than the well-established ones. Segher