diff options
author | DeLesley Hutchins <delesley@google.com> | 2012-10-16 19:47:55 +0000 |
---|---|---|
committer | DeLesley Hutchins <delesley@google.com> | 2012-10-16 19:47:55 +0000 |
commit | d871a30cd85e8b8640923a1cf3596f89ba3a3fe6 (patch) | |
tree | 3cd9d375c17e243e84683d8c9869832433dfcfae | |
parent | 7d0a465944e54bc671b51b5c40d8ebbfe11df2cf (diff) |
This patch adds three warning flag for command-line compatibility with clang. google/gcc-4_6
The flags are -Wthread-safety-analysis, -Wthread-safety-attributes, and
-Wthread-safety-precise. They don't do anything.
git-svn-id: https://gcc.gnu.org/svn/gcc/branches/google/gcc-4_6@192510 138bc75d-0d04-0410-961f-82ee72b054a4
-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 |