https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71651

            Bug ID: 71651
           Summary: Option suggestion provides a non-existing hint
           Product: gcc
           Version: 7.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: driver
          Assignee: unassigned at gcc dot gnu.org
          Reporter: marxin at gcc dot gnu.org
  Target Milestone: ---

Running: gcc -fno-stack-protector-explicit -O2 pr71585.c -S

gcc: error: unrecognized command line option ‘-fno-stack-protector-explicit’;
did you mean ‘-fno-stack-protector-explicit’?

Problem is that the option has 'RejectNegative' flag set.

fstack-protector-explicit
Common Report RejectNegative Var(flag_stack_protect, 4)
Use stack protection method only for functions with the stack_protect
attribute.

Martin

Reply via email to