From patchwork Wed Dec 1 11:07:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rasmus Villemoes X-Patchwork-Id: 48350 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D2865385BF92 for ; Wed, 1 Dec 2021 11:07:55 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 6AC543858401 for ; Wed, 1 Dec 2021 11:07:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 6AC543858401 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rasmusvillemoes.dk Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rasmusvillemoes.dk Received: by mail-lf1-x131.google.com with SMTP id t26so61829987lfk.9 for ; Wed, 01 Dec 2021 03:07:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=sender:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=AFxsNs4Uvyhf5QX0pZ6rPAESbrYIyAu8zHjiZRpEyaE=; b=jE0+al+Aelq5/l0VBkFtIN94nVBpJaWKJiPq3QH4IbMU78RLQ03ocy6ijxyWzmOa/p yYuU/RK8Mc7GTTrbRTQl+GzWSpOK6JPBV5Z0/rRK5+4HVF6sch8gelXmvwD32YYbM4Nz ruYMzjLiaNoMs6naMTsQcUBIu3nuDTPmLgABM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :mime-version:content-transfer-encoding; bh=AFxsNs4Uvyhf5QX0pZ6rPAESbrYIyAu8zHjiZRpEyaE=; b=DZiHpg985rpSDiQ9hCL6E7OftSksrxgBsHxi/2JF85bFj2Rq66RATC98XTGnbkO/am tLLlcaPGyJ0KaljLKsCVi3tG3FSoUdrIWJjeCk+KVK0iEY4hvA3nbVhk4Ny0SRBuqLMj 57vAUxbnOg7HBpnzhSaR1viz2GtD+DEcLAj+rIKpqB6gfVysZeV8FXsjvrmYnkRNSnJc 1pekq0WEeB0217dh81O4Lq4MU1fmJHWbfgAiG0w4qw5Heu51dpLB8yubNIpdRlc/QHBV V15kXxi3yz7PdFYSCPnDQQOMX4zwzHuj+6YuJ4m/k9nkrvQV2BCjcx0YPKSdPmxNMoP1 UErQ== X-Gm-Message-State: AOAM533rdw5poO/1LeNd0NNwagS5MDs+i2u7x/lFnlVYJ9IzAtUbbzuU iaHEqsYp+WEwfIlr6jeO9OWNr8laJGktyKHI X-Google-Smtp-Source: ABdhPJyGgJIfe2xs/h0F7cB/30/aecGkg8jr9MWrYS3rtp4J3HaTKgw3iIzoIGVKVYqAb3cO1ERIlw== X-Received: by 2002:a05:6512:3e09:: with SMTP id i9mr5323610lfv.239.1638356857921; Wed, 01 Dec 2021 03:07:37 -0800 (PST) Received: from prevas-ravi.prevas.se ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id u22sm2059186lff.118.2021.12.01.03.07.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Dec 2021 03:07:37 -0800 (PST) From: Rasmus Villemoes X-Google-Original-From: Rasmus Villemoes To: gcc-patches@gcc.gnu.org Subject: [PATCH] fix spelling of -linker-output-auto-nolto-rel Date: Wed, 1 Dec 2021 12:07:32 +0100 Message-Id: <20211201110732.455294-1-rasmus.villemoes@prevas.dk> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 X-Spam-Status: No, score=-12.0 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, 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: , Cc: Eric Botcazou , Rasmus Villemoes Errors-To: gcc-patches-bounces+patchwork=sourceware.org@gcc.gnu.org Sender: "Gcc-patches" The transposition nolto -> notlo is confusing and it makes the long name even harder to read than it already is - I kept reading it as "not lo" until I realized it was a simply typo. Fixes: 5269b24605b1 (Silence warning in LTO mode on VxWorks) lto-plugin/ * lto-plugin.c: Fix -linker-output-auto-notlo-rel -> -linker-output-auto-nolto-rel typo. (process_option): Adjust accordingly. gcc/ * config/vxworks.h (LTO_PLUGIN_SPEC): Adapt to corrected spelling of -linker-output-auto-nolto-rel. --- gcc/config/vxworks.h | 2 +- lto-plugin/lto-plugin.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gcc/config/vxworks.h b/gcc/config/vxworks.h index e41f16a51e8..bddf2c37f42 100644 --- a/gcc/config/vxworks.h +++ b/gcc/config/vxworks.h @@ -306,4 +306,4 @@ extern void vxworks_emit_call_builtin___clear_cache (rtx begin, rtx end); further incremental LTO linking. We do not do repeated incremental linking so silence the warning (instead of passing -flinker-output=nolto-rel). */ #undef LTO_PLUGIN_SPEC -#define LTO_PLUGIN_SPEC "%{!mrtp:-plugin-opt=-linker-output-auto-notlo-rel}" +#define LTO_PLUGIN_SPEC "%{!mrtp:-plugin-opt=-linker-output-auto-nolto-rel}" diff --git a/lto-plugin/lto-plugin.c b/lto-plugin/lto-plugin.c index 6ab9822f369..40d7b7b8692 100644 --- a/lto-plugin/lto-plugin.c +++ b/lto-plugin/lto-plugin.c @@ -32,7 +32,7 @@ along with this program; see the file COPYING3. If not see -nop: Instead of running lto-wrapper, pass the original to the plugin. This only works if the input files are hybrid. -linker-output-known: Do not determine linker output - -linker-output-auto-notlo-rel: Switch from rel to nolto-rel mode without + -linker-output-auto-nolto-rel: Switch from rel to nolto-rel mode without warning. This is used on systems like VxWorks (kernel) where the link is always partial and repeated incremental linking is generally not used. -sym-style={none,win32,underscore|uscore} @@ -1321,7 +1321,7 @@ process_option (const char *option) { if (strcmp (option, "-linker-output-known") == 0) linker_output_known = true; - else if (strcmp (option, "-linker-output-auto-notlo-rel") == 0) + else if (strcmp (option, "-linker-output-auto-nolto-rel") == 0) linker_output_auto_nolto_rel = true; else if (strcmp (option, "-debug") == 0) debug = true;