[stackprotector] Add command line option -fstack-protector-strong
This option has the following effects: * It adds the sspstrong IR attribute to each function within the CU. * It defines the macro __SSP_STRONG__ with the value of 2. Differential Revision: http://llvm-reviews.chandlerc.com/D2717 llvm-svn: 201120
This commit is contained in:
@@ -1435,7 +1435,8 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
|
||||
break;
|
||||
case 0: Opts.setStackProtector(LangOptions::SSPOff); break;
|
||||
case 1: Opts.setStackProtector(LangOptions::SSPOn); break;
|
||||
case 2: Opts.setStackProtector(LangOptions::SSPReq); break;
|
||||
case 2: Opts.setStackProtector(LangOptions::SSPStrong); break;
|
||||
case 3: Opts.setStackProtector(LangOptions::SSPReq); break;
|
||||
}
|
||||
|
||||
// Parse -fsanitize= arguments.
|
||||
|
||||
Reference in New Issue
Block a user