diff options
author | Rafael Avila de Espindola <espindola@google.com> | 2007-03-30 22:09:01 +0000 |
---|---|---|
committer | Rafael Espindola <espindola@gcc.gnu.org> | 2007-03-30 22:09:01 +0000 |
commit | 47ecd38dbf87d87f64c3db3a9fd2c716e63b6ca7 (patch) | |
tree | aad122665a7e424450d90c47175d652d463baad7 /gcc/treelang | |
parent | ccf8e764e9ca5a530de57cdabdb7123734de2d4a (diff) | |
download | gcc-47ecd38dbf87d87f64c3db3a9fd2c716e63b6ca7.zip gcc-47ecd38dbf87d87f64c3db3a9fd2c716e63b6ca7.tar.gz gcc-47ecd38dbf87d87f64c3db3a9fd2c716e63b6ca7.tar.bz2 |
typeck.c (java_signed_or_unsigned_type): Remove.
gcc/java/ChangeLog:
* typeck.c (java_signed_or_unsigned_type): Remove.
(java_signed_type): use get_signed_or_unsigned_type instead of
java_signed_or_unsigned_type.
(java_unsigned_type): Ditto.
* lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
* java-tree.h (java_signed_or_unsigned_type): Remove
gcc/Changelog:
* tree.h(get_signed_or_unsigned_type): New
* fold-const.c (operand_equal_for_comparison_p): Use
get_signed_or_unsigned_type instead of
lang_hooks.types.signed_or_unsigned_type.
* expr.c (store_expr): Ditto.
* langhooks.c (get_signed_or_unsigned_type): New.
(lhd_signed_or_unsigned_type): New
* langhooks.h (lhd_signed_or_unsigned_type): New.
* langhooks-def.h (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Define.
gcc/treelang/ChangeLog:
* treetree.c (tree_lang_signed_or_unsigned_type): Remove.
(LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE) Remove.
gcc/ada/ChangeLog:
* trans.c (Attribute_to_gnu): Use get_signed_or_unsigned_type
instead of gnat_signed_or_unsigned_type.
* utils.c (gnat_signed_or_unsigned_type): Remove.
* misc.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove
* gigi.h (gnat_signed_or_unsigned_type): Remove
gcc/forrtan/trans-types.c:
* trans-types.c (gfc_signed_or_unsigned_type): Remove.
(gfc_unsigned_type): Use get_signed_or_unsigned_type instead of
gfc_signed_or_unsigned_type.
(gfc_signed_type): Ditto.
* trans-types.h (gfc_signed_or_unsigned_type): Remove.
* f95-lang.c (LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): Remove.
From-SVN: r123373
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 |