[PATCH] Remove the signed_type lang hook
Rafael Espindola
espindola@google.com
Sat May 26 07:17:00 GMT 2007
This patch removes the signed_type language hook. The general strategy
is to use signed_type_for or signed_or_unsigned_type.
gcc/java:
* typeck.c (java_signed_type): Remove.
* lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
* java-tree.h (java_signed_type): Remove.
gcc:
* tree.c (get_unsigned_type): Remove.
(unsigned_type_for): Call get_signed_or_unsigned_type instead of
get_unsigned_type.
(signed_type_for): Call get_signed_or_unsigned_type instead of
lang_hooks.types.signed_type.
* fold-const.c (fold_negate_expr): Call signed_type_for instead of
lang_hooks.types.signed_type.
(size_diffop): Likewise.
(all_ones_mask_p): Likewise.
(build_range_check): Likewise.
(fold_cond_expr_with_comparison): Likewise.
(unextend): Likewise.
(extract_muldiv_1): Likewise.
(fold_single_bit_test_into_sign_test): Likewise.
(fold_binary): Likewise.
(fold_ternary): Likewise.
* c-objc-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
* c-format.c (check_format_types): Use signed_type_for instead of
c_common_signed_type.
* c-decl.c (grokdeclarator): Likewise.
* langhooks.h (signed_type): Likewise.
* c-typeck.c (build_binary_op): Use signed_type_for instead of
c_common_signed_type.
* expmed.c (make_tree): Use signed_type_for instead of
lang_hooks.types.signed_type.
* c-common.c (warnings_for_convert_and_check): Use signed_type_for instead of
c_common_signed_type.
(c_common_signed_type): Remove.
(shorten_compare): Use signed_type_for instead of c_common_signed_type.
(c_common_get_alias_set): Likewise.
(c_common_nodes_and_builtins): Likewise.
(same_scalar_type_ignoring_signedness): Use signed_type_for instead of
lang_hooks.types.signed_type.
* c-common.h (c_common_signed_type): Remove.
* convert.c (convert_to_integer): Use signed_type_for instead of
lang_hooks.types.signed_type.
* langhooks-def.h (LANG_HOOKS_SIGNED_TYPE): Remove.
gcc/cp:
* typeck.c (build_binary_op): Use signed_type_for instead of
c_common_signed_type.
* cp-objcp-common.h (LANG_HOOKS_SIGNED_TYPE): Remove.
gcc/ada:
* misc.c (LANG_HOOKS_SIGNED_TYPE): Remove.
gcc/fortran:
* trans-types.c (gfc_signed_type): Remove.
* trans-types.h (gfc_signed_type): Remove.
* f95-lang.c (LANG_HOOKS_SIGNED_TYPE): Remove.
gcc/treelang:
* treelang/treetree.c (tree_lang_signed_type): Remove.
(LANG_HOOKS_SIGNED_TYPE): Remove.
--
Rafael Avila de Espindola
Google Ireland Ltd.
Gordon House
Barrow Street
Dublin 4
Ireland
Registered in Dublin, Ireland
Registration Number: 368047
-------------- next part --------------
A non-text attachment was scrubbed...
Name: remove-signed_type.patch
Type: text/x-patch
Size: 22380 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070526/8fd640cb/attachment.bin>
More information about the Gcc-patches
mailing list