2014-01-03 Marc Glisse <marc.glisse@inria.fr>
PR c++/58950
gcc/cp/
* cvt.c (convert_to_void): Handle VEC_PERM_EXPR and VEC_COND_EXPR.
gcc/testsuite/
* g++.dg/pr58950.C: New file.
From-SVN: r206325
+2014-01-03 Marc Glisse <marc.glisse@inria.fr>
+
+ PR c++/58950
+ * cvt.c (convert_to_void): Handle VEC_PERM_EXPR and VEC_COND_EXPR.
+
2014-01-03 Tobias Burnus <burnus@net-b.de>
PR c++/58567
|| code == PREDECREMENT_EXPR
|| code == PREINCREMENT_EXPR
|| code == POSTDECREMENT_EXPR
- || code == POSTINCREMENT_EXPR)))
+ || code == POSTINCREMENT_EXPR))
+ || code == VEC_PERM_EXPR
+ || code == VEC_COND_EXPR)
&& (complain & tf_warning))
warning_at (loc, OPT_Wunused_value, "value computed is not used");
}
+2014-01-03 Marc Glisse <marc.glisse@inria.fr>
+
+ PR c++/58950
+ * g++.dg/pr58950.C: New file.
+
2014-01-03 Tobias Burnus <burnus@net-b.de>
PR c++/58567
--- /dev/null
+/* { dg-do compile } */
+/* { dg-options "-Wall" } */
+
+void f(){
+ int i __attribute__((vector_size(2*sizeof(int)))) = { 2, 3 };
+ __builtin_shuffle (i, i); /* { dg-warning "value computed is not used" } */
+ ++i?1:0; /* { dg-warning "value computed is not used" } */
+}