aboutsummaryrefslogtreecommitdiff
path: root/gcc/lto-opts.cc
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/lto-opts.cc')
-rw-r--r--gcc/lto-opts.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/lto-opts.cc b/gcc/lto-opts.cc
index 3959598..62a3fb2 100644
--- a/gcc/lto-opts.cc
+++ b/gcc/lto-opts.cc
@@ -97,7 +97,7 @@ lto_write_options (void)
if (!OPTION_SET_P (flag_cf_protection))
{
const char *cf_protection = NULL;
- switch (global_options.x_flag_cf_protection)
+ switch (global_options.x_flag_cf_protection & ~CF_SET)
{
case CF_NONE: cf_protection = "-fcf-protection=none"; break;
case CF_FULL: cf_protection = "-fcf-protection=full"; break;