Displaying 3 results from an estimated 3 matches for "parselangargs".
2013 Nov 15
0
[LLVMdev] [PATCH] Prevent clang from throwing the diagnostics twice.
...2013 at 11:19 AM, Umesh Kalappa
<umesh.kalappa0 at gmail.com> wrote:
> Hi Aaron,
>
>>>Why is getLastArgIntValue being called twice in the first place?
>
> It has been called from the getOptimizationLevel() ,which in turn called by
> methods like ParseCodeGenArgs() and ParseLangArgs(),
>
> where method getOptimizationLevel() register the "invalid integral value"
> diagnostics in the diagnostics engine twice ,since it was called twice.
>
> So i added the flag to check if the diagnostics is already registered for a
> specific argument then don't a...
2013 Nov 15
5
[LLVMdev] [PATCH] Prevent clang from throwing the diagnostics twice.
Hi All,
Clang pop up with the "error: invalid integral value" diagnostics twice
,when you enable the optimization through -O with a non-integer value
i.e -O<non integer> as show below
$ clang -Of -S test.c
error: invalid integral value 'f' in '-Of'
error: invalid integral value 'f' in '-Of'
Attached patch fix the issue as
$ clang -Of -S
2014 Nov 03
8
[LLVMdev] [PATCH] Protection against stack-based memory corruption errors using SafeStack
...ions::OPT_T_Group);
Args.AddAllArgs(CmdArgs, options::OPT_e);
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp
index 340d4ab..649c470 100644
--- a/lib/Frontend/CompilerInvocation.cpp
+++ b/lib/Frontend/CompilerInvocation.cpp
@@ -1606,6 +1606,7 @@ static void ParseLangArgs(LangOptions &Opts, ArgList &Args, InputKind IK,
case 1: Opts.setStackProtector(LangOptions::SSPOn); break;
case 2: Opts.setStackProtector(LangOptions::SSPStrong); break;
case 3: Opts.setStackProtector(LangOptions::SSPReq); break;
+ case 4: Opts.setStackProtector(LangOptions::SSPS...