Message ID | ZajU80qR8PmGe6c4@tucnak |
---|---|
State | Unresolved |
Headers |
Return-Path: <gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2bc4:b0:101:a8e8:374 with SMTP id hx4csp180579dyb; Wed, 17 Jan 2024 23:37:19 -0800 (PST) X-Google-Smtp-Source: AGHT+IHODqz2AfZMvnFzot8vBlHTvux6QXEyZ+NxNURY/74TXnJk1L4GF74JcDR1JsBXBnQTSyTY X-Received: by 2002:a05:6214:2b0e:b0:67f:26c9:ffdb with SMTP id jx14-20020a0562142b0e00b0067f26c9ffdbmr729265qvb.22.1705563439678; Wed, 17 Jan 2024 23:37:19 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705563439; cv=pass; d=google.com; s=arc-20160816; b=lYanPgDxSZ4FElBT4sZ8gate/BSaf7xbNxe5osGPWlKJeQna+E3+ZEPqh9Kgo+IEMk fsWkG8FVWlOmoVbr3Lb1/DIIC5A0834KEGlPQt6ayhKh/TyzzzlPmeBWW9N6Y6CwFSa+ VB/xrcEpxZMjQeWBHIe9vVsP1cVXMBWgVC0vh8b7Z2MAV6eO/2G3BJtaf+XSDzsk74Dv UGUSVwjLTWMV39w/yC4f448VmNtC6kOz/uJkk6oP5BGzlbvnyAasxKEofrinHPJkwodF aXaKG34NVyC0fXxQ9rjL1eBZf02RkgnPUm6GKtkfTbqCSJhXVs8SBxmpvYuaxWP6qlve BGTw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:reply-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature :arc-filter:dmarc-filter:delivered-to; bh=FmzAcIoyHYqxFbHpCr525ef2FXhBjYIvzVhIZqoABaA=; fh=OitT9p6YzAYnzQG1GM6oocakGJB9G2lF/75SDe33HZI=; b=uuhVwSAEUkl3BQUFsVMrUSGaT0lNJbJJVqrw4BQV3eeJ1xtyoIU1Vbo+v8EwY7pIb1 GNKliZ7GcPSQwUK1E/3cFT/b+RBv2lGrSNnJsnGXGubSoZeuwgBL/DlLZX1nEhM5epb4 wJvWi1Q5yIv0e43yx0i6/BVYLIuGfLU5qIBHHxKgl25fpwUca4LF5b6C9ueFECrQQl1A ACwDuR5tbp6yWr1+vNQgCrsiGPuftbd/6omNtL5dCEtszw6CF2qa1vAdNzWX72gyIOOF 9s4w9nRS3/D+XhDEXExHeTOZM4tZBzJ8PKelYjQOIJ2WFHlkX9guIf8kVI5Oj6PWx/Ua Qf4g== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I+Kohl7p; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (server2.sourceware.org. [8.43.85.97]) by mx.google.com with ESMTPS id q19-20020a0cf5d3000000b0067f95f7ddc9si13137287qvm.345.2024.01.17.23.37.19 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Jan 2024 23:37:19 -0800 (PST) Received-SPF: pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) client-ip=8.43.85.97; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=I+Kohl7p; arc=pass (i=1); spf=pass (google.com: domain of gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org designates 8.43.85.97 as permitted sender) smtp.mailfrom="gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 5B1B33858289 for <ouuuleilei@gmail.com>; Thu, 18 Jan 2024 07:37:19 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 555C13858427 for <gcc-patches@gcc.gnu.org>; Thu, 18 Jan 2024 07:36:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 555C13858427 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 555C13858427 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705563388; cv=none; b=r5bYcAnf43xf7UUooBYcXtffLDukQB9iyoYtzBJ1B8xXIDZuyRHAFAZoUl5oKaEE/CJ/B7skZL23Gm/C3cBYYppStPza3i9Sot7SzY5+p9lBuDF33LICGbC6UWrUztvcRuKZoTCPSxnZ5MWXP4QycCQYHfBuZVViRfNtdminJxY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1705563388; c=relaxed/simple; bh=w4Pebn5v1RofGaZq9E1pCvXzPnXIFfb/onFrFx/ukmY=; h=DKIM-Signature:Date:From:To:Subject:Message-ID:MIME-Version; b=hvImLmBhTpIMYCEH80CBzGD5cL5XbDOcSBdUZsPs6ofpackQVpA9ucd+FhiTAqyDW2TF3u36SiGwR+VZ8vONl3t1unxqERv4VjcdWkHi31/u08SkwTNODEWJhCZzTqlg4ge7uNTf5/zMCm7h0Ha0q8R7X/+YdIfVGhlubo7U2pA= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705563386; 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; bh=FmzAcIoyHYqxFbHpCr525ef2FXhBjYIvzVhIZqoABaA=; b=I+Kohl7pw1WAkUfBhD9UCsoJWK1GA27RF1qUQA1boHRNglhRAy2fMSrC3pVCLlpjllWO/C YITGsQUPY+GlTwDGoWPrgBJCvCzT9yzryb2AVxpDBEhIZx+SWK4owKV2znpLOjrtqLUSIE YmG3dz271mFR2bp5rBuRQkUnoyj7eHQ= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-373-k3by5DIUOo-0FdsL-rOHkg-1; Thu, 18 Jan 2024 02:36:24 -0500 X-MC-Unique: k3by5DIUOo-0FdsL-rOHkg-1 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id B7E401C29EB7; Thu, 18 Jan 2024 07:36:23 +0000 (UTC) Received: from tucnak.zalov.cz (unknown [10.39.192.70]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 7C74E2166B33; Thu, 18 Jan 2024 07:36:23 +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 40I7aKJx226827 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Thu, 18 Jan 2024 08:36:21 +0100 Received: (from jakub@localhost) by tucnak.zalov.cz (8.17.1/8.17.1/Submit) id 40I7aKpp226826; Thu, 18 Jan 2024 08:36:20 +0100 Date: Thu, 18 Jan 2024 08:36:19 +0100 From: Jakub Jelinek <jakub@redhat.com> To: Richard Biener <rguenther@suse.de>, Jeff Law <jeffreyalaw@gmail.com> Cc: gcc-patches@gcc.gnu.org Subject: [PATCH] opts: Fix up -ffold-mem-offsets option keywords Message-ID: <ZajU80qR8PmGe6c4@tucnak> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.6 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Spam-Status: No, score=-4.6 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_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_NONE, SPF_NONE, 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 X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Reply-To: Jakub Jelinek <jakub@redhat.com> Errors-To: gcc-patches-bounces+ouuuleilei=gmail.com@gcc.gnu.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1788412889689556919 X-GMAIL-MSGID: 1788412889689556919 |
Series |
opts: Fix up -ffold-mem-offsets option keywords
|
|
Checks
Context | Check | Description |
---|---|---|
snail/gcc-patch-check | warning | Git am fail log |
Commit Message
Jakub Jelinek
Jan. 18, 2024, 7:36 a.m. UTC
Hi! While the option was originally meant to be a Target option for a single target, it is an option for all targets, so should be Common rather than Target, and because it is an optimization option which could be different in between different LTO TUs, I've added Optimization keyword too. From what I can see, Bool is a non-documented non-existing keyword (at least, grep Bool *.awk shows nothing, so I've dropped that too. Seems that the option parsing simply parses and ignores any non-existing keywords. Guess we should drop the Bool keywords from the gcc/config/riscv/riscv.opt file eventually, so that people don't copy this around. Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? 2024-01-18 Jakub Jelinek <jakub@redhat.com> PR other/113399 * common.opt (ffold-mem-offsets): Remove Target and Bool keywords, add Common and Optimization. Jakub
Comments
On Thu, 18 Jan 2024, Jakub Jelinek wrote: > Hi! > > While the option was originally meant to be a Target option for a single > target, it is an option for all targets, so should be Common rather than > Target, and because it is an optimization option which could be different > in between different LTO TUs, I've added Optimization keyword too. > From what I can see, Bool is a non-documented non-existing keyword (at > least, grep Bool *.awk shows nothing, so I've dropped that too. Seems > that the option parsing simply parses and ignores any non-existing keywords. > > Guess we should drop the Bool keywords from the gcc/config/riscv/riscv.opt > file eventually, so that people don't copy this around. > > Bootstrapped/regtested on x86_64-linux and i686-linux, ok for trunk? OK > 2024-01-18 Jakub Jelinek <jakub@redhat.com> > > PR other/113399 > * common.opt (ffold-mem-offsets): Remove Target and Bool keywords, add > Common and Optimization. > > --- gcc/common.opt.jj 2024-01-03 11:51:31.467732078 +0100 > +++ gcc/common.opt 2024-01-17 17:22:05.975424001 +0100 > @@ -1262,7 +1262,7 @@ Common Var(flag_cprop_registers) Optimiz > Perform a register copy-propagation optimization pass. > > ffold-mem-offsets > -Target Bool Var(flag_fold_mem_offsets) Init(1) > +Common Var(flag_fold_mem_offsets) Init(1) Optimization > Fold instructions calculating memory offsets to the memory access instruction if possible. > > fcrossjumping > > Jakub > >
--- gcc/common.opt.jj 2024-01-03 11:51:31.467732078 +0100 +++ gcc/common.opt 2024-01-17 17:22:05.975424001 +0100 @@ -1262,7 +1262,7 @@ Common Var(flag_cprop_registers) Optimiz Perform a register copy-propagation optimization pass. ffold-mem-offsets -Target Bool Var(flag_fold_mem_offsets) Init(1) +Common Var(flag_fold_mem_offsets) Init(1) Optimization Fold instructions calculating memory offsets to the memory access instruction if possible. fcrossjumping