Commit 0e29f7e5 by Ian Lance Taylor Committed by Ian Lance Taylor

re PR tree-optimization/46805 (ICE: SIGSEGV in optab_for_tree_code…

re PR tree-optimization/46805 (ICE: SIGSEGV in optab_for_tree_code (optabs.c:407) with -O -fno-tree-scev-cprop -ftree-vectorize)

	PR tree-optimization/46805
	PR tree-optimization/46833
	* go-lang.c (go_langhook_type_for_mode): Handle vector modes.

From-SVN: r167563
parent 128aaeed
2010-12-07 Ian Lance Taylor <iant@google.com>
PR tree-optimization/46805
PR tree-optimization/46833
* go-lang.c (go_langhook_type_for_mode): Handle vector modes.
2010-12-06 Ian Lance Taylor <iant@google.com>
PR other/46789
......
......@@ -285,6 +285,20 @@ go_langhook_type_for_size (unsigned int bits, int unsignedp)
static tree
go_langhook_type_for_mode (enum machine_mode mode, int unsignedp)
{
/* Go has no vector types. Build them here. FIXME: It does not
make sense for the middle-end to ask the frontend for a type
which the frontend does not support. However, at least for now
it is required. See PR 46805. */
if (VECTOR_MODE_P (mode))
{
tree inner;
inner = go_langhook_type_for_mode (GET_MODE_INNER (mode), unsignedp);
if (inner != NULL_TREE)
return build_vector_type_for_mode (inner, mode);
return NULL_TREE;
}
return go_type_for_mode (mode, unsignedp);
}
......
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