[PATCH] default implementation for unsigned_type

Rafael Espindola espindola@google.com
Wed Apr 25 11:11:00 GMT 2007


:ADDPATCH langhook:

This patch is the easy part of removing the unsigned_type callback. It
defines a default implementation that is used by treelang, fortran and
java.

bootstraped and regression tested with all languages enabled.

OK to commit?

gcc/fortran/ChangeLog
* gcc/fortran/f95-lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
* gcc/fortran/trans-intrinsic.c (gfc_conv_intrinsic_ishft): use
get_unsigned_type instead of gfc_unsigned_type.
* gcc/fortran/trans-types.c (gfc_unsigned_type): Remove.
* gcc/fortran/trans-types.h (gfc_unsigned_type): Remove.

gcc/java/ChangeLog
* gcc/java/expr.c (build_java_binop): use get_unsigned_type instead of
java_unsigned_type.
* gcc/java/java-tree.h (java_unsigned_type): Remove.
* gcc/java/lang.c (LANG_HOOKS_UNSIGNED_TYPE): Remove.
* gcc/java/typeck.c (java_unsigned_type): Remove.

gcc/ChangeLog
* gcc/langhooks-def.h (LANG_HOOKS_UNSIGNED_TYPE): Define.
* gcc/langhooks.c (get_unsigned_type): New.
* gcc/tree.h (get_unsigned_type): New.

gcc/treelang/ChangeLog
* gcc/treelang/treetree.c (tree_lang_unsigned_type): Remove.
 (LANG_HOOKS_UNSIGNED_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: gcc-unsigned-type.patch
Type: text/x-patch
Size: 6774 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20070425/38919f20/attachment.bin>


More information about the Gcc-patches mailing list