Commit 9e188dca by James A. Morrison

treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non scalar integer types.

2005-02-13  James A. Morrison  <phython@gcc.gnu.org>

       * treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
       scalar integer types.

From-SVN: r94986
parent 1ac26262
2005-02-13 James A. Morrison <phython@gcc.gnu.org>
* treetree.c (tree_lang_type_for_mode): Return NULL_TREE for all non
scalar integer types.
2005-02-09 Richard Henderson <rth@redhat.com>
* treetree.c (treelang_init_decl_processing): Call
......
......@@ -5,7 +5,7 @@
you are in the right place.
Copyright (C) 1988, 1992, 1993, 1994, 1995, 1996, 1997, 1998,
1999, 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
1999, 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc.
This code is based on toy.c written by Richard Kenner.
......@@ -893,7 +893,10 @@ tree_lang_type_for_size (unsigned precision, int unsignedp)
static tree
tree_lang_type_for_mode (enum machine_mode mode, int unsignedp)
{
if (SCALAR_INT_MODE_P (mode))
return tree_lang_type_for_size (GET_MODE_BITSIZE (mode), unsignedp);
else
return NULL_TREE;
}
/* Return the unsigned version of a TYPE_NODE, a scalar type. */
......
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