From patchwork Mon Oct 25 14:45:44 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Andrew MacLeod X-Patchwork-Id: 1545797 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=TR0pYx8M; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HdHqG3tlLz9tjx for ; Tue, 26 Oct 2021 01:47:22 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 45BCB3858413 for ; Mon, 25 Oct 2021 14:47:20 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 45BCB3858413 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1635173240; bh=VLjecHF6Qi717IFx/9FTnMEL0VOupx93p5UfZb6M8hA=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=TR0pYx8MrvV1teVeX0cmpORf3uCEvhO6guyeO/dKSJZzuglEjwTrLhDhU/3lSNZMT KDvNk3iSAc3zpebuWRrGP/mH8rvgr3kHMl0GiK2ffUS7jCyLlC9uC/Tuk97NMEnzWe g0jCtGesBZKdlRuQC5ZDy47SNUHAZgb+xbz2JXTo= 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.133.124]) by sourceware.org (Postfix) with ESMTPS id 6805F3858438 for ; Mon, 25 Oct 2021 14:45:49 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6805F3858438 Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-262-Kd2l_gE6OIKTUMVjEWLBLw-1; Mon, 25 Oct 2021 10:45:47 -0400 X-MC-Unique: Kd2l_gE6OIKTUMVjEWLBLw-1 Received: by mail-qt1-f200.google.com with SMTP id y25-20020ac87059000000b002a71d24c242so5827883qtm.0 for ; Mon, 25 Oct 2021 07:45:47 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:to:cc:from:subject:message-id:date:user-agent :mime-version:content-language; bh=VLjecHF6Qi717IFx/9FTnMEL0VOupx93p5UfZb6M8hA=; b=RTqCa3E5J9MfRHOP17HZ3GdbYv8FzP2u5qJvNY1Jsfgt0VpnNYRJd2u+0A1wn0aYed z1ohaHW+c5iAkCcm7SfxzouP3ipwz1qbAbfRl05Ie03qIuiLkAMEc/Fk3Zm0/eAJtk4y S83AI9dy01kjEVp2f3nKHy4CAzehjZKkXJXcou1MrXS3AkshR1Rhizz4gxSKVFv5Jo5n d0uB5yZvZZniSMIlbPMba++HAr3GrYQT1gviqdtDPj66e3kynREGErqLYaRljWkRMkOH T+QXNkGBaY5hfXWwbaVIVG6DJDRuzqysxpppKLMg+N5I2Gw7Crao1yvZvR1hHie30yXl 5HZg== X-Gm-Message-State: AOAM531XucXMdb7BSbTq6SooiWjTJwk7a5wyyJt3rHd2BxbzVfsbDTF2 KP50CaAJxPwcnuP9546Jo1R1xPfS0u0mumShjJC1iwQ5q9Lnd79dfenmEFHDBtlduup+rO2paEW LmwsmpEsT2hsF5/9uSQ== X-Received: by 2002:a37:a68a:: with SMTP id p132mr14197343qke.249.1635173146807; Mon, 25 Oct 2021 07:45:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxc3szD2umGGiWTQrTP2BdHeZIe78oTREzdm29qa9xml2meH2fFqUVyBRTKmDh87XgRdD9fkw== X-Received: by 2002:a37:a68a:: with SMTP id p132mr14197331qke.249.1635173146651; Mon, 25 Oct 2021 07:45:46 -0700 (PDT) Received: from [192.168.0.102] ([192.24.49.122]) by smtp.gmail.com with ESMTPSA id k3sm8509950qkh.116.2021.10.25.07.45.45 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 25 Oct 2021 07:45:46 -0700 (PDT) To: gcc-patches Subject: [COMMITTED] Tweak ranger-debug flags Message-ID: <87f696fa-ed4a-30e9-6076-9a202876854f@redhat.com> Date: Mon, 25 Oct 2021 10:45:44 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-CA X-Spam-Status: No, score=-11.3 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andrew MacLeod via Gcc-patches From: Andrew MacLeod Reply-To: Andrew MacLeod Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org Sender: "Gcc-patches" When I split out the ranger debug flags from the evrp-mode flag, I should have also made the 3 separate debug flags their own unique flag value, and combined them for the various options.  As it is, when you ask for a trace, you also gets cache output, which is unintended.  This patch resolves that situation. Bootstraps onx86_64-pc-linux-gnu with no regressions.  Pushed. Andrew From 2bfb21bb8ce16698926576870e4b1f2609e0c909 Mon Sep 17 00:00:00 2001 From: Andrew MacLeod Date: Thu, 21 Oct 2021 10:58:16 -0400 Subject: [PATCH 1/3] Tweak ranger-debug flags. Set the 3 possible flags as all individual bits and group for options. * flag-types.h (enum ranger_debug): Adjust values. * params.opt (ranger_debug): Ditto. --- gcc/flag-types.h | 3 ++- gcc/params.opt | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/gcc/flag-types.h b/gcc/flag-types.h index a5a637160d7..7cf8c28933b 100644 --- a/gcc/flag-types.h +++ b/gcc/flag-types.h @@ -454,9 +454,10 @@ enum ranger_debug { RANGER_DEBUG_NONE = 0, RANGER_DEBUG_TRACE = 1, - RANGER_DEBUG_CACHE = (2 | RANGER_DEBUG_TRACE), + RANGER_DEBUG_CACHE = 2, RANGER_DEBUG_GORI = 4, RANGER_DEBUG_TRACE_GORI = (RANGER_DEBUG_TRACE | RANGER_DEBUG_GORI), + RANGER_DEBUG_TRACE_CACHE = (RANGER_DEBUG_TRACE | RANGER_DEBUG_CACHE), RANGER_DEBUG_ALL = (RANGER_DEBUG_GORI | RANGER_DEBUG_CACHE) }; diff --git a/gcc/params.opt b/gcc/params.opt index 393d52bc660..6eb3e15a9e6 100644 --- a/gcc/params.opt +++ b/gcc/params.opt @@ -887,7 +887,7 @@ EnumValue Enum(ranger_debug) String(trace) Value(RANGER_DEBUG_TRACE) EnumValue -Enum(ranger_debug) String(cache) Value(RANGER_DEBUG_CACHE) +Enum(ranger_debug) String(cache) Value(RANGER_DEBUG_TRACE_CACHE) EnumValue Enum(ranger_debug) String(gori) Value(RANGER_DEBUG_GORI) -- 2.17.2