re PR c++/54427 (Expose more vector extensions)
authorMarc Glisse <marc.glisse@inria.fr>
Fri, 3 Oct 2014 19:57:01 +0000 (21:57 +0200)
committerMarc Glisse <glisse@gcc.gnu.org>
Fri, 3 Oct 2014 19:57:01 +0000 (19:57 +0000)
commit3c9aabbde58e5c540b0718c0a585e3ca97910317
tree99d9326c06a03358bcb02cde8335ee8324fd1bf5
parentf9bb202b35f949eecb48adf75f9a0c5b117978d2
re PR c++/54427 (Expose more vector extensions)

2014-10-03  Marc Glisse  <marc.glisse@inria.fr>

PR c++/54427
PR c++/57198
PR c++/58845
gcc/c-family/
* c-common.c (warn_logical_operator): Punt for vectors.
gcc/cp/
* typeck.c (cp_build_binary_op): save_expr after convert to save
redundant operations.
[TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR]: Handle vectors.
(cp_build_unary_op) [TRUTH_NOT_EXPR]: Likewise.
gcc/
* doc/extend.texi (Vector Extensions): Document &&, ||, ! in C++.
gcc/testsuite/
* g++.dg/ext/vector9.C: Update, not an error anymore.
* g++.dg/ext/vector27.C: Replace with new test.
* g++.dg/ext/vector28.C: New file.
* g++.dg/other/error23.C: Update to a different error.

From-SVN: r215872
gcc/ChangeLog
gcc/c-family/ChangeLog
gcc/c-family/c-common.c
gcc/cp/ChangeLog
gcc/cp/typeck.c
gcc/doc/extend.texi
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/ext/vector27.C
gcc/testsuite/g++.dg/ext/vector28.C [new file with mode: 0644]
gcc/testsuite/g++.dg/ext/vector9.C
gcc/testsuite/g++.dg/other/error23.C