summaryrefslogtreecommitdiffstats
path: root/clang/lib/Parse/ParseTentative.cpp
diff options
context:
space:
mode:
authorBill Seurer <seurer@linux.vnet.ibm.com>2015-01-12 19:35:51 +0000
committerBill Seurer <seurer@linux.vnet.ibm.com>2015-01-12 19:35:51 +0000
commitcf2c96b0f69ae4f00985761c89fd10a1fd8d3468 (patch)
treea5e7d7c4c360e61e888216331b8998461970386b /clang/lib/Parse/ParseTentative.cpp
parentb6550529a62a1f47c966f33687a10b2a4dc6885a (diff)
downloadbcm5719-llvm-cf2c96b0f69ae4f00985761c89fd10a1fd8d3468.tar.gz
bcm5719-llvm-cf2c96b0f69ae4f00985761c89fd10a1fd8d3468.zip
[PowerPC]To provide better compatibility with gcc I added the __bool keyword to the Alitivec support in clang. __bool is functionally identical to using bool when declaring vector types. For example:
vector bool char v_bc; vector __bool char v___bc; clang already supported vector/__vector and pixel/__pixel but was missing __bool. http://llvm.org/bugs/show_bug.cgi?id=19220 For reference: https://gcc.gnu.org/onlinedocs/gcc-4.9.2/gcc/PowerPC-AltiVec_002fVSX-Built-in-Functions.html http://reviews.llvm.org/D6882 llvm-svn: 225664
Diffstat (limited to 'clang/lib/Parse/ParseTentative.cpp')
-rw-r--r--clang/lib/Parse/ParseTentative.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/clang/lib/Parse/ParseTentative.cpp b/clang/lib/Parse/ParseTentative.cpp
index 929242f2004..abf16fa6222 100644
--- a/clang/lib/Parse/ParseTentative.cpp
+++ b/clang/lib/Parse/ParseTentative.cpp
@@ -992,6 +992,7 @@ Parser::isExpressionOrTypeSpecifierSimple(tok::TokenKind Kind) {
case tok::kw___unaligned:
case tok::kw___vector:
case tok::kw___pixel:
+ case tok::kw___bool:
case tok::kw__Atomic:
case tok::kw___unknown_anytype:
return TPResult::False;
OpenPOWER on IntegriCloud