projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7dd8073
)
Fix detection for [[fallthrough]] with GCC
author
Eric Fiselier
<eric@efcs.ca>
Fri, 5 May 2017 20:50:24 +0000
(20:50 +0000)
committer
Eric Fiselier
<eric@efcs.ca>
Fri, 5 May 2017 20:50:24 +0000
(20:50 +0000)
llvm-svn: 302285
libcxx/include/__config
patch
|
blob
|
history
diff --git
a/libcxx/include/__config
b/libcxx/include/__config
index
a9f9d0f
..
2a29074
100644
(file)
--- a/
libcxx/include/__config
+++ b/
libcxx/include/__config
@@
-1089,7
+1089,7
@@
_LIBCPP_FUNC_VIS extern "C" void __sanitizer_annotate_contiguous_container(
# define _LIBCPP_DIAGNOSE_ERROR(...)
#endif
-#if __has_attribute(fallthough) ||
defined(_LIBCPP_COMPILER_GCC)
+#if __has_attribute(fallthough) ||
_GNUC_VER >= 700
// Use a function like macro to imply that it must be followed by a semicolon
#define _LIBCPP_FALLTHROUGH() __attribute__((__fallthrough__))
#else