From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id ADA073858D1E for ; Wed, 21 Dec 2022 22:35:48 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org ADA073858D1E Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1671662148; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Wv65F02wizj0G2x3ESx3MTcH1eIgNP2rU5SgY2Vp41Q=; b=eBran0Y3eCEx+ZRRoiJkyBKf9+hrrEVGaThYfJ7t3Nx92vfCcgjVouDad+s7UjWU5ydl55 UByGkA2irjVqnaaBBtKLkEgwU9L5/AHVu2CQEELNyIj7U8HjSZs9KqDQXjMbKkz/fxnUP/ 9jHtasZ0Lq5ehfkH8kfenUopCi5Jm0A= Received: from mimecast-mx02.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-218-4RmCNKPHOMqLFJ6bn3HKjg-1; Wed, 21 Dec 2022 17:35:44 -0500 X-MC-Unique: 4RmCNKPHOMqLFJ6bn3HKjg-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id C1E641C05134; Wed, 21 Dec 2022 22:35:43 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.195.114]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C71240C2064; Wed, 21 Dec 2022 22:35:43 +0000 (UTC) Received: from tucnak.zalov.cz (localhost [127.0.0.1]) by tucnak.zalov.cz (8.17.1/8.17.1) with ESMTPS id 2BLMZeq53276569 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Wed, 21 Dec 2022 23:35:40 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 2BLMZdDn3276568; Wed, 21 Dec 2022 23:35:39 +0100 Date: Wed, 21 Dec 2022 23:35:39 +0100 From: Jakub Jelinek To: "H.J. Lu" Cc: Hongtao Liu , liuhongt , gcc-patches@gcc.gnu.org, ubizjak@gmail.com Subject: Re: [PATCH V2 2/2] [x86] x86: Add a new option -mdaz-ftz to enable FTZ and DAZ flags in MXCSR. Message-ID: Reply-To: Jakub Jelinek References: <20221215062137.3128845-1-hongtao.liu@intel.com> <20221215062137.3128845-2-hongtao.liu@intel.com> MIME-Version: 1.0 In-Reply-To: X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE,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 Wed, Dec 21, 2022 at 12:20:23PM -0800, H.J. Lu wrote: > 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 wrote: > > > > > --- 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 > > > ‘-mdaz-ftz’ 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. It is ok like that. Jakub