From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by sourceware.org (Postfix) with ESMTPS id 2FA2F385B19A for ; Fri, 25 Nov 2022 09:56:43 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 2FA2F385B19A Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=googlemail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=googlemail.com Received: by mail-wm1-x334.google.com with SMTP id v7so3067690wmn.0 for ; Fri, 25 Nov 2022 01:56:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=2qiPNO05LHIt6QokD1rUZ1WcvXpyP0H+5Q7aX4zpaF0=; b=GIpNbGVYefR2mUEJgGKBD4CmzNXgNkdwgEf8/QgHMI0KJd7yp5aMwLOpmCwuB1LrDw z5ejM2UJbjvuD6EApxX4S6YFGHKuu4pZ6oKH9hYbN3LcQA2xqxTTH2r8328Rg2ZpvTeJ fY6Qu9ae8ABpUdsuCNFVeClMFQ5t30Ru2zvxhNCDMDO7/bfwRvhlMpRfalrCC2SWPYXm IOF7adrukuW0oNsxPuF6YZZFkfItaBHkAbg78DgR+zFewgVeODWcMpJIkVBR++mV3OY4 NhqRQW2Vaj6gVRXFSynHbE7prRaU4JDA+rmV19S0Qspw8yGoHI8RagdwrDjXkJotHfQx 5n1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=2qiPNO05LHIt6QokD1rUZ1WcvXpyP0H+5Q7aX4zpaF0=; b=XiiD2pWykhCuOOHMlXXEELP5GNWO6lR7GaJys4Ddxh8W/6HSzhw/jinQSIynn9Lwk4 Uxm1uB8s7coYkeISw6NGuTw4ysxEOgRLRxLfG6POeGEUmSXub1R8o1/IpmXnERYNtHmW 4jXjQIw12tCqtTA8EcfQiJnjGKrHIoRwF1d/FlzNeht7JlHRONsdrpxRFGOv9UVsmQGF yLWSO0ZOcW+tZAulQv3TnpeWAUTIvFe1qh0v7gJJ0EKaCWdZNcAx2pTbdCjhTHzpYa2R Zsswtj+KVZUn92Kqb08GJ5eo/i20drILj5okjK33y/wIUpxUoSpbojEX7PzLMdD3XoRQ YTVA== X-Gm-Message-State: ANoB5pm/r6Yiv++UYOk7KiplP4NV7ZkW0iAWYwyuwgDONnM/3l+uxvP8 3AIxg0lTyvauz/7R9cwaL+0= X-Google-Smtp-Source: AA0mqf41UTWyPioVVcCTzaRDGojR/OcslPkVbRfNeR4CBthfS5rjFp5DvJ7xx9KN8ESHM07E6gwl1A== X-Received: by 2002:a05:600c:298:b0:3d0:2707:ad98 with SMTP id 24-20020a05600c029800b003d02707ad98mr12983218wmk.171.1669370201834; Fri, 25 Nov 2022 01:56:41 -0800 (PST) Received: from smtpclient.apple (host81-138-1-83.in-addr.btopenworld.com. [81.138.1.83]) by smtp.googlemail.com with ESMTPSA id k15-20020a05600c1c8f00b003b47b80cec3sm10192397wms.42.2022.11.25.01.56.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 25 Nov 2022 01:56:41 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.120.41.1.1\)) Subject: Re: Please, really, make `-masm=intel` the default for x86 From: Iain Sandoe In-Reply-To: <5c25f39d-1f28-3ac9-cb2e-adde5034ed6e@126.com> Date: Fri, 25 Nov 2022 09:56:40 +0000 Cc: GCC Development Content-Transfer-Encoding: quoted-printable Message-Id: <29E6E857-A1CB-47CE-A92C-407389A5B120@googlemail.com> References: <4b31677c-255c-2796-67c4-2d67f0c9fa60@126.com> <9aed7b66-d1fb-846d-9752-b450fbf2ae5e@inria.fr> <5c25f39d-1f28-3ac9-cb2e-adde5034ed6e@126.com> To: LIU Hao X-Mailer: Apple Mail (2.3696.120.41.1.1) X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: > On 25 Nov 2022, at 09:11, LIU Hao via Gcc wrote: >=20 > =E5=9C=A8 2022/11/25 16:50, Marc Glisse =E5=86=99=E9=81=93: >> On Fri, 25 Nov 2022, LIU Hao via Gcc wrote: >>> I am a Windows developer and I have been writing x86 and amd64 = assembly for more than ten years. One annoying thing about GCC is that, = for x86 if I need to write I piece of inline assembly then I have to do = it twice: one in AT&T syntax and one in Intel syntax. >> The doc for -masm=3Ddialect says: >> Darwin does not support =E2=80=98intel=E2=80=99. >> Assuming that's still true, and even with Mac Intel going away, it = doesn't help. >=20 > Did you mean 'Darwin' instead of 'macOS'? >=20 > The first-class C and C++ compiler for macOS is Clang anyway; even the = thing named 'gcc' is effectively Clang. Darwin, OS X, PureDarwin, macOS (Intel) all default to AT&T (as does clang on the platform - I am not even sure if Intel syntax is = supported for macOS/Darwin there either). .. we can be 100% sure that any Intel syntax support is (at least = almost) completely untested. NOTE that the GCC gfortran (and Ada) remain the tools of choice on macOS = (and they also need the assembler). It would be pretty difficult to change the default; if GCC changed, = I=E2=80=99d only end up patching the Darwin port to default to AT&T .. = perhaps a solution for the Windows port is to patch it locally to = default to Intel? Iain >=20 >=20 > --=20 > Best regards, > LIU Hao >=20