]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
driver: toplev: Fix a typo
authorXi Ruoyao <xry111@xry111.site>
Fri, 3 Mar 2023 08:50:53 +0000 (16:50 +0800)
committerXi Ruoyao <xry111@xry111.site>
Fri, 3 Mar 2023 11:23:38 +0000 (19:23 +0800)
The driver emits a warning when -fstack-check and
-fstack-clash-protection are used together, but the message refers to
"-fstack-clash_protection" (underline instead of dash).

gcc/ChangeLog:

* toplev.cc (process_options): Fix the spelling of
"-fstack-clash-protection".

gcc/toplev.cc

index 4c15d4f542e136e2fdfa8d2ce8993cea91dd1b2b..109c9d58cbd1950b49c78a21166a916a919162da 100644 (file)
@@ -1580,7 +1580,7 @@ process_options (bool no_backend)
   if (flag_stack_check != NO_STACK_CHECK && flag_stack_clash_protection)
     {
       warning_at (UNKNOWN_LOCATION, 0,
-                 "%<-fstack-check=%> and %<-fstack-clash_protection%> are "
+                 "%<-fstack-check=%> and %<-fstack-clash-protection%> are "
                  "mutually exclusive; disabling %<-fstack-check=%>");
       flag_stack_check = NO_STACK_CHECK;
     }