From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-oa1-x35.google.com (mail-oa1-x35.google.com [IPv6:2001:4860:4864:20::35]) by sourceware.org (Postfix) with ESMTPS id 3170B3858D1E for ; Wed, 21 Dec 2022 20:21:00 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 3170B3858D1E 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-oa1-x35.google.com with SMTP id 586e51a60fabf-1442977d77dso121181fac.6 for ; Wed, 21 Dec 2022 12:21:00 -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=XbmVEhW5MjRVVdFiizfwRBPOHJ35n9NKOHHDgxRkEns=; b=MkedE+Ogs8BpAj4KFB6zigzYf566PNt2ex6eSNtGp8dyr/U/sZA0QZ+7aG6euD4c+X nS2piy+b/FHA7H2wgizsXaY3fJG5huuA2x6kPXkPWvW4ET7dHcv6f+ORhIxpGVr9X0j8 HUUzOHXvhkpWR9XP0wjrb/pUMvkR1fwahF1EwyTM3yKyg0h+sf8rLOATMjA4kmziqwos zI2t0gM1yqarXc/mX78iDnDnkSp/O34BofB62G9fL7H5/Q6+3CZDTPF97dxNtawmruNl 4Cg7E63gFOrUWfZYeGp5/C011O+m85JtMBulLIbOqIvdnLEot+ptSPinJbRweBlhGBCl pagA== 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=XbmVEhW5MjRVVdFiizfwRBPOHJ35n9NKOHHDgxRkEns=; b=DdrQ/ZH/6BXPKhnZgUNAQsb2XJLpuIziQrFMVVtuShITbooyvYTPQzRLT5izPlCGuh AGwnvgkwFxUBHYvOe58pzRwzEnla47pSzpZeOUS5jC4Ulk4cJMoMApjL5ZuDTE7f13oc Medr5S1j8RUUN1Fcn5X79+sh4dk9BtVmTN5SQ4UtTL8rBqRCCudOo8opdjCPmPSDHbxX lnuafasDamayzq6XebxBcRKXS1pcZqPLXXYk5qUCjhRmJsfWncG96J7szlVcYrhINcBY R17fCWgqqDDgRSHYDDTlQW2z/7JA39hDI3bLlsLYDwsYel+RzfHVmAp0JnjkVLzUlpP2 xXtQ== X-Gm-Message-State: AFqh2kpfmFRIvKUJ39K+rshehDuxUXFl4m9MtX5X+K96GZVSEVasE3Y6 2Ow+xgfK3Y4HsrnMquK3Q1bsQG5DhI31585+yF0= X-Google-Smtp-Source: AMrXdXuuNqgNYcBfzGgr4FG0z+CC93l9Td67zEDtXZNVmmbHCnzTSYSfxDJ74xL3TEdhpSpxgjDQyTzRWeaRBTt2iD0= X-Received: by 2002:a05:6870:5249:b0:148:2d85:b411 with SMTP id o9-20020a056870524900b001482d85b411mr257785oai.266.1671654059370; Wed, 21 Dec 2022 12:20:59 -0800 (PST) MIME-Version: 1.0 References: <20221215062137.3128845-1-hongtao.liu@intel.com> <20221215062137.3128845-2-hongtao.liu@intel.com> In-Reply-To: From: "H.J. Lu" Date: Wed, 21 Dec 2022 12:20:23 -0800 Message-ID: Subject: Re: [PATCH V2 2/2] [x86] x86: Add a new option -mdaz-ftz to enable FTZ and DAZ flags in MXCSR. To: Hongtao Liu Cc: Jakub Jelinek , liuhongt , gcc-patches@gcc.gnu.org, ubizjak@gmail.com Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3016.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham 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 Mon, Dec 19, 2022 at 8:52 PM Hongtao Liu wrote: > > On Thu, Dec 15, 2022 at 3:45 PM Hongtao Liu wrote: > > > > On Thu, Dec 15, 2022 at 3:39 PM Jakub Jelinek wrote: > > > > > > On Thu, Dec 15, 2022 at 02:21:37PM +0800, liuhongt via Gcc-patches wr= ote: > > > > --- a/gcc/config/i386/i386.opt > > > > +++ b/gcc/config/i386/i386.opt > > > > @@ -420,6 +420,10 @@ mpc80 > > > > Target RejectNegative > > > > Set 80387 floating-point precision to 80-bit. > > > > > > > > +mdaz-ftz > > > > +Target > > > > > > s/Target/Driver/ > > Change to Driver and Got error like:cc1: error: command-line option > > =E2=80=98-mdaz-ftz=E2=80=99 is valid for the driver but not for C. > Hi Jakub: > I didn't find a good solution to handle this error after changing > *Target* to *Driver*, Could you give some hints how to solve this > problem? > Or is it ok for you to mark this as *Target*(there won't be any save > and restore in cfun since there's no variable defined here.) Since all -m* options are passed to cc1, -mdaz-ftz can't be marked as Driver. We need to give it a different name to mark it as Driver. --=20 H.J.