aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXi Ruoyao <xry111@xry111.site>2023-03-03 16:50:53 +0800
committerXi Ruoyao <xry111@xry111.site>2023-03-03 19:23:38 +0800
commit6703f490cd802650cf5a5a8ada6c5077316547dd (patch)
tree5f2be0d7ba6b768b9b74c53e9a070a80cd9f55ba
parent0132acc03cada2c3b47c48a205e821563153fc80 (diff)
downloadgcc-6703f490cd802650cf5a5a8ada6c5077316547dd.zip
gcc-6703f490cd802650cf5a5a8ada6c5077316547dd.tar.gz
gcc-6703f490cd802650cf5a5a8ada6c5077316547dd.tar.bz2
driver: toplev: Fix a typo
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".
-rw-r--r--gcc/toplev.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/toplev.cc b/gcc/toplev.cc
index 4c15d4f..109c9d5 100644
--- a/gcc/toplev.cc
+++ b/gcc/toplev.cc
@@ -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;
}