From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by sourceware.org (Postfix) with ESMTPS id E7D2A3855153 for ; Fri, 25 Nov 2022 13:00:44 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E7D2A3855153 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-lf1-x134.google.com with SMTP id j4so6834720lfk.0 for ; Fri, 25 Nov 2022 05:00:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=S9S7u+HN9YHTLPd/v5pkiuF1+dRlxnas7mFCEExEq9s=; b=aNopWoGyw8RpkuZ8g2m6jgMHJ0MC8Q/mUztkZF7dXWcZsn+66WZLHoMiyLv9mENrvq FgwrSknUyeCNJ8+gCVtg0ldTM6gafSKgdComg7uZdo97jGhj7ur2QvtkEu/rXinGfJCk lSMS+2UxSDPXorlL5GgNaX2QrrUc0hYxl7Yk5RqhRwMH5W9Zrpvjt0QHN0n+035At4Uh 8mNX1oka3zQBLTBWTyzoOZtr4eiwyxqOu7PAy/d3/To6Ju8AmkH/RaeEmVj9PW124FhR KTZAwWZmfD/0LJxD8vU8GwM21+LAbmcus3KYmHDm0SpmrSW66Q21IulyHC6bUPuEbKlR RxEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=S9S7u+HN9YHTLPd/v5pkiuF1+dRlxnas7mFCEExEq9s=; b=Xm/I3jsMLlKE42efcxcJ14DLOiuzIJFw6Jc6UgqQe+qfGdSzLCTUfTZsQVwx6oEO1U Grtltez2wexXk1/U3PVc27oqxiqtBzymDoHFD00dO5+ygR2TYi/UU/y6Zj4lzFtAhNwt 2Dnnnf4kjHAkJRFDgt6PZj/ZgxDDoGM/WvyV0wV5QCuZ5HJf0gSOr8Fhs8n0FI8Ol6s+ D7ztaahVDB8lOf9mNRhaZA1sYrL5k8xx2ANGRGXzsVf3dbph/ConNdQh2gxFhpBCQLeK bWv52/+8NHh/PMo3KIsgGSBN5YrZ6t43oYxubvUdTbgMJiBQT0psFNt3NDGo9voyIPWm xTTg== X-Gm-Message-State: ANoB5plhmM0Or+vz6mGIQwp80ctW51XzZ369tX76gA5LdjZzR9YF/6mC bTq82q4EDCXg5/gAbpCacfy251WdlXm0tChBWiU= X-Google-Smtp-Source: AA0mqf7XmO6NLkU4qc79GLyqNCqnB5ZCYR97i45K4caDaxMuXLnORMTWZJ4xo+LGKee4OnF1+sG3ojukCXCLypBPcus= X-Received: by 2002:a05:6512:1287:b0:494:aca0:e5e5 with SMTP id u7-20020a056512128700b00494aca0e5e5mr12349071lfs.497.1669381242480; Fri, 25 Nov 2022 05:00:42 -0800 (PST) MIME-Version: 1.0 References: <4b31677c-255c-2796-67c4-2d67f0c9fa60@126.com> <5110537b-524b-1595-128d-1172a09a48be@126.com> In-Reply-To: <5110537b-524b-1595-128d-1172a09a48be@126.com> From: Richard Biener Date: Fri, 25 Nov 2022 14:00:29 +0100 Message-ID: Subject: Re: Please, really, make `-masm=intel` the default for x86 To: LIU Hao Cc: Jakub Jelinek , gcc@gcc.gnu.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,KAM_NUMSUBJECT,KAM_SHORT,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 Fri, Nov 25, 2022 at 1:03 PM LIU Hao via Gcc wrote: > > =E5=9C=A8 2022/11/25 17:32, Jakub Jelinek =E5=86=99=E9=81=93: > > So just use -masm=3Dintel yourself and don't force it on others. > > > > Other people are familiar with AT&T syntax rather than Intel syntax, > > in fact, as history shows, Intel syntax is a second class citizen that = often > > takes years to fix up for new instructions. The memory size prefixes f= or > > certain vector instructions are complete lottery and has been changed b= y the > > assembler over time. > > > > And more importantly, various valid sources aren't really compilable at= all > > with Intel syntax, see https://gcc.gnu.org/PR53929 and dups for some de= tails. > > > > Well, if that's your decision, fair enough. I can maintain my own distrib= ution. > > Patch attached [1]; bootstrapped on {x86_64,1686}-w64-mingw32 without any= issues so far. it would be also possible to at a configure time choice, or one driven by config.gcc (thus *mingw* could default to intel syntax if they like). Richard. > > [1] > https://github.com/lhmouse/MINGW-packages/blob/gcc-13/mingw-w64-gcc/9000-= Deprecate-the-nonsense-AT-T-synax.patch > > > -- > Best regards, > LIU Hao >