]> granicus.if.org Git - clang/commit
[PowerPC]To provide better compatibility with gcc I added the __bool keyword to the...
authorBill Seurer <seurer@linux.vnet.ibm.com>
Mon, 12 Jan 2015 19:35:51 +0000 (19:35 +0000)
committerBill Seurer <seurer@linux.vnet.ibm.com>
Mon, 12 Jan 2015 19:35:51 +0000 (19:35 +0000)
commitb2a190951f083ba8ac6c7e509ca7d92540d81de9
tree006097d2037f073e09b449c74b281b3d914ae74f
parentc9b67096de0130558e13219673f8dba34b254137
[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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@225664 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/Basic/TokenKinds.def
lib/Parse/ParseDecl.cpp
lib/Parse/ParseTentative.cpp
test/Parser/altivec.c