Commit 257d5f32 by Volker Reichelt Committed by Volker Reichelt

re PR c++/18073 (mmintrin.h rejected by C++ frontend)

	PR c++/18073
	* typeck.c (build_reinterpret_cast_1): Allow cast from vector type.

	* g++.dg/other/mmintrin.C: New test.

From-SVN: r91929
parent 94763647
2004-12-09 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/18073
* typeck.c (build_reinterpret_cast_1): Allow cast from vector type.
2004-12-09 Nathan Sidwell <nathan@codesourcery.com> 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
PR c++/16681 PR c++/16681
......
...@@ -4956,6 +4956,8 @@ build_reinterpret_cast_1 (tree type, tree expr, bool c_cast_p, ...@@ -4956,6 +4956,8 @@ build_reinterpret_cast_1 (tree type, tree expr, bool c_cast_p,
} }
else if (TREE_CODE (type) == VECTOR_TYPE) else if (TREE_CODE (type) == VECTOR_TYPE)
return fold_if_not_in_template (convert_to_vector (type, expr)); return fold_if_not_in_template (convert_to_vector (type, expr));
else if (TREE_CODE (intype) == VECTOR_TYPE)
return fold_if_not_in_template (convert_to_integer (type, expr));
else else
{ {
if (valid_p) if (valid_p)
......
2004-12-09 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
PR c++/18073
* g++.dg/other/mmintrin.C: New test.
2004-12-09 Nathan Sidwell <nathan@codesourcery.com> 2004-12-09 Nathan Sidwell <nathan@codesourcery.com>
PR c++/16681 PR c++/16681
......
// { dg-do compile { target i?86-*-* x86_64-*-* } }
// { dg-options "-msse" }
#include <xmmintrin.h>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment