diff options
Diffstat (limited to 'gcc/treelang')
-rw-r--r-- | gcc/treelang/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/treelang/treetree.c | 14 |
2 files changed, 5 insertions, 14 deletions
diff --git a/gcc/treelang/ChangeLog b/gcc/treelang/ChangeLog index 0f08dd6..2903de6 100644 --- a/gcc/treelang/ChangeLog +++ b/gcc/treelang/ChangeLog @@ -1,3 +1,8 @@ +2007-03-30 Rafael Avila de Espindola <espindola@google.com> + + * treetree.c (tree_lang_signed_or_unsigned_type): Remove. + (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove. + 2007-03-01 Brooks Moses <brooks.moses@codesourcery.com> * Make-lang.in: Add install-pdf target as copied from diff --git a/gcc/treelang/treetree.c b/gcc/treelang/treetree.c index aade17c..0645b9d 100644 --- a/gcc/treelang/treetree.c +++ b/gcc/treelang/treetree.c @@ -129,7 +129,6 @@ static tree tree_lang_type_for_size (unsigned precision, int unsignedp); static tree tree_lang_type_for_mode (enum machine_mode mode, int unsignedp); static tree tree_lang_unsigned_type (tree type_node); static tree tree_lang_signed_type (tree type_node); -static tree tree_lang_signed_or_unsigned_type (int unsignedp, tree type); /* Functions to keep track of the current scope. */ static void pushlevel (int ignore); @@ -156,8 +155,6 @@ static void treelang_expand_function (tree fndecl); #define LANG_HOOKS_SIGNED_TYPE tree_lang_signed_type #undef LANG_HOOKS_UNSIGNED_TYPE #define LANG_HOOKS_UNSIGNED_TYPE tree_lang_unsigned_type -#undef LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE -#define LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE tree_lang_signed_or_unsigned_type #undef LANG_HOOKS_TYPE_FOR_MODE #define LANG_HOOKS_TYPE_FOR_MODE tree_lang_type_for_mode #undef LANG_HOOKS_TYPE_FOR_SIZE @@ -884,17 +881,6 @@ tree_lang_signed_type (tree type_node) return tree_lang_type_for_size (TYPE_PRECISION (type_node), 0); } -/* Return a type the same as TYPE except unsigned or signed according to - UNSIGNEDP. */ - -static tree -tree_lang_signed_or_unsigned_type (int unsignedp, tree type) -{ - if (! INTEGRAL_TYPE_P (type) || TYPE_UNSIGNED (type) == unsignedp) - return type; - else - return tree_lang_type_for_size (TYPE_PRECISION (type), unsignedp); -} /* These functions and variables deal with binding contours. We only need these functions for the list of PARM_DECLs, but we leave the |