public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-5707] fix spelling of -linker-output-auto-nolto-rel
@ 2021-12-02 11:54 Rasmus Villemoes
  0 siblings, 0 replies; only message in thread
From: Rasmus Villemoes @ 2021-12-02 11:54 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:1ea226fad13ab696c6d5d17b7bbfc5b4b693c363

commit r12-5707-g1ea226fad13ab696c6d5d17b7bbfc5b4b693c363
Author: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Date:   Wed Dec 1 11:53:45 2021 +0100

    fix spelling of -linker-output-auto-nolto-rel
    
    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 simple 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, accepting both old and
            new spelling.
    
    gcc/
            * config/vxworks.h (LTO_PLUGIN_SPEC): Adapt to corrected
            spelling of -linker-output-auto-nolto-rel.

Diff:
---
 gcc/config/vxworks.h    | 2 +-
 lto-plugin/lto-plugin.c | 6 ++++--
 2 files changed, 5 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..b73483de994 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,9 @@ 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)
+  /* Also accept "notlo" for backwards compatibility.  */
+  else if ((strcmp (option, "-linker-output-auto-nolto-rel") == 0)
+           || (strcmp (option, "-linker-output-auto-notlo-rel") == 0))
     linker_output_auto_nolto_rel = true;
   else if (strcmp (option, "-debug") == 0)
     debug = true;


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-12-02 11:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-02 11:54 [gcc r12-5707] fix spelling of -linker-output-auto-nolto-rel Rasmus Villemoes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).