diff options
-rw-r--r-- | gcc/ChangeLog.google-4_6 | 6 | ||||
-rw-r--r-- | gcc/common.opt | 12 |
2 files changed, 18 insertions, 0 deletions
diff --git a/gcc/ChangeLog.google-4_6 b/gcc/ChangeLog.google-4_6 index 3df593d6250..8e49604501f 100644 --- a/gcc/ChangeLog.google-4_6 +++ b/gcc/ChangeLog.google-4_6 @@ -1,3 +1,9 @@ +2012-10-16 DeLesley Hutchins <delesley@google.com> + + gcc/common.opt: + Add clang thread safety warning flags as supported, but ignored. + (-Wthread-safety-analysis/attributes/precise) + 2012-09-17 Wei Guozhi <carrot@google.com> Backport from trunk diff --git a/gcc/common.opt b/gcc/common.opt index d3563046559..a189d4cf33a 100644 --- a/gcc/common.opt +++ b/gcc/common.opt @@ -652,6 +652,18 @@ Wthread-safety Common Var(warn_thread_safety) Warning Warn about potential thread safety issues when the code is annotated with thread safety attributes +Wthread-safety-analysis +Common Ignore +Does nothing. For compatibility with clang thread safety analysis. + +Wthread-safety-attributes +Common Ignore +Does nothing. For compatibility with clang thread safety analysis. + +Wthread-safety-precise +Common Ignore +Does nothing. For compatibility with clang thread safety analysis. + Wthread-unguarded-var Common Var(warn_thread_unguarded_var) Init(1) Warning Warn about shared variables not properly protected by locks specified in the attributes |